@import url("schriften.css");

/* ============================================================
   NIAZ ALAVI | Ganzheitliche Kieferorthopädie — Walldorf
   Framework-frei. Reines CSS, keine Abhängigkeiten.

   Gestaltungsidee: Zahnarztseiten sind fast ausnahmslos kaltweiß und
   blau. Diese hier steht auf warmem Papier. Die Praxisfarbe bleibt das
   Blau aus dem Logo — auf dem warmen Grund wirkt es weniger klinisch,
   was zum ganzheitlichen Anspruch passt.

   Statt farbiger Blöcke trennen Haarlinien die Abschnitte. Jeder
   Abschnitt beginnt mit einer Marke am linken Rand — wie im Heft.
   ============================================================ */

:root {
  /* ---- Farben ---- */
  --papier:        #F3F2ED;   /* warmer Grund, leicht grünlich-grau */
  --papier-rein:   #FFFFFF;   /* Karten und Formulare */
  --papier-tief:   #EAE8E1;   /* abgesetzte Flächen */
  --tinte:         #10212C;   /* tiefes Blauschwarz */
  --tinte-weich:   #46606E;
  --tinte-zart:    #5A6E75;   /* dunkel genug für kleine Beschriftungen (4,8:1) */
  --azur:          #1FA5DF;   /* Logo-Blau — Grafik und Akzent */
  --azur-tief:     #0C5E8F;   /* Flächen und Schrift, Weiß darauf lesbar */
  --azur-zart:     #DBEDF8;
  --nacht:         #0B1A24;   /* dunkle Bänder */
  --linie:         #D7D4CB;
  --linie-fein:    #E4E1D8;

  --schatten: 0 1px 2px rgba(16, 33, 44, .04), 0 18px 44px -24px rgba(16, 33, 44, .28);
  --schatten-hoch: 0 2px 4px rgba(16, 33, 44, .05), 0 36px 70px -30px rgba(16, 33, 44, .38);

  /* ---- Schrift ---- */
  --anzeige: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Maße ---- */
  --breite: 1240px;
  --rand: clamp(1.25rem, 4.5vw, 3rem);
  --rail: 10rem;              /* linke Spalte für die Abschnittsmarke */
  --radius: 4px;              /* bewusst kantig — Papier, nicht App */
  --radius-gross: 6px;
  --kurve: cubic-bezier(.2, .8, .2, 1);
  --kurve-weich: cubic-bezier(.33, 1, .5, 1);
}

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

[id] { scroll-margin-top: 7rem; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

a, button, label, summary, input[type="range"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(31, 165, 223, .16);
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--azur-tief); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tinte); }

:focus-visible {
  outline: 2.5px solid var(--azur-tief);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--azur-zart); color: var(--tinte); }

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

.sprung-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--tinte); color: #fff; padding: .85rem 1.5rem;
  text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: transform .2s var(--kurve);
}
.sprung-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ============================================================
   Raster
   ============================================================ */

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.band { padding-block: clamp(4rem, 8vw, 7rem); }
.band + .band { border-top: 1px solid var(--linie); }

.band--papier-tief { background: var(--papier-tief); border-top-color: transparent; }
.band--weiss { background: var(--papier-rein); border-top-color: transparent; }
.band--nacht { background: var(--nacht); color: #fff; border-top-color: transparent; }
.band--eng { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* Abschnittskopf: Marke links, Inhalt rechts — wie im Heft */
.kopfzeile {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.kopfzeile > :last-child { max-width: 38ch; }

.augenbraue {
  display: block;
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tinte-zart);
  margin: 0 0 .9rem;
  padding-top: .55rem;
  border-top: 1px solid var(--tinte);
}
.kopfzeile .augenbraue { margin-bottom: 0; }
.band--nacht .augenbraue { color: var(--azur); border-top-color: var(--azur); }

.titel {
  font-family: var(--anzeige);
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.7vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}
.titel em { font-style: italic; color: var(--azur-tief); }
.band--nacht .titel em { color: var(--azur); }

.vorspann {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--tinte-weich);
  max-width: 48ch;
  margin-top: 1.4rem;
}
.band--nacht .vorspann { color: #9FB6C2; }

/* ============================================================
   Knöpfe
   ============================================================ */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--text); font-size: .9375rem; font-weight: 600; line-height: 1;
  padding: 1.1rem 1.9rem; min-height: 54px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--kurve), border-color .3s var(--kurve),
              color .3s var(--kurve), transform .3s var(--kurve);
}

