/* ═══════════════════════════════════════════════════════════════════════════
   Bauteilkatalog — Werkstatt bei Nacht.

   RICHTUNG: eine Welt, nicht zwei. Die Seite ist dunkel, auch wenn der
   Betrachter hell eingestellt hat — wie das Display eines Diagnosegeräts.
   Deshalb ist jede Farbe ausgeschrieben und keine dem Wirtsystem überlassen.

   FARBE (festgelegt am 14.09.2026, Vorbild: eine Container-App mit dunklem
   Glas und farbigem Füllstand):
     Graphit   #0B0E12  Grund, mit Blaustich statt reinem Schwarz
     Stahl     #6FA8C8  Schimmer, Symbole, der „Füllstand" der Karten
     Signal    #FF7A2F  Werkstatt-Orange — nur für Aktionen, Zähler, aktive Zustände
     Bernstein #F0A455  der Kraftstoff in den Modellen; Merkstern
   Kühler Grund, warmes Bauteil, warme Aktion. Orange ist knapp: wo es steht,
   passiert etwas.

   SCHRIFT: Sora für Namen und Zahlen — geometrisch, technisch. Manrope für
   alles andere. Ziffern durchgehend tabellarisch.

   AUFBAU: eine App-Spalte von höchstens 820 px. Oben eine Kopfzeile mit dem
   Logo und sonst nichts, dann der Inhalt, unten eine schwebende Tab-Leiste mit
   fünf Bereichen. Suche, Merkliste und Profil stehen ausschließlich dort —
   Maximilian, 14.09.2026: „nur unten, also wie in einer richtigen app".
   Karten skalieren ihre Schrift mit der eigenen Breite (Container-Einheiten),
   damit zwei Spalten auch auf dem Telefon lesbar bleiben.

   DAZUGEKOMMEN am 15.09.2026: der Platz im Fahrzeug — eine Kette aus
   Verweisen unter dem Artikelnamen und über der Zweigliste (.pfad). Klein,
   gedämpft, Glieder in Stahl, das letzte in voller Helligkeit; sie bricht um,
   statt die Spalte zu sprengen.

   WEGGEFALLEN am 14.09.2026 abends, auf Ansage: die Baugruppen-Pille samt
   ihrem Blatt, der Avatar in der Kopfzeile, die Aktionsknöpfe neben dem
   Abschnittstitel, die weiße Kennwert-Plakette auf der Karte, der Kennwert-Chip
   auf der Bühne und die Artikelnummer. Auf einer Karte steht der Name.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  --grund:    #0B0E12;
  --grund-2:  #10161C;
  --stahl:    #6FA8C8;
  --stahl-t:  #1E4256;
  --signal:   #FF7A2F;
  --signal-2: #FF9A5C;
  --bernstein:#F0A455;

  --glas:    rgba(255, 255, 255, .06);
  --glas-2:  rgba(255, 255, 255, .10);
  --kante:   rgba(255, 255, 255, .10);
  --kante-2: rgba(255, 255, 255, .20);

  --ink:   #EEF2F5;
  --ink-2: rgba(238, 242, 245, .64);
  --ink-3: rgba(238, 242, 245, .40);

  --r-gross: 30px;
  --r-karte: 26px;
  --r-klein: 16px;

  --spalte: 820px;
  --unschaerfe: blur(22px) saturate(160%);
  --tiefe: 0 24px 60px -28px rgba(0, 0, 0, .9);

  --sora: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--grund);
  color: var(--ink);
  font-family: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 8px; }

svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Der Schimmer liegt hinter allem und scrollt nicht mit. */
.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 16% -4%,  rgba(111, 168, 200, .30), transparent 70%),
    radial-gradient(48% 40% at 96% 18%,  rgba(30, 66, 86, .60),   transparent 70%),
    radial-gradient(70% 50% at 60% 112%, rgba(255, 122, 47, .10), transparent 70%),
    var(--grund);
}

