:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --flaeche: #fbfaf7;
  --tinte: #1b1c1f;
  --leise: #5d5f65;
  --linie: #dcd8cf;
  --orange: #e8500f;
  --orange-text: #b93c06;
  --dunkel: #1f2023;
  --fehler: #b3261e;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--tinte);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 650; letter-spacing: -0.028em; line-height: 1.06; text-wrap: balance; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--tinte); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.sprung:focus { top: 12px; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.015em; text-decoration: none; font-size: 16px; }
.marke svg { width: 24px; height: 24px; }
.kopf nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.kopf nav a { text-decoration: none; color: var(--leise); padding: 8px 2px; }
.kopf nav a:hover { color: var(--tinte); }

/* Hero */
.hero { display: grid; gap: 8px; padding-block: 14px 44px; }
.auge { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
h1 { font-size: clamp(2.2rem, 8.6vw, 4.3rem); }
.unter { margin-top: 16px; font-size: clamp(1.06rem, 2.2vw, 1.3rem); line-height: 1.42; color: var(--leise); max-width: 30ch; text-wrap: balance; }

.buehne { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.04; margin-inline: auto; }
.buehne > svg, .buehne > canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s ease; }
.buehne > canvas { opacity: 0; touch-action: pan-y; }
.buehne.hat-3d > canvas { opacity: 1; }
.buehne.hat-3d > svg { opacity: 0; }
#svgrad { transform-origin: 200px 196px; transform-box: view-box; }

.radzeile { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 92px; }
.radhinweis { font-size: 15px; color: var(--leise); text-align: center; opacity: 0; transform: translateY(4px); transition: opacity 0.5s ease, transform 0.5s ease; min-height: 1.5em; }
.radhinweis.ist-da { opacity: 1; transform: none; }
.radhinweis a { color: var(--tinte); font-weight: 600; white-space: nowrap; }