.knopf--voll { background: var(--tinte); color: #fff; }
.knopf--voll:hover { background: var(--azur-tief); color: #fff; transform: translateY(-2px); }

.knopf--linie { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.knopf--linie:hover { background: var(--tinte); color: #fff; transform: translateY(-2px); }

.band--nacht .knopf--voll { background: var(--azur); color: var(--nacht); }
.band--nacht .knopf--voll:hover { background: #fff; color: var(--nacht); }
.band--nacht .knopf--linie { border-color: rgba(255,255,255,.35); color: #fff; }
.band--nacht .knopf--linie:hover { background: #fff; color: var(--nacht); border-color: #fff; }

.knopf--klein { padding: .75rem 1.25rem; min-height: 44px; font-size: .875rem; }

/* ============================================================
   Kopfleiste
   ============================================================ */

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 242, 237, .9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.kopf[data-gescrollt="ja"] {
  border-bottom-color: var(--linie);
  background: rgba(243, 242, 237, .96);
}

.kopf__innen { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }

.marke { display: flex; align-items: center; flex: none; text-decoration: none; }
.marke img { height: 42px; width: auto; }

.navigation { display: flex; gap: .15rem; margin-left: auto; }
.navigation a {
  position: relative;
  padding: .6rem .8rem;
  font-size: .875rem; font-weight: 500;
  color: var(--tinte-weich); text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.navigation a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px; background: var(--tinte);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--kurve);
}
.navigation a:hover { color: var(--tinte); }
.navigation a:hover::after,
.navigation a[aria-current="page"]::after { transform: scaleX(1); }
.navigation a[aria-current="page"] { color: var(--tinte); }

.kopf__tat { display: flex; align-items: center; gap: .85rem; flex: none; }
.navigation__tat { display: none; }

.kopf__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--tinte);
  text-decoration: none; padding: .5rem;
  font-variant-numeric: tabular-nums;
}
.kopf__tel:hover { color: var(--azur-tief); }
.kopf__tel svg { width: 16px; height: 16px; flex: none; }

.menue-knopf {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1.5px solid var(--linie); border-radius: var(--radius);
  cursor: pointer; color: var(--tinte);
}
.menue-knopf span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative; transition: background-color .2s;
}
.menue-knopf span::before, .menue-knopf span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; transition: transform .35s var(--kurve);
}
.menue-knopf span::before { top: -6px; }
.menue-knopf span::after { top: 6px; }
.menue-knopf[aria-expanded="true"] span { background: transparent; }
.menue-knopf[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Bühne
   ============================================================ */

.buehne {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.buehne__gitter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.buehne__wort { max-width: 34rem; }

.buehne h1 {
  font-family: var(--anzeige);
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-optical-sizing: auto;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin-top: .3rem;
}
.buehne h1 em { font-style: italic; color: var(--azur-tief); }

.buehne__text {
  margin-top: 1.9rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--tinte-weich);
  max-width: 40ch;
}

.buehne__tat { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.4rem; }

/* Teamfoto: läuft nach rechts aus dem Raster bis an den Fensterrand. */
.heldbild {
  margin: 0;
  margin-right: calc(0px - ((100vw - min(100vw, var(--breite))) / 2 + var(--rand)));
}
.heldbild img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 22%;
  --auslauf:
    linear-gradient(to right, transparent 0%, #000 24%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 88%, transparent 100%);
  -webkit-mask-image: var(--auslauf);
          mask-image: var(--auslauf);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* Auftritt beim Laden — bewusst kräftig, nicht zaghaft */
.stufe { opacity: 1; }
.js .stufe { opacity: 0; transform: translateY(26px); }
.geladen .stufe {
  opacity: 1; transform: none;
  transition: opacity .9s var(--kurve-weich), transform .9s var(--kurve-weich);
}
.geladen .stufe:nth-child(1) { transition-delay: .05s; }
.geladen .stufe:nth-child(2) { transition-delay: .14s; }
.geladen .stufe:nth-child(3) { transition-delay: .23s; }
.geladen .stufe:nth-child(4) { transition-delay: .32s; }
.geladen .stufe:nth-child(5) { transition-delay: .41s; }

.js .heldbild { opacity: 0; transform: translateY(32px) scale(.98); }
.geladen .heldbild {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--kurve-weich) .2s, transform 1.2s var(--kurve-weich) .2s;
}

/* ============================================================
   Fakten — Zeile auf Haarlinien
   ============================================================ */

.fakten {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--tinte);
  margin: 0;
}
.fakt { padding: 1.9rem 1.75rem 0 0; }
.fakt + .fakt { padding-left: 1.75rem; border-left: 1px solid var(--linie); }
.fakt dt {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.1;
  letter-spacing: -.02em; color: var(--tinte);
}
.fakt dd { margin: .6rem 0 0; font-size: .9375rem; color: var(--tinte-weich); line-height: 1.55; }

/* ============================================================
   Säulen
   ============================================================ */

.saeulen { display: grid; gap: 0; margin-top: 2.5rem; }
.saeule {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.25rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--linie);
}
.saeule:last-child { border-bottom: 1px solid var(--linie); }
.saeule__zeichen {
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--azur); border-radius: 50%;
  color: var(--azur-tief);
  display: grid; place-items: center; flex: none;
}
.saeule__zeichen svg { width: 20px; height: 20px; }
.saeule h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.005em; }
.saeule p { margin: .4rem 0 0; font-size: .9375rem; color: var(--tinte-weich); line-height: 1.6; }

