/* =========================================================
   Aurora Netzbau AG
   Gestaltung: tiefes Blau für Einstieg und Akzente,
   ruhige helle Flächen für ausführliche Inhalte.
   ========================================================= */

/* ---------- Farben und Masse ---------- */
:root {
  --grund:      #050a18;
  --knopf-blau: #2f6dff;
  --flaeche:    #0a1226;
  --flaeche-2:  #0e1830;
  --linie:      rgba(120, 170, 255, 0.14);
  --linie-2:    rgba(120, 170, 255, 0.26);

  --text:       #e6edff;
  --text-2:     #9dabc8;
  --text-3:     #74829e;

  --tief:       #030816;
  --tief-2:     #020510;

  --blau:       #4da3ff;
  --blau-tief:  #1e5bff;
  --blau-hell:  #7bc0ff;
  --blau-zart:  rgba(77, 163, 255, 0.10);
  --schein:     rgba(77, 163, 255, 0.34);

  --warn:       #ff6b5c;
  --ok:         #2ae8a0;

  --schrift:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:    'Space Grotesk', var(--schrift);

  --rand:       clamp(20px, 4.2vw, 56px);
  --breite:     1240px;
  --schmal:     820px;

  --radius:     14px;
  --radius-gr:  20px;
  --radius-voll: 999px;

  --nav-h:      74px;
  --weich:      cubic-bezier(.22, .61, .36, 1);
}

/* Textfarbe, die auch innerhalb der aufgehellten Kopfleiste gilt.
   Das Sprachmenue haengt in der Kopfleiste, uebernimmt aber deren
   helle Schrift - auf dem weissen Menuehintergrund war davon nur
   der aktive Eintrag zu sehen. */
:root { --text-fest: #e6edff; }

/* Helles Schema – über die Schaltfläche wählbar */
[data-theme="light"] {
  --text-fest:  #0c1424;
  --grund:      #ffffff;
  --knopf-blau: #1e5bff;
  --flaeche:    #f3f6fb;
  --flaeche-2:  #e8edf6;
  --linie:      #dce3ee;
  --linie-2:    #c6d0e0;

  --text:       #0c1424;
  --text-2:     #46536a;
  --text-3:     #6d7b92;

  --tief:       #091230;
  --tief-2:     #050b1e;

  --blau:       #1e5bff;
  --blau-tief:  #1544c4;
  --blau-hell:  #4da3ff;
  --blau-zart:  rgba(30, 91, 255, 0.08);
  --schein:     rgba(30, 91, 255, 0.18);
  --warn:       #c0392b;
  --ok:         #0f7a52;
}

/* Tiefe Zonen bringen ihre eigenen Werte mit – so stimmen die Farben
   in beiden Farbschemata, ohne jede Regel doppelt zu schreiben. */
.zone-tief {
  --grund:     var(--tief);
  --flaeche:   rgba(255, 255, 255, 0.045);
  --flaeche-2: rgba(255, 255, 255, 0.075);
  --linie:     rgba(150, 190, 255, 0.18);
  --linie-2:   rgba(150, 190, 255, 0.30);
  --text:      #eaf1ff;
  --text-2:    #a9b8d6;
  --text-3:    #7f8eae;
  --blau:      #6db4ff;
  --blau-zart: rgba(109, 180, 255, 0.12);
  background: var(--tief);
  color: var(--text);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  /* Deutsche Komposita dürfen nicht über den Rand laufen */
  overflow-wrap: break-word;
  hyphens: auto;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 4px;
}

.feld-breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.feld-schmal { width: 100%; max-width: var(--schmal); margin: 0 auto; padding: 0 var(--rand); }

.nur-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.sprungmarke {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--blau); color: #fff; font-weight: 600;
  transition: top .2s var(--weich);
}
.sprungmarke:focus { top: 12px; }

/* ---------- Typografie ---------- */
.t-xxl { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -0.035em; }
.t-xl  { font-size: clamp(30px, 4vw, 48px);   line-height: 1.07; letter-spacing: -0.03em; }
.t-l   { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.t-m   { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; letter-spacing: -0.015em; }

.vorzeile {
  display: block;
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--blau);
  margin-bottom: 16px;
}

.fliess { color: var(--text-2); max-width: 64ch; }
.fliess-gr { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); max-width: 56ch; }

