/* =========================================================================
   GR-Serie — Gestaltung
   Industrial Premium: Anthrazitflächen, weiße Typografie, Haarlinien statt
   Schatten. Die Akzentfarbe ist über die ganze Seite eine einzige (Türkis
   aus den Produktaufnahmen); die Modelle unterscheiden sich über ihre
   Bilder und Daten, nicht über drei konkurrierende Farbwelten.
   ========================================================================= */

:root {
  --schwarz:      #0E1113;
  --anthrazit:    #16191C;
  --anthrazit-2:  #1E2327;
  --anthrazit-3:  #2A3036;
  --grau-600:     #79838B;
  --grau-500:     #98A2A9;
  --grau-300:     #C4CBD0;
  --grau-200:     #DDE2E5;
  --grau-100:     #F1F3F5;
  --weiss:        #FFFFFF;
  /* Akzent folgt der Marke: Neongrün auf Schwarz, wie die Lackierung der
     Geräte. Vorher türkis — das passte zur alten Bildwelt, nicht zu dieser. */
  --akzent:       #7ED321;
  --akzent-tief:  #4E8A14;
  --warn:         #E8A33D;

  --linie:        1px solid var(--grau-200);
  --linie-dunkel: 1px solid rgba(255,255,255,.14);

  --rand:         clamp(20px, 4.2vw, 64px);
  --breite:       1520px;
  --kopf:         64px;

  --schrift:      'Barlow', system-ui, -apple-system, sans-serif;
  --schrift-eng:  'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --schrift-tech: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

[id] { scroll-margin-top: calc(var(--kopf) + 14px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--anthrazit);
  font-family: var(--schrift);
  font-size: 17px; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--akzent); color: var(--schwarz); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* --- Bausteine ----------------------------------------------------------- */

.raster { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }

.tech {
  font-family: var(--schrift-tech); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grau-600);
}

h1, h2, h3 {
  font-family: var(--schrift-eng); font-weight: 700; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .97; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(38px, 6vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 58px); }