/* ============================================================
   Bild- und Zitatbausteine
   ============================================================ */

.konzept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }

.konzept__bild { position: relative; overflow: hidden; border-radius: var(--radius-gross); }
.konzept__bild img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }

.zitat {
  margin: 1.5rem 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--tinte);
  font-family: var(--anzeige); font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 300; font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.35; color: var(--tinte); letter-spacing: -.01em;
}
.zitat cite {
  display: block; margin-top: 1rem; font-family: var(--text); font-style: normal;
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tinte-zart);
}

/* ============================================================
   Behandler
   ============================================================ */

.behandler { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.behandler__portrait { overflow: hidden; background: var(--papier-tief); border-radius: var(--radius-gross); }
.behandler__portrait img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: 62% 18%; }

.behandler__name { margin-top: 1.5rem; }
.behandler__name h3 {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.04; letter-spacing: -.028em;
}
.behandler__rolle {
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azur-tief); margin-top: .7rem;
}

.merkmale { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.9rem; padding: 0; list-style: none; }
.merkmale li {
  font-size: .8125rem; font-weight: 500; color: var(--tinte-weich);
  padding: .45rem .85rem; border: 1px solid var(--linie); border-radius: var(--radius);
}

/* ============================================================
   Leistungen
   ============================================================ */

.leistungen { display: grid; gap: 0; margin-top: 2.75rem; border-top: 1px solid var(--tinte); }
.leistung { border-bottom: 1px solid var(--linie); }