/* Farbverlauf nur noch als seltener Akzent */
.akzent {
  background: linear-gradient(100deg, var(--blau) 0%, #00c2ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  border: 2px solid transparent;
  transition: background .2s var(--weich), color .2s var(--weich),
              border-color .2s var(--weich), transform .12s var(--weich);
}
.knopf:active { transform: translateY(1px); }
.knopf svg { width: 18px; height: 18px; flex: none; }

.knopf-voll { background: var(--knopf-blau); color: #fff; }
.knopf-voll:hover { background: var(--blau-tief); }
[data-theme="dark"] .knopf-voll:hover { background: #4d85ff; }
.zone-tief .knopf-voll { background: #fff; color: #091230; }
.zone-tief .knopf-voll:hover { background: var(--blau); color: #fff; }

.knopf-linie { border-color: var(--linie-2); color: var(--text); }
.knopf-linie:hover { border-color: var(--blau); color: var(--blau); }
.zone-tief .knopf-linie { border-color: rgba(255,255,255,.34); color: #fff; }
.zone-tief .knopf-linie:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.knopf-klein { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.knopf-breit { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600;
  color: var(--blau);
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--weich), gap .2s var(--weich);
}
.textlink:hover { border-bottom-color: currentColor; gap: 12px; }
.textlink svg { width: 16px; height: 16px; }

/* ---------- Navigation ---------- */
.kopfleiste {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--weich), border-color .3s var(--weich);
}
.kopfleiste-innen { display: flex; align-items: center; gap: 24px; width: 100%; }

/* Über einer tiefen Zone bleibt die Leiste hell */
body.tiefer-einstieg .kopfleiste:not(.haftend) {
  --text: #eaf1ff; --text-2: #b9c6e0; --linie: rgba(160,200,255,.2);
  color: #eaf1ff;
}
.kopfleiste.haftend {
  background: color-mix(in srgb, var(--grund) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--linie);
}

.marke { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.marke-zeichen { height: 42px; flex: none; display: block; }
.marke-zeichen img { height: 42px; width: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-name {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: .12em;
}
.marke-zusatz {
  font-size: 10px; letter-spacing: .24em;
  color: var(--text-3);
}
body.tiefer-einstieg .kopfleiste:not(.haftend) .marke-zusatz { color: #a9b8d6; }

.hauptnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hauptnav > a:not(.knopf) {
  position: relative;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 16px; font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--weich), background .2s var(--weich);
}
.hauptnav > a:not(.knopf):hover { color: var(--text); background: var(--blau-zart); }
.hauptnav > a:not(.knopf)[aria-current="page"] { color: var(--blau); font-weight: 600; }

.nav-werkzeuge { display: flex; align-items: center; gap: 8px; }
.rund-knopf {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.rund-knopf:hover { color: var(--text); background: var(--blau-zart); }
.rund-knopf svg { width: 20px; height: 20px; }
.symbol-sonne { display: none; }
[data-theme="dark"] .symbol-mond { display: none; }
[data-theme="dark"] .symbol-sonne { display: block; }

.sprachwahl { position: relative; }
.sprach-knopf {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--linie);
  transition: color .2s, border-color .2s;
}
.sprach-knopf:hover { color: var(--text); border-color: var(--linie-2); }
.sprach-liste {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 150px; padding: 6px;
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -20px rgba(10, 25, 60, .45);
  display: none;
}
.sprach-liste[data-offen="true"] { display: block; }
.sprach-liste button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  font-size: 15px; color: var(--text-fest);
}
.sprach-liste button:hover { background: var(--blau-zart); }
.sprach-liste button[aria-current="true"] { color: var(--blau); font-weight: 600; }

.menue-knopf { display: none; width: 46px; height: 46px; padding: 12px; }
.menue-knopf span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .28s var(--weich), opacity .2s;
}
.menue-knopf span + span { margin-top: 6px; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(64px, 7.5vw, 104px) 0; }
.abschnitt-eng { padding: clamp(44px, 5vw, 68px) 0; }
.flaeche { background: var(--flaeche); }

.abschnitt-kopf { max-width: 60ch; margin-bottom: clamp(34px, 4vw, 52px); }
.abschnitt-kopf .fliess { margin-top: 14px; margin-bottom: 0; }

.kopf-reihe {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(30px, 3.6vw, 48px);
}
.kopf-reihe .abschnitt-kopf { margin-bottom: 0; }

/* ---------- Technische Zeichnungen ---------- */
.schema {
  width: 100%; height: auto; display: block;
  color: var(--blau);
  --sch-fein:  color-mix(in srgb, var(--blau) 42%, transparent);
  --sch-grund: color-mix(in srgb, var(--blau) 8%, transparent);
}
.schema .sch-grund { fill: var(--sch-grund); stroke: none; }
.schema .sch-kante { fill: none; stroke: var(--sch-fein); stroke-width: 1.4; }
.schema .sch-stark {
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.schema .sch-mass  { fill: none; stroke: var(--sch-fein); stroke-width: 1; }
.schema .sch-gestr { fill: none; stroke: var(--sch-fein); stroke-width: 1.4; stroke-dasharray: 7 6; }
.schema .sch-kern  { fill: currentColor; opacity: .3; }
.schema .sch-text  {
  fill: var(--text-3); font-family: var(--display);
  font-size: 15px; font-weight: 500; letter-spacing: .1em;
}
.schema .sch-puls { fill: #00c2ff; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .schema .sch-puls { animation: puls 3.6s ease-in-out infinite; }
  @keyframes puls {
    0%, 100% { opacity: 0; }
    40%      { opacity: .95; }
    70%      { opacity: 0; }
  }
}

/* ---------- Einstieg ---------- */
.einstieg {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 92px)) 0 clamp(52px, 6vw, 84px);
  overflow: hidden;
}
.einstieg::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--linie), transparent);
}
.einstieg-gitter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
}
.einstieg h1 { margin-bottom: 22px; }
.einstieg .fliess-gr { margin-bottom: 32px; }
.einstieg-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }

.einstieg-zeichnung { position: relative; min-width: 0; }
.einstieg-zeichnung .schema { max-height: 460px; margin-inline: auto; }

.zeichnung-titel {
  font-family: var(--display);
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.legende {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 20px;
  font-size: 14px; color: var(--text-2);
}
.legende li { display: inline-flex; align-items: center; gap: 9px; }
.legende i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; color: var(--blau); flex: none;
}
.legende .leg-ms i { width: 17px; height: 17px; }
.legende .leg-rohr i { border-style: dashed; opacity: .6; }

