/* Mein Fahrplan · RBZ Wirtschaft . Kiel
   Gestaltung: Liniennetz. Dunkelblau und Weiß, Orange als Akzent (Farben aus dem Schullogo).
   Links der Fahrplan (das Liniennetz der Abschlüsse), rechts das weiße Blatt mit Fragen und Aufgaben.
   Alle Schriften liegen lokal, keine externen Dienste. */

/* ---------------------------------------------------------------- Schriften */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- Farben und Maße */
:root {
  --navy: #022334;
  --navy-2: #0a3247;
  --navy-3: #164560;
  --navy-line: rgba(255, 255, 255, .12);
  --orange: #f79d00;
  --orange-hell: #ffb83a;
  --orange-tief: #b86f00;
  --orange-weich: #fff3dc;
  --weiss: #ffffff;
  --papier: #f6f8fa;
  --tinte: #0b1f2c;
  --tinte-2: #3c5262;
  --grau: #6b7f8d;
  --linie: #dfe6eb;
  --linie-2: #c7d3db;
  --gruen: #1d7a52;
  --gruen-weich: #e3f4ec;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 18px;
  --r-s: 12px;
  --schatten: 0 1px 2px rgba(2, 35, 52, .06), 0 8px 24px -12px rgba(2, 35, 52, .25);
  --schatten-gross: 0 30px 60px -30px rgba(2, 35, 52, .45), 0 12px 24px -16px rgba(2, 35, 52, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--tinte);
  background: var(--navy); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
:lang(ar), :lang(fa) { font-family: "Vazirmatn", var(--sans); }
:lang(ar) body, :lang(fa) body { line-height: 1.75; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--navy); padding: 10px 16px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- Rahmen */
.app {
  display: grid; min-height: 100vh; min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "leiste" "netz" "buehne";
}
.leiste {
  grid-area: leiste; position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); color: var(--weiss);
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marke img { width: 33px; height: 40px; border-radius: 4px; background: #fff; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-text b { font-size: 16px; letter-spacing: -.01em; }
.marke-text small { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(255, 255, 255, .62); text-transform: uppercase; }
.leiste-rechts { display: flex; align-items: center; gap: 8px; }
.sprachknopf, .schalter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .04); color: var(--weiss); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.sprachknopf:hover, .schalter:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.sprachknopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sprachknopf span { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.schalter-text { font-size: 13px; font-weight: 600; }
.schalter-bahn { width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .2); position: relative; transition: background .2s; }
.schalter-bahn span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.schalter[aria-pressed="true"] .schalter-bahn { background: var(--orange); }
.schalter[aria-pressed="true"] .schalter-bahn span { transform: translateX(14px); }
.sprachmenue {
  position: absolute; z-index: 40; top: 60px; inset-inline-end: 16px; min-width: 220px; padding: 6px;
  background: var(--weiss); color: var(--tinte); border-radius: var(--r-s); box-shadow: var(--schatten-gross);
  animation: auf .18s var(--ease);
}
.sprachmenue button {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: start;
}
.sprachmenue button:hover { background: var(--papier); }
.sprachmenue button.aktiv { background: var(--orange-weich); font-weight: 700; }
.sprach-code { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--grau); width: 24px; }

/* ---------------------------------------------------------------- Fortschritt (in der Kopfleiste) */
.fortschritt {
  --fs: 0; list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  order: 3; flex: 1 1 100%;
}
.fortschritt::before, .fortschritt::after {
  content: ""; position: absolute; top: 7px; height: 4px; border-radius: 2px; inset-inline-start: 10%;
}
.fortschritt::before { inset-inline-end: 10%; background: rgba(255, 255, 255, .16); }
.fortschritt::after { width: calc(80% * var(--fs)); background: var(--orange); transition: width .6s var(--ease); }
.fortschritt li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fs-punkt { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 4px solid rgba(255, 255, 255, .28); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.fs-name { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); text-align: center; line-height: 1.2; }
.fortschritt li.erledigt .fs-punkt { border-color: var(--orange); background: var(--orange); }
.fortschritt li.aktuell .fs-punkt { border-color: var(--orange); background: var(--weiss); transform: scale(1.15); }
.fortschritt li.aktuell .fs-name { color: var(--weiss); }

