/* ==========================================================================
   theta-3d – Stylesheet (helles Design „Showroom“)

   Gestaltungsidee: Ausstellungsraum für eine Maschine. Kühles Aluminiumgrau,
   der theta ONE als Hauptdarsteller im Licht, Coral nur für Handlungen und das
   gedruckte Teil. Maßlinien aus der technischen Zeichnung sind das wiederkehrende
   Motiv, die Monospace-Schrift ist die Stimme der Maßangaben.

   Farbe ändern: nur die Variablen unter :root anpassen.
   ========================================================================== */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Farben (Kontrast auf --alu in Klammern) */
  --alu: #f2f3f4;          /* Seite – Aluminium */
  --blech: #e4e7ea;        /* Flächen – Blech */
  --weiss: #fbfbfc;        /* erhabene Flächen – Felder */
  --graphit: #15181b;      /* Text (16:1) */
  --graphit-2: #3d434a;    /* starker Nebentext (9:1) */
  --stahl: #4f565d;        /* Nebentext (6,7:1) */
  --stahl-2: #5f666d;      /* leiser Text (5,2:1) */
  --linie: #d3d7db;        /* Haarlinien */
  --linie-2: #c3c8cd;
  --feld: #7d848b;         /* Feldrahmen (3,4:1) */
  --coral: #ff5a3c;        /* Akzentfläche: Buttons, Druckteil */
  --coral-tief: #e8472a;
  --coral-text: #a8311a;   /* Coral als Schrift (6:1) */
  --ok: #2e8b57;
  --fehler: #a8311a;
  --ring: rgba(255, 90, 60, .28);

  /* Schrift */
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Raster und Abstände (8er-System) */
  --max: 81rem;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --abschnitt: clamp(6rem, 11vw, 10.5rem);
  --kopf: 4.5rem;

  /* Radien: klein für Bedienelemente, groß für Flächen */
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;

  --schatten: 0 1px 2px rgba(21, 24, 27, .05), 0 8px 24px -12px rgba(21, 24, 27, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--alu); scroll-padding-top: calc(var(--kopf) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--alu); color: var(--graphit); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: var(--graphit); }
:focus-visible { outline: 3px solid var(--coral-text); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--graphit); color: #fff; padding: .75rem 1rem; border-radius: var(--r-s); font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: 1rem; }

/* ---------- Typografie ---------- */
.label { font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: .14em; line-height: 1.4; color: var(--coral-text); }
.h1 { font-size: clamp(2.75rem, 1.55rem + 4.9vw, 5.5rem); line-height: .97; letter-spacing: -.038em; }
.h2 { font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.625rem); line-height: 1.02; letter-spacing: -.032em; }
.h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; }
.lead { font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--stahl); }
.text { color: var(--stahl); }
.klein { font-size: .9375rem; color: var(--stahl-2); }
.zahl { font-variant-numeric: tabular-nums; }