.merkmale {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--linie);
  font-size: 15px; color: var(--text-2);
}
.merkmale li { display: inline-flex; align-items: center; gap: 10px; }
.merkmale svg { width: 17px; height: 17px; color: var(--blau); flex: none; }

/* ---------- Leistungen ---------- */
.leistungs-gitter {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.leistung {
  display: flex; flex-direction: column;
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gr);
  overflow: hidden;
  transition: border-color .25s var(--weich), transform .25s var(--weich);
}
[data-theme="dark"] .leistung { background: var(--flaeche-2); }
.leistung:hover { border-color: var(--blau); transform: translateY(-3px); }

.leistung-bild {
  padding: 26px 26px 14px;
  background: var(--blau-zart);
  border-bottom: 1px solid var(--linie);
}
.leistung-bild .schema { max-height: 150px; }
.leistung-text { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.leistung-text h3 { margin-bottom: 10px; }
.leistung-text p { color: var(--text-2); font-size: 16px; margin-bottom: 18px; }
.leistung-text .textlink { margin-top: auto; align-self: flex-start; }

.stichworte { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.stichworte li {
  padding: 5px 12px; border-radius: var(--radius-voll);
  background: var(--flaeche); border: 1px solid var(--linie);
  font-size: 13px; color: var(--text-2);
}
[data-theme="dark"] .stichworte li { background: rgba(255,255,255,.04); }

/* ---------- Ablauf ---------- */
.ablauf { counter-reset: schritt; display: grid; gap: 2px; }
.ablauf li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  padding: 26px 0;
  border-top: 1px solid var(--linie);
}
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--display); font-size: 15px; font-weight: 600;
  letter-spacing: .1em; color: var(--blau);
  padding-top: 4px;
}
.ablauf h3 { font-size: 20px; margin-bottom: 8px; }
.ablauf p { color: var(--text-2); font-size: 16px; margin: 0; max-width: 62ch; }

/* ---------- Aussageband ---------- */
.aussage { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 116px) 0; }
.aussage-netz {
  width: 100%; max-width: 1040px;
  margin: clamp(34px, 4.6vw, 64px) auto 0;
  opacity: .5; pointer-events: none;
}
.aussage-inhalt { max-width: 58ch; }
.aussage-inhalt h2 { max-width: 15ch; }
.aussage-inhalt h2 { margin-bottom: 20px; }
.aussage-inhalt .fliess-gr { color: var(--text-2); }

/* ---------- Inhaber ---------- */
.inhaber-gitter {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start;
}
.portraet {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-gr);
  overflow: hidden;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
}
.inhaber-text h3 { margin-bottom: 4px; }
.inhaber-rolle {
  display: block; font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blau); margin-bottom: 20px;
}
.inhaber-text .fliess { margin-bottom: 20px; }
.direktkontakt { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; }
.direktkontakt a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.direktkontakt a:hover { color: var(--blau); border-color: var(--blau); }
.direktkontakt svg { width: 18px; height: 18px; color: var(--blau); flex: none; }

.beirat {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.beirat strong { font-family: var(--display); font-size: 18px; font-weight: 600; }
.beirat span { color: var(--text-2); font-size: 16px; }

/* ---------- Bildplatzhalter ---------- */
.platzhalter {
  position: relative;
  display: grid; place-items: center;
  min-height: 190px;
  padding: 26px;
  border: 2px dashed var(--linie-2);
  border-radius: var(--radius-gr);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in srgb, var(--blau) 5%, transparent) 14px 28px);
  text-align: center;
}
.platzhalter-inhalt { max-width: 34ch; }
.platzhalter svg { width: 30px; height: 30px; color: var(--blau); margin: 0 auto 12px; }
.platzhalter b {
  display: block; font-family: var(--display);
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blau); margin-bottom: 8px;
}
.platzhalter span { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.portraet .platzhalter { min-height: 100%; border: 0; border-radius: 0; }

/* ---------- Hinweiskasten ---------- */
.hinweis {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--blau);
  border-radius: var(--radius);
}
.hinweis h3 { font-size: 19px; margin-bottom: 10px; }
.hinweis p { color: var(--text-2); font-size: 16px; margin-bottom: 0; }

/* ---------- Abschluss ---------- */
.abschluss-gitter {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
}
.abschluss-gitter h2 { margin-bottom: 16px; }
.abschluss-knoepfe { display: flex; flex-direction: column; gap: 12px; }
.rueckmeldung {
  margin-top: 18px; font-size: 14px; color: var(--text-3);
}

/* ---------- Formular ---------- */
.formular { display: grid; gap: 18px; }
.formular-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eingabe label {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
}
.eingabe .zusatz { font-weight: 400; color: var(--text-3); }
.eingabe input,
.eingabe select,
.eingabe textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--grund);
  border: 1.5px solid var(--linie-2);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
[data-theme="dark"] .eingabe input,
[data-theme="dark"] .eingabe select,
[data-theme="dark"] .eingabe textarea { background: var(--flaeche-2); }
.eingabe textarea { min-height: 140px; resize: vertical; }
.eingabe input:focus,
.eingabe select:focus,
.eingabe textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 4px var(--blau-zart);
}
.eingabe input[aria-invalid="true"],
.eingabe textarea[aria-invalid="true"] { border-color: var(--warn); }
.feld-fehler { display: block; margin-top: 6px; font-size: 14px; color: var(--warn); }