.leistung__knopf {
  display: grid; grid-template-columns: 3.25rem 1fr auto; align-items: center; gap: 1rem;
  width: 100%; padding: 1.6rem .25rem; margin: 0;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--text); color: var(--tinte);
  transition: color .25s;
}
.leistung__knopf:hover { color: var(--azur-tief); }
.leistung__nr {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.1rem; color: var(--tinte-zart); font-variant-numeric: tabular-nums;
}
.leistung__name {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em;
}
.leistung__kreuz {
  width: 32px; height: 32px; border: 1px solid var(--linie); border-radius: 50%;
  display: grid; place-items: center; color: var(--tinte); flex: none;
  transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--kurve);
}
.leistung__knopf:hover .leistung__kreuz { border-color: var(--azur); }
.leistung__kreuz svg { width: 13px; height: 13px; }
.leistung__knopf[aria-expanded="true"] .leistung__kreuz {
  transform: rotate(135deg); background: var(--tinte); border-color: var(--tinte); color: #fff;
}

.leistung__inhalt { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--kurve); }
.leistung__inhalt[data-offen="ja"] { grid-template-rows: 1fr; }
.leistung__inhalt > div { overflow: hidden; }
.leistung__text {
  padding: 0 0 1.9rem 4.25rem; max-width: 62ch;
  color: var(--tinte-weich); font-size: .9875rem;
}
.leistung__text p { margin-bottom: .85em; }

/* ============================================================
   Ablauf
   ============================================================ */

.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; counter-reset: schritt; }
.schritt {
  position: relative; padding: 1.5rem 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,.28);
}
.schritt + .schritt { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.schritt::before {
  counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
  display: block; margin-bottom: .9rem;
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.75rem; line-height: 1; color: var(--azur);
  font-variant-numeric: tabular-nums;
}
.schritt h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.005em; }
.schritt p { margin: .5rem 0 0; font-size: .9375rem; color: #9FB6C2; line-height: 1.55; }

/* ============================================================
   Impressionen
   ============================================================ */

.impressionen {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 185px; gap: 10px;
  margin-top: 2.75rem;
}
.impressionen figure { margin: 0; overflow: hidden; background: var(--papier-tief); border-radius: var(--radius); }
.impressionen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--kurve-weich); }
.impressionen figure:hover img { transform: scale(1.05); }
.impressionen figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.impressionen figure:nth-child(4) { grid-column: span 2; }

/* ============================================================
   Der Zahnbogen
   ============================================================ */

.bogen {
  position: relative;
  background: var(--papier-rein);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 760px; margin: 3rem auto 0;
}
.band--nacht .bogen { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); }

.bogen__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.bogen__marke {
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tinte-zart);
}
.band--nacht .bogen__marke { color: #94AEBA; }
.bogen__monat {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 2.25rem; line-height: 1; color: var(--tinte); font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.band--nacht .bogen__monat { color: #fff; }
.bogen__monat span {
  font-family: var(--text); font-size: .6875rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tinte-zart); margin-left: .5rem;
}

.bogen__buehne {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(31, 165, 223, .24), transparent 72%),
    linear-gradient(165deg, #123A54, #0B1A24 62%, #0E2B3C);
}
.bogen__buehne svg { width: 100%; height: auto; }

.bogen__regler { margin-top: 1.25rem; }
.bogen__spur {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; background: transparent; cursor: grab; margin: 0;
}
.bogen__spur:active { cursor: grabbing; }
.bogen__spur::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--azur) var(--fortschritt, 0%), var(--linie) var(--fortschritt, 0%));
}
.bogen__spur::-moz-range-track { height: 3px; background: var(--linie); }
.bogen__spur::-moz-range-progress { height: 3px; background: var(--azur); }
.bogen__spur::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -12.5px;
  border-radius: 50%; background: var(--tinte); border: 0;
  transition: transform .25s var(--kurve);
}
.bogen__spur::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--tinte); border: 0;
}
.bogen__spur:hover::-webkit-slider-thumb { transform: scale(1.15); }

.bogen__fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-zart);
}
.bogen__ziehen { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--azur-tief); }
.bogen__ziehen svg { width: 14px; height: 14px; }
.bogen[data-beruehrt="ja"] .bogen__ziehen { opacity: .3; transition: opacity .6s; }

.bogen__hinweis {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linie);
  font-size: .8125rem; color: var(--tinte-zart); line-height: 1.5;
}