.textlink { color: var(--coral-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s; }
.textlink:hover { color: var(--graphit); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: 0 1.6rem; border-radius: var(--r-s); border: 1.5px solid transparent; font: 600 1rem/1 var(--sans); letter-spacing: -.005em; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: var(--graphit); }
.btn-coral:hover { background: var(--graphit); color: #fff; }
.btn-linie { border-color: var(--graphit); color: var(--graphit); }
.btn-linie:hover { background: var(--graphit); color: #fff; }
.btn-akzent { border-color: var(--coral-text); color: var(--coral-text); }
.btn-akzent:hover { background: var(--coral); border-color: var(--coral); color: var(--graphit); }
.btn-dunkel { background: var(--graphit); color: #fff; }
.btn-dunkel:hover { background: #fff; color: var(--graphit); }
.btn[disabled] { opacity: .7; cursor: progress; }
.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Druckfortschritt oben ---------- */
.fortschritt { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.fortschritt i { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(242, 243, 244, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--kopf); }
.marke { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; color: var(--graphit); }
.marke svg { width: 2.5rem; height: auto; flex: none; }
.marke span { font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; color: var(--graphit-2); transition: color .15s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1.5px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover { color: var(--graphit); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--graphit); }
.nav .btn { min-height: 2.75rem; padding: 0 1.15rem; font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; }
.menue { display: none; }

@media (max-width: 56rem) {
  .menue { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem; margin-right: -.4rem; border: 0; background: transparent; color: var(--graphit); font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; cursor: pointer; border-radius: var(--r-s); }
  .menue-icon { position: relative; width: 18px; height: 12px; }
  .menue-icon::before, .menue-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
  .menue-icon::before { top: 2px; } .menue-icon::after { top: 9px; }
  .kopf.offen .menue-icon::before { top: 5.5px; transform: rotate(45deg); }
  .kopf.offen .menue-icon::after { top: 5.5px; transform: rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--rand) 1.5rem; background: var(--alu); border-bottom: 1px solid var(--linie); box-shadow: 0 24px 40px -24px rgba(21, 24, 27, .25); }
  .kopf.offen { background: var(--alu); border-bottom-color: var(--linie); }
  .kopf.offen .nav { display: flex; }
  .nav a:not(.btn) { min-height: 3.5rem; font-size: .9375rem; border-bottom: 1px solid var(--linie); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--coral-text); }
  .nav .btn { margin-top: 1.25rem; min-height: 3.25rem; font-size: .875rem; }
  /* ohne JavaScript: Menü offen als umbrechende Zeile, Knopf ausgeblendet */
  .no-js .menue { display: none; }
  .no-js .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; width: 100%; padding: 0 0 .75rem; box-shadow: none; border: 0; background: none; }
  .no-js .nav a:not(.btn) { min-height: 2.75rem; font-size: .8125rem; border-bottom: 0; }
  .no-js .nav .btn { margin-top: 0; min-height: 2.75rem; }
  .no-js .kopf-in { flex-wrap: wrap; gap: 0; }
}

/* ---------- Abschnitte ---------- */
main { display: block; }
.abschnitt { padding-top: var(--abschnitt); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; }
.split > .links { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 1.25rem; align-self: start; }
.split > .rechts { grid-column: 7 / span 6; }
@media (min-width: 56.01rem) { .split > .links { position: sticky; top: calc(var(--kopf) + 2.5rem); } }
.kopfzeile { display: flex; flex-direction: column; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 62rem) {
  .split > .links, .split > .rechts { grid-column: 1 / -1; }
}

/* ---------- Hero: Showroom ---------- */
.hero { padding-top: clamp(2rem, 4.5vw, 3.5rem); text-align: center; }
.hero .h1 { font-size: clamp(2.75rem, 1.5rem + 4.2vw, 4.5rem); }
.hero .label { margin-bottom: 1rem; }
.hero .h1 { margin-bottom: clamp(1.75rem, 3vw, 2.25rem); }
.buehne { position: relative; border-radius: var(--r-l); overflow: hidden; height: clamp(22rem, min(52vw, 100vh - 21.5rem), 42rem); height: clamp(22rem, min(52vw, 100svh - 21.5rem), 42rem); background: #e9ecef; isolation: isolate; }
.buehne .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.status { position: absolute; z-index: 2; top: clamp(.9rem, 2vw, 1.4rem); left: clamp(.9rem, 2vw, 1.4rem); display: inline-flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: 0 1rem 0 .85rem; border-radius: var(--r-s); background: rgba(251, 251, 252, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(21, 24, 27, .07), var(--schatten); font-size: .875rem; font-weight: 500; color: var(--graphit); transition: background-color .18s; }
.status:hover { background: #fff; }
.status-punkt { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .status-punkt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--coral); animation: puls 2.4s var(--ease) infinite; }
}
@keyframes puls { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 40rem) { .status { top: auto; bottom: .9rem; left: 50%; transform: translateX(-50%); white-space: nowrap; } }
.hero-text { max-width: 40rem; margin: clamp(2rem, 4vw, 3rem) auto 0; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.hero-text .aktionen { justify-content: center; }

/* Druckanimation im Hero */
.scene .layer { opacity: 1; }
.scene.live .layer { opacity: 0; transition: opacity .14s linear; }
.scene.live .layer.on { opacity: 1; }
.scene.live.leeren .layer { opacity: 0; transition: opacity .7s ease; }
.scene .gantry { transition: transform .18s linear; }
.scene.live.fertig .gantry { transition: transform 1.4s var(--ease); }
.scene .nozzle { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scene.live:not(.fertig) .head { animation: kopf .36s ease-in-out infinite alternate; }
  .scene.live:not(.fertig) .nozzle { opacity: 1; }
}
@keyframes kopf { from { transform: translateX(-30px); } to { transform: translateX(30px); } }

/* ---------- Warum: Punkte und Größenvergleich ---------- */
.vergleich { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.75rem; align-items: center; max-width: 36rem; }
.vergleich svg { width: 100%; height: auto; }
.vergleich p { font-size: .9375rem; color: var(--stahl); }
.vergleich strong { display: block; font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; font-weight: 800; color: var(--graphit); margin-bottom: .5rem; }
@media (max-width: 30rem) { .vergleich { grid-template-columns: 1fr; gap: 1rem; } .vergleich svg { max-width: 16rem; } }

.punkte { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-2); }
.punkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--linie-2); }
.punkt .text { max-width: 30rem; }
@media (max-width: 40rem) { .punkt { grid-template-columns: 1fr; } }

/* ---------- Anwendungen ---------- */
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.kachel { display: flex; flex-direction: column; gap: .5rem; }
.kachel-bild { position: relative; aspect-ratio: 1; border-radius: var(--r-l); background: var(--blech); margin-bottom: 1.25rem; overflow: hidden; }
.kachel-bild::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.kachel-bild svg { position: relative; width: 100%; height: 100%; }
@media (max-width: 62rem) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .kacheln { grid-template-columns: 1fr; gap: 2.5rem; } .kachel-bild { aspect-ratio: 1 / .92; } }

/* ---------- Probedruck ---------- */
.probe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.75rem); border-block: 1px solid var(--linie-2); }
.probe .label { grid-column: 1 / span 3; align-self: start; padding-top: .7rem; }
.probe .aussage { grid-column: 4 / span 6; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.probe .aktionen { grid-column: 10 / span 3; justify-content: flex-end; }
@media (max-width: 62rem) { .probe .label, .probe .aussage, .probe .aktionen { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Kontaktfläche ---------- */
.ruf { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--coral); color: var(--graphit); padding: clamp(2.5rem, 7vw, 6rem); display: grid; gap: 1.5rem; isolation: isolate; }
.ruf .label { color: var(--graphit); }
.ruf .h2 { max-width: 13em; }
.ruf p { max-width: 32rem; font-size: 1.125rem; color: #2a1610; }
.ruf .aktionen { margin-top: .75rem; align-items: center; gap: 1.25rem 1.75rem; }
.ruf .mail { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; min-height: 2.75rem; display: inline-flex; align-items: center; }
.ruf .mail:hover { text-decoration-thickness: 2.5px; }
.ruf-zeichen { position: absolute; z-index: -1; right: clamp(-6rem, -4vw, -2rem); bottom: clamp(-5rem, -6vw, -3rem); width: clamp(16rem, 38vw, 34rem); color: #ff7055; pointer-events: none; }
.ruf-zeichen path { fill: currentColor; }
@media (max-width: 40rem) { .ruf-zeichen { width: 13rem; right: -4.5rem; bottom: -3.5rem; } }
.ruf .btn-dunkel:focus-visible, .ruf a:focus-visible { outline-color: var(--graphit); }

/* ---------- Fußzeile ---------- */
.fuss { margin-top: var(--abschnitt); border-top: 1px solid var(--linie-2); }
.fuss-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.fuss-marke { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.fuss-marke p { color: var(--stahl); max-width: 24rem; }
.fuss-spalte { grid-column: span 2; display: flex; flex-direction: column; gap: .1rem; }
.fuss-titel { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--stahl-2); margin-bottom: .6rem; }
.fuss-spalte a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--graphit-2); transition: color .15s; width: fit-content; }
.fuss-spalte a:hover, .fuss-spalte a[aria-current="page"] { color: var(--coral-text); }
.nach-oben { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -.75rem; color: var(--stahl-2); transition: color .15s; }
.nach-oben:hover { color: var(--coral-text); }
.fuss-unten { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem 2.25rem; border-top: 1px solid var(--linie); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--stahl-2); }
@media (max-width: 62rem) {
  .fuss-marke { grid-column: 1 / -1; }
  .fuss-spalte { grid-column: span 4; }
}
@media (max-width: 34rem) { .fuss-spalte { grid-column: span 6; } .fuss-spalte:last-child { grid-column: 1 / -1; } }

/* ---------- theta ONE: Produktzeichnung ---------- */
.produkt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 4rem); border-radius: var(--r-l); background: var(--blech); text-align: left; position: relative; overflow: hidden; }
.produkt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 30% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.produkt > * { position: relative; }
.anatomy-art { width: 100%; max-width: 34rem; margin-inline: auto; height: auto; }
.merkmale { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 1.75rem; }
.merkmal { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem 1rem; }
.merkmal::before { counter-increment: m; content: counter(m); grid-row: span 2; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--graphit); color: #fff; font: 500 .8125rem/1.75rem var(--mono); text-align: center; margin-top: .1rem; }
.merkmal .text { font-size: 1rem; }
@media (max-width: 56rem) { .produkt { grid-template-columns: 1fr; } }