.glas {
  background: var(--glas);
  backdrop-filter: var(--unschaerfe);
  -webkit-backdrop-filter: var(--unschaerfe);
  border: 1px solid var(--kante);
}

/* Runde Knöpfe: eine Größe, überall dieselbe. */
.rund {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--kante);
  background: var(--glas); color: var(--ink-2);
  font-family: var(--sora); font-size: 15px; font-weight: 600;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.rund:hover { border-color: var(--kante-2); background: var(--glas-2); color: var(--ink); }
.rund.is-an { border-color: transparent; background: var(--signal); color: #fff; }
.rund.is-an svg.i { fill: currentColor; }

/* ── Kopfzeile ─────────────────────────────────────────────────────────── */

.top-wrap {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(rgba(11, 14, 18, .88), rgba(11, 14, 18, .72));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.top {
  max-width: var(--spalte); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
}

.top { justify-content: flex-start; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 26px; display: block; opacity: .92; }
.brand:hover img { opacity: 1; }

/* ── Seite ─────────────────────────────────────────────────────────────── */

main { position: relative; z-index: 1; max-width: var(--spalte); margin: 0 auto; padding: 0 20px 130px; }

.abschnitt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 22px 0 16px;
}
.abschnitt h1, .abschnitt h2 {
  display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0;
  font-family: var(--sora); font-size: clamp(24px, 4.5vw, 30px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.1;
}
.abschnitt h2 { font-size: clamp(19px, 3.6vw, 23px); }
.abschnitt h1 svg.i, .abschnitt h2 svg.i { width: 24px; height: 24px; color: var(--ink-3); }
.abschnitt h2 svg.i { width: 20px; height: 20px; }
a.aktion { text-decoration: none; padding: 0 12px 0 16px; }
.abschnitt .zahl {
  align-self: center; margin-left: 2px; padding: 4px 9px; border-radius: 999px;
  font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: var(--ink-3); background: var(--glas); border: 1px solid var(--kante);
}
.aktionen { display: flex; align-items: center; gap: 8px; flex: none; }
.aktion {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 10px; border-radius: 999px;
  border: 1px solid var(--kante); background: var(--glas);
  color: var(--stahl); font-weight: 600; font-size: 13.5px;
  transition: border-color .18s, background .18s, color .18s;
}
.aktion:hover { border-color: var(--kante-2); background: var(--glas-2); }
.aktion.is-an { color: var(--ink); background: var(--glas-2); border-color: var(--kante-2); }

.suchzeile { display: flex; gap: 8px; margin: 0 0 16px; }
.suchzeile label {
  flex: 1; display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--kante-2); background: var(--glas);
}
.suchzeile label:focus-within { border-color: var(--stahl); }
.suchzeile svg.i { color: var(--ink-3); }
.suchzeile input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.suchzeile input::placeholder { color: var(--ink-3); }
.suchzeile input::-webkit-search-cancel-button { display: none; }
.suchhinweis { margin: -6px 0 16px; font-size: 12.5px; color: var(--ink-3); }

/* Der Platz im Fahrzeug — die Kette unter dem Artikelnamen und über der
   Zweigliste. Sie soll lesbar sein und sich nicht vordrängen: Manrope klein,
   gedämpft, die Glieder in Stahl, das letzte in voller Helligkeit. Auf dem
   Telefon bricht sie um, statt die Spalte zu sprengen. */
.pfad {
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: 7px; row-gap: 2px;
  font-family: var(--text); font-size: 12.5px; line-height: 1.6;
  color: var(--ink-3);
}
.pfad a { color: var(--stahl); text-decoration: none; }
.pfad a:hover, .pfad a:focus-visible { color: var(--signal-2); text-decoration: underline; text-underline-offset: 3px; }
.pfad .jetzt { color: var(--ink-2); font-weight: 600; }
.pfad .stumm { color: var(--ink-3); }
.pfad .tr { color: var(--ink-3); opacity: .55; }

#liste-pfad { margin: 22px 0 -8px; }

/* ── Die Karten ────────────────────────────────────────────────────────── */

.karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.karte {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column;
  aspect-ratio: 1 / 1.4; min-height: 0;   /* mehr Höhe = mehr Bauteil; der Text braucht sie nicht */
  border-radius: var(--r-karte); overflow: hidden;
  border: 1px solid var(--kante); cursor: pointer; text-align: center;
  background:
    linear-gradient(to top, rgba(111, 168, 200, .26), rgba(30, 66, 86, .32) 36%, rgba(255, 255, 255, .035) 74%),
    var(--grund-2);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), border-color .3s, box-shadow .3s;
}
.karte:hover { transform: translateY(-4px); border-color: var(--kante-2); box-shadow: var(--tiefe); }
.karte::before {                       /* Glanz oben, wie Licht auf Glas */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 40%; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .05), transparent);
}