/* ============================================================
   Rückruf-Strecke
   ============================================================ */

.strecke {
  background: var(--papier-rein);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  overflow: hidden;
  max-width: 820px; margin: 3rem auto 0;
}

.strecke__balken { height: 2px; background: var(--linie); position: relative; }
.strecke__balken i {
  position: absolute; inset: 0 auto 0 0; width: 25%;
  background: var(--tinte);
  transition: width .6s var(--kurve);
}

.strecke__kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem) 0;
}
.strecke__zaehler {
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tinte-zart); font-variant-numeric: tabular-nums;
}
.strecke__zurueck {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 0; padding: .5rem; margin: -.5rem; cursor: pointer;
  font-family: var(--text); font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-weich);
  transition: color .2s;
}
.strecke__zurueck:hover { color: var(--tinte); }
.strecke__zurueck svg { width: 14px; height: 14px; }
.strecke__zurueck[hidden] { display: none; }

.strecke__koerper { padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 3vw, 2.5rem); }

.schirm { display: none; }
.schirm[data-aktiv="ja"] { display: block; animation: herein .5s var(--kurve) both; }
@keyframes herein { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.schirm[data-aktiv="ja"][data-richtung="rueck"] { animation-name: herein-rueck; }
@keyframes herein-rueck { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.schirm h3 {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.08; letter-spacing: -.028em;
}
.schirm__hilfe { margin: .6rem 0 0; font-size: .9375rem; color: var(--tinte-weich); }

.wahl { display: grid; gap: .5rem; margin-top: 1.75rem; }
.wahl--zwei { grid-template-columns: repeat(2, 1fr); }
.wahl--drei { grid-template-columns: repeat(3, 1fr); }

.karte { position: relative; }
.karte input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.karte span {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.2rem; min-height: 62px;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--papier-rein);
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
  transition: border-color .25s, background-color .25s, transform .25s var(--kurve);
}
.karte span::before {
  content: ""; width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--linie); border-radius: 50%;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.karte:hover span { border-color: var(--tinte-zart); transform: translateY(-2px); }
.karte input:checked + span { border-color: var(--tinte); background: var(--papier); }
.karte input:checked + span::before {
  border-color: var(--tinte); background: var(--tinte); box-shadow: inset 0 0 0 3px var(--papier-rein);
}
.karte input:focus-visible + span { outline: 2.5px solid var(--azur-tief); outline-offset: 3px; }

.karte--kompakt span { min-height: 56px; justify-content: center; text-align: center; }
.karte--kompakt span::before { display: none; }

.tage { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { position: relative; }
.tag input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tag span {
  display: grid; place-items: center; min-width: 56px; min-height: 46px; padding: 0 .9rem;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--papier-rein);
  font-size: .875rem; font-weight: 600; color: var(--tinte-weich);
  transition: border-color .2s, background-color .2s, color .2s;
}
.tag:hover span { border-color: var(--tinte-zart); }
.tag input:checked + span { border-color: var(--tinte); background: var(--tinte); color: #fff; }
.tag input:focus-visible + span { outline: 2.5px solid var(--azur-tief); outline-offset: 3px; }

.feld-gitter { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1.75rem; }
.feld { display: block; }
.feld--breit { grid-column: 1 / -1; }
.feld > span {
  display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tinte-zart); margin-bottom: .5rem;
}
.feld input, .feld textarea {
  width: 100%; font-family: var(--text); font-size: 1rem; color: var(--tinte);
  padding: .9rem 1rem; min-height: 52px;
  background: var(--papier-rein); border: 1px solid var(--linie); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.feld textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.feld input:hover, .feld textarea:hover { border-color: var(--tinte-zart); }
.feld input:focus, .feld textarea:focus {
  outline: 0; border-color: var(--tinte); box-shadow: 0 0 0 3px rgba(16, 33, 44, .08);
}
.feld input[aria-invalid="true"] { border-color: #B4432F; }

.zustimmung {
  display: grid; grid-template-columns: 20px 1fr; gap: .8rem; align-items: start;
  margin-top: 1.5rem; font-size: .8125rem; color: var(--tinte-weich); line-height: 1.5;
}
.zustimmung input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tinte); cursor: pointer; }

.strecke__absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.strecke__absenden .knopf { flex: 1 1 240px; }
.strecke__ruf { font-size: .875rem; color: var(--tinte-zart); }

.fehler {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius);
  background: #FBEDE9; border: 1px solid #E8C4B9; color: #8A3322; font-size: .9375rem;
}
.fehler[hidden] { display: none; }