.formular-meldung {
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 16px;
}
.formular-meldung[hidden] { display: none; }
.meldung-ok   { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.meldung-fehler { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }

/* ---------- Kontaktangaben ---------- */
.kontakt-gitter {
  display: grid; gap: clamp(32px, 4.6vw, 64px);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}
.kontakt-liste li { padding: 20px 0; border-top: 1px solid var(--linie); }
.kontakt-liste dt {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.kontakt-liste dd { margin: 0; font-size: 18px; }
.kontakt-liste dd a { border-bottom: 1px solid var(--linie); transition: color .2s, border-color .2s; }
.kontakt-liste dd a:hover { color: var(--blau); border-color: var(--blau); }
.kontakt-liste small { display: block; margin-top: 6px; font-size: 14px; color: var(--text-3); }

/* ---------- Tabellen ---------- */
.tabelle-huelle {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 15px 20px; text-align: left; font-size: 16px; }
thead th {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--linie);
}
tbody tr + tr td { border-top: 1px solid var(--linie); }

/* ---------- Textseiten ---------- */
.textseite { max-width: 70ch; }
.textseite h2 { font-size: clamp(22px, 2.3vw, 28px); margin: clamp(36px, 4vw, 52px) 0 14px; }
.textseite h2:first-child { margin-top: 0; }
.textseite h3 { font-size: 19px; margin: 28px 0 10px; }
.textseite p, .textseite li { color: var(--text-2); }
.textseite ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.textseite li { margin-bottom: .4em; }
.textseite a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

.luecke {
  display: inline-block;
  padding: 2px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px dashed var(--warn);
  color: var(--warn);
  font-size: 15px; font-weight: 600;
}

/* ---------- Fusszeile ---------- */
.fusszeile { padding: clamp(52px, 6vw, 80px) 0 32px; }
.fuss-gitter {
  display: grid; gap: clamp(28px, 3.6vw, 56px);
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
.fuss-marke p { margin-top: 18px; color: var(--text-2); font-size: 16px; max-width: 32ch; }
.fuss-sozial { display: flex; gap: 10px; margin-top: 22px; }
.fuss-sozial a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid var(--linie); color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.fuss-sozial a:hover { color: var(--blau); border-color: var(--blau); }
.fuss-sozial svg { width: 20px; height: 20px; }

.fusszeile h2 {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
.fuss-spalte ul { display: flex; flex-direction: column; gap: 12px; }
.fuss-spalte a, .fuss-adresse a {
  font-size: 16px; color: var(--text-2);
  transition: color .2s;
}
.fuss-spalte a:hover, .fuss-adresse a:hover { color: var(--blau); }
.fuss-adresse { font-style: normal; color: var(--text-2); font-size: 16px; line-height: 1.9; }

.fuss-unten {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 4.4vw, 60px); padding-top: 26px;
  border-top: 1px solid var(--linie);
  font-size: 15px; color: var(--text-3);
}
.fuss-unten nav { display: flex; gap: 22px; }
.fuss-unten a { transition: color .2s; }
.fuss-unten a:hover { color: var(--text-2); }

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .zeigt {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s var(--weich), transform .6s var(--weich);
  }
  .zeigt.sichtbar { opacity: 1; transform: none; }
}

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

/* =========================================================
   Schmalere Bildschirme
   ========================================================= */
@media (max-width: 1040px) {
  .einstieg-gitter { grid-template-columns: minmax(0, 1fr); }
  .einstieg-zeichnung .schema { max-height: 300px; }
  .inhaber-gitter { grid-template-columns: minmax(0, 1fr); }
  .portraet { max-width: 300px; aspect-ratio: 4 / 5; }
  .kontakt-gitter { grid-template-columns: minmax(0, 1fr); }
  .abschluss-gitter { grid-template-columns: minmax(0, 1fr); }
  .fuss-gitter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }

  .menue-knopf { display: block; }
  .hauptnav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 10px var(--rand) 24px;
    background: var(--grund);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 20px 40px -24px rgba(6, 16, 40, .5);
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .26s var(--weich), transform .26s var(--weich), visibility .26s;
  }
  body.tiefer-einstieg .kopfleiste:not(.haftend) .hauptnav {
    --text: var(--text); --text-2: #46536a;
    color: #0c1424;
  }
  [data-theme="dark"] body.tiefer-einstieg .kopfleiste:not(.haftend) .hauptnav { color: #e6edff; }
  .hauptnav[data-offen="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .hauptnav > a:not(.knopf) {
    padding: 15px 4px; font-size: 18px; border-radius: 0;
    border-bottom: 1px solid var(--linie);
  }
  .hauptnav > .knopf { margin-top: 18px; border-bottom: 0; }

  .formular-reihe { grid-template-columns: 1fr; }
  .ablauf li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ablauf li::before { padding-top: 0; }
  .fuss-unten { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .fuss-gitter { grid-template-columns: 1fr; }
  .einstieg-knoepfe { flex-direction: column; align-items: stretch; }
  .einstieg-knoepfe .knopf { width: 100%; }
  .marke-name { font-size: 17px; }
  .marke-zusatz { font-size: 9px; letter-spacing: .2em; }
  .marke-zeichen { height: 34px; }
  .marke-zeichen img { height: 34px; }
}

/* =========================================================
   Rückkehr zur dunklen Bildsprache
   Hintergrundraster, Leuchtakzente, Farbverlauf-Überschriften
   ========================================================= */

/* ---------- Hintergrund: feines Raster und blauer Schein ---------- */
.bg-raster,
.bg-schein { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.bg-raster {
  background-image:
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .5;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 12%, transparent 76%);
}
[data-theme="light"] .bg-raster { opacity: .8; }

.bg-schein {
  background:
    radial-gradient(52% 40% at 18% 4%, var(--schein), transparent 62%),
    radial-gradient(46% 38% at 86% 22%, rgba(0, 200, 255, .16), transparent 64%);
  opacity: .8;
}
[data-theme="light"] .bg-schein { opacity: .32; }

body { background: var(--grund); }

/* Flächen werden im dunklen Schema zu einer sanften Aufhellung */
.flaeche { background: linear-gradient(180deg, transparent, var(--flaeche) 18%, var(--flaeche) 82%, transparent); }
[data-theme="light"] .flaeche { background: var(--flaeche); }

/* ---------- Überschrift mit Farbverlauf ---------- */
.t-verlauf {
  background: linear-gradient(104deg,
    var(--text) 0%, var(--text) 66%, var(--blau) 90%, #00d4ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Der Rand des Verlaufs darf nicht abgeschnitten werden */
.t-verlauf { padding-bottom: .08em; }

/* ---------- Leuchtakzente ---------- */
.knopf-voll {
  box-shadow: 0 8px 26px -10px var(--schein);
}
.knopf-voll:hover { box-shadow: 0 12px 34px -10px var(--schein); }

.leistung {
  background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}
[data-theme="light"] .leistung { background: var(--grund); box-shadow: none; }
.leistung:hover {
  border-color: var(--blau);
  box-shadow: 0 22px 54px -26px var(--schein);
}

.leistung-bild {
  background: linear-gradient(180deg, var(--blau-zart), transparent 86%);
}

.marke-zeichen img { filter: drop-shadow(0 0 12px var(--schein)); }

.vorzeile { text-shadow: 0 0 18px var(--schein); }
[data-theme="light"] .vorzeile { text-shadow: none; }

/* ---------- Einstieg: gross, mittig, mit Bild ---------- */
.einstieg {
  position: relative;
  min-height: min(96svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 0;
  overflow: hidden;
}
.einstieg-bild { position: absolute; inset: 0; z-index: 0; }
.einstieg-bild img { width: 100%; height: 100%; object-fit: cover; }
.einstieg-bild::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(78% 64% at 50% 42%, rgba(3, 8, 22, .38), rgba(3, 8, 22, .80) 66%, rgba(3, 8, 22, .96) 100%),
    linear-gradient(180deg, rgba(3, 8, 22, .74) 0%, rgba(3, 8, 22, .18) 32%, rgba(3, 8, 22, .95) 100%);
}
[data-theme="light"] .einstieg-bild::after {
  background:
    radial-gradient(76% 62% at 50% 44%, rgba(5, 12, 32, .52), rgba(5, 12, 32, .84) 68%, rgba(5, 12, 32, .95) 100%),
    linear-gradient(180deg, rgba(5, 12, 32, .78) 0%, rgba(5, 12, 32, .3) 34%, rgba(5, 12, 32, .95) 100%);
}

.einstieg-inhalt {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: clamp(20px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.einstieg-inhalt h1 { margin: 0 auto 24px; max-width: 16ch; }
.einstieg-inhalt .fliess-gr { margin: 0 auto 36px; max-width: 62ch; }
.einstieg-inhalt .einstieg-knoepfe { justify-content: center; }

.einstieg .merkmale {
  position: relative; z-index: 1;
  justify-content: center;
  margin-top: 0;
}

/* Kopfbereich der übrigen Seiten: mittig wie auf der Startseite, aber kompakter */
.einstieg-seite {
  min-height: 0;
  display: block;
  padding: calc(var(--nav-h) + clamp(52px, 7vw, 96px)) 0 clamp(48px, 5.5vw, 80px);
}
.einstieg-seite .einstieg-inhalt { padding: 0; }
.einstieg-seite .einstieg-inhalt h1 { max-width: 15ch; }

/* Technische Zeichnung steht unter dem Text, nicht daneben */
.kopf-zeichnung {
  margin: clamp(36px, 4.6vw, 64px) auto 0;
  max-width: 660px;
  text-align: center;
}
.kopf-zeichnung .schema { max-height: 380px; margin-inline: auto; }
.kopf-zeichnung .legende { justify-content: center; }

@media (max-width: 1040px) {
  .einstieg { min-height: min(88svh, 720px); }
}
/* Auf schmalen Bildschirmen fliesst der Einstieg von oben,
   damit die Überschrift nie unter die Kopfleiste rutscht. */
@media (max-width: 860px) {
  .einstieg {
    min-height: 0;
    justify-content: flex-start;
    padding-bottom: clamp(30px, 6vw, 48px);
  }
  .einstieg-inhalt { padding-top: 0; padding-bottom: clamp(30px, 5vw, 46px); }
}
@media (max-width: 560px) {
  .einstieg-inhalt .einstieg-knoepfe { flex-direction: column; align-items: stretch; }
  .bg-raster { background-size: 52px 52px; }
}

/* =========================================================
   Schärfung: grössere Typografie, feines Korn, Laufband,
   ruhigere Karten, spürbarere Bewegung
   ========================================================= */

/* ---------- Feines Korn über der ganzen Seite ---------- */
.korn {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
[data-theme="light"] .korn { opacity: .28; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { .korn { opacity: .3; } }

/* ---------- Typografie: grösser, enger, selbstbewusster ---------- */
.t-xxl { font-size: clamp(46px, 8.2vw, 116px); line-height: .94; letter-spacing: -0.045em; }
.t-xl  { font-size: clamp(34px, 5.4vw, 68px);  line-height: 1.0;  letter-spacing: -0.038em; }
.t-l   { font-size: clamp(25px, 3vw, 40px);    line-height: 1.08; letter-spacing: -0.032em; }
.t-m   { font-size: clamp(20px, 1.9vw, 25px);  line-height: 1.2;  letter-spacing: -0.022em; }

.einstieg-inhalt h1 { max-width: 13ch; }
.einstieg-inhalt .fliess-gr { font-size: clamp(17px, 1.45vw, 20px); max-width: 56ch; }

/* Vorzeile bekommt eine Linie statt nur Grossbuchstaben */
.vorzeile {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: .18em;
}
.vorzeile::before {
  content: ''; width: 34px; height: 1px;
  background: currentColor; opacity: .55;
}
.einstieg-inhalt .vorzeile::before { display: none; }

/* ---------- Karten: weniger Kasten, mehr Bild ---------- */
.leistungs-gitter { gap: clamp(14px, 1.6vw, 22px); }

.leistung {
  border-radius: 22px;
  border-color: var(--linie);
  transition: border-color .4s var(--weich), transform .4s var(--weich),
              box-shadow .4s var(--weich), background .4s var(--weich);
}
.leistung-bild {
  border-bottom: 0;
  padding: clamp(30px, 3.4vw, 44px) clamp(24px, 2.6vw, 32px) clamp(12px, 1.4vw, 18px);
  overflow: hidden;
}
.leistung-bild .schema {
  max-height: 168px;
  transition: transform .6s var(--weich);
}
.leistung:hover .leistung-bild .schema { transform: scale(1.06); }
.leistung:hover { transform: translateY(-6px); }

.leistung-text { padding: clamp(18px, 2vw, 24px) clamp(24px, 2.6vw, 32px) clamp(26px, 2.8vw, 34px); }
.leistung-text h3 { letter-spacing: -0.03em; }
.leistung-text p { font-size: 16.5px; line-height: 1.6; }

/* Stichworte: ruhige Marker unter der Trennlinie.
   Vorher lief das als graue Punktzeile durch – beim Umbruch blieb ein
   Trennpunkt allein am Zeilenanfang stehen, und der Text war zu blass. */
.stichworte {
  gap: 7px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
  font-family: var(--display);
}
.stichworte li {
  padding: 5px 12px 6px;
  border-radius: var(--radius-voll);
  border: 1px solid var(--linie);
  background: var(--flaeche);
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--text-2);
  white-space: nowrap;          /* bricht nie mitten im Begriff um */
  transition: border-color .3s var(--weich), color .3s var(--weich);
}
[data-theme="dark"] .stichworte li { background: rgba(255,255,255,.05); }
.leistung:hover .stichworte li { border-color: var(--linie-2); color: var(--text); }

/* Sehr schmale Karten: Marker duerfen umbrechen statt zu ueberlaufen */
@media (max-width: 380px) {
  .stichworte li { white-space: normal; }
}

/* Ausruestungsliste: hier stehen ganze Saetze, keine Schlagworte.
   Als Marker mit nowrap wuerden sie aus der Karte laufen. */
.merkmalliste {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
}
.merkmalliste li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.merkmalliste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blau);
  opacity: .6;
}

.textlink svg { transition: transform .3s var(--weich); }
.leistung:hover .textlink svg { transform: translateX(5px); }

/* ---------- Merkmalszeile wie bisher: blaue Punkte, ruhig ---------- */
.merkmale {
  gap: 14px 32px;
  font-size: 15px;
  color: var(--text-2);
}
.merkmale li { gap: 10px; letter-spacing: .01em; }
.merkmale svg { display: none; }
.merkmale li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blau); flex: none;
  box-shadow: 0 0 10px var(--schein);
}

/* ---------- Bewegung: weicher und spürbarer ---------- */
@media (prefers-reduced-motion: no-preference) {
  .zeigt {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    filter: blur(6px);
    transition: opacity .8s var(--weich), transform .8s var(--weich), filter .8s var(--weich);
  }
  .zeigt.sichtbar { opacity: 1; transform: none; filter: none; }
}

/* ---------- Abschnittsköpfe grosszügiger ---------- */
.abschnitt { padding: clamp(78px, 9vw, 132px) 0; }
.abschnitt-kopf { max-width: none; }
.abschnitt-kopf h2 { max-width: 17ch; }
.abschnitt-kopf .fliess { max-width: 50ch; }
.kopf-reihe { align-items: flex-end; gap: clamp(28px, 4vw, 64px); }
.kopf-reihe .abschnitt-kopf { flex: 1 1 min(640px, 100%); }

/* ---------- Ablauf: Ziffern gross ---------- */
.ablauf li { grid-template-columns: clamp(64px, 8vw, 104px) minmax(0, 1fr); padding: clamp(26px, 3vw, 38px) 0; }
.ablauf li::before {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500; letter-spacing: -0.03em;
  color: var(--blau); opacity: .55;
  padding-top: 0;
}
.ablauf h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.028em; }
.ablauf p { font-size: 16.5px; }

@media (max-width: 860px) {
  .ablauf li { grid-template-columns: minmax(0, 1fr); }
  .merkmale { gap: 12px 26px; font-size: 14.5px; }
}

/* =========================================================
   Eigene Fotos: Karten, Seitenköpfe, Leistungsumfang
   ========================================================= */

/* ---------- Foto auf der Leistungskarte ---------- */
.leistung-foto {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--flaeche-2);
  position: relative;
}
.leistung-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--weich);
}
.leistung:hover .leistung-foto img { transform: scale(1.05); }

