/* ==========================================================================
   AUREDES v2 – ein Stylesheet für alle Seiten.
   Tokens aus Richtung D („Der Bogen“), Komponenten aus F, Produktseite aus A,
   Evidenz aus C. Schriften selbst gehostet (OFL), keine externen Requests.
   ========================================================================== */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/jost-var.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/hanken-grotesk-var.woff2') format('woff2'); }

:root {
  --weiss: #FFFFFF;
  --tinte: #14171A;
  --rot: #E20025;
  --rot-tief: #B8001E;
  --nebel: #EDEFF0;
  --schiefer: #59636C;
  --linie: rgba(20, 23, 26, .14);
  --linie-stark: rgba(20, 23, 26, .28);
  --ok: #1E7F4F;
  --fehler: #B3261E;
  --todo: #FFF4D6;
  --todo-rand: #C98F00;

  --display: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --r-knopf: 2px;
  --r-karte: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --kopf: 76px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); }
body { margin: 0; background: var(--weiss); color: var(--tinte); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.ist-gesperrt { overflow: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
::selection { background: var(--tinte); color: var(--weiss); }
.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 { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--tinte); color: var(--weiss); padding: 10px 14px; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
sup { line-height: 0; font-size: .62em; }
sup.r { font-size: .42em; vertical-align: .95em; margin-left: .02em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 54px); }
h3 { font-size: clamp(21px, 1.9vw, 27px); font-weight: 400; letter-spacing: -.015em; line-height: 1.15; }
h4 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
h1 sup.r, h2 sup.r { font-size: .28em; vertical-align: 1.75em; }
.lead { font-size: clamp(18px, 1.35vw, 20px); color: var(--schiefer); max-width: 34em; }
.ueberzeile { font-size: 15px; color: var(--schiefer); margin: 0 0 22px; }
.klein { font-size: 14px; color: var(--schiefer); }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-knopf); border: 1px solid transparent; font-family: var(--text); font-size: 16px; font-weight: 600; line-height: 1.15; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn--rot { background: var(--rot); color: var(--weiss); }
.btn--rot:hover { background: var(--rot-tief); }
.btn--linie { border-color: var(--tinte); background: transparent; color: var(--tinte); }
.btn--linie:hover { background: var(--tinte); color: var(--weiss); }
.btn--hell { background: var(--weiss); color: var(--tinte); }
.btn--hell:hover { background: var(--nebel); }
.btn--linie-hell { border-color: rgba(255, 255, 255, .5); color: var(--weiss); background: transparent; }
.btn--linie-hell:hover { border-color: var(--weiss); }
.btn--klein { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.textlink { font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--linie-stark); }
.textlink:hover { text-decoration-color: var(--rot); }

/* ---------- Kopf und Navigation ---------- */
.kopf { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); transition: box-shadow .3s; }
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--linie); }
.kopf .wrap { display: flex; align-items: center; gap: 28px; height: var(--kopf); }
.marke { position: relative; z-index: 62; display: block; }
.marke img { display: block; height: 24px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; color: var(--schiefer); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--tinte); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav-schalter { display: none; margin-left: auto; position: relative; z-index: 62; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-schalter span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--tinte); transition: transform .3s var(--ease), opacity .3s; }
@media (max-width: 960px) {
  .nav { position: fixed; inset: 0; z-index: 61; margin: 0; flex-direction: column; justify-content: center; gap: 26px; background: var(--weiss); transform: translateY(-102%); transition: transform .4s var(--ease); visibility: hidden; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 34px; font-weight: 300; color: var(--tinte); }
  body.nav-offen .nav { transform: none; visibility: visible; }
  .nav-schalter { display: block; }
  body.nav-offen .nav-schalter span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-offen .nav-schalter span:nth-child(2) { opacity: 0; }
  body.nav-offen .nav-schalter span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.abschnitt--eng { padding: clamp(48px, 6vw, 80px) 0; }
.abschnitt--nebel { background: var(--nebel); }
.abschnitt--dunkel { background: var(--tinte); color: var(--weiss); }
.abschnitt--dunkel .lead, .abschnitt--dunkel .ueberzeile, .abschnitt--dunkel .klein { color: rgba(255, 255, 255, .72); }
.kopfzeile { max-width: 46em; margin-bottom: clamp(36px, 5vw, 64px); }
.kopfzeile .lead { margin-bottom: 0; }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.geteilt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .raster-2, .raster-3, .geteilt { grid-template-columns: 1fr; } }