/* ---------------------------------------------------------------- Fahrplan: das Liniennetz
   Schmale Bildschirme: ein Griff unter der Kopfleiste, das Feld fährt von links herein.
   Breite Bildschirme (ab 1100 px): das Feld steht links neben dem Blatt und lässt sich nach links einklappen. */
.netz { grid-area: netz; color: var(--weiss); padding: 0 16px 12px; min-width: 0; }
.netz-griff {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 12px 6px 14px;
  border-radius: 14px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .05); color: var(--weiss);
  cursor: pointer; text-align: start; transition: background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.netz-griff:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.netz-griff svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.netz-griff-bild { color: var(--orange); }
.netz-griff-bild circle { fill: var(--navy); }
.netz-griff-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.netz-griff-text b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.netz-griff-text small { font-size: 13px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.netz-griff-pfeil { opacity: .7; }

.netz-innen {
  position: fixed; z-index: 56; top: 0; bottom: 0; left: 0; width: min(100vw - 40px, 900px);
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) 16px 28px max(16px, env(safe-area-inset-left));
  background: var(--navy); box-shadow: 30px 0 60px -24px rgba(0, 0, 0, .6);
  transform: translateX(-104%); visibility: hidden;
  transition: transform .34s var(--ease), visibility 0s .34s;
}
.app.netz-auf .netz-innen { transform: none; visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
.netz-innen > * { flex-shrink: 0; }
.netz-schleier { position: fixed; inset: 0; z-index: 55; background: rgba(2, 35, 52, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: rein .25s var(--ease); }
body.netz-ueber { overflow: hidden; }

/* Der Kopf mit dem Knopf zum Einklappen bleibt oben stehen, auch wenn die Auskunft darunter gerollt wird */
.netz-kopf {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; margin: -8px 0; padding: 8px 0; background: var(--navy);
}
.netz-kopf-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.netz-titel { font-size: 18px; font-weight: 760; letter-spacing: -.015em; }
.netz-unter { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
@media (max-width: 719px) { .netz-unter { display: none; } }
.netz-schliessen {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px 6px 8px;
  border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .05); color: var(--weiss);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s;
}
.netz-schliessen:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.netz-schliessen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.netz-rollen { overflow-x: auto; margin: 0 -16px; padding: 0 16px; flex: none; }

/* Linienfarben aus der Palette der Schule. --c auf Dunkelblau (Karte), --p und --pt auf dem weißen Blatt */
.n-av { --c: #84929a; --p: #7b8a93; --pt: #022334; } .n-bfs1 { --c: #a9cde4; --p: #6a9bbb; --pt: #022334; }
.n-dual { --c: #f79d00; --p: #f79d00; --pt: #022334; } .n-bfs3 { --c: #4a97ea; --p: #2468bd; --pt: #ffffff; }
.n-bg { --c: #36a965; --p: #2f9e5b; --pt: #022334; } .n-ag { --c: #9bd8b3; --p: #1d6b3e; --pt: #ffffff; }
.n-fos { --c: #ffffff; --p: #022334; --pt: #ffffff; } .n-fs { --c: #ffc98b; --p: #9e5400; --pt: #ffffff; }
.n-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 11px; border-radius: 999px; flex: none;
  background: var(--c); color: #022334; font-size: 12.5px; font-weight: 680; line-height: 1.2; white-space: nowrap;
}
.buehne .n-pill { background: var(--p); color: var(--pt); -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Die Karte */
.fnetz {
  --k-bg: #022334; --k-leise: #a9c0cd; --k-band: #072d42; --k-rand: #1d4a61;
  display: block; width: 100%; min-width: 680px; height: auto; font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.fnetz .band { fill: var(--k-band); }
.fnetz .zone { fill: #fff; font-size: 16px; font-weight: 760; letter-spacing: -.01em; }
.fnetz .zone-klein { fill: var(--k-leise); font-size: 11.5px; font-weight: 600; }
.fnetz .spalte { fill: var(--k-leise); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.fnetz .seg { --cc: var(--c); --tt: #022334; cursor: pointer; outline: none; }
.fnetz .weg { fill: none; stroke: var(--cc); stroke-width: 8; stroke-linejoin: round; transition: stroke .25s ease, stroke-width .12s ease; }
.fnetz .fang { fill: none; stroke: transparent; stroke-width: 26; pointer-events: stroke; }
.fnetz .pille rect { fill: var(--cc); stroke: var(--k-bg); stroke-width: 2.5; transition: fill .25s ease; }
.fnetz .pille text { fill: var(--tt); font-size: 13px; font-weight: 680; transition: fill .25s ease; }
.fnetz .seg:focus-visible .weg { stroke-width: 11; }
.fnetz .seg:focus-visible .pille rect { stroke: #fff; }
.fnetz .halt-g { cursor: pointer; outline: none; }
.fnetz .treffer { fill: transparent; pointer-events: all; }
.fnetz .halt { fill: #fff; stroke: var(--k-bg); stroke-width: 3; transition: fill .25s ease; }
.fnetz .halt.klein { stroke-width: 2.5; }
.fnetz .ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.fnetz .halt-g.an .ring, .fnetz .halt-g:focus-visible .ring { opacity: 1; }
.fnetz .hname { fill: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity .25s ease; }
.fnetz .abgang { transition: opacity .25s ease; pointer-events: none; }
.fnetz .abgang path, .fnetz .zeichen-punkt { fill: none; stroke: var(--k-leise); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 9; }
.fnetz .abgang polygon { fill: var(--k-leise); }
.fnetz .zielbox { cursor: pointer; outline: none; transition: opacity .25s ease; }
.fnetz .zielbox rect { fill: var(--k-bg); stroke: var(--k-leise); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 6.5; transition: fill .2s ease, stroke .2s ease; }
.fnetz .ziel-titel { fill: #fff; font-size: 13.5px; font-weight: 720; }
.fnetz .ziel-unter { fill: var(--k-leise); font-size: 11px; font-weight: 500; }
.fnetz .zielbox:focus-visible rect { stroke: var(--orange); }
.fnetz .zielbox.gewaehlt rect { fill: var(--orange); stroke: var(--orange); stroke-dasharray: none; }
.fnetz .zielbox.gewaehlt text { fill: #022334; }
.fnetz .n-zeichen text { fill: var(--k-leise); font-size: 10.5px; }
.fnetz .zeichen-halt { fill: #fff; stroke: var(--k-bg); stroke-width: 2.5; }
@media (hover: hover) {
  .fnetz .seg:hover .weg { stroke-width: 11; }
  .fnetz .halt-g:hover .ring { opacity: .7; }
  .fnetz .zielbox:hover rect { stroke: var(--orange); }
}
/* Du bist hier: die eigene Station leuchtet orange */
.fnetz .halt-g.ich .halt { fill: var(--orange); }
.fnetz .halt-g.ich .ring { opacity: 1; stroke: var(--orange); animation: netzpuls 2.4s ease-in-out infinite; }
@keyframes netzpuls { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .25; } }
/* Sobald etwas gewählt ist, leuchten nur die direkten Wege. Alles andere tritt weit zurück. */
.fnetz.aktiv .seg:not(.hell) { opacity: .1; }
.fnetz.aktiv .halt-g:not(.hell) .halt { opacity: .14; }
.fnetz.aktiv .hname:not(.hell), .fnetz.aktiv .abgang:not(.hell) { opacity: .16; }
.fnetz.aktiv .zielbox:not(.hell) { opacity: .4; }
@supports (color: color-mix(in srgb, red, blue)) {
  /* Gemischte Farben statt Durchsicht: So scheinen überlagerte Strecken nicht durch */
  .fnetz.aktiv .seg:not(.hell) { opacity: 1; --cc: color-mix(in srgb, var(--c) 7%, var(--k-bg)); --tt: color-mix(in srgb, var(--c) 24%, var(--k-bg)); }
  .fnetz.aktiv .halt-g:not(.hell) .halt { opacity: 1; fill: color-mix(in srgb, #fff 11%, var(--k-bg)); }
}

/* Auskunft unter der Karte */
.auskunft { border-top: 1px solid #1d4a61; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--weiss); font-size: 14.5px; line-height: 1.45; }
.ak-kopf { display: flex; flex-direction: column; gap: 4px; }
.ak-art { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.ak-art.ich::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(247, 157, 0, .3); }
.auskunft h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--weiss); font-size: 19px; font-weight: 720; line-height: 1.25; }
.ak-text { color: #a9c0cd; font-size: 14px; max-width: 70ch; }
.ak-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 2px 0 0; }
.ak-dl dt { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9c0cd; }
.ak-dl dd { margin: 2px 0 0; font-size: 14px; }
.fahrten { display: flex; flex-direction: column; }
.fahrt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; width: 100%;
  padding: 9px 6px; border: 0; border-top: 1px solid #1d4a61; background: transparent; color: var(--weiss);
  font-size: 14px; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fahrt:hover { background: #072d42; }
.fahrt .f-ziel { font-weight: 650; overflow-wrap: anywhere; }
.fahrt .f-hin { grid-column: 2; color: #a9c0cd; font-size: 13px; }
.fahrt .f-hin b { color: var(--weiss); font-weight: 600; font-variant-numeric: tabular-nums; }
.ak-zurueck {
  align-self: flex-start; margin-top: 4px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--orange);
  background: transparent; color: var(--orange-hell); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.ak-zurueck:hover { background: var(--orange); color: var(--navy); }
.netz-tipp {
  position: fixed; z-index: 70; max-width: 300px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: var(--weiss); color: var(--tinte-2); box-shadow: var(--schatten-gross); font-size: 13px; line-height: 1.4;
}
.netz-tipp b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 3px; color: var(--navy); font-size: 14px; }
.netz-tipp .n-pill { background: var(--p); color: var(--pt); }

/* ---------------------------------------------------------------- Bühne (weißes Blatt) */
.buehne {
  grid-area: buehne; background: var(--weiss); border-radius: var(--r) var(--r) 0 0;
  padding: 28px 20px 48px; outline: none; min-width: 0;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  container-type: inline-size;
}
.ansicht { max-width: 720px; margin: 0 auto; animation: rein .45s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes auf { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

[tabindex="-1"]:focus { outline: none; }
.kurz-text { display: none; }
@media (max-width: 480px) {
  .lang-text { display: none; } .kurz-text { display: inline; }
  .profil > div { grid-template-columns: 1fr; gap: 2px; }
  .marke-text small { font-size: 10px; }
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0; outline: none; }
h1 { font-size: clamp(26px, 5.2vw, 38px); font-weight: 780; color: var(--navy); }
h1.gross { font-size: clamp(36px, 8vw, 64px); font-weight: 820; letter-spacing: -.035em; }
/* Steht der Fahrplan daneben, ist das Blatt schmaler als das Fenster: Die Überschriften richten sich nach dem Blatt */
@supports (font-size: 1cqi) {
  .buehne h1 { font-size: clamp(26px, 6.4cqi, 38px); }
  .buehne h1.gross { font-size: clamp(36px, 10.5cqi, 64px); }
}
h2 { font-size: 22px; font-weight: 760; color: var(--navy); }
h3 { font-size: 19px; font-weight: 740; color: var(--navy); }
p { margin: 0; }
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-tief); margin-bottom: 12px; }
:lang(ar) .kicker, :lang(fa) .kicker { letter-spacing: 0; font-family: inherit; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--tinte-2); margin-top: 16px; max-width: 60ch; }
.hilfe { color: var(--grau); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fein { font-size: 14px; color: var(--grau); margin-top: 12px; }
.mitte { text-align: center; }
.hinweis { margin-top: 18px; padding: 10px 14px; border-radius: var(--r-s); background: var(--orange-weich); color: #6b4300; font-size: 14px; font-weight: 600; }
.etikett { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--orange-weich); color: #6b4300; }
.testhinweis { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--orange-tief); }

/* ---------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.knopf:active:not(:disabled) { transform: scale(.97); }
.knopf:disabled { opacity: .38; cursor: not-allowed; }
.knopf-primaer { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px -8px rgba(247, 157, 0, .9); }
.knopf-primaer:hover:not(:disabled) { background: var(--orange-hell); }
.knopf-sekundaer { background: var(--navy); color: var(--weiss); }
.knopf-sekundaer:hover { background: var(--navy-3); }
.knopf-leise { background: transparent; color: var(--navy); border-color: var(--linie-2); }
.knopf-leise:hover { border-color: var(--navy); }
.knopf-gross { min-height: 60px; padding: 16px 32px; font-size: 18px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.aktionen.zwei > .knopf { flex: 1 1 0; }
.navi { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--linie); }
.navi-rechts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------------- Start */
.start { padding-top: 8px; }
.start .lead { margin-top: 20px; }
.meta { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { font-size: 14px; font-weight: 600; color: var(--navy); padding: 6px 12px; border-radius: 999px; background: var(--papier); border: 1px solid var(--linie); }
.meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-inline-end: 8px; vertical-align: 1px; }

/* ---------------------------------------------------------------- Auswahl */
.wahl-liste { display: grid; gap: 10px; margin-top: 24px; }
.wahl {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%;
  min-height: 64px; padding: 12px 16px; text-align: start; cursor: pointer;
  background: var(--weiss); border: 2px solid var(--linie); border-radius: var(--r-s);
  transition: border-color .18s, background .18s, transform .15s var(--ease), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.wahl:hover { border-color: var(--linie-2); box-shadow: var(--schatten); }
.wahl:active { transform: scale(.99); }
.wahl-code {
  min-width: 44px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px; border-radius: 8px; background: var(--papier); color: var(--navy); border: 1px solid var(--linie);
  transition: background .18s, color .18s, border-color .18s;
}
.wahl-text { display: flex; flex-direction: column; gap: 2px; }
.wahl-text b { font-weight: 650; font-size: 17px; line-height: 1.3; }
.wahl-text small { color: var(--grau); font-size: 14px; }
.wahl-haken { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie-2); position: relative; transition: all .2s var(--ease); }
.wahl[role="checkbox"] .wahl-haken { border-radius: 7px; }
.wahl.an { border-color: var(--navy); background: #f2f6f9; }
.wahl.an .wahl-code { background: var(--navy); color: var(--weiss); border-color: var(--navy); }
.wahl.an .wahl-haken { background: var(--orange); border-color: var(--orange); }
.wahl.an .wahl-haken::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.skala { grid-template-columns: repeat(2, 1fr); }
@container (min-width: 600px) { .skala { grid-template-columns: repeat(4, 1fr); } .skala .wahl { grid-template-columns: 1fr; justify-items: center; text-align: center; } .skala .wahl-haken { display: none; } }

.check { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-s); border: 2px dashed var(--linie-2); cursor: pointer; font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--linie-2); position: relative; transition: all .2s; }
.check.an { border-style: solid; border-color: var(--navy); background: #f2f6f9; }
.check.an .check-box { background: var(--orange); border-color: var(--orange); }
.check.an .check-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.check:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------------------------------------------------------------- Interessen-Karten */
.karten { display: flex; flex-direction: column; }
.stapel { position: relative; height: 320px; margin: 8px auto 0; width: 100%; max-width: 460px; }
.karte-int {
  position: absolute; inset: 0; border-radius: 22px; padding: 26px 24px;
  background: var(--navy); color: var(--weiss); box-shadow: var(--schatten-gross);
  display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --ja: 0; --nein: 0;
}
.karte-int.vorn { cursor: grab; transition: transform .26s var(--ease), opacity .26s; animation: kartenrein .4s var(--ease); background:
  radial-gradient(120% 80% at 100% 0%, rgba(247, 157, 0, .18), transparent 55%), linear-gradient(160deg, var(--navy-2), var(--navy)); }
.karte-int.vorn.zieht { transition: none; cursor: grabbing; }
@keyframes kartenrein { from { transform: translateY(18px) scale(.96); opacity: .4; } }
.karte-int.hinten { background: var(--navy-3); }
.karte-int.hinten-1 { transform: translateY(12px) scale(.95); opacity: .55; }
.karte-int.hinten-2 { transform: translateY(24px) scale(.9); opacity: .3; }
.karte-int h2 { color: var(--weiss); font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.03em; margin-top: auto; }
.karte-int p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; }
.karte-nr { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--orange); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-gross { width: 56px; height: 56px; stroke-width: 1.3; color: var(--orange); }
.stempel { position: absolute; top: 24px; padding: 6px 12px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; pointer-events: none; }
.stempel-ja { inset-inline-start: 22px; color: var(--orange); border-color: var(--orange); opacity: var(--ja); transform: rotate(-10deg); }
.stempel-nein { inset-inline-end: 22px; color: #fff; border-color: #fff; opacity: var(--nein); transform: rotate(10deg); }
[dir="rtl"] .stempel-ja { opacity: var(--nein); } [dir="rtl"] .stempel-nein { opacity: var(--ja); }
.karte-int.weg-ja { transform: translateX(130%) rotate(16deg) !important; opacity: 0; }
.karte-int.weg-nein { transform: translateX(-130%) rotate(-16deg) !important; opacity: 0; }
[dir="rtl"] .karte-int.weg-ja { transform: translateX(-130%) rotate(-16deg) !important; }
[dir="rtl"] .karte-int.weg-nein { transform: translateX(130%) rotate(16deg) !important; }
.karte-int.weg-unbekannt { transform: translateY(-40px) scale(.9) !important; opacity: 0; }
.karten-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 36px auto 0; width: 100%; max-width: 460px; }
.karten-knoepfe .knopf-unbekannt { grid-column: 1 / -1; order: 3; background: var(--papier); color: var(--navy); border-color: var(--linie); }
.knopf-ja { background: var(--orange); color: var(--navy); }
.knopf-ja:hover { background: var(--orange-hell); }
.knopf-nein { background: var(--weiss); color: var(--navy); border-color: var(--navy); }
.knopf-nein:hover { background: var(--papier); }

.erkl-kopf { display: flex; align-items: center; gap: 16px; }
.erkl-kopf .ic-gross { color: var(--orange-tief); }
.frage-klein { margin-top: 28px; font-weight: 700; font-size: 18px; color: var(--navy); }

/* ---------------------------------------------------------------- Aufgaben */
.aufg-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aufg-kopf .kicker { margin: 0; }
.gebiet { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); padding: 4px 10px; border-radius: 999px; background: var(--papier); }
.aufg-balken { height: 6px; border-radius: 3px; background: var(--linie); margin: 14px 0 26px; overflow: hidden; }
.aufg-balken-fuellung { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .5s var(--ease); }
.aufg-frage { font-size: clamp(22px, 4.2vw, 30px); font-weight: 720; }

/* ---------------------------------------------------------------- Rechnen */
.rechnen { text-align: center; padding: 60px 0; }
.rechnen h1 { font-size: 22px; margin-top: 28px; }
.zug { display: flex; justify-content: center; gap: 10px; }
.zug span { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); animation: halt 1.1s ease-in-out infinite; }
.zug span:nth-child(2) { animation-delay: .15s; } .zug span:nth-child(3) { animation-delay: .3s; }
@keyframes halt { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- Ergebnis: Businessplan */
.ergebnis { max-width: 820px; }
.erg-kopf { padding-bottom: 28px; border-bottom: 3px solid var(--navy); }
.kapitel { padding: 30px 0; border-bottom: 1px solid var(--linie); }
.kapitel-titel { display: flex; align-items: baseline; gap: 14px; font-size: 24px; margin-bottom: 18px; }
.kapitel-nr { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--orange-tief); }
.profil { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--linie); border-radius: var(--r-s); overflow: hidden; }
.profil > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--linie); }
.profil > div:first-child { border-top: 0; }
.profil dt { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grau); padding-top: 3px; }
:lang(ar) .profil dt, :lang(fa) .profil dt { font-family: inherit; letter-spacing: 0; }
.profil dd { margin: 0; font-weight: 600; }

.staerken { display: grid; gap: 14px; }
.staerken > .fein { margin: 0 0 4px; }
.staerke { padding: 16px; border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--linie); }
.staerke-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.staerke-stufe { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.stufe-stark .staerke-stufe { background: var(--orange); color: var(--navy); }
.stufe-solide .staerke-stufe { background: var(--navy); color: #fff; }
.stufe-wachstum .staerke-stufe { background: #e7edf2; color: var(--navy); }
.balken { display: grid; grid-template-columns: 96px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; margin-top: 6px; }
.balken-name { color: var(--grau); font-weight: 600; }
.balken-bahn { height: 10px; border-radius: 5px; background: #e3e9ee; overflow: hidden; }
.balken-wert { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--navy); transition: width 1.2s var(--ease); }
.stufe-stark .balken-wert { background: var(--orange); }
.balken-zahl { font-family: var(--mono); font-weight: 700; text-align: end; }

.optionen { display: grid; gap: 16px; }
.option {
  position: relative; padding: 20px 20px 16px; border-radius: var(--r); border: 1px solid var(--linie); background: var(--weiss); box-shadow: var(--schatten);
  overflow: hidden;
}
.option::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--p, var(--navy)); }
.option.passung-hoch::before { background: var(--orange); }
.opt-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.opt-linie { font-size: 13px; font-weight: 600; color: var(--grau); }
.opt-passung { margin-inline-start: auto; font-size: 13px; font-weight: 800; color: var(--navy); padding: 3px 10px; border-radius: 999px; background: var(--papier); }
.passung-hoch .opt-passung { background: var(--orange); }
.option h3 { font-size: 21px; }
.option > p { margin-top: 6px; color: var(--tinte-2); }
.gruende { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.gruende li { position: relative; padding-inline-start: 24px; font-size: 15px; font-weight: 600; color: var(--navy); }
.gruende li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--orange); background: #fff; }
.opt-details { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 10px; }
.opt-details summary, .rueckblick summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.opt-details summary::-webkit-details-marker, .rueckblick summary::-webkit-details-marker { display: none; }
.opt-details summary::after, .rueckblick summary::after { content: ""; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg); }
.opt-felder { margin: 6px 0 0; display: grid; gap: 0; }
.opt-felder > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px dashed var(--linie); }
.opt-felder dt { font-size: 12px; font-weight: 700; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
:lang(ar) .opt-felder dt, :lang(fa) .opt-felder dt { font-family: inherit; letter-spacing: 0; }
.opt-felder dd { margin: 0; font-size: 15px; }
@container (min-width: 600px) { .opt-felder > div { grid-template-columns: 190px 1fr; gap: 16px; } }

.linien-marke {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--weiss); background: var(--navy); flex: none;
}

.route-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; color: var(--navy); }
.mini-netz { margin-top: 16px; background: var(--navy); border-radius: var(--r); padding: 12px; overflow-x: auto; }
.netz-mini { min-width: 620px; }

.weitere { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.weitere li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--linie); }
.weitere li:first-child { border-top: 0; }
.weitere li > span:last-child { display: flex; flex-direction: column; }
.weitere small { color: var(--grau); font-size: 14px; }

.rueckblick .rb { padding: 14px 0; border-top: 1px dashed var(--linie); }
.rb-marke { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.rb.ok .rb-marke { background: var(--gruen-weich); color: var(--gruen); }
.rb.nok .rb-marke { background: var(--orange-weich); color: #6b4300; }
.rb-frage { font-weight: 650; margin-top: 8px; }
.rb-loesung { margin-top: 4px; font-size: 15px; }

.schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.schritte li { counter-increment: s; position: relative; padding-inline-start: 44px; min-height: 32px; }
.schritte li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.schulkarte { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--papier); border: 1px solid var(--linie); }
.schulkarte > div { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.schulkarte small { color: var(--grau); }
.schulkarte a { font-weight: 600; color: var(--navy); }
.mitnehmen { display: flex; flex-wrap: wrap; gap: 10px; }

.warnung { grid-column: 1 / -1; background: #a33b00; color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; text-align: center; }
.app:has(.warnung) { grid-template-rows: auto auto auto 1fr; grid-template-areas: "warnung" "leiste" "netz" "buehne"; }
@media (min-width: 1100px) { .app:has(.warnung) { grid-template-rows: auto auto 1fr; grid-template-areas: "warnung warnung" "leiste leiste" "netz buehne"; } }
.warnung { grid-area: warnung; }

/* ---------------------------------------------------------------- Dialoge */
.modal, .messe-hinweis {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(2, 35, 52, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: rein .25s var(--ease);
}
.modal-karte { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--schatten-gross); text-align: center; }
.modal-karte h2 { margin-bottom: 16px; }
.qr { width: min(280px, 70vw); height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--linie); }

/* ---------------------------------------------------------------- Passwortschranke */
.schranke { display: flex; align-items: center; justify-content: center; padding: 16px; background:
  radial-gradient(90% 60% at 100% 0%, rgba(247, 157, 0, .16), transparent 60%), var(--navy); }
.schranke-karte { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 32px 28px; box-shadow: var(--schatten-gross); }
.schranke-logo { width: 82px; height: 100px; margin-bottom: 22px; }
.schranke-text { color: var(--tinte-2); margin: 12px 0 22px; }
.schranke label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.schranke input { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--linie-2); border-radius: var(--r-s); font-size: 17px; }
.schranke input:focus { outline: none; border-color: var(--navy); }
.schranke .knopf { width: 100%; margin-top: 16px; }
.schranke-fehler { color: #a33b00; font-weight: 600; margin-top: 10px; }

/* ---------------------------------------------------------------- Größere Bildschirme */
@media (min-width: 720px) {
  .leiste { padding: 16px 28px; }
  .netz { padding: 0 28px 16px; }
  .netz-innen { padding-inline: 24px; }
  .netz-rollen { margin: 0 -24px; padding: 0 24px; }
  .buehne { padding: 44px 40px 64px; margin: 0 12px; }
  .stapel { height: 340px; }
  .profil > div { padding: 14px 20px; }
  .sprachmenue { top: 64px; inset-inline-end: 28px; }
}
/* Ab hier steht der Fahrplan fest links neben dem Blatt und lässt sich nach links einklappen */
@media (min-width: 1100px) {
  .app {
    --netz-b: clamp(600px, 56vw, 940px);
    grid-template-columns: var(--netz-b) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "leiste leiste" "netz buehne";
    transition: grid-template-columns .36s var(--ease);
  }
  .app.netz-zu { grid-template-columns: 76px minmax(0, 1fr); }
  .leiste { flex-wrap: nowrap; }
  .fortschritt { order: 0; flex: 0 1 540px; margin: 0 24px; }
  .netz { position: sticky; top: 0; align-self: start; height: calc(100vh - 72px); padding: 0; overflow: hidden; }
  .netz-innen {
    position: static; z-index: auto; width: var(--netz-b); height: 100%; padding: 2px 20px 28px 28px;
    box-shadow: none; transform: none; visibility: visible; opacity: 1;
    transition: opacity .25s ease, visibility 0s;
  }
  .app.netz-auf .netz-innen { transition: opacity .25s ease .1s, visibility 0s; }
  .app.netz-zu .netz-innen { opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .36s; }
  .netz-rollen { margin: 0; padding: 0; overflow-x: visible; }
  .fnetz { min-width: 0; }
  .netz-schleier { display: none; }
  /* Eingeklappt bleibt ein schmaler Griff am linken Rand stehen */
  .netz-griff { display: none; }
  .app.netz-zu .netz-griff {
    display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
    position: absolute; top: 2px; bottom: 28px; left: 16px; width: 48px; min-height: 0; padding: 16px 0; border-radius: 16px;
    animation: rein .3s var(--ease) .2s backwards;
  }
  .app.netz-zu .netz-griff-text { flex: none; flex-direction: row; align-items: center; gap: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .app.netz-zu .netz-griff-text b { font-size: 14px; letter-spacing: .02em; }
  .app.netz-zu .netz-griff-text small { overflow: visible; }
  .app.netz-zu .netz-griff-pfeil { order: -1; }
  .buehne { margin: 0 16px 0 0; border-radius: 24px 24px 0 0; padding: 48px 40px 80px; min-height: calc(100vh - 72px); }
  .app.netz-zu .buehne { padding: 56px 64px 80px; }
  .nur-schmal-karte .mini-netz { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Messe: etwas größer für Tablets an Ständen */
body.messe { font-size: 18px; }
body.messe .knopf { min-height: 56px; }

/* ---------------------------------------------------------------- Druck */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 11pt; }
  .leiste, .netz, .netz-schleier, .netz-tipp, .kein-druck, .opt-details summary, .skip, .modal { display: none !important; }
  .app { display: block; }
  .buehne { padding: 0; margin: 0; border-radius: 0; }
  .ansicht { animation: none; max-width: none; }
  .option, .staerke, .schulkarte { box-shadow: none; break-inside: avoid; }
  details > *:not(summary) { display: block !important; }
  .mini-netz { display: block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow: visible; break-inside: avoid; }
  .netz-mini { min-width: 0; }
  .kapitel-titel { break-after: avoid; }
  .nur-schmal-karte { break-inside: avoid; }
  .linien-marke, .n-pill, .option::before, .staerke-stufe, .opt-passung, .balken-wert { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