/* Im dunklen Schema die Fotos sanft an die Seite angleichen */
.leistung-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, .08) 0%, rgba(5, 10, 24, .42) 100%);
  pointer-events: none;
}
[data-theme="light"] .leistung-foto::after {
  background: linear-gradient(180deg, transparent 60%, rgba(9, 18, 48, .14) 100%);
}

/* ---------- Breites Foto unter dem Seitenkopf ---------- */
.kopf-bildband {
  margin: clamp(38px, 4.8vw, 68px) auto 0;
  max-width: 1080px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--linie);
}
.kopf-foto { margin: 0; aspect-ratio: 16 / 9; position: relative; }
.kopf-foto img { width: 100%; height: 100%; object-fit: cover; }
.kopf-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, .10), rgba(5, 10, 24, .34));
  pointer-events: none;
}
[data-theme="light"] .kopf-foto::after { background: none; }

/* ---------- Leistungsumfang: Liste und Schema nebeneinander ---------- */
.umfang-gitter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(30px, 4.4vw, 68px);
  align-items: center;
}
.umfang-zeichnung .schema { max-height: 300px; margin-inline: auto; }

@media (max-width: 900px) {
  .umfang-gitter { grid-template-columns: minmax(0, 1fr); }
  .umfang-zeichnung { order: -1; }
  .umfang-zeichnung .schema { max-height: 220px; }
}