/* ---------- Start: Hero mit Bogen ---------- */
.held { position: relative; overflow: hidden; padding: clamp(40px, 7vh, 88px) 0 0; min-height: calc(100svh - var(--kopf)); display: flex; flex-direction: column; }
.held .wrap { position: relative; z-index: 1; }
.held h1 { font-size: clamp(46px, 7.4vw, 124px); line-height: .96; letter-spacing: -.035em; max-width: 10.5em; margin-bottom: 28px; }
.held .lead { margin-bottom: 32px; max-width: 31em; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.bogen { position: absolute; right: -4vw; bottom: -2px; width: min(56vw, 880px); height: auto; z-index: 0; pointer-events: none; }
.bogen path { fill: var(--rot); }
.js .bogen { clip-path: inset(0 100% 0 0); }
.fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 660px; margin: clamp(40px, 6vh, 72px) 0 0; border-top: 1px solid var(--linie); position: relative; z-index: 1; }
.fakten dt, .fakten dd { margin: 0; }
.fakt { padding: 20px 24px 28px 0; }
.fakt + .fakt { padding-left: 24px; border-left: 1px solid var(--linie); }
.fakt dt { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.fakt dd { font-size: 14px; color: var(--schiefer); line-height: 1.4; }
.fakt a { text-decoration: none; color: var(--rot-tief); }
/* Mittlere Breiten: Bogen kleiner, damit er neben der Faktenreihe endet */
@media (min-width: 701px) and (max-width: 1200px) { .bogen { width: 42vw; right: -6vw; } }
@media (max-width: 700px) {
  .fakten { grid-template-columns: 1fr; background: rgba(255, 255, 255, .9); }
  .fakt, .fakt + .fakt { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--linie); }
  .held { min-height: 0; padding-bottom: 46vw; }
  .bogen { width: 118vw; right: -22vw; }
}

/* Linie, die beim Scrollen durch die Einstiege läuft */
.linie { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.linie path { fill: none; stroke: var(--rot); stroke-width: 2; stroke-linecap: round; }
main { position: relative; }

/* Einstiege („Türen“ aus D) */
.tueren { border-bottom: 1px solid var(--linie); }
.tuer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 24px; align-items: baseline; padding: 30px 0 32px; border-top: 1px solid var(--linie); text-decoration: none; }
.tuer h2 { font-size: clamp(28px, 3vw, 44px); margin: 0; letter-spacing: -.02em; }
.tuer p { margin: 0; color: var(--schiefer); }
.tuer span { justify-self: end; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--linie-stark); }
.tuer:hover h2 { color: var(--rot-tief); }
.tuer:hover span { text-decoration-color: var(--rot); }
@media (max-width: 900px) { .tuer { grid-template-columns: 1fr; gap: 6px; } .tuer span { justify-self: start; margin-top: 6px; } }

/* ---------- Kacheln ---------- */
.kachel { border: 1px solid var(--linie); border-radius: var(--r-karte); padding: clamp(24px, 3vw, 36px); background: var(--weiss); }
.kachel__zahl { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -.035em; line-height: 1; margin: 0 0 18px; }
.kachel h3 { margin-bottom: 12px; }
.kachel p { color: var(--schiefer); margin: 0; }
.kachel ul { margin: 16px 0 0; padding: 0; list-style: none; }
.kachel li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--schiefer); font-size: 15px; }
.kachel li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--rot); }
.abschnitt--nebel .kachel { border-color: transparent; }

/* ---------- Produktkarten ---------- */
.produkt { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: var(--r-karte); overflow: hidden; background: var(--weiss); }
.produkt__bild { position: relative; aspect-ratio: 16 / 10; background: var(--weiss); border-bottom: 1px solid var(--linie); display: grid; place-items: center; overflow: hidden; }
.produkt__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.produkt__bild img[data-fehlt] { display: none; }
.produkt__platzhalter { text-align: center; padding: 24px; color: var(--schiefer); font-size: 13px; }
.produkt__platzhalter .schachtel { width: min(72%, 300px); aspect-ratio: 2.8 / 1; margin: 0 auto 12px; border: 1px solid var(--linie-stark); border-radius: 3px; position: relative; background: var(--weiss); }
.produkt__platzhalter .schachtel::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 12%; background: var(--rot); }
.produkt__inhalt { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 34px); flex: 1; }
.produkt__kopf .produktlogo { display: block; height: 30px; width: auto; margin: 0 0 8px; }
.produkt__kopf p { margin: 0; color: var(--schiefer); font-size: 15px; }
.produkt__aktionen { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.spez { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: lining-nums; }
.spez th, .spez td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.spez th { font-weight: 400; color: var(--schiefer); }
.spez td { text-align: right; font-weight: 600; white-space: nowrap; }
.spez tr.zusatz td, .spez tr.zusatz th { color: var(--rot-tief); }
.spez caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--schiefer); padding-top: 10px; }
.zweck { font-size: 15px; color: var(--schiefer); margin: 0; }
.zweck q { color: var(--tinte); }