h3 { font-size: clamp(19px, 1.7vw, 25px); letter-spacing: .01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.blei { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; }
.text-grau { color: var(--grau-600); }
.dunkel .text-grau { color: var(--grau-500); }

.marke { display: inline-block; width: 22px; height: 3px; background: var(--akzent); vertical-align: middle; }

/* Kapitelkopf ------------------------------------------------------------- */

.kapitel { padding-block: clamp(64px, 7vw, 116px); }
.kapitel--grau { background: var(--grau-100); }
.kapitel--dunkel { background: var(--anthrazit); color: var(--weiss); }

.kapitel__kopf {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 18px;
  padding-top: 20px; border-top: 2px solid var(--anthrazit); margin-bottom: clamp(32px, 4vw, 56px);
}
.kapitel--dunkel .kapitel__kopf { border-top-color: rgba(255,255,255,.5); }
@media (min-width: 900px) {
  .kapitel__kopf { grid-template-columns: 190px minmax(0,1fr) minmax(0,28ch); gap: 38px; align-items: start; }
}
.kapitel__nr { display: flex; align-items: baseline; gap: 10px; }
.kapitel__nr::before { content: ''; width: 22px; height: 3px; background: var(--akzent); transform: translateY(-3px); }

/* Knöpfe ------------------------------------------------------------------ */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px 13px;
  font-family: var(--schrift-eng); font-size: 17px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: background .18s, color .18s, border-color .18s;
}
.knopf--voll  { background: var(--anthrazit); color: #fff; }
.knopf--voll:hover  { background: var(--akzent-tief); color: #fff; }
.knopf--linie { border-color: var(--anthrazit); color: var(--anthrazit); }
.knopf--linie:hover { background: var(--anthrazit); color: #fff; }
.knopf--hell  { background: #fff; color: var(--anthrazit); }
.knopf--hell:hover  { background: var(--akzent); color: var(--schwarz); }
.knopf--geist { border-color: rgba(255,255,255,.5); color: #fff; }
.knopf--geist:hover { border-color: #fff; background: #fff; color: var(--anthrazit); }
.knopf[disabled] { opacity: .4; cursor: not-allowed; }
.knopf__pfeil { font-family: var(--schrift); font-size: 15px; transform: translateY(-1px); }

/* =======================================================================
   Kopfzeile
   ======================================================================= */

.kopf {
  position: sticky; top: 0; z-index: 60; height: var(--kopf);
  display: flex; align-items: center;
  background: var(--anthrazit); color: #fff; border-bottom: var(--linie-dunkel);
  transition: transform .28s ease;
}
/* Auf dem Telefon frisst eine dauerhaft stehende Leiste zu viel Bild. Sie
   fährt beim Herunterscrollen weg und beim Hochscrollen sofort zurück. */
.kopf--weg { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .kopf { transition: none; } }
.kopf__innen { max-width: var(--breite); width: 100%; margin: 0 auto; padding-inline: var(--rand); display: flex; align-items: center; gap: 28px; }
.kopf__marke { font-family: var(--schrift-eng); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.kopf__marke span { color: var(--akzent); }
/* Hamburger-Schalter — nur unter 1060px sichtbar */
.kopf__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; margin-left: auto; padding: 9px;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.kopf__burger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.kopf--offen .kopf__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kopf--offen .kopf__burger span:nth-child(2) { opacity: 0; }
.kopf--offen .kopf__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1060px) { .kopf__burger { display: none; } }

.kopf__nav { display: none; margin-left: auto; gap: 24px; }
.kopf__nav a {
  font-family: var(--schrift-eng); font-size: 15px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.kopf__nav a:hover, .kopf__nav a[aria-current] { border-bottom-color: var(--akzent); }
.kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* Ab 1060px: Inline-Navigation nebeneinander */
@media (min-width: 1060px) {
  .kopf__nav { display: flex; }
  .kopf__nav + .kopf__rechts { margin-left: 0; }
}

/* Unter 1060px: Navigation als aufklappbares Panel unter der Leiste.
   Der CTA-Knopf (kopf__rechts) weicht dem Burger; die Modell-/Seitenlinks
   liegen im Panel, sind also weiterhin erreichbar. */
@media (max-width: 1059px) {
  .kopf__rechts { display: none; }
  .kopf__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--anthrazit); border-bottom: var(--linie-dunkel);
    padding: 6px var(--rand) 14px;
    max-height: calc(100vh - var(--kopf)); overflow-y: auto;
  }
  .kopf--offen .kopf__nav { display: flex; }
  .kopf__nav a {
    font-size: 17px; padding: 15px 2px; white-space: normal;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .kopf__nav a:last-child { border-bottom: 0; }
  .kopf__nav a:hover, .kopf__nav a[aria-current] { border-bottom-color: rgba(255,255,255,.09); color: var(--akzent); }
}
.kopf__knopf { padding: 9px 16px 8px; font-size: 15px; }

/* =======================================================================
   Hero der Übersicht
   ======================================================================= */

.start {
  background: var(--schwarz); color: #fff;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 72px);
}
/* Zweispaltig ab Tablet: die Schlagzeile steht links, Einordnung und
   Einstiege rechts. Einspaltig lief die Zeile auf vier Zeilen aus und die
   halbe Flaeche blieb leer. */
.start__zeile { display: grid; gap: clamp(24px, 3vw, 56px); align-items: end; }
@media (min-width: 900px) { .start__zeile { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.start__kopf p.tech { margin-bottom: 18px; }
.start h1 { margin: 0; max-width: 13ch; }
.start__unter { color: var(--grau-300); max-width: 46ch; font-size: clamp(17px,1.3vw,20px); }
.start__knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Modellkarten der Übersicht ---------------------------------------------- */

.modelle { display: grid; gap: 2px; margin-top: clamp(40px, 5vw, 72px); background: rgba(255,255,255,.12); }
@media (min-width: 900px) { .modelle { grid-template-columns: repeat(3, 1fr); } }

.modell {
  background: var(--anthrazit); color: #fff; display: flex; flex-direction: column;
  text-decoration: none; transition: background .2s;
}
.modell:hover { background: var(--anthrazit-2); }
/* Freisteller: ganz zeigen statt formatfüllend beschneiden, auf einer
   ruhigen Studiofläche wie in der Konfigurator-Bühne. */
.modell__bild {
  aspect-ratio: 4 / 3; overflow: hidden; padding: 14px;
  background: radial-gradient(ellipse 70% 55% at 50% 58%, #23282D 0%, #16191C 62%, #0E1113 100%);
}
.modell__bild picture { display: block; width: 100%; height: 100%; }
.modell__bild img { width: 100%; height: 100%; object-fit: contain; }
.modell__text { padding: 26px clamp(20px,2vw,30px) 30px; display: flex; flex-direction: column; flex: 1; }
.modell__rolle { color: var(--akzent); }
.modell h3 { margin: 10px 0 12px; font-size: clamp(24px,2.2vw,32px); }
.modell__zeile { color: var(--grau-500); font-size: 15.5px; margin-bottom: 20px; }
.modell__daten { list-style: none; margin: 0 0 24px; padding: 0; font-family: var(--schrift-tech); font-size: 12px; letter-spacing: .04em; }
.modell__daten li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: var(--linie-dunkel); color: var(--grau-300); }
.modell__daten li b { color: #fff; font-weight: 500; }
.modell__daten li b .e { opacity: .7; margin-left: 3px; }
.modell__preis { margin-top: auto; padding-top: 18px; border-top: var(--linie-dunkel); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.modell__preis b { font-family: var(--schrift-eng); font-size: 27px; font-weight: 700; letter-spacing: .01em; }
.modell__mehr { color: var(--akzent); font-family: var(--schrift-eng); font-size: 15px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Vergleichstabelle -------------------------------------------------------- */

.vergleich { width: 100%; border-collapse: collapse; font-size: 16px; }
.vergleich th, .vergleich td { text-align: left; padding: 14px 16px 13px; border-top: var(--linie); vertical-align: baseline; }
.vergleich thead th { border-top: none; border-bottom: 2px solid var(--anthrazit); font-family: var(--schrift-eng); font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.vergleich tbody th { color: var(--grau-600); font-weight: 400; }
.vergleich td { font-weight: 500; }
.vergleich__hinweis { color: var(--grau-600); font-size: 15px; margin-top: 16px; }
.vergleich-huelle { overflow-x: auto; }

/* =======================================================================
   Modellseite
   ======================================================================= */

.mkopf { background: var(--schwarz); color: #fff; padding-block: clamp(40px,5vw,72px) 0; }
.mkopf__zeile { display: grid; gap: 26px; align-items: end; }
@media (min-width: 900px) { .mkopf__zeile { grid-template-columns: minmax(0,1fr) auto; } }
.mkopf__rolle { color: var(--akzent); }
.mkopf h1 { margin: 12px 0 16px; }
.mkopf__unter { color: var(--grau-300); max-width: 56ch; }
.mkopf__preis { text-align: left; }
@media (min-width: 900px) { .mkopf__preis { text-align: right; } }
.mkopf__preis b { display: block; font-family: var(--schrift-eng); font-size: clamp(32px,3.4vw,46px); font-weight: 700; }
.mkopf__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (min-width: 900px) { .mkopf__knoepfe { justify-content: flex-end; } }

.eckdaten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); margin-top: clamp(34px,4vw,56px); }
@media (min-width: 760px) { .eckdaten { grid-template-columns: repeat(4, 1fr); } }
.eckdaten div { background: var(--schwarz); padding: 22px 4px 26px; }
.eckdaten b { font-family: var(--schrift-eng); font-size: clamp(30px,3vw,42px); font-weight: 700; letter-spacing: -.01em; }
/* .eckdaten span steht auf display:block fuer die Beschriftung darunter —
   die Einheit gehoert aber in dieselbe Zeile wie die Zahl. */
.eckdaten .einheit { display: inline; font-size: .5em; margin-left: 3px; letter-spacing: 0; }
.eckdaten span { display: block; color: var(--grau-500); font-family: var(--schrift-tech); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* Bildband ---------------------------------------------------------------- */

/* Bildband der Modellseite: Geländeaufnahmen füllen die Breite. `cover` ist
   hier richtig — die Maschine steht auf allen drei Aufnahmen mittig, es wird
   nur Umgebung beschnitten, nie das Gerät. */
.buehne { background: var(--schwarz); }
.buehne img { width: 100%; height: clamp(320px, 60vh, 680px); object-fit: cover; object-position: 50% 50%; }

/* Galerie ----------------------------------------------------------------- */

.galerie { display: grid; gap: clamp(14px, 1.6vw, 26px); }
@media (min-width: 720px)  { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie figure { margin: 0; background: var(--grau-100); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--grau-100); }
.galerie figcaption { padding: 12px 16px 14px; border-top: var(--linie); }
.galerie__gross { grid-column: 1 / -1; }
.galerie__gross img { aspect-ratio: auto; max-height: 70vh; }

/* Datenblatt --------------------------------------------------------------- */

.datenblatt { display: grid; gap: clamp(28px, 3.4vw, 56px); align-items: start; }
@media (min-width: 900px) { .datenblatt { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); } }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 0; border-top: var(--linie); vertical-align: baseline; }
.tabelle tbody th { color: var(--grau-600); font-weight: 400; padding-right: 20px; }
.tabelle td { font-weight: 500; text-align: right; }
.tabelle tr.gruppe th {
  border-top: 2px solid var(--anthrazit); padding-top: 26px; color: var(--anthrazit);
  font-family: var(--schrift-tech); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 11px 0 11px 22px; border-top: var(--linie); position: relative; }
.liste li:last-child { border-bottom: var(--linie); }
.liste li::before { content: ''; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; background: var(--akzent); }
.kasten { border: var(--linie); padding: clamp(20px,2.4vw,30px); }
.kasten h3 { margin-bottom: 14px; }
.kasten + .kasten { margin-top: 20px; }

/* =======================================================================
   Konfigurator
   ======================================================================= */

.konf { display: grid; gap: clamp(26px, 3vw, 48px); align-items: start; }
@media (min-width: 1000px) { .konf { grid-template-columns: minmax(0,1fr) 400px; } }

.schritt { border-top: 2px solid var(--anthrazit); padding-top: 20px; margin-bottom: clamp(32px,3.6vw,52px); }
.schritt__kopf { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.schritt__nr { font-family: var(--schrift-tech); font-size: 11px; letter-spacing: .1em; color: var(--grau-600); }
.schritt h2 { font-size: clamp(24px,2.4vw,34px); }
.schritt__hilfe { color: var(--grau-600); font-size: 15.5px; margin-bottom: 20px; }

/* Auswahlkacheln */
.wahl { display: grid; gap: 12px; }
@media (min-width: 720px) { .wahl--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) { .wahl--2 { grid-template-columns: repeat(2, 1fr); } }

.kachel { position: relative; display: block; cursor: pointer; }
.kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kachel__flaeche {
  border: 1px solid var(--grau-200); background: var(--weiss); height: 100%;
  display: flex; flex-direction: column; transition: border-color .16s, background .16s;
}
.kachel:hover .kachel__flaeche { border-color: var(--grau-500); }
.kachel input:checked + .kachel__flaeche { border-color: var(--anthrazit); box-shadow: inset 0 0 0 1px var(--anthrazit); }
.kachel input:focus-visible + .kachel__flaeche { outline: 2px solid var(--akzent); outline-offset: 2px; }
/* min-width:0 und ein blockender <picture>-Wrapper: ohne beides sprengt ein
   Bild ohne Breitenangabe die Kachel und damit die Seitenbreite. */
.kachel__bild { background: var(--grau-100); aspect-ratio: 4/3; min-width: 0; overflow: hidden; }
.kachel__bild picture { display: block; width: 100%; height: 100%; }
.kachel__bild img { width: 100%; height: 100%; object-fit: contain; }
.kachel__text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kachel__name { font-family: var(--schrift-eng); font-size: 21px; font-weight: 700; text-transform: uppercase; }
.kachel__zeile { color: var(--grau-600); font-size: 14.5px; }
.kachel__preis { margin-top: auto; padding-top: 12px; font-family: var(--schrift-eng); font-size: 19px; font-weight: 700; }

/* Zubehörzeilen */
.zub { display: grid; gap: 0; }
.zub__pos { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: var(--linie); cursor: pointer; }
.zub__pos:last-child { border-bottom: var(--linie); }
.zub__pos input { width: 20px; height: 20px; accent-color: var(--akzent-tief); flex: none; cursor: pointer; }
.zub__name { flex: 1; font-weight: 500; }
.zub__preis { font-family: var(--schrift-eng); font-size: 19px; font-weight: 700; white-space: nowrap; }
.zub__leer { border: 1px dashed var(--grau-300); padding: 22px; color: var(--grau-600); }

/* Farbfelder */
.farben { display: flex; flex-wrap: wrap; gap: 12px; }
.farbe { cursor: pointer; position: relative; }
.farbe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.farbe__flaeche { display: flex; align-items: center; gap: 12px; border: 1px solid var(--grau-200); padding: 10px 18px 10px 12px; transition: border-color .16s; }
.farbe input:checked + .farbe__flaeche { border-color: var(--anthrazit); box-shadow: inset 0 0 0 1px var(--anthrazit); }
.farbe input:focus-visible + .farbe__flaeche { outline: 2px solid var(--akzent); outline-offset: 2px; }
.farbe__punkt { width: 30px; height: 30px; border: 1px solid rgba(0,0,0,.22); flex: none; }

/* Datei-Upload (KI-Studio) */
.datei { border: 1px dashed var(--grau-300); padding: 20px; text-align: center; }
.datei input { display: block; margin: 12px auto 0; font-size: 14px; max-width: 100%; }

/* Zusammenfassung */
/* Einspaltig steht die Zusammenfassung ohnehin am Ende — dort klebt sie
   nur ohne Nutzen. Sticky erst, wenn sie eine eigene Spalte hat. Die
   Medienabfrage muss NACH dieser Grundregel stehen: bei gleicher
   Spezifitaet gewinnt sonst die spaeter notierte Zeile. */
.summe { position: static; background: var(--anthrazit); color: #fff; padding: clamp(22px,2.4vw,30px); }
.summe h2 { font-size: 26px; margin-bottom: 6px; }
.summe__modell { color: var(--akzent); font-family: var(--schrift-tech); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.summe__liste { list-style: none; margin: 22px 0 0; padding: 0; }
.summe__liste li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: var(--linie-dunkel); font-size: 15.5px; }
.summe__liste li span:first-child { color: var(--grau-300); }
.summe__liste li b { font-weight: 500; white-space: nowrap; }
.summe__gesamt { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.5); }
.summe__gesamt b { font-family: var(--schrift-eng); font-size: 34px; font-weight: 700; }
.summe__knoepfe { display: grid; gap: 10px; margin-top: 22px; }
.summe__fuss { color: var(--grau-500); font-size: 13.5px; margin-top: 16px; }
@media (min-width: 1000px) { .summe { position: sticky; top: calc(var(--kopf) + 20px); } }



/* =======================================================================
   Konfigurator — Bühne
   Dunkler Studioraum statt Werkstattboden. Das Gerät ist freigestellt
   (tools/03-buehne.mjs), liegt auf einem eigenen Bodenschatten und lässt
   sich durch die vorhandenen Ansichten drehen.
   ======================================================================= */

.konfseite { background: var(--schwarz); color: #fff; }
.konfseite .schritt { border-top-color: rgba(255,255,255,.55); }
.konfseite .schritt__hilfe { color: var(--grau-500); }
.konfseite .kachel__flaeche { background: var(--anthrazit); border-color: rgba(255,255,255,.16); }
.konfseite .kachel:hover .kachel__flaeche { border-color: rgba(255,255,255,.45); }
.konfseite .kachel input:checked + .kachel__flaeche { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
/* Freisteller in den Kacheln: nicht formatfüllend beschneiden, sondern
   ganz zeigen, mit etwas Luft. */
.konfseite .kachel__bild {
  background: radial-gradient(ellipse 70% 55% at 50% 58%, #22282D 0%, #14181B 60%, #0A0D0F 100%);
  padding: 10px;
}
.konfseite .kachel__bild img { object-fit: contain; }
.konfseite .kachel__zeile { color: var(--grau-500); }
.konfseite .zub__pos { border-color: rgba(255,255,255,.16); }
.konfseite .zub__leer { border-color: rgba(255,255,255,.3); color: var(--grau-500); }
.konfseite .farbe__flaeche { border-color: rgba(255,255,255,.2); }
.konfseite .farbe input:checked + .farbe__flaeche { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.konfseite .feld input, .konfseite .feld textarea {
  background: var(--anthrazit); border-color: rgba(255,255,255,.22); color: #fff;
}
.konfseite .feld input::placeholder, .konfseite .feld textarea::placeholder { color: var(--grau-600); }
.konfseite .datei { border-color: rgba(255,255,255,.3); }
.konfseite .summe { background: var(--anthrazit-2); }
.konfseite .kapitel__kopf { border-top-color: rgba(255,255,255,.55); }

/* Bühne ------------------------------------------------------------------ */

.buehne3d {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse 62% 46% at 50% 62%, #2A3238 0%, #191E22 42%, #0C0F11 78%);
  overflow: hidden;
  touch-action: pan-y;          /* senkrecht scrollen bleibt möglich */
  cursor: grab;
  user-select: none;
}
.buehne3d.zieht { cursor: grabbing; }
@media (min-width: 1000px) { .buehne3d { aspect-ratio: 16 / 11; } }

/* Bodenlinie, damit das Gerät nicht im Nichts schwebt */
.buehne3d::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10) 22%, rgba(255,255,255,.10) 78%, transparent);
  pointer-events: none;
}

.buehne3d__rahmen { position: absolute; inset: 6% 6% 10%; }

/* Turntable- und Fallback-Frame: ein freigestelltes Bild für alle Winkel,
   zentriert per object-fit. Der Bildwechsel IST die Drehung. Die Rundum-Frames
   bringen einen gebackenen Bodenschatten mit; der zusätzliche weiche
   Schlagschatten hält auch die Einzelfoto-Modelle (ohne Backschatten) am Boden. */
.buehne3d__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.45));
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}

/* Drehhinweis oben, blendet beim Ziehen aus */
.buehne3d__dreh {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  font-family: var(--schrift-tech); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grau-500);
  display: flex; align-items: center; gap: 8px; pointer-events: none;
  transition: opacity .4s;
}
.buehne3d.zieht .buehne3d__dreh { opacity: 0; }




/* =======================================================================
   KI-Studio
   ======================================================================= */

.ki { display: grid; gap: clamp(20px, 2.4vw, 34px); }
@media (min-width: 900px) { .ki { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.ki__hinweis {
  border-left: 3px solid var(--warn);
  padding: 4px 0 4px 18px;
  color: var(--grau-500); font-size: 14.5px; line-height: 1.55;
}
.ki__hinweis p + p { margin-top: 10px; }
.ki__hinweis b { color: #fff; }

.ki__status { margin-top: 14px; font-size: 15px; color: var(--grau-500); min-height: 1.4em; }
.ki__status--fehler { color: #FF8A7A; }
.ki__status--laeuft { color: var(--akzent); display: flex; align-items: center; gap: 10px; }

.ki__kreisel {
  width: 15px; height: 15px; flex: none;
  border: 2px solid rgba(126,211,33,.28); border-top-color: var(--akzent);
  border-radius: 50%; animation: kiDreht .8s linear infinite;
}
@keyframes kiDreht { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ki__kreisel { animation-duration: 2.4s; }
}

/* Das erzeugte Bild liegt als eigene Ebene ueber der Buehne — es ersetzt die
   Produktansicht, solange es angezeigt wird, und laesst sich wegklappen. */
.buehne3d__ki { position: absolute; inset: 0; background: #0B0E10; z-index: 2; }
.buehne3d__ki img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buehne3d__ki-leiste {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: linear-gradient(180deg, rgba(8,10,12,.88), transparent);
}
.buehne3d__ki-marke {
  font-family: var(--schrift-tech); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--warn);
}
.buehne3d__ki-zurueck {
  font-family: var(--schrift-eng); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.4); padding: 6px 12px; cursor: pointer;
}
.buehne3d__ki-zurueck:hover { background: #fff; color: var(--schwarz); }

/* Formular ---------------------------------------------------------------- */

.formular { display: grid; gap: 18px; }
@media (min-width: 700px) { .formular { grid-template-columns: repeat(2, 1fr); } .formular .breit { grid-column: 1 / -1; } }
.feld { display: flex; flex-direction: column; gap: 7px; }
.feld label { font-family: var(--schrift-tech); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau-600); }
.feld input, .feld textarea, .feld select {
  font-family: inherit; font-size: 16px; color: inherit; background: var(--weiss);
  border: 1px solid var(--grau-300); padding: 12px 14px; width: 100%;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: transparent; }
.feld--fehler input, .feld--fehler textarea { border-color: #C0392B; }
.feld__fehler { color: #C0392B; font-size: 13.5px; }
.hinweis { padding: 14px 16px; border-left: 3px solid var(--akzent); background: var(--grau-100); font-size: 15px; }
.hinweis--warn { border-left-color: var(--warn); }

/* Fußzeile ---------------------------------------------------------------- */

.fuss { background: var(--schwarz); color: var(--grau-300); padding-block: clamp(44px,5vw,72px) 34px; font-size: 15px; }
.fuss__oben { display: grid; gap: 30px; padding-bottom: 32px; border-bottom: var(--linie-dunkel); }
@media (min-width: 560px) { .fuss__oben { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .fuss__oben { grid-template-columns: repeat(4, 1fr); } }
.fuss h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.fuss a { color: var(--grau-300); text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding: 5px 0; }
.fuss__unten { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding-top: 24px; color: var(--grau-600); font-size: 13.5px; }

/* Einblenden --------------------------------------------------------------- */

.auf { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.auf.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .auf { opacity: 1; transform: none; transition: none; } }

/* Drucken: die Zusammenfassung soll als PDF taugen ------------------------- */

@media print {
  .kopf, .fuss, .schritt, .summe__knoepfe, .knopf, .druck-aus { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .summe { position: static; background: #fff; color: #000; padding: 0; }
  .summe__liste li span:first-child { color: #444; }
  .summe__liste li, .summe__gesamt { border-color: #999; }
  .druck-nur { display: block !important; }
}
.druck-nur { display: none; }

/* Bewegung reduzieren: respektiert die System-Einstellung „prefers-reduced-motion".
   Nimmt Auf-/Einblend-Animationen, Übergänge und den Turntable-Nachlauf die Dauer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