/* =========================================================
   Fotos zurückhaltender zeigen
   Kleineres Kopfband, feine Körnung auf dem Bild selbst.
   ========================================================= */

/* Das Kopfband war zu gross – in dieser Grösse wirken Fotos
   glatter und unnatürlicher, als sie sind. */
.kopf-bildband {
  max-width: 780px;
  border-radius: 18px;
  margin-top: clamp(32px, 4vw, 54px);
}

/* Körnung direkt über dem Foto: nimmt den glatten Eindruck,
   den Bildschirme sonst erzeugen.
   isolation sorgt dafür, dass die Mischung nur das Foto betrifft
   und nicht gegen den dunklen Seitenhintergrund rechnet. */
.kopf-foto, .leistung-foto { isolation: isolate; }

.kopf-foto::before,
.leistung-foto::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.55'/%3E%3C/svg%3E");
}
.kopf-foto::after, .leistung-foto::after { z-index: 2; }

@media (max-width: 700px) {
  .kopf-bildband { max-width: 100%; }
}

/* Erläuterung unter einer Zeichnung im Seitenkopf */
.zeichnung-text {
  margin: clamp(18px, 2.2vw, 28px) auto 0;
  max-width: 54ch;
  font-size: 16px;
  color: var(--text-2);
}
.kopf-zeichnung { max-width: 900px; }
.kopf-zeichnung .schema { max-height: none; }