/* ---------- Vergleich: eine Injektion gegen eine Serie (schematisch) ---------- */
.vergleich { display: grid; gap: 22px; margin: 8px 0 0; }
.vergleich__zeile { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.vergleich__name { font-weight: 600; font-size: 15px; }
.vergleich__name small { display: block; font-weight: 400; color: var(--schiefer); font-size: 14px; }
.vergleich__spur { position: relative; height: 40px; display: flex; align-items: center; gap: 0; }
.vergleich__spur::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--linie-stark); }
.termin { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--tinte); flex: none; }
.termin--eins { background: var(--rot); border-color: var(--rot); width: 18px; height: 18px; }
.vergleich__abstand { flex: 1; }
.vergleich__legende { font-size: 13px; color: var(--schiefer); margin: 0; }
@media (max-width: 600px) { .vergleich__zeile { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Service (dunkel) ---------- */
.leistungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); }
.leistung { background: var(--tinte); padding: 28px 26px 30px; }
.leistung h3 { font-size: 22px; margin-bottom: 8px; }
.leistung p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
@media (max-width: 900px) { .leistungen { grid-template-columns: 1fr; } }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { position: relative; overflow: hidden; background: var(--nebel); padding: clamp(56px, 9vw, 120px) 0 clamp(44px, 6vw, 72px); }
.seitenkopf h1 { max-width: 11.5em; margin-bottom: 18px; }
.seitenkopf .lead { margin-bottom: 0; max-width: 40em; }
.seitenkopf .wrap { position: relative; z-index: 1; }
.seitenkopf__bogen { position: absolute; right: -60px; bottom: -2px; width: min(26vw, 380px); height: auto; z-index: 0; opacity: .9; }
.seitenkopf__bogen path { fill: var(--rot); }
@media (max-width: 700px) { .seitenkopf__bogen { display: none; } }

/* ---------- Produktseite: 3D-Explosion (aus A, hell) ---------- */
.explosion { position: relative; }
.explosion__buehne { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.explosion__pin { position: relative; height: 260vh; }
.explosion__klebend { position: sticky; top: calc(var(--kopf) + 8px); min-height: calc(100vh - var(--kopf) - 16px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.raum { position: relative; aspect-ratio: 1000 / 620; touch-action: pan-y; cursor: grab; display: none; }
.raum:active { cursor: grabbing; }
.ist-3d .raum { display: block; }
.ist-3d .zeichnung { display: none; }
.raum canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.leitungen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leitungen line { stroke: var(--tinte); stroke-opacity: .45; stroke-width: 1; transition: opacity .3s; }
.marken { position: absolute; inset: 0; pointer-events: none; }
.marke-nr { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid var(--tinte); border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--tinte); opacity: 0; transition: opacity .3s; }
.marke-nr.ist-an { opacity: 1; }
.drehen { position: absolute; right: 0; top: -4px; margin: 0; font-size: 13px; color: var(--schiefer); }
.zeichnung { display: block; width: 100%; height: auto; overflow: visible; }
.zeichnung .teil-linie { fill: none; stroke: var(--tinte); stroke-width: 1.6; }
.zeichnung .marker { opacity: 0; transition: opacity .3s; }
.zeichnung .marker.ist-an { opacity: 1; }
.schematisch { margin: 12px 0 0; font-size: 13px; color: var(--schiefer); }
.stueckliste table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stueckliste th, .stueckliste td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--linie); }
.stueckliste thead th { border-top: 0; font-weight: 500; font-size: 14px; color: var(--schiefer); padding-bottom: 6px; }
.stueckliste td.pos { width: 2.6em; font-weight: 600; color: var(--rot-tief); font-variant-numeric: tabular-nums; }
.stueckliste td.name { width: 10.5em; font-weight: 600; }
.stueckliste td.angabe { color: var(--schiefer); }
/* Noch nicht erreichte Teile: Schiefer statt Abblenden, damit der Kontrast ≥ 4,5:1 bleibt */
.js .stueckliste td { transition: color .3s; }
.js .stueckliste tbody tr:not(.ist-an) td.pos, .js .stueckliste tbody tr:not(.ist-an) td.name { color: var(--schiefer); }
.umschalter { display: inline-flex; border: 1px solid var(--tinte); border-radius: var(--r-knopf); margin: 0 0 18px; }
.umschalter button { background: transparent; border: 0; padding: 8px 14px; min-height: 40px; font-size: 15px; font-weight: 600; cursor: pointer; }
.umschalter button + button { border-left: 1px solid var(--tinte); }
.umschalter button[aria-pressed="true"] { background: var(--tinte); color: var(--weiss); }
.nur-gel, .nur-plus { display: none; }
[data-variante="gel"] .nur-gel, [data-variante="plus"] .nur-plus { display: inline; }
@media (max-width: 960px) {
  .explosion__pin { height: auto; }
  .explosion__klebend { position: relative; top: 0; min-height: 0; }
  .explosion__buehne { grid-template-columns: 1fr; }
  .explosion__zeichnung { order: -1; }
  .marke-nr { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 12px; }
}