.karte-kopf {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 5.5cqw 5.5cqw 0; text-align: left;
}
.karte-kopf h2 {
  margin: 0; min-width: 0; font-family: var(--sora); font-size: clamp(16px, 7cqw, 26px);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
}
.karte .stern {
  width: clamp(30px, 10.5cqw, 40px); height: clamp(30px, 10.5cqw, 40px); flex: none;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07); color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .18s, color .18s, transform .18s;
}
.karte .stern svg.i { width: 52%; height: 52%; }
.karte .stern:hover { transform: scale(1.08); color: var(--ink); background: rgba(255, 255, 255, .12); }
.karte .stern.is-an { color: var(--bernstein); border-color: rgba(240, 164, 85, .5); }
.karte .stern.is-an svg.i { fill: currentColor; }

/* Das Standbild ist seit dem 14.09.2026 nachts auf den Inhalt beschnitten
   (render.html). Es hat damit die Form des Bauteils und darf den ganzen Platz
   der Karte nehmen — vorher lag ein quadratisches Bild mit eigenem Rand in
   einem Rahmen mit Rand, und das Bauteil stand klein in der Mitte. */
/* EINGEPASST, NICHT GESTRECKT: `max-width` und `max-height` statt `width` und
   `height`. Ein hohes Bauteil füllt damit die Höhe, ein liegendes die Breite,
   und keines sprengt die Karte. Mit height:100% wuchs das Bild über den Rahmen
   hinaus, weil die Zeilenhöhe erst aus dem Bild selbst entsteht. */
.karte-bild { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1cqw 3cqw 2cqw; }
.karte-bild img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: drop-shadow(0 5cqw 6cqw rgba(0, 0, 0, .62));
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.karte:hover .karte-bild img { transform: scale(1.04); }

.karte-text { padding: 0 5.5cqw 6.5cqw; }
.karte-text .unter { margin: 0; font-size: clamp(11.5px, 3.9cqw, 15px); line-height: 1.35; color: var(--ink); text-wrap: balance; }
.karte-text .fuss { margin: .5em 0 0; font-size: clamp(10.5px, 3.3cqw, 12.5px); color: var(--ink-3); line-height: 1.35; }
.karte-text .treffer {
  margin: .6em 0 0; font-size: clamp(10.5px, 3.3cqw, 12.5px); color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.karte-text .treffer b { color: var(--signal); font-weight: 700; }

.leer {
  grid-column: 1 / -1; padding: 56px 20px; text-align: center;
  color: var(--ink-3); border: 1px dashed var(--kante); border-radius: var(--r-karte);
}

/* ── Tab-Leiste ────────────────────────────────────────────────────────── */

.tabs {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(14, 19, 25, .82);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--kante); box-shadow: var(--tiefe);
}
.tab {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 17px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ink-2); text-decoration: none;
  font-family: var(--sora); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab .l { display: none; }
.tab.is-an { background: rgba(255, 255, 255, .11); color: var(--ink); }
.tab.is-an .l { display: inline; }
.tab .zaehler {
  position: absolute; top: 5px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--signal); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px rgba(14, 19, 25, .9);
}
.tab.is-an .zaehler { right: auto; left: 26px; }

/* ── Artikel ───────────────────────────────────────────────────────────── */