/* Beschriftung der Leistungen im Netzschema */
.schema .sch-marke {
  fill: var(--text-2);
  font-family: var(--display);
  font-size: 19px; font-weight: 500;
  letter-spacing: .02em;
}

/* ---------- Porträtfoto ---------- */
.portraet-foto {
  margin: 0;
  width: 100%; height: 100%;
  position: relative;
  isolation: isolate;
}
.portraet-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* Der dunkle Studiohintergrund läuft nach unten sanft in die Seite aus */
.portraet-foto::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 10, 24, .55) 100%);
}
[data-theme="light"] .portraet-foto::after {
  background: linear-gradient(180deg, transparent 66%, rgba(9, 18, 48, .22) 100%);
}
.portraet { background: var(--flaeche-2); }

/* Knappe Schrittliste, etwa neben dem Anfrageformular */
.ablauf-knapp li {
  padding: 12px 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  border-top-color: var(--linie);
}
.ablauf-knapp li:first-child { border-top: 0; padding-top: 0; }
.ablauf-knapp li::before { font-size: 15px; opacity: .7; padding-top: 2px; }
.ablauf-knapp p { font-size: 15.5px; }

/* ---------- Unternehmensabschnitt auf der Startseite ---------- */
.firma-gitter {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.portraet-klein { aspect-ratio: 4 / 5; max-width: 230px; }
.firma-text .fliess { margin-bottom: clamp(24px, 3vw, 34px); }
.firma-text .vorzeile { margin-bottom: 14px; }

/* Zwei Namen nebeneinander – liest sich als Unternehmen, nicht als Person */
.verantwortung {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px clamp(20px, 3vw, 44px);
  margin-bottom: clamp(22px, 2.6vw, 30px);
}
.verantwortung li { padding: 14px 0; border-top: 1px solid var(--linie); }
.verantwortung strong {
  display: block;
  font-family: var(--display);
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
}
.verantwortung span {
  display: block; margin-top: 3px;
  font-size: 14px; color: var(--text-3);
}

.firma-text .rueckmeldung { margin-top: 24px; }

@media (max-width: 860px) {
  .firma-gitter { grid-template-columns: minmax(0, 1fr); }
  .portraet-klein { max-width: 190px; }
}

/* Direktadresse im Verantwortungseintrag */
.verantwortung-mail {
  display: inline-block;
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--blau);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--weich);
  overflow-wrap: anywhere;
}
.verantwortung-mail:hover { border-bottom-color: currentColor; }

