:root {
  --ink: #111827;
  --ink-deep: #070b14;
  --paper: #ffffff;
  --surface: #f4f6f8;
  --surface-warm: #fff7ed;
  --muted: #5d6675;
  --line: #d9dee7;
  --accent: #ea580c;
  --accent-strong: #c2410c;
  --accent-soft: #fed7aa;
  --signal: #2563eb;
  --danger: #b91c1c;
  --success: #166534;
  --radius: 8px;
  --container: min(1140px, calc(100vw - 32px));
  --shadow: 0 18px 52px rgba(7, 11, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.concept-bar {
  background: var(--ink-deep);
  color: #ffffff;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 222, 231, 0.88);
  backdrop-filter: blur(14px);
}

.legal-header {
  position: static;
}

.nav {
  width: var(--container);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.brand-line {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.brand-subline {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.nav-links a:hover {
  background: var(--surface);
}

.nav-links .nav-action {
  background: var(--ink);
  color: #ffffff;
}

.nav-links .nav-action:hover {
  background: var(--accent);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.section {
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.9rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.15rem);
}

h3 {
  font-size: 1.22rem;
}

.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  padding: 30px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  padding: 8px 0;
}

.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-system {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hero-system span {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 14px 14px 14px 52px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.hero-system span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.22);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button-ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent-soft);
  background: var(--surface-warm);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 16px;
  background: rgba(7, 11, 20, 0.72);
  color: #ffffff;
}

.hero-panel span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  margin-top: 4px;
}

.contact-strip {
  background: var(--ink);
  color: #ffffff;
}

.contact-strip-grid {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.contact-strip span {
  color: var(--accent-soft);
  font-weight: 900;
}

.contact-strip a {
  font-weight: 900;
}

.contact-strip a:hover {
  color: var(--accent-soft);
}

.section-heading {
  max-width: 820px;
}

.section-heading p:not(.eyebrow),
.references-header p,
.contact-intro > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-board {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.service-control {
  position: sticky;
  top: 116px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.service-control .eyebrow {
  color: var(--accent-soft);
}

.service-control h3 {
  font-size: 1.55rem;
}

.service-control ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-control li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.service-control li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-soft);
  border-radius: 999px;
}

.service-routes {
  display: grid;
  gap: 14px;
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  min-height: 146px;
  padding: 24px 24px 24px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.service-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--signal) 100%);
}

.service-item span {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-item p {
  color: var(--muted);
}

.section-split {
  background: var(--surface);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.diagnostic-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.diagnostic-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
}

.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
}

.about-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.references {
  background: var(--ink-deep);
  color: #ffffff;
}

.references .eyebrow {
  color: var(--accent-soft);
}

.references-header {
  max-width: 820px;
}

.references-header p {
  color: rgba(255, 255, 255, 0.74);
}

.reference-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 38px;
}

.reference-large {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.reference-large img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.reference-large div {
  padding: 24px;
}

.reference-list {
  display: grid;
  gap: 14px;
}

.reference-list article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.reference-large span,
.reference-list span {
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-large h3,
.reference-list h3 {
  margin-top: 8px;
}

.reference-large p,
.reference-list p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
}

details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact {
  background: linear-gradient(180deg, var(--surface-warm) 0%, #ffffff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

address {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  background: #ffffff;
  font-style: normal;
}

address span,
address a {
  color: var(--muted);
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b8c0cc;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.field-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 4px;
  font-weight: 500;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.checkbox-field a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-button {
  width: 100%;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--success);
  font-weight: 900;
}

.site-footer {
  padding: 36px 0;
  background: var(--ink-deep);
  color: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.legal-page {
  background: var(--surface);
}

.legal-content {
  max-width: 850px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.legal-content p {
  margin-top: 14px;
  color: var(--muted);
}

.legal-content a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .hero-grid,
  .service-board,
  .diagnostic-grid,
  .about-grid,
  .reference-layout,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-image {
    min-height: 420px;
  }

  .service-control {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: auto 16px auto 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .legal-links {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    position: relative;
    min-height: 650px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 46px 0 54px;
    background:
      linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.68) 100%),
      url("../images/elektriker-hero.jpg") center / cover no-repeat;
    color: #ffffff;
  }

  .hero-grid {
    position: relative;
    z-index: 1;
    display: block;
  }

  .hero-copy {
    padding: 0;
  }

  .hero .eyebrow {
    color: var(--accent-soft);
  }

  .hero-lead {
    color: rgba(255, 255, 255, 0.88);
  }

  .button-ghost {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .button-ghost:hover {
    background: #ffffff;
    color: var(--ink);
  }

  .hero-system,
  .hero-visual {
    display: none;
  }

  .concept-bar {
    font-size: 0.78rem;
  }

  .legal-header .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 14px 0;
  }

  .legal-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .service-item,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .steps article {
    grid-template-columns: 1fr;
  }

  .steps span {
    margin-bottom: 12px;
  }

  .contact-form,
  .legal-content {
    padding: 22px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container,
  .nav {
    width: min(100% - 24px, 1140px);
  }

  .brand-line {
    font-size: 0.9rem;
  }

  .brand-subline {
    font-size: 0.76rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual,
  .hero-image {
    min-height: 360px;
  }

  .contact-strip-grid {
    justify-content: flex-start;
    padding: 14px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