.uebersicht { margin-top: 1.75rem; padding: 0; list-style: none; border-top: 1px solid var(--tinte); }
.uebersicht li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--linie); font-size: .9375rem;
}
.uebersicht b {
  color: var(--tinte-zart); font-weight: 600; font-size: .6875rem;
  letter-spacing: .14em; text-transform: uppercase; padding-top: .25rem;
}
.uebersicht span { font-weight: 500; text-align: right; }

.fertig { text-align: center; padding: 1.5rem 0 .5rem; }
.fertig__haken {
  width: 56px; height: 56px; margin: 0 auto 1.6rem;
  border: 1px solid var(--azur); border-radius: 50%; color: var(--azur-tief);
  display: grid; place-items: center;
}
.fertig__haken svg { width: 24px; height: 24px; }
.fertig p { color: var(--tinte-weich); max-width: 42ch; margin-inline: auto; }
.fertig a { white-space: nowrap; }

/* ============================================================
   Unterseiten-Bausteine
   ============================================================ */

.seitenkopf { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.seitenkopf h1 {
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .97; letter-spacing: -.033em;
  max-width: 18ch;
}
.seitenkopf h1 em { font-style: italic; color: var(--azur-tief); }
.seitenkopf .vorspann { max-width: 52ch; margin-top: 1.9rem; }

.anriss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }

.fliesstext { margin-top: 1.4rem; color: var(--tinte-weich); max-width: 60ch; }
.fliesstext p { margin-bottom: 1.05em; }
.fliesstext strong { color: var(--tinte); font-weight: 600; }

.merkliste { list-style: none; padding: 0; margin: 1.75rem 0 0; max-width: 60ch; }
.merkliste li {
  position: relative; padding: .7rem 0 .7rem 1.75rem;
  border-top: 1px solid var(--linie); color: var(--tinte-weich);
}
.merkliste li:last-child { border-bottom: 1px solid var(--linie); }
.merkliste li::before {
  content: ""; position: absolute; left: .2rem; top: 1.35rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--azur);
}

.kurzliste {
  list-style: none; padding: 0; margin: 2.75rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem;
  border-top: 1px solid var(--tinte);
}
.kurzliste li { border-bottom: 1px solid var(--linie); }
.kurzliste a {
  display: block; padding: 1.05rem .25rem;
  font-family: var(--anzeige); font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.0625rem; letter-spacing: -.012em; line-height: 1.25;
  color: var(--tinte); text-decoration: none;
  transition: color .25s, padding-left .35s var(--kurve);
}
.kurzliste a:hover { color: var(--azur-tief); padding-left: .75rem; }

.schluss .huelle { max-width: 46ch; }
.schluss__tat { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.kontaktseite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.kontaktseite .titel { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.kontaktliste { margin: 1.9rem 0 0; display: grid; gap: 0; }
.kontaktliste > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--linie);
}
.kontaktliste > div:last-child { border-bottom: 1px solid var(--linie); }
.kontaktliste dt {
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tinte-zart); padding-top: .25rem;
}
.kontaktliste dd { margin: 0; color: var(--tinte); }

/* ============================================================
   Kontakt und Fuß
   ============================================================ */