/* ---------- Foto neben dem Leistungsumfang ----------
   Bewusst in der Grösse der früheren Zeichnung: gross genug,
   um die Sache zu zeigen, klein genug, um nicht zu dominieren. */
.umfang-bild {
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.umfang-bild .leistung-foto {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--linie);
}

@media (max-width: 900px) {
  .umfang-bild { order: -1; max-width: 420px; justify-self: start; }
}

/* ---------- Hochformatbild neben erklaerendem Text ----------
   Steht schmal neben dem Text, damit der Text die Fuehrung behaelt. */
.bild-gitter {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: center;
}
.bild-spalte { max-width: 420px; width: 100%; justify-self: center; }
.bild-gitter h2 { margin: 0 0 20px; }
.bild-gitter .fliess { margin: 0; }
.hochformat-foto {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--linie);
  background: var(--flaeche-2);
  position: relative;
}
.hochformat-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .bild-gitter { grid-template-columns: minmax(0, 1fr); }
  .bild-spalte { order: -1; max-width: 340px; justify-self: start; }
}

/* =========================================================
   Handy: ruhiger und gleichmaessiger
   Auf schmalen Schirmen standen Kopfbereich und Abschnitte
   unterschiedlich ausgerichtet - der Einstieg mittig, alles
   darunter linksbuendig. Das wirkt unruhig. Hier stehen
   Ueberschriften und Einleitungen durchgehend mittig;
   Fliesstext und Aufzaehlungen bleiben linksbuendig, weil
   mittig gesetzte Blocktexte schlechter zu lesen sind.
   ========================================================= */
@media (max-width: 640px) {

  /* Grosse Ueberschriften eine Spur kleiner, damit lange
     Komposita wie "Hausanschlusskasten" auf eine Zeile passen
     und nicht getrennt werden muessen. Die Silbentrennung
     bleibt als Rueckfall an - sie setzt einen Trennstrich,
     waehrend overflow-wrap das Wort roh abschneiden wuerde. */
  .t-xl { font-size: clamp(27px, 7.4vw, 34px); }
  .t-l  { font-size: clamp(22px, 6vw, 28px); }

  /* Abschnittskoepfe mittig, wie der Einstieg */
  .abschnitt-kopf { text-align: center; }
  .abschnitt-kopf h2 { max-width: none; margin-inline: auto; }
  .abschnitt-kopf .fliess,
  .abschnitt-kopf .fliess-gr { margin-inline: auto; }
  .abschnitt-kopf .vorzeile { justify-content: center; }

  /* Merkmalsliste: Block mittig, Punkte aber untereinander
     auf einer Linie - vorher war jede Zeile fuer sich
     zentriert und die Punkte sassen versetzt. */
  .merkmale {
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 14px;
  }
  .einstieg .merkmale { justify-content: flex-start; }

  /* Verweis unter einem mittigen Kopf ebenfalls mittig */
  .kopf-reihe { justify-content: center; text-align: center; }

  /* Bild-neben-Text-Abschnitt: Ueberschrift mittig, der laengere
     Fliesstext bleibt linksbuendig - neun mittig gesetzte Zeilen
     sind muehsam zu lesen. */
  .bild-gitter h2 { text-align: center; }

  /* Aufzaehlungspunkt neben die erste Zeile, nicht in die Mitte
     des umgebrochenen Eintrags */
  .merkmale li { align-items: flex-start; }
  .merkmale li::before { margin-top: .55em; }

  /* Vorzeile bekommt den Strich auf beiden Seiten. Mittig gesetzt
     sah die Zeile mit nur einem Strich links schief aus.
     Im Einstieg steht sie ohne Strich - das bleibt so. */
  .vorzeile { justify-content: center; }
  .vorzeile::after {
    content: ''; width: 34px; height: 1px;
    background: currentColor; opacity: .55;
  }
  .einstieg-inhalt .vorzeile::after { display: none; }

  /* Portraet und der Text daneben stehen gestapelt - dann gehoeren
     sie auch in die Mitte, nicht an den linken Rand. */
  .firma-gitter { justify-items: center; }
  .portraet-klein { margin-inline: auto; }
  .firma-text { text-align: center; }
  .verantwortung li { text-align: center; }
  .direktkontakt { align-items: center; }
  .direktkontakt a { justify-content: center; }
  .firma-text .rueckmeldung .textlink { justify-content: center; }

  /* Abschlussband: Text und Knoepfe mittig */
  .abschluss-gitter { text-align: center; }
  .abschluss-gitter .fliess-gr { margin-inline: auto; }
  .abschluss-knoepfe { align-items: stretch; }
}