/* ---------- Formular ---------- */
.formular { background: var(--blech); border-radius: var(--r-l); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.5rem; }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { padding: 0; margin-bottom: .75rem; font-weight: 600; font-size: .9375rem; float: left; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.05rem; border-radius: var(--r-s); border: 1px solid var(--linie-2); background: var(--weiss); font-size: .9375rem; color: var(--graphit-2); transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover span { border-color: var(--graphit); color: var(--graphit); }
.chip input:checked + span { background: var(--graphit); border-color: var(--graphit); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--coral-text); outline-offset: 2px; }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; align-items: start; }
.feld { display: grid; gap: .45rem; align-content: start; }
.feld label, .feld .beschriftung { font-weight: 600; font-size: .9375rem; }
.feld .optional { font-weight: 400; color: var(--stahl-2); font-size: .875rem; margin-left: .35rem; }
.eingabe { width: 100%; font: inherit; font-size: 1rem; color: var(--graphit); background: var(--weiss); border: 1px solid var(--feld); border-radius: var(--r-m); padding: .9rem 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.eingabe::placeholder { color: #8b9298; opacity: 1; }
.eingabe:hover { border-color: var(--graphit-2); }
.eingabe:focus { outline: none; border-color: var(--coral-text); box-shadow: 0 0 0 4px var(--ring); }
textarea.eingabe { min-height: 10rem; resize: vertical; line-height: 1.55; }
.feld.fehlerhaft .eingabe { border-color: var(--fehler); }
.hinweis { font-size: .875rem; color: var(--fehler); }
.hinweis:empty { display: none; }
.zustimmung { position: relative; display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); gap: .85rem; align-items: start; font-size: .9375rem; color: var(--stahl); cursor: pointer; }
.zustimmung input { position: absolute; opacity: 0; width: 1.375rem; height: 1.375rem; margin: 0; cursor: pointer; }
.zustimmung .box { width: 1.375rem; height: 1.375rem; margin-top: .1rem; border-radius: 5px; border: 1.5px solid var(--feld); background: var(--weiss); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s; }
.zustimmung .box::after { content: ""; width: .38rem; height: .68rem; border: solid #fff; border-width: 0 2.25px 2.25px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: opacity .15s; }
.zustimmung input:checked + .box { background: var(--graphit); border-color: var(--graphit); }
.zustimmung input:checked + .box::after { opacity: 1; }
.zustimmung input:focus-visible + .box { outline: 3px solid var(--coral-text); outline-offset: 2px; }
.zustimmung.fehlerhaft .box { border-color: var(--fehler); }
.zustimmung a { color: var(--coral-text); text-decoration: underline; text-underline-offset: .2em; }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formular-fuss .klein { max-width: 18rem; }
.senden { min-width: 13rem; }
.meldung { padding: 1rem 1.15rem; border-radius: var(--r-m); background: #f7e3de; color: #7a2412; font-weight: 500; }
.meldung a { text-decoration: underline; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gesendet { background: var(--blech); border-radius: var(--r-l); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: .85rem; justify-items: start; outline: none; }
.gesendet svg { width: 3rem; height: 3rem; color: var(--ok); margin-bottom: .5rem; }
@media (max-width: 40rem) { .reihe { grid-template-columns: 1fr; } .senden { width: 100%; } }

/* ---------- Vorbestellung ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.schritt { position: relative; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2.75rem; }
.schritt:last-child { padding-bottom: 0; }
.schritt::before { content: ""; position: absolute; left: .6875rem; top: 1.1rem; bottom: -.9rem; width: 2px; background: var(--linie-2); }
.schritt:last-child::before { display: none; }
.schritt.erledigt::before { background: var(--coral); }
.punktmarke { position: relative; z-index: 1; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%; border: 2px solid var(--feld); background: var(--alu); display: flex; align-items: center; justify-content: center; }
.erledigt .punktmarke { background: var(--coral); border-color: var(--coral); }
.erledigt .punktmarke svg { width: .8rem; height: .8rem; }
.aktuell .punktmarke { border-color: var(--coral); }
.aktuell .punktmarke::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .aktuell .punktmarke::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--coral); animation: puls 2.4s var(--ease) infinite; }
}
.schritt .zustand { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--stahl-2); margin-bottom: .35rem; }
.erledigt .zustand, .aktuell .zustand { color: var(--coral-text); }
.schritt .h3 { margin-bottom: .35rem; }
.schritt:not(.erledigt):not(.aktuell) .h3 { color: var(--graphit-2); }
.schritt .text { max-width: 34rem; }
.stand { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--stahl-2); }
.insta-hinweis { margin-top: 2.5rem; display: block; padding: 1rem 1.25rem; border-radius: var(--r-m); background: var(--blech); color: var(--stahl); width: fit-content; max-width: 100%; }
.insta-hinweis svg { width: 1.375rem; height: 1.375rem; flex: none; color: var(--graphit); }

.ablauf { list-style: none; margin: 0 0 2.5rem; padding: 0; counter-reset: a; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ablauf li { counter-increment: a; display: flex; flex-direction: column; gap: .6rem; padding-top: 1.25rem; border-top: 2px solid var(--graphit); }
.ablauf li::before { content: counter(a); font-family: var(--mono); font-size: .8125rem; color: var(--coral-text); letter-spacing: .1em; }
@media (max-width: 48rem) { .ablauf { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.recht { padding-top: clamp(3rem, 7vw, 5.5rem); }
.recht .wrap { max-width: calc(46rem + 2 * var(--rand)); }
.recht h1 { font-size: clamp(2.375rem, 1.8rem + 2.5vw, 3.5rem); line-height: 1.02; letter-spacing: -.032em; margin-bottom: 1rem; }
.recht h2 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 2.75rem 0 .75rem; }
.recht h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.recht p, .recht ul, .recht ol { color: var(--graphit-2); }
.recht p { margin: 0 0 1em; }
.recht ul, .recht ol { padding-left: 1.3em; margin: 0 0 1em; }
.recht li { margin-bottom: .5em; padding-left: .2em; }
.recht li::marker { color: var(--stahl-2); }
.recht a { color: var(--coral-text); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.recht strong { color: var(--graphit); }
.recht .stand { display: block; margin-bottom: 2.5rem; }
.recht { overflow-wrap: break-word; hyphens: auto; }

/* ---------- 404 ---------- */
.nichts { padding-top: clamp(3rem, 8vw, 6rem); text-align: center; }
.nichts .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.nichts svg { width: min(15rem, 60vw); height: auto; margin-bottom: .5rem; }
.nichts .text { max-width: 30rem; }

/* ---------- Druckansicht (z. B. AGB, Widerrufsbelehrung) ---------- */
@media print {
  .kopf, .fortschritt, .fuss, .skip, .menue { display: none !important; }
  body, html { background: #fff; color: #000; font-size: 11pt; }
  .recht { padding-top: 0; }
  .recht p, .recht li { color: #000; }
  .recht a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Niedrige Laptop-Bildschirme: Überschrift kompakter, damit der Drucker ganz sichtbar bleibt */
@media (max-height: 820px) and (min-width: 56rem) {
  .hero { padding-top: 1.75rem; }
  .hero .h1 { font-size: clamp(2.75rem, 1rem + 3.4vw, 3.75rem); margin-bottom: 1.5rem; }
  .buehne { height: clamp(22rem, min(52vw, 100vh - 17rem), 42rem); height: clamp(22rem, min(52vw, 100svh - 17rem), 42rem); }
}

/* Schmale Bildschirme: deutsche Silbentrennung für Fließtext */
@media (max-width: 40rem) { .text, .lead, .recht p, .recht li { -webkit-hyphens: auto; hyphens: auto; } }