.kontakt { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.kontakt h2 {
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--azur); margin-bottom: 1.2rem;
  padding-top: .6rem; border-top: 1px solid var(--azur);
}
.kontakt p, .kontakt a { color: #B7CBD6; font-size: .9875rem; }
.kontakt a { text-decoration: none; }
.kontakt a:hover { color: #fff; text-decoration: underline; }
.kontakt strong { color: #fff; font-weight: 600; }

.zeiten { display: grid; gap: .25rem; font-size: .9375rem; }
.zeiten div { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; color: #B7CBD6; }
.zeiten dt { font-weight: 600; color: #fff; }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }

.zeiten--hell { margin-top: 1.9rem; gap: 0; }
.zeiten--hell div {
  grid-template-columns: 7rem 1fr; padding: .8rem 0;
  border-top: 1px solid var(--linie); color: var(--tinte-weich);
}
.zeiten--hell div:last-child { border-bottom: 1px solid var(--linie); }
.zeiten--hell dt { color: var(--tinte); font-weight: 600; }

.fuss-navigation {
  display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.9rem; border-top: 1px solid rgba(255,255,255,.14);
}
.fuss-navigation a {
  font-size: .9375rem; color: #B7CBD6; text-decoration: none; padding: .35rem 0;
  transition: color .2s;
}
.fuss-navigation a:hover { color: #fff; }
.fuss-navigation a[aria-current="page"] { color: var(--azur); }

.fuss {
  margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  font-size: .8125rem; color: #7E99A6;
}
.fuss a { color: #7E99A6; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__rechts { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.newton {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: #7E99A6; opacity: .85;
  transition: color .2s, opacity .2s;
}
.newton:hover { color: #fff; opacity: 1; }
.newton img { height: 17px; width: auto; }

/* ============================================================
   Rechtstexte
   ============================================================ */

.rechtstext { color: var(--tinte-weich); }
.rechtstext > * { max-width: 68ch; }
.rechtstext h2 {
  font-family: var(--anzeige); font-weight: 300; color: var(--tinte);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em;
  margin: 2.75rem 0 .9rem;
}
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { font-size: 1.0625rem; font-weight: 600; color: var(--tinte); margin: 1.75rem 0 .4rem; }
.rechtstext p { margin-bottom: 1.05em; }
.rechtstext ul { margin: 0 0 1.05em; padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .45em; }
.rechtstext strong { color: var(--tinte); font-weight: 600; }
.rechtstext address {
  font-style: normal; color: var(--tinte);
  padding: 1.4rem 1.5rem; margin: 0 0 1.5rem;
  background: var(--papier-rein); border: 1px solid var(--linie); border-radius: var(--radius);
}
.merker {
  display: grid; grid-template-columns: 20px 1fr; gap: .85rem;
  padding: 1.2rem 1.4rem; margin: 1.75rem 0;
  background: var(--papier-rein); border: 1px solid var(--linie); border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.55;
}

.huelle.textspalte > * { max-width: 66ch; }

/* ============================================================
   Auftauchen beim Scrollen
   ============================================================ */

.taucht-auf { opacity: 1; }
.js .taucht-auf { opacity: 0; transform: translateY(34px); }
.taucht-auf[data-sichtbar="ja"] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--kurve-weich), transform .9s var(--kurve-weich);
}

/* ============================================================
   Schmale Bildschirme
   ============================================================ */

@media (max-width: 1080px) {
  :root { --rail: 7rem; }
  .kurzliste { grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
}

@media (max-width: 1000px) {
  .buehne__gitter { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .buehne__wort { max-width: none; }
  .heldbild { margin-right: 0; max-width: 560px; }
  .heldbild img {
    aspect-ratio: 3 / 2;
    --auslauf: linear-gradient(to bottom, #000 84%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
  .konzept, .behandler, .anriss, .kontaktseite { grid-template-columns: minmax(0, 1fr); }
  .behandler__portrait { max-width: 420px; }
  .fakten { grid-template-columns: repeat(2, 1fr); }
  .fakt:nth-child(3) { padding-left: 0; border-left: 0; }
  .fakt:nth-child(3), .fakt:nth-child(4) { border-top: 1px solid var(--linie); margin-top: 1.75rem; padding-top: 1.75rem; }
  .ablauf { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .schritt:nth-child(3) { padding-left: 0; border-left: 0; }
  .kontakt { grid-template-columns: 1fr 1fr; }
  .kontakt > div:first-child { grid-column: 1 / -1; }
  .kopfzeile { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .kopfzeile > :last-child { max-width: 42ch; }
}

@media (max-width: 880px) {
  .navigation { display: none; }
  .navigation[data-offen="ja"] {
    display: flex; flex-direction: column; gap: 0;
    overscroll-behavior: contain;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.5rem;
    box-shadow: var(--schatten-hoch);
  }
  .navigation[data-offen="ja"] a {
    padding: 1rem 0; font-size: 1.25rem; font-family: var(--anzeige);
    font-weight: 300; font-variation-settings: "SOFT" 0, "WONK" 0;
    letter-spacing: -.02em; border-bottom: 1px solid var(--linie);
  }
  .navigation[data-offen="ja"] a::after { display: none; }
  .navigation[data-offen="ja"] .navigation__tat {
    display: inline-flex; margin-top: 1.25rem; padding: 1.1rem 1.9rem;
    border-bottom: 0; color: #fff; font-family: var(--text); font-size: .9375rem; font-weight: 600;
  }
  .navigation[data-offen="ja"] .navigation__tat:hover { color: #fff; }
  .menue-knopf { display: flex; }
  .kopf__innen { position: relative; min-height: 70px; }
  .kopf__tat .knopf { display: none; }
  .kopf__tat { margin-left: auto; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .marke img { height: 36px; }
  .kopf__tel span { display: none; }
  .impressionen { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 145px; }
  .impressionen figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .impressionen figure:nth-child(4) { grid-column: span 2; }
  .wahl--zwei, .wahl--drei { grid-template-columns: 1fr; }
  .feld-gitter { grid-template-columns: 1fr; }
  .leistung__text { padding-left: 0; }
  .leistung__knopf { grid-template-columns: 2.25rem 1fr auto; gap: .7rem; }
  .kontakt { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: 1fr; }
  .fakt, .fakt + .fakt { padding: 1.5rem 0 0; border-left: 0; margin-top: 0; }
  .fakt + .fakt { border-top: 1px solid var(--linie); margin-top: 1.5rem; }
  .ablauf { grid-template-columns: 1fr; }
  .schritt, .schritt + .schritt { padding-left: 0; border-left: 0; }
  .kurzliste { grid-template-columns: 1fr; }
  .buehne__tat .knopf, .schluss__tat .knopf { flex: 1 1 100%; }
  .kontaktliste > div, .zeiten--hell div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ============================================================
   Bewegung aus
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .stufe, .js .taucht-auf, .js .heldbild { opacity: 1; transform: none; }
}

@media print {
  .kopf, .strecke, .bogen__regler, .menue-knopf { display: none; }
}

/* Fließtext-Abschnitte brauchen mehr Lesebreite als ein reiner Vorspann. */
.kopfzeile--breit > :last-child { max-width: 62ch; }

/* Der Bogen steht auch auf dunklem Grund — Regler und Linien müssen
   dort sichtbar bleiben. */
.band--nacht .bogen__spur::-webkit-slider-thumb { background: #fff; }
.band--nacht .bogen__spur::-moz-range-thumb { background: #fff; }
.band--nacht .bogen__spur::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--azur) var(--fortschritt, 0%), rgba(255,255,255,.22) var(--fortschritt, 0%));
}
.band--nacht .bogen__spur::-moz-range-track { background: rgba(255,255,255,.22); }
.band--nacht .bogen__ziehen { color: var(--azur); }
.band--nacht .bogen__fuss { color: #94AEBA; }
.band--nacht .bogen__hinweis { border-top-color: rgba(255,255,255,.14); color: #94AEBA; }