/* ---------- Evidenz: Atlas (aus C) ---------- */
.atlas { border-top: 2px solid var(--tinte); }
.atlas__steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.legende { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--schiefer); }
.legende i { display: inline-block; width: 18px; height: 6px; margin-right: 6px; vertical-align: middle; }
.atlas__raster { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 6fr) minmax(220px, 3fr); column-gap: 28px; }
.achse { grid-column: 2; position: relative; height: 34px; font-size: 12px; color: var(--schiefer); font-variant-numeric: tabular-nums; }
.achse span { position: absolute; top: 12px; transform: translateX(-50%); white-space: nowrap; }
.achse span:first-child { transform: none; }
.achse span:last-child { transform: translateX(-100%); }
.achse-titel { grid-column: 3; font-size: 12px; color: var(--schiefer); padding-top: 12px; }
.studie { display: contents; }
.studie > * { padding: 16px 0 18px; border-top: 1px solid var(--linie); transition: opacity .3s; }
.studie.ist-aus > * { opacity: .18; }
.studie h3 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0; }
.studie .quelle { margin: 2px 0 0; font-size: 13px; color: var(--schiefer); }
.etikett { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-knopf); color: var(--weiss); }
.etikett--gel { background: var(--tinte); }
.etikett--plus { background: var(--schiefer); }
.spur { position: relative; min-height: 84px; }
.balken { position: absolute; left: 0; top: 42px; height: 8px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.ist-gezeichnet .balken { transform: scaleX(1); }
.balken--gel { background: var(--tinte); }
.balken--plus { background: var(--schiefer); }
.punkt { position: absolute; top: 12px; transform: translateX(-50%); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.punkt::after { content: ''; position: absolute; left: 50%; top: 20px; width: 2px; height: 10px; margin-left: -1px; background: currentColor; }
.punkt.rechts { transform: translateX(-100%); }
.punkt.rechts::after { left: auto; right: 0; }
.punkt.links { transform: none; }
.punkt.links::after { left: 0; margin-left: 0; }
.punkt mark { background: var(--nebel); color: inherit; padding: 1px 4px; }
.ist-gezeichnet .punkt { opacity: 1; }
.spur .design { position: absolute; left: 0; top: 58px; font-size: 12px; color: var(--schiefer); white-space: nowrap; }
.ergebnis { font-size: 14px; }
.ergebnis b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ergebnis .foerderung { display: block; margin-top: 6px; font-size: 13px; color: var(--schiefer); }
.ergebnis .vertraeglichkeit { display: block; margin-top: 6px; }
/* Ergebnisse nur nach bestandener Fachkreis-Abfrage; ohne JavaScript gibt es keine Abfrage, dann ist alles lesbar */
.ohne-fk { display: none; color: var(--schiefer); font-size: 13px; }
.js .nur-fk { display: none; }
.js .ohne-fk { display: block; }
.js.ist-fk .nur-fk { display: block; }
.js.ist-fk .ohne-fk { display: none; }
.grenze { grid-column: 1 / -1; padding: 0 0 18px !important; border-top: 0 !important; font-size: 14px; color: var(--schiefer); }
.atlas__fuss { margin: 0; padding: 14px 0 0; font-size: 13px; color: var(--schiefer); border-top: 1px solid var(--linie); }
@media (max-width: 1000px) {
  .atlas__raster { grid-template-columns: 1fr; }
  .achse { grid-column: 1; }
  .achse-titel { display: none; }
  .studie > * { border-top: 0; padding: 6px 0; }
  .studie > :first-child { border-top: 1px solid var(--linie); padding-top: 18px; }
}
.einordnung { border-left: 3px solid var(--rot); background: var(--nebel); padding: 18px 20px; font-size: 15px; max-width: 52em; }
.einordnung p:last-child { margin-bottom: 0; }
.leitlinien { overflow-x: auto; }
.leitlinien table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.leitlinien th, .leitlinien td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--linie); }
.leitlinien thead th { border-top: 2px solid var(--tinte); font-weight: 600; font-size: 13px; }
.haltung { display: block; font-weight: 600; }
.leitlinien blockquote { margin: 6px 0 0; font-style: italic; font-size: 13.5px; color: var(--schiefer); }
.literatur { padding-left: 1.4em; font-size: 15px; }
.literatur li { margin-bottom: 12px; }
.literatur li:target { background: var(--nebel); }
.fussnote-ref { text-decoration: none; color: var(--rot-tief); font-weight: 600; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 16px; }
.formular__zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .formular__zeile { grid-template-columns: 1fr; } }
.feld label, .feld legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feld .pflicht { color: var(--rot-tief); }
.feld input, .feld select, .feld textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--tinte); background: var(--weiss); border: 1px solid var(--linie-stark); border-radius: var(--r-knopf); appearance: none; -webkit-appearance: none; }
.feld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2314171A' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.feld textarea { min-height: 130px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--tinte); outline-offset: 0; }
.feld [aria-invalid="true"] { border-color: var(--fehler); }
.feld .hinweis { font-size: 13px; color: var(--schiefer); margin: 6px 0 0; }
.menge { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: end; }
.haken { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--schiefer); }
.haken input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--tinte); }
.haken a { color: var(--tinte); }
.formular__status { display: none; padding: 12px 14px; font-size: 15px; border-radius: var(--r-knopf); }
.formular__status.ist-ok { display: block; background: rgba(30, 127, 79, .1); color: var(--ok); }
.formular__status.ist-fehler { display: block; background: rgba(179, 38, 30, .08); color: var(--fehler); }
.formular__status a { color: inherit; font-weight: 600; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formularkarte { border: 1px solid var(--linie); border-radius: var(--r-karte); padding: clamp(24px, 3.5vw, 40px); background: var(--weiss); }
.kontaktspalte { display: grid; gap: 18px; align-content: start; }
.kontaktspalte .karte { border-radius: var(--r-karte); background: var(--nebel); padding: 22px 24px; }
.kontaktspalte .karte h3 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.kontaktspalte .karte p { margin: 0; color: var(--schiefer); font-size: 15px; }
.kontaktspalte a { color: var(--tinte); font-weight: 600; }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--linie); }
.schritte li::before { content: counter(schritt); font-family: var(--display); font-size: 30px; font-weight: 300; line-height: 1; color: var(--rot-tief); }
.schritte h3 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; }
.schritte p { margin: 0; color: var(--schiefer); font-size: 15px; }