.aktion { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
.aktion small { color: var(--leise); font-size: 14.5px; }

.knopf {
  appearance: none; border: 0; cursor: pointer; font: 600 16.5px/1.2 var(--font); letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 54px; padding: 15px 26px; border-radius: 999px; text-decoration: none;
  background: var(--tinte); color: #fff; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 24px -12px rgba(20, 16, 10, 0.55);
}
.knopf:hover { background: #000; transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }
.knopf[disabled] { opacity: 0.6; cursor: default; transform: none; }
.knopf .pfeil { transition: transform 0.2s ease; }
.knopf:hover .pfeil { transform: translateX(3px); }
.knopf.leise {
  background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte);
  min-height: 46px; padding: 11px 22px; font-size: 15.5px;
}
.knopf.leise:hover { background: var(--tinte); color: #fff; }
.knopf.leise .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.knopf.hell { background: #f4f2ed; color: var(--tinte); box-shadow: none; }
.knopf.hell:hover { background: #fff; }

/* Nutzen */
.nutzen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.nutzen li { padding: 22px 0; border-bottom: 1px solid var(--linie); }
.nutzen h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.015em; }
.nutzen p { margin-top: 6px; color: var(--leise); font-size: 16px; }

.haltung { padding-block: 64px; }
.haltung h2 { font-size: clamp(1.8rem, 6vw, 3rem); max-width: 18ch; }
.haltung h2 span { color: var(--leise); display: block; }
.haltung p { margin-top: 14px; color: var(--leise); max-width: 52ch; font-size: 1.02rem; }
.haltung p.kern { margin-top: 20px; color: var(--tinte); font-size: clamp(1.15rem, 3.4vw, 1.34rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.32; max-width: 30ch; text-wrap: balance; }
.haltung { display: grid; gap: 28px; }
.haltung > * { min-width: 0; }

/* Skizze „Segment tauschen“ — Linien-SVG, Bewegung nur per CSS */
.tausch { margin: 0; width: 100%; max-width: 520px; justify-self: center; --t-dauer: 6.4s; }
.tausch svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.tausch figcaption { margin-top: 10px; font-size: 13px; letter-spacing: 0.02em; color: var(--leise); text-align: center; }
.tausch path, .tausch circle { vector-effect: non-scaling-stroke; }
.t-traeger { stroke: var(--tinte); stroke-width: 1; opacity: 0.55; }
.t-fest { stroke: var(--tinte); stroke-width: 1.15; }
.t-fest path { fill: var(--flaeche); }
.t-punkt { fill: var(--tinte); stroke: none; opacity: 0.6; }
.t-nabe { stroke: var(--tinte); stroke-width: 1.3; }
.t-nabe circle { fill: var(--flaeche); }
.t-nabe .t-flansch { fill: none; stroke-width: 1; opacity: 0.55; }
.t-achse { stroke: var(--tinte); stroke-width: 0.8; stroke-dasharray: 12 4 2 4; opacity: 0.4; }
.t-mass { stroke: var(--leise); stroke-width: 0.8; }
.t-mass text { fill: var(--leise); stroke: none; font-size: 12.5px; letter-spacing: 0.02em; }
.t-slot { stroke: var(--tinte); stroke-width: 1; stroke-dasharray: 5 4; fill: color-mix(in srgb, var(--tinte) 5%, transparent); }
.t-einsatz { stroke: var(--tinte); stroke-width: 0.9; opacity: 0.7; }
.t-pfeil { stroke-width: 1.8; opacity: 0.22; }
.t-pfeil-aus { stroke: var(--tinte); animation: t-pfeil-aus var(--t-dauer) linear infinite; }
.t-pfeil-ein { stroke: var(--orange); animation: t-pfeil-ein var(--t-dauer) linear infinite; }
.t-schild { transform-box: view-box; transform-origin: 0 0; will-change: transform, opacity; }
.t-platte { stroke-width: 1.5; }
.t-schild text { stroke: none; font-size: 17px; font-weight: 700; letter-spacing: 0.1em; }
.t-schraube { stroke-width: 1.2; }
.t-alt .t-platte { fill: var(--flaeche); stroke: var(--tinte); }
.t-alt text { fill: var(--tinte); }
.t-alt .t-schraube { stroke: var(--tinte); fill: var(--flaeche); animation: t-schraube-alt var(--t-dauer) linear infinite; }
.t-neu .t-platte { fill: var(--orange); stroke: var(--orange-text); }
.t-neu text { fill: #fff; }
.t-neu .t-schraube { stroke: #fff; fill: var(--orange); animation: t-schraube-neu var(--t-dauer) linear infinite; }
.t-alt { animation: t-alt var(--t-dauer) linear infinite; }
.t-neu { animation: t-neu var(--t-dauer) linear infinite; }
.t-klick { stroke: var(--orange); stroke-width: 1.8; opacity: 0; animation: t-klick var(--t-dauer) linear infinite; }

@keyframes t-alt {
  0%, 7% { transform: rotate(0deg) translateX(0); opacity: 1; animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1); }
  27% { transform: rotate(0deg) translateX(156px); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1); }
  39% { transform: rotate(14deg) translateX(156px); opacity: 0; }
  39.1%, 93% { transform: rotate(0deg) translateX(0); opacity: 0; animation-timing-function: ease-out; }
  100% { transform: rotate(0deg) translateX(0); opacity: 1; }
}
@keyframes t-neu {
  0%, 30% { transform: rotate(-14deg) translateX(156px); opacity: 0; animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1); }
  43% { transform: rotate(0deg) translateX(156px); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.25, 1); }
  63% { transform: rotate(0deg) translateX(-2.5px); opacity: 1; animation-timing-function: ease-out; }
  66.5%, 93% { transform: rotate(0deg) translateX(0); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: rotate(0deg) translateX(0); opacity: 0; }
}
@keyframes t-schraube-alt { 0%, 1% { opacity: 1; } 6%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes t-schraube-neu { 0%, 66% { opacity: 0; } 71%, 100% { opacity: 1; } }
@keyframes t-klick { 0%, 62.5% { opacity: 0; transform: translateX(-4px); } 64.5% { opacity: 1; transform: translateX(0); } 72%, 100% { opacity: 0; transform: translateX(5px); } }
@keyframes t-pfeil-aus { 0%, 5% { opacity: 0.22; } 9%, 26% { opacity: 1; } 33%, 100% { opacity: 0.22; } }
@keyframes t-pfeil-ein { 0%, 38% { opacity: 0.22; } 43%, 62% { opacity: 1; } 69%, 100% { opacity: 0.22; } }

/* Formular */
.anfrage { padding-block: 8px 72px; scroll-margin-top: 12px; container: anfrage / inline-size; }
.wahl label { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 26px; padding: 28px 20px; box-shadow: 0 30px 60px -44px rgba(30, 22, 10, 0.4); }
.karte h2 { font-size: clamp(1.6rem, 5.4vw, 2.3rem); max-width: 20ch; }
.karte .zeit { margin-top: 10px; color: var(--leise); }
form { margin-top: 26px; display: grid; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, label.name { display: block; padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--leise); }
.wahl { display: grid; gap: 10px; }
.wahl label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--linie); border-radius: 14px;
  background: #fff; cursor: pointer; font-size: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wahl input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1.5px solid #9a968c; background: #fff; }
.wahl input:checked { border: 6px solid var(--tinte); }
.wahl label:has(input:checked) { border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.wahl label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.wahl input:focus-visible { outline: none; }
.raster { display: grid; gap: 18px; }
.feld input, .feld textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--tinte); background: #fff;
  border: 1.5px solid var(--linie); border-radius: 14px; padding: 14px 15px; min-height: 52px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; appearance: none; -webkit-appearance: none;
}
.feld textarea { min-height: 112px; resize: vertical; }
.feld input:hover, .feld textarea:hover { border-color: #bdb8ac; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.hat-fehler input, .hat-fehler textarea { border-color: var(--fehler); }
.fehler { display: block; min-height: 0; margin-top: 6px; font-size: 14px; color: var(--fehler); }
.fehler:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.senden { display: grid; gap: 14px; margin-top: 4px; }
.senden .knopf { width: 100%; position: relative; overflow: hidden; }
#sendebalken { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left center; }
.sendet #sendentext { opacity: 0.95; }
.klein { font-size: 14px; color: var(--leise); line-height: 1.5; }
.sammel { color: var(--fehler); font-size: 14.5px; }
.sammel:empty { display: none; }
.meldung { margin-top: 24px; padding: 22px 20px; border-radius: 18px; background: #fff; border: 1.5px solid var(--linie); }
.meldung:focus { outline: none; }
.meldung h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.meldung p { margin-top: 8px; color: var(--leise); }
.meldung .reihe { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.danke { border-color: var(--tinte); padding: 34px 24px; }
.danke .haken { width: 44px; height: 44px; margin-bottom: 16px; }
.danke h3 { font-size: 1.7rem; }

/* 3Dreamz */
.entwicklung { background: var(--dunkel); color: #f4f2ed; }
.entwicklung .wrap { padding-block: 60px; display: grid; gap: 22px; justify-items: start; }
.entwicklung .auge { color: #ff9a66; margin: 0; }
.entwicklung h2 { font-size: clamp(1.6rem, 5.4vw, 2.5rem); max-width: 22ch; }
.entwicklung p { color: #b9b7b1; max-width: 46ch; }
.entwicklung .reihe { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.entwicklung .text-link { color: #f4f2ed; font-size: 15.5px; }

/* Fuß */
.fuss { padding-block: 30px 44px; font-size: 14px; color: var(--leise); display: grid; gap: 12px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss a { text-decoration: none; padding-block: 6px; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; }

/* Rechtstexte */
.prosa { max-width: 720px; padding-block: 28px 72px; }
.prosa h1 { font-size: clamp(2rem, 7vw, 3rem); }
.prosa .vorspann { margin-top: 12px; color: var(--leise); }
.prosa h2 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; margin-top: 38px; }
.prosa p, .prosa ul, .prosa address { margin-top: 12px; font-style: normal; }
.prosa ul { padding-left: 1.2em; }
.prosa li + li { margin-top: 6px; }
.prosa a { overflow-wrap: anywhere; }

@media (min-width: 620px) {
  .raster.zwei { grid-template-columns: 1fr 1fr; }
  /* Fix 19.11.: 1fr 1fr schrumpfte nicht unter die Mindestbreite von „Produktentwicklung“ → Überlauf in schmalen Spalten */
  .wahl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .karte { padding: 44px; }
  .senden .knopf { width: auto; justify-self: start; min-width: min(280px, 100%); }
}
@media (min-width: 940px) {
  .wrap { padding-inline: 36px; }
  .kopf { padding-block: 26px; }
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); grid-template-areas: "text buehne" "text rad"; column-gap: 40px; align-items: center; padding-block: 28px 84px; }
  .hero .text { grid-area: text; align-self: center; }
  .hero .buehne { grid-area: buehne; max-width: 580px; }
  .hero .radzeile { grid-area: rad; align-self: start; }
  .nutzen { grid-template-columns: repeat(3, 1fr); gap: 36px; border-top: 0; }
  .nutzen li { border-bottom: 0; border-top: 1px solid var(--tinte); padding: 20px 0 0; }
  .haltung { padding-block: 110px 100px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
  .tausch { justify-self: end; }
  .entwicklung .wrap { padding-block: 88px; }
  .fuss { grid-template-columns: 1fr auto; align-items: center; }
}
/* Fix 19.11.: Karte nach ihrer EIGENEN Breite zweispaltig (Container statt Fenster) — in schmalen Einbettungen
   (z. B. Artefakt-Vorschau) bleibt sie einspaltig. Viewport 940 px ≙ Containerbreite ~868 px. */
@container anfrage (min-width: 860px) {
  .anfrage .karte { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding: 56px; }
  .anfrage form, .anfrage .meldung { margin-top: 0; }
  .anfrage .rechts > .meldung + .meldung, .anfrage .rechts > form + .meldung { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* Skizze: Standbild Vorher/Nachher — altes Schild herausgezogen, neues auf dem Weg in den Slot */
  .tausch .t-alt, .tausch .t-neu, .tausch .t-pfeil, .tausch .t-klick, .tausch .t-schraube { animation: none !important; }
  .tausch .t-alt { transform: rotate(15deg) translateX(198px); opacity: 1; }
  .tausch .t-neu { transform: translateX(70px); opacity: 1; }
  .tausch .t-pfeil { opacity: 1; }
  .tausch .t-pfeil-ein { transform: translate(0, 0); }
  .tausch .t-neu .t-schraube { opacity: 0; }
  .tausch .t-klick { opacity: 0; }
}