.zurueck {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 22px 0 22px; padding: 0 16px 0 12px; height: 42px;
  border-radius: 999px; border: 1px solid var(--kante);
  background: var(--glas); color: var(--ink-2); font-size: 13.5px;
  transition: border-color .18s, color .18s;
}
.zurueck:hover { border-color: var(--kante-2); color: var(--ink); }
.zurueck svg.i { width: 18px; height: 18px; }

.artikel-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; }
.artikel-kopf .eyebrow {
  grid-column: 1 / -1; font-family: var(--sora); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--signal);
}
.artikel-kopf h1 {
  margin: 0; font-family: var(--sora); font-size: clamp(34px, 7vw, 56px);
  font-weight: 600; letter-spacing: -.035em; line-height: 1; text-wrap: balance;
}
.artikel-kopf .pfad { grid-column: 1; margin: 10px 0 0; }
.artikel-kopf .herkunft { grid-column: 1; margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.artikel-kopf .herkunft b { color: var(--ink); font-weight: 600; }
.artikel-kopf .merken { grid-row: 2 / 5; grid-column: 2; align-self: center; }

.merken {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid var(--kante); background: var(--glas);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.merken svg.i { width: 17px; height: 17px; }
.merken:hover { border-color: var(--kante-2); color: var(--ink); }
.merken.is-an { border-color: rgba(240, 164, 85, .45); color: var(--bernstein); background: rgba(240, 164, 85, .1); }
.merken.is-an svg.i { fill: currentColor; }

/* Die Bühne: hier dreht sich das Bauteil von Anfang an — 45° gekippt. */
.buehne {
  position: relative; margin: 24px 0 0;
  aspect-ratio: 1 / .84;
  border-radius: var(--r-gross); overflow: hidden;
  border: 1px solid var(--kante);
  background:
    radial-gradient(64% 52% at 30% 22%, rgba(111, 168, 200, .34), transparent 70%),
    radial-gradient(60% 48% at 86% 40%, rgba(30, 66, 86, .7), transparent 70%),
    radial-gradient(80% 56% at 50% 108%, rgba(255, 122, 47, .14), transparent 72%),
    var(--grund-2);
  box-shadow: var(--tiefe);
}
/* Das animierte WebP: 144 Ansichten in einer Datei, der Browser spielt sie
   selbst ab. Kein Skript, keine Grafikkarte. */
.fenster {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  /* Die Animation ist quadratisch und trägt den Weg des Kolbens in sich; das
     Bauteil füllt sie nie ganz. Damit es auf der Bühne trotzdem groß steht,
     nimmt das Fenster fast die volle Breite. */
  width: min(92%, 540px); aspect-ratio: 1;
}
.fenster img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }

.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.buehne-fuss {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(11, 14, 18, .86), transparent);
}
.buehne-fuss .note { font-size: 12px; color: var(--ink-3); max-width: 44ch; }

.laden {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 0;
  background: linear-gradient(140deg, var(--signal-2), var(--signal));
  color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(255, 122, 47, .9);
  transition: transform .2s, box-shadow .2s;
}
.laden:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(255, 122, 47, 1); }
.laden svg.i { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: kreisel .8s linear infinite;
}
@keyframes kreisel { to { transform: rotate(360deg); } }
.fehler { font-size: 13px; color: var(--bernstein); }

/* Einzelteile — erscheinen erst mit dem vollständigen Modell */
.teile { margin: 14px 0 0; border-radius: var(--r-karte); overflow: hidden; box-shadow: var(--tiefe); }
.teile-kopf {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--kante);
}
.teile-kopf h2 { margin: 0; font-family: var(--sora); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.teile-kopf .zahl { font-size: 12px; color: var(--ink-3); padding: 3px 8px; border-radius: 999px; background: var(--glas); border: 1px solid var(--kante); }
.regler { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.regler .rl { font-size: 12.5px; color: var(--ink-2); }
.regler output { font-size: 12px; color: var(--ink-2); min-width: 40px; text-align: right; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 150px; height: 20px; background: transparent; cursor: pointer; margin: 0;
}
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--stahl), var(--signal)); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--stahl); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }

.teile-liste { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 20px; }
.teil {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--kante); background: rgba(255, 255, 255, .04);
  color: var(--ink-2); font-size: 12.5px;
  transition: border-color .18s, color .18s, background .18s;
}
.teil:hover { border-color: var(--kante-2); color: var(--ink); }
.teil.is-an { border-color: transparent; color: #fff; background: var(--signal); }
.teil .tn { color: var(--ink-3); margin-right: 7px; font-size: 11px; font-family: var(--sora); }
.teil.is-an .tn { color: rgba(255, 255, 255, .75); }

.teil-detail { padding: 20px; border-top: 1px solid var(--kante); background: rgba(255, 255, 255, .028); }
.teil-detail h3 { margin: 0 0 2px; font-family: var(--sora); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.teil-detail .wo { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); }
.teil-detail .funktion { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 64ch; }

/* Kurzinfo und weitere Bauteile */
.tafel { margin: 14px 0 0; padding: 22px 22px 24px; border-radius: var(--r-karte); box-shadow: var(--tiefe); }
.tafel h2 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px; font-family: var(--sora); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.tafel h2 svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.tafel .kern { margin: 0; font-family: var(--sora); font-size: 19px; font-weight: 400; line-height: 1.5; letter-spacing: -.015em; max-width: 60ch; }

.daten { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.daten > div { display: flex; flex-direction: column; gap: 3px; }
.daten dt { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.daten dd { margin: 0; font-size: 14.5px; }
.daten dd.gross { font-family: var(--sora); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.daten dd .marker {
  display: inline-block; margin-left: .55em; vertical-align: 3px; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--kante); background: var(--glas);
  font-family: var(--text); font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}

.verweise { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.verweis {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 10px 14px; border-radius: var(--r-klein);
  border: 1px solid var(--kante);
  background: linear-gradient(to top, rgba(111, 168, 200, .18), rgba(255, 255, 255, .03) 70%);
  transition: border-color .18s, transform .18s;
}
.verweis:hover { border-color: var(--kante-2); transform: translateY(-2px); }
.verweis img { width: 100%; height: 78px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.verweis .nm { font-family: var(--sora); font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.verweis .kl { font-size: 11.5px; color: var(--ink-3); }

.fussnote { margin: 28px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; max-width: 66ch; }

/* ── Überlagerung: die Anmeldung ───────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6, 8, 11, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
}
.blatt {
  width: min(480px, 100%); max-height: min(78vh, 720px); overflow: auto; padding: 24px;
  border-radius: var(--r-gross); box-shadow: var(--tiefe);
  background: rgba(18, 24, 31, .9);
  backdrop-filter: var(--unschaerfe); -webkit-backdrop-filter: var(--unschaerfe);
  border: 1px solid var(--kante-2);
}
.blatt h2 { margin: 0 0 4px; font-family: var(--sora); font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.blatt > p { margin: 0 0 18px; color: var(--ink-2); font-size: 13.5px; }

.blatt label.feld { display: block; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.blatt input[type=text] {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--kante); background: var(--glas); color: var(--ink);
}
.blatt input[type=text]:focus { outline: none; border-color: var(--stahl); }
.dialog-knoepfe { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.knopf-voll {
  flex: 1; height: 46px; border: 0; border-radius: 999px;
  background: linear-gradient(140deg, var(--signal-2), var(--signal));
  color: #fff; font-weight: 700;
  box-shadow: 0 14px 30px -16px rgba(255, 122, 47, .9);
}
.dialog-warn {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(111, 168, 200, .1); border: 1px solid rgba(111, 168, 200, .22);
  color: var(--ink-2); font-size: 12.5px; line-height: 1.55;
}

/* ── Schmale Fenster ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .top { padding: 10px 14px; }
  main { padding: 0 14px 120px; }
  .abschnitt { flex-wrap: wrap; }
  .abschnitt h1 { font-size: 24px; }
  .aktion .l { display: none; }
  .aktion { padding: 0; width: 42px; justify-content: center; }
  .karten { gap: 10px; }
  .artikel-kopf { grid-template-columns: 1fr; }
  .artikel-kopf .merken { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .regler { margin-left: 0; width: 100%; }
  .regler input[type=range] { flex: 1; width: auto; }
  .tafel { padding: 18px; }
  .verweise { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
  .verweis { padding: 10px 6px; }
  .verweis .nm { font-size: 12.5px; }
  .verweis .kl { display: none; }
  .overlay { padding: 0; align-items: end; }
  .blatt { width: 100%; border-radius: 28px 28px 0 0; max-height: 85vh; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .karten { grid-template-columns: 1fr; }
  .karte { aspect-ratio: 1 / 1.05; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Bewegte Modelle: Play/Pause und Drehzahl im Bühnenfuß ─────────────── */

.steuer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.steuer .rund svg.i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.steuer .drehzahl { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.steuer .drehzahl .rl { font-size: 12.5px; }
.steuer .drehzahl input[type=range] { width: 120px; }
.steuer .drehzahl output { min-width: 66px; }

/* Was das Modell vereinfacht — steht unter der Kurzinfo, nicht versteckt. */
.tafel .hinweis {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(111, 168, 200, .08); border: 1px solid rgba(111, 168, 200, .2);
  color: var(--ink-2); font-size: 12.5px; line-height: 1.55; max-width: 66ch;
}
.tafel .hinweis b { color: var(--ink); font-weight: 600; }
.tafel .leer-text { margin: 0; color: var(--ink-3); font-size: 13px; }

/* Der Umschalter der 3D-Ansicht: Explosion oder Simulation, nie beides. */
.buehne .modus {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px;
}
.buehne .modus button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-family: var(--sora); font-size: 12.5px; font-weight: 600;
  transition: background .18s, color .18s;
}
.buehne .modus button:hover:not([disabled]) { color: var(--ink); }
.buehne .modus button.is-an { background: var(--signal); color: #fff; }
.buehne .modus button[disabled] { color: var(--ink-3); cursor: default; }
@media (max-width: 640px) {
  /* Hochformat: die Bauteile sind hoch und schmal, der Bühnenfuß braucht auf
     dem Telefon zwei Zeilen. Mit 1 : 0,84 bliebe vom Bauteil ein Daumennagel. */
  .buehne { aspect-ratio: 1 / 1.1; }
  .buehne .modus { top: 12px; right: 12px; padding: 3px; }
  .buehne .modus button { height: 28px; padding: 0 11px; font-size: 11.5px; }
}

/* ═══ Startseite ══════════════════════════════════════════════════════════
   Drei Blöcke: wo das Projekt steht, einschreiben, das Neueste. Der Hero ist
   der einzige Ort mit zentriertem Text — er ist ein Anschlag, keine Liste.
   ═══════════════════════════════════════════════════════════════════════════ */

.hero { text-align: center; padding: 30px 0 4px; }
.hero-logo {
  width: min(44vw, 190px); height: auto; display: block; margin: 0 auto 26px;
  filter: drop-shadow(0 10px 30px rgba(111, 168, 200, .35));
}
.hero h1 {
  margin: 0 auto; max-width: 17ch;
  font-family: var(--sora); font-size: clamp(30px, 6.4vw, 46px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.06; text-wrap: balance;
}
.hero-text {
  margin: 16px auto 0; max-width: 54ch;
  font-size: clamp(14.5px, 2.2vw, 16.5px); line-height: 1.62; color: var(--ink-2);
  text-wrap: pretty;
}

/* Der Fortschritt ist ehrlich: der Balken ist so schmal, wie er ist. */
.fortschritt { margin: 26px auto 0; max-width: 460px; }
.balken {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--kante);
}
.balken span {
  display: block; height: 100%; min-width: 7px; border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--signal-2));
  box-shadow: 0 0 14px -2px var(--signal);
}
.fortschritt-text { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.fortschritt-text b { color: var(--ink); font-family: var(--sora); font-weight: 600; }

.knopf-gross {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 28px 0 6px; height: 52px; padding: 0 18px 0 24px;
  border-radius: 999px; border: 0; text-decoration: none;
  background: linear-gradient(140deg, var(--signal-2), var(--signal));
  color: #fff; font-family: var(--sora); font-size: 15px; font-weight: 600;
  box-shadow: 0 16px 38px -16px rgba(255, 122, 47, .95);
  transition: transform .2s, box-shadow .2s;
}
.knopf-gross:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(255, 122, 47, 1); }
.knopf-gross svg.i { width: 18px; height: 18px; }

/* Einschreiben */
.melden { margin-top: 34px; }
.melden-text { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 58ch; }
.melden-zeile { display: flex; gap: 9px; margin: 18px 0 0; flex-wrap: wrap; }
.melden-zeile input {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--kante-2);
  background: var(--glas); color: var(--ink); outline: none;
}
.melden-zeile input:focus { border-color: var(--stahl); }
.melden-zeile input::placeholder { color: var(--ink-3); }
.melden-zeile .knopf-voll { flex: 0 0 auto; width: auto; padding: 0 26px; height: 48px; }

.melden-stand {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(111, 168, 200, .1); border: 1px solid rgba(111, 168, 200, .24);
  font-size: 13.5px; color: var(--ink);
}
.melden-haken {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--stahl); color: var(--grund);
}
.melden-haken svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.melden-raus {
  margin-left: auto; border: 0; background: none; padding: 0;
  color: var(--ink-3); font-size: 12.5px; text-decoration: underline;
}
.melden-raus:hover { color: var(--ink); }
.melden-warn { color: var(--bernstein); }
.melden-fuss { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.55; max-width: 64ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

#view-start .abschnitt { margin-top: 38px; }

/* ═══ Fachtext im Artikel ═════════════════════════════════════════════════
   Drei Formen, mehr nicht: Begriffsliste, Kennwerttafel, Warnliste. Die
   Begriffsliste ist links vom Text abgesetzt, damit man die Begriffe
   überfliegen kann, ohne alles zu lesen.
   ═══════════════════════════════════════════════════════════════════════════ */

.tafel .definition {
  margin: 16px 0 0; max-width: 64ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.65;
}
.tafel .vorspann { margin: 0 0 18px; max-width: 64ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.tafel .unterzeile {
  margin: 24px 0 10px; font-family: var(--sora); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}

.begriffe { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.begriffe > div {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px;
  padding-top: 14px; border-top: 1px solid var(--kante);
}
.begriffe > div:first-child { padding-top: 0; border-top: 0; }
.begriffe dt {
  font-family: var(--sora); font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.begriffe dd { margin: 0; font-size: 14px; line-height: 1.62; color: var(--ink-2); max-width: 62ch; }

.kennwerte { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 26px; }
.kw-block h3 {
  margin: 0 0 8px; font-family: var(--sora); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signal);
}
.kw-block dl { margin: 0; }
.kw-block dl > div {
  display: flex; align-items: baseline; gap: 10px; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.kw-block dl > div:last-child { border-bottom: 0; }
.kw-block dt { font-size: 13px; color: var(--ink-2); flex: 1 1 auto; }
.kw-block dd {
  margin: 0; flex: 0 1 auto; text-align: right;
  font-family: var(--sora); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.kw-herkunft { margin: 22px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; max-width: 70ch; }

.warnliste { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.warnliste li {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid rgba(240, 164, 85, .3); background: rgba(240, 164, 85, .08);
}

/* Der Profil-Tab zeigt angemeldet den ersten Buchstaben statt des Symbols. */
.tab .initial {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--signal-2), var(--signal)); color: #fff;
  font-family: var(--sora); font-size: 11px; font-weight: 700; line-height: 1;
}

/* ── Schmale Fenster: die neuen Bausteine ──────────────────────────────── */

@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .hero-logo { margin-bottom: 20px; }
  a.aktion { padding: 0; width: 42px; justify-content: center; }
  #view-start .abschnitt { margin-top: 30px; }
  .begriffe > div { grid-template-columns: 1fr; gap: 3px; }
  .kennwerte { grid-template-columns: 1fr; gap: 16px; }
  .melden-zeile .knopf-voll { flex: 1 1 100%; }
}

/* Fünf Tabs passen nur ohne Beschriftung auf ein schmales Telefon. */
@media (max-width: 460px) {
  .tab { padding: 0 13px; }
  .tab.is-an .l { display: none; }
  .tab.is-an .zaehler { left: auto; right: 8px; }
}

/* ── Werkzeug und Taktanzeige auf der Bühne (14.09.2026 spätabends) ─────
   Das gelieferte Kolbengruppen-Modell bringt zwei Bedienelemente mit, die es
   im Portal noch nicht gab: den Schnitt durch den Kolben und die Anzeige des
   Arbeitsspiels. Beide sitzen auf der Bühne, in derselben Glas-Rezeptur wie
   der Modus-Umschalter. ─────────────────────────────────────────────────── */

.buehne .werkzeug {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.buehne .werkzeug .rund { width: 38px; height: 38px; background: rgba(14, 19, 25, .72); backdrop-filter: blur(10px); }
.buehne .werkzeug .rund svg.i { width: 18px; height: 18px; }
.buehne .werkzeug .rund.is-an svg.i { fill: none; }

.takt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-left: auto; padding: 8px 14px; border-radius: 999px;
  background: rgba(14, 19, 25, .72); border: 1px solid var(--kante);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.takt .spur { display: flex; gap: 3px; }
.takt .spur i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); transition: background .2s; }
.takt .spur i.is-an { background: var(--signal); }
.takt .tn { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.takt .tg { font-family: var(--sora); font-size: 12.5px; color: var(--ink-3); min-width: 4ch; text-align: right; }

@media (max-width: 640px) {
  .buehne .werkzeug { top: 12px; left: 12px; }
  .buehne .werkzeug .rund { width: 34px; height: 34px; }
  .takt { margin-left: 0; padding: 6px 11px; gap: 8px; }
  .takt .spur i { width: 10px; }
  .takt .tn, .takt .tg { font-size: 11.5px; }
}

/* Model controls use the portal palette and spacing. */
.system-controls { margin-top:14px; padding:20px; border-radius:var(--r-karte); display:grid; gap:18px; }
.system-modus { display:flex; gap:8px; }
.system-modus button { flex:1; justify-content:center; }
.system-controls button.is-an { background:var(--signal); border-color:var(--signal); color:#fff; }
.system-variante { display:grid; gap:8px; color:var(--ink-2); font-size:13px; min-width:0; }
.system-variante select { width:100%; min-width:0; padding:12px 14px; border-radius:12px; border:1px solid var(--kante-2); background:var(--grund-2); color:var(--ink); font:inherit; }
.system-tools { display:flex; flex-wrap:wrap; gap:8px; }
.system-tools button { font-size:12px; }
.system-controls button:disabled { opacity:.4; cursor:default; }
.system-regler { width:100%; margin:0; display:grid; grid-template-columns:minmax(125px,1fr) minmax(80px,2fr) 45px; }
.system-regler input[type=range] { width:100%; }
.system-simulation { display:grid; gap:16px; }
.system-simulation > button { justify-self:start; }
.system-buehne { aspect-ratio:4/3; }
.system-buehne canvas[hidden], .system-controls [hidden] { display:none; }
.system-controls :focus-visible { outline:2px solid var(--signal-2); outline-offset:3px; }
@media(max-width:520px) {
  .system-controls { padding:16px; }
  .system-buehne { aspect-ratio:1/1; }
  .system-regler { grid-template-columns:1fr 45px; gap:9px; }
  .system-regler .rl { grid-column:1/-1; }
}

.modell78-frame{display:block;width:100%;height:800px;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:transparent;margin:28px 0}@media(max-width:700px){.modell78-frame{height:1010px;border-radius:20px}}