/* ---------- Rechtstexte ---------- */
.prosa { max-width: 46em; }
.prosa h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; margin-top: 2em; }
.prosa h3 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-top: 1.6em; }
.prosa p, .prosa li { color: #2A3036; }
.prosa ul { padding-left: 1.2em; }

/* ---------- Entwurf: TODO-Kästen und Badge (verschwinden mit config.release) ---------- */
.todo { background: var(--todo); border-left: 3px solid var(--todo-rand); color: #5A4300; padding: 10px 14px; font-size: 14px; margin: 16px 0; }
.ist-freigegeben .todo { display: none; }
.entwurf-badge { display: none; }
body.ist-entwurf .entwurf-badge { display: block; position: fixed; left: 14px; bottom: 14px; z-index: 80; background: var(--todo-rand); color: #1F1600; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; pointer-events: none; }

/* ---------- Fachkreis-Abfrage ---------- */
.dialog-huelle { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 23, 26, .72); }
.dialog-huelle.ist-offen { display: flex; }
.dialog { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow: auto; background: var(--weiss); border-radius: var(--r-karte); padding: clamp(28px, 4vw, 44px); }
.dialog h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: .4em; }
.dialog p { color: var(--schiefer); font-size: 16px; }
.dialog__aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dialog__fuss { margin: 16px 0 0; }

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; display: none; padding: 20px 22px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: 0 12px 40px rgba(20, 23, 26, .16); font-size: 15px; color: var(--schiefer); }
.consent.ist-offen { display: block; }
.consent h2 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--tinte); margin-bottom: 6px; }
.consent__optionen { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 14px 0 16px; }
.consent__optionen label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tinte); }
.consent__optionen input { width: 16px; height: 16px; accent-color: var(--tinte); }
.consent__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.consent a { color: var(--tinte); }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: 15px; }
.fuss__raster { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.fuss__raster img { height: 24px; width: auto; display: block; margin-bottom: 18px; }
.fuss h2 { font-family: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--weiss); margin: 0 0 12px; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss button.textknopf { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font-size: 15px; }
.fuss button.textknopf:hover { color: var(--weiss); text-decoration: underline; }
.fuss__pflicht { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .6); max-width: 64em; }
.fuss__zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss__raster { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nichtgefunden { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Einblenden (dezent) ---------- */
.js .einblenden { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .einblenden.ist-sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .einblenden { opacity: 1; transform: none; }
  .js .bogen { clip-path: none; }
  .balken { transform: none; }
  .punkt { opacity: 1; }
  .linie { display: none; }
  .js .stueckliste td { transition: none; }
  .js .stueckliste tbody tr:not(.ist-an) td.name { color: var(--tinte); }
  .js .stueckliste tbody tr:not(.ist-an) td.pos { color: var(--rot-tief); }
}
@media print {
  .kopf, .dialog-huelle, .consent, .linie, .bogen, .entwurf-badge { display: none !important; }
}
.leistungen + .aktionen { margin-top: 32px; }
.todo + .aktionen, .leitlinien + .aktionen { margin-top: 24px; }
/* Produktseite: Einleitung und Stückliste teilen sich eine Zelle und blenden über (Desktop) */
.explosion__text { display: grid; align-self: center; min-width: 0; }
.explosion__text > * { grid-area: 1 / 1; }
.explosion__intro, .stueckliste { transition: opacity .35s, transform .35s, visibility .35s; }
.js .stueckliste { opacity: 0; visibility: hidden; transform: translateY(14px); }
.js .ist-teile .explosion__intro { opacity: 0; visibility: hidden; transform: translateY(-14px); }
.js .ist-teile .stueckliste { opacity: 1; visibility: visible; transform: none; }
.stueckliste h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 4px; }
.explosion__intro h1 { font-size: clamp(40px, 4.6vw, 72px); }
.explosion__hinweis { margin-top: 28px; }
@media (max-width: 960px) {
  .explosion__text { display: block; }
  .js .stueckliste, .js .ist-teile .explosion__intro { opacity: 1; visibility: visible; transform: none; }
  .stueckliste { margin-top: 40px; }
  .explosion__hinweis { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .explosion__pin { height: auto; }
  .explosion__klebend { position: relative; top: 0; }
  .explosion__text { display: block; }
  .js .stueckliste, .js .ist-teile .explosion__intro { opacity: 1; visibility: visible; transform: none; }
  .stueckliste { margin-top: 40px; }
}
/* Atlas: Lage auf der Zeitachse 0–12 Monate über Klassen statt Inline-Styles */
.achse span:first-child { left: 0; }
.achse--3, .pos--3 { left: 25%; }
.achse--6 { left: 50%; }
.achse--9, .pos--9 { left: 75%; }
.achse--12, .pos--12 { left: 100%; }
.punkt.links { left: 0; }
.balken--12 { width: 100%; }
.balken--9 { width: 75%; }
.punkt--gel { color: var(--tinte); }
.punkt--plus { color: var(--schiefer); }
.verzoegert-1 { transition-delay: .15s; }
.verzoegert-2 { transition-delay: .3s; }
.ergebnis p { margin: 0; }
.atlas .umschalter { margin: 0; }
.formular h3 { font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 8px 0 0; }
.h-klein { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.kontaktspalte .todo { margin: 0; }
.geteilt--formular { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .geteilt--formular { grid-template-columns: 1fr; } }
