/* 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; }
  .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-text { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--tinte-2); font: inherit; font-size: 15px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--linie-2); text-underline-offset: 4px; cursor: pointer; }
.knopf-text:hover { color: var(--navy); text-decoration-color: var(--navy); }
.aufg-aus { margin: 10px 0 -14px; text-align: end; }
.aufg-aus.weg { visibility: hidden; }
.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, minmax(0, 1fr)); }
/* schmal: zwei Spalten, deshalb ohne Haken und mit kleiner Nummer, sonst sprengen lange Wörter wie „spannend“ die Breite */
.skala .wahl { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; }
.skala .wahl-haken { display: none; }
.skala .wahl-code { min-width: 32px; }
.skala .wahl-text b { font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }
@container (min-width: 600px) { .skala { grid-template-columns: repeat(4, minmax(0, 1fr)); } .skala .wahl { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 16px; justify-items: center; text-align: center; } .skala .wahl-code { min-width: 44px; } .skala .wahl-text b { font-size: 17px; } }

.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; }
/* Bildkarte eines Berufsfelds: oben das Bild, darunter Name und ein Satz. Die vordere Karte gibt dem Stapel die Höhe. */
.stapel { position: relative; margin: 8px auto 0; width: 100%; max-width: 460px; }
.karte-int {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: var(--navy); color: var(--weiss); box-shadow: var(--schatten-gross);
  display: flex; flex-direction: column; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --ja: 0; --nein: 0;
}
.karte-int.vorn { position: relative; inset: auto; cursor: grab; transition: transform .26s var(--ease), opacity .26s; animation: kartenrein .4s var(--ease); }
.karte-bild { position: relative; aspect-ratio: 3 / 2; background: #01273c; flex: none; }
.karte-bild.ohne { aspect-ratio: 3 / 1; background: radial-gradient(120% 120% at 100% 0%, rgba(247, 157, 0, .18), transparent 55%), linear-gradient(160deg, var(--navy-2), var(--navy)); }
.karte-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* weicher Übergang vom Bild in den Textteil, damit keine Kante zu sehen ist */
.karte-bild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to bottom, rgba(2, 35, 52, 0), var(--navy)); pointer-events: none; }
.karte-text { display: flex; flex-direction: column; gap: 8px; padding: 6px 22px 20px; min-height: 146px; }
/* Schmale Bildschirme: Bild etwas flacher und alles enger, damit Karte und Knöpfe zusammen ins Bild passen */
@media (max-width: 559px) {
  .app[data-ansicht="karten"] .buehne { padding-top: 16px; }
  .karten > .kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .stapel { margin-top: 0; }
  .karte-bild { aspect-ratio: 16 / 9; }
  .karte-text { min-height: 152px; padding-bottom: 16px; }
  .karten .karten-knoepfe { margin-top: 14px; gap: 8px; }
  .karten-knoepfe .knopf { padding-inline: 10px; }
  .karten > .fein { margin-top: 10px; }
}
@media (max-width: 379px) {
  .karten-knoepfe .knopf { font-size: 15px; padding-inline: 6px; }
}
.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(22px, 5.6vw, 27px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.karte-int p { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.42; }
.karte-nr { position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(2, 35, 52, .72);
  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: 56px; padding: 6px 12px; background: rgba(2, 35, 52, .78); 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; margin-bottom: 18px; }
.erkl-kopf h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.erkl-bild { position: relative; flex: none; width: clamp(112px, 34%, 200px); aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #01273c; }
.erkl-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Handy: Bild als flaches Band über dem Namen, damit lange Namen die ganze Breite haben */
@media (max-width: 559px) {
  .erkl-kopf { flex-direction: column; align-items: stretch; gap: 14px; }
  .erkl-bild { width: 100%; aspect-ratio: 5 / 2; }
  /* das ganze Bild in der Mitte des Bands, die Seitenkanten laufen weich in den Grund aus */
  .erkl-bild img { object-fit: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 24%, #000 76%, transparent 80%);
    mask-image: linear-gradient(to right, transparent 20%, #000 24%, #000 76%, transparent 80%); }
}
.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; }
.aufg-frage.lang { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.22; }

/* Der Check: drei Kategorien mit eigener Farbe (Berufsalltag blau, Motivation orange, Vorwissen grün) */
.kat-alltag { --kat: var(--navy-3); --kat-weich: #e6eef4; --kat-text: var(--navy); }
.kat-motivation { --kat: var(--orange); --kat-weich: var(--orange-weich); --kat-text: #6b4300; }
.kat-vorwissen { --kat: var(--gruen); --kat-weich: var(--gruen-weich); --kat-text: #0f5a3a; }
.kat-marke { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--kat-weich); color: var(--kat-text); }
.kat-marke .ic { width: 18px; height: 18px; stroke-width: 2; }
.aufgabe .aufg-balken-fuellung { background: var(--kat); }
.aufg-feld { display: flex; align-items: center; gap: 12px; margin: -8px 0 14px; font-size: 14px; font-weight: 700; color: var(--navy); }
.aufg-feld-text { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; flex: 1; }
.aufg-feld-bild { position: relative; flex: none; width: 54px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #01273c; }
.aufg-feld-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.aufg-feld-name { min-width: 0; overflow-wrap: anywhere; }
.stufe-marke { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grau); }
.stufe-punkte { display: inline-flex; gap: 3px; }
.stufe-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--linie-2); }
.stufe-punkte i.an { background: var(--gruen); }

/* Start des Checks: die drei Kategorien */
.check-felder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--navy); }
.check-feld { font-weight: 650; padding: 5px 12px; border-radius: 999px; background: var(--papier); border: 1px solid var(--linie); }
.kat-liste { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: 62ch; }
.kat-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--linie); border-inline-start: 4px solid var(--kat); }
.kat-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kat-weich); color: var(--kat-text); }
.kat-zeile b { display: block; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.kat-zeile small { display: block; margin-top: 2px; font-size: 14px; color: var(--tinte-2); line-height: 1.4; }
.check-intro > .fein { max-width: 62ch; }

/* Favoriten: Auswahl der Berufsfelder für den Check */
.fav-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-top: 22px; }
.fav { position: relative; display: flex; flex-direction: column; padding: 0; text-align: start; font: inherit; color: var(--navy); background: var(--weiss); border: 2px solid var(--linie); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease), transform .12s var(--ease); }
.fav:hover { border-color: var(--linie-2); box-shadow: var(--schatten); }
.fav:active { transform: scale(.985); }
.fav-bild { position: relative; display: block; aspect-ratio: 3 / 2; background: #01273c; }
.fav-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.fav-name { display: block; padding: 10px 12px 12px; font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.fav .wahl-haken { position: absolute; top: 8px; inset-inline-end: 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(2, 35, 52, .35); }
.fav.an { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-weich); }
.fav.an .wahl-haken { background: var(--orange); border-color: var(--orange); }
.fav.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); }
.fav.zu { opacity: .45; cursor: default; }
.fav.zu:hover { border-color: var(--linie); box-shadow: none; }
.fav-zaehler { margin-top: 16px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--tinte-2); }
@media (max-width: 420px) { .fav-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fav-name { font-size: 14px; padding: 8px 10px 10px; } }

/* ---------------------------------------------------------------- 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: der eigene Fahrplan */
.ergebnis { max-width: 820px; }
.erg-kopf { padding-bottom: 6px; }

/* Fahrkarte: die Fahrt vom eigenen Abschluss zum Ziel, daneben (am Handy darunter) der Abschnitt mit Reiseart und Richtung */
.fahrkarte {
  position: relative; display: grid; margin-top: 28px; border-radius: 20px; overflow: hidden; color: #fff;
  background: radial-gradient(110% 90% at 100% 0%, rgba(247, 157, 0, .2), transparent 58%), var(--navy);
  box-shadow: var(--schatten-gross);
}
.fk-kopf {
  display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 13px 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); border-bottom: 1px solid var(--navy-line);
}
.fk-kopf span:first-child { color: var(--orange-hell); }
.fk-fahrt { padding: 20px 20px 22px; }
.fk-ort { position: relative; display: flex; flex-direction: column; padding-inline-start: 36px; }
.fk-ort::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 24px; width: 20px; height: 20px; border-radius: 50%;
  border: 4px solid #fff; background: var(--navy);
}
.fk-von { padding-bottom: 22px; }
.fk-von::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 157, 0, .28); }
.fk-von::after {
  content: ""; position: absolute; inset-inline-start: 8px; top: 48px; bottom: -24px; width: 4px;
  background: linear-gradient(var(--orange), #fff);
}
.fk-klein, .fk-abschnitt dt {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.fk-ort b { margin-top: 2px; font-size: 28px; font-size: clamp(24px, 7.2cqi, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.fk-ort b span { display: block; }
.fk-unter { margin-top: 4px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.fk-abschnitt {
  position: relative; display: grid; gap: 14px; align-content: start; margin: 0; padding: 18px 20px 20px;
  border-top: 2px dashed rgba(255, 255, 255, .3);
}
/* Kerben der Abrisskante */
.fk-abschnitt::before, .fk-abschnitt::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--weiss); }
.fk-abschnitt::before { inset-inline-start: -11px; }
.fk-abschnitt::after { inset-inline-end: -11px; }
.fk-abschnitt dd { margin: 3px 0 0; font-weight: 650; }
.fk-richtung { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fk-richtung li { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.fk-richtung .mehr { border-style: dashed; color: rgba(255, 255, 255, .78); }
:lang(ar) .fk-klein, :lang(fa) .fk-klein, :lang(ar) .fk-abschnitt dt, :lang(fa) .fk-abschnitt dt, :lang(ar) .fk-kopf, :lang(fa) .fk-kopf { font-family: inherit; letter-spacing: 0; }
@container (min-width: 640px) {
  .fahrkarte { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .fk-ort b { font-size: clamp(26px, 4.6cqi, 34px); }
  .fk-kopf { padding-inline: 28px; }
  .fk-fahrt { padding: 24px 28px 28px; }
  .fk-abschnitt { padding: 22px 24px 24px 26px; border-top: 0; border-inline-start: 2px dashed rgba(255, 255, 255, .3); }
  .fk-abschnitt::before { top: -11px; inset-inline-start: -12px; }
  .fk-abschnitt::after { top: auto; bottom: -11px; inset-inline: -12px auto; }
}

/* Die Halte der Seite: eine durchgehende Strecke am linken Rand, jeder Abschnitt ist ein Halt */
.halte { --gleis: 19px; margin-top: 10px; padding-inline-start: 10px; }
.kapitel { position: relative; padding: 32px 0 12px; }
.kapitel::before { content: ""; position: absolute; inset-inline-start: calc(-2px - var(--gleis)); top: 0; bottom: 0; width: 4px; background: var(--navy); }
.kapitel:first-child::before { top: 46px; }
.kapitel:last-child::before { bottom: auto; height: 46px; }
.kapitel-titel { font-size: 24px; line-height: 1.2; margin-bottom: 14px; }
.kapitel-halt {
  position: absolute; inset-inline-start: calc(-8px - var(--gleis)); top: 38px; width: 16px; height: 16px; border-radius: 50%;
  border: 4px solid var(--navy); background: var(--weiss);
}
.kapitel:last-child .kapitel-halt { background: var(--orange); }
.kap-text { margin: -6px 0 16px; max-width: 60ch; color: var(--tinte-2); }

.staerken { display: grid; gap: 14px; }
.staerken > .fein { margin: 2px 0 0; }
.staerke { padding: 16px; border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--linie); }
.staerke-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; margin-bottom: 14px; }
.staerke-bild { position: relative; width: 72px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #01273c; }
.staerke-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.staerke-titel { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.staerke-titel b { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.staerke-gesamt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.staerke-gesamt b { font-family: var(--mono); font-size: clamp(24px, 5vw, 30px); font-weight: 700; color: var(--navy); white-space: nowrap; }
.staerke-gesamt small { font-size: 12px; font-weight: 600; color: var(--grau); }
@media (max-width: 420px) { .staerke-kopf { grid-template-columns: minmax(0, 1fr) auto; } .staerke-bild { display: none; } }
.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: 124px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; margin-top: 8px; }
.balken-name { display: inline-flex; align-items: center; gap: 6px; color: var(--tinte-2); font-weight: 600; }
.balken-name .ic { width: 16px; height: 16px; stroke-width: 2; color: var(--grau); }
.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; }

/* Verbindung: ein empfohlener Bildungsgang, oben das Band in der Farbe seiner Linie */
.optionen { display: grid; gap: 18px; }
.option {
  position: relative; padding: 22px 18px 14px; border-radius: var(--r); border: 1px solid var(--linie); background: var(--weiss); box-shadow: var(--schatten);
  overflow: hidden;
}
.option::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--p, var(--navy)); }
.opt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.opt-nr, .str-daten dt, .str-name small {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--grau);
}
:lang(ar) .opt-nr, :lang(fa) .opt-nr, :lang(ar) .str-daten dt, :lang(fa) .str-daten dt,
:lang(ar) .str-name small, :lang(fa) .str-name small { font-family: inherit; letter-spacing: 0; }
.opt-passung { 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; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* Strecke: eigener Halt, Linie, Ankunft */
.strecke { margin-top: 16px; padding: 18px 16px 14px; border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--linie); }
.str-gleis { display: flex; align-items: center; }
.str-punkt { position: relative; z-index: 1; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--navy); background: var(--weiss); }
.str-punkt.ich { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 157, 0, .26); }
.str-punkt.klein { width: 14px; height: 14px; border-width: 3px; }
.str-punkt.ende { background: var(--navy); box-shadow: inset 0 0 0 3px var(--weiss); }
.str-fahrt { flex: 1 1 0; min-width: 0; height: 6px; margin-inline: -3px; background: var(--p, var(--navy)); display: flex; align-items: center; justify-content: center; }
.str-fahrt .n-pill { box-shadow: 0 0 0 3px var(--papier); }
.str-namen { display: grid; gap: 8px; margin-top: 12px; }
.str-namen.halte-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.str-namen.halte-3 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.str-name { display: flex; flex-direction: column; min-width: 0; }
.str-name b { font-size: 16px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.str-bis { align-items: flex-end; text-align: end; }
.str-mitte { align-items: center; align-self: end; text-align: center; }
.str-mitte b { font-size: 14px; font-weight: 650; color: var(--tinte-2); }
.str-daten { margin: 14px 0 0; display: grid; gap: 8px; }
.str-daten > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.str-daten dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.str-anschluss { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
/* Linien im Anschluss lassen sich antippen: Das Liniennetz zeigt sie dann */
.str-linie { position: relative; border: 0; cursor: pointer; font-family: inherit; transition: box-shadow .15s; }
.str-linie::after { content: ""; position: absolute; inset: -10px -3px; }
.str-linie:hover, .str-linie:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--weiss), 0 0 0 4px var(--p); }
.str-ziel { display: inline-flex; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--tinte-2); }
.str-ziel::before { content: ""; flex: none; width: 6px; height: 6px; margin-block-start: 7px; margin-inline-end: 7px; border: solid var(--orange-tief); border-width: 2px 2px 0 0; transform: rotate(45deg); }
[dir="rtl"] .str-ziel::before { transform: rotate(-135deg); }

.gruende { list-style: none; padding: 0; margin: 16px 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; }

/* Unter der Strecke zwei Knöpfe, je halbe Breite: „Details“ und „Berufe ausprobieren“. Jeder öffnet seine Klappe. */
.opt-knoepfe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.opt-knoepfe.allein { grid-template-columns: minmax(0, 1fr); }
.opt-knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 12px;
  border-radius: 14px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 760; line-height: 1.2; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.opt-knopf > span:first-child { min-width: 0; }
.opt-knopf:active { transform: scale(.98); }
.opt-knopf-details { background: var(--navy); color: var(--weiss); }
.opt-knopf-berufe { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px -10px rgba(247, 157, 0, .9); }
@media (hover: hover) {
  .opt-knopf-details:hover { background: var(--navy-3); }
  .opt-knopf-berufe:hover { background: var(--orange-hell); }
}
.opt-knopf:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 14px; }
.opt-knopf-details:focus-visible { outline-color: var(--orange); }
.opt-pfeil { flex: none; width: 9px; height: 9px; margin-top: -4px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; }
.opt-knopf[aria-expanded="true"] .opt-pfeil { margin-top: 5px; transform: rotate(-135deg); }
.opt-knopf[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--weiss), 0 0 0 5px var(--navy); }
.opt-knopf-berufe[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--weiss), 0 0 0 5px var(--orange); }
@media (max-width: 400px) { .opt-knopf { font-size: 14.5px; gap: 6px; padding-inline: 6px; } .opt-knoepfe { gap: 8px; } }
@media (max-width: 345px) { .opt-knoepfe { grid-template-columns: minmax(0, 1fr); } }
.opt-klappe { margin-top: 18px; animation: auf .2s var(--ease); }
.opt-klappe > .str-daten { margin-top: 0; }
.opt-klappe > .opt-felder { margin-top: 16px; }

/* Berufsfelder einer Verbindung in der Klappe „Berufe ausprobieren“ */
.proben { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.probe {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 12px;
  border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--linie);
}
.probe.ohne-bild { grid-template-columns: minmax(0, 1fr); }
.probe-bild { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #01273c; }
.probe-bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.probe-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.probe-text b { font-size: 16.5px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.probe-text span { font-size: 14px; line-height: 1.4; color: var(--tinte-2); }
.probe.begonnen .probe-text span { font-weight: 700; color: var(--navy); }
.probe.folgt .probe-text span { color: var(--grau); }
.probe-knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.probe-knoepfe .knopf { min-height: 46px; padding: 10px 20px; font-size: 15.5px; }
.probe-knoepfe .knopf-primaer { flex: 1 1 auto; }
@container (min-width: 600px) {
  .probe { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .probe.ohne-bild { grid-template-columns: minmax(0, 1fr) auto; }
  .probe-knoepfe { grid-column: auto; flex-direction: column; align-items: stretch; }
}

.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) {
  .option { padding: 26px 24px 16px; }
  .opt-felder > div { grid-template-columns: 190px 1fr; gap: 16px; }
  .strecke { padding: 20px 22px 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;
}

.mini-netz { 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; padding-top: 2px; }
.weitere li > span:last-child { display: flex; flex-direction: column; }
.weitere small { color: var(--grau); font-size: 14px; }

/* Weitere Verbindungen: Der Hinweis steht da, die Liste klappt auf */
.weitere-klappe > summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px; cursor: pointer; list-style: none;
  border: 2px solid var(--linie-2); background: var(--weiss); color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.2;
  transition: border-color .2s; -webkit-tap-highlight-color: transparent;
}
.weitere-klappe > summary::-webkit-details-marker { display: none; }
.weitere-klappe > summary:hover { border-color: var(--navy); }
.weitere-klappe > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.weitere-klappe[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.weitere-klappe .auf, .weitere-klappe[open] .zu { display: none; }
.weitere-klappe[open] .auf { display: inline; }
.weitere-klappe > .weitere { margin-top: 16px; animation: auf .2s var(--ease); }

/* Einsteigen: die drei nächsten Schritte */
.schritte { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.schritte li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--linie); border-inline-start: 6px solid var(--orange); background: var(--weiss); box-shadow: var(--schatten);
}
.schritt-nr {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--weiss); font-family: var(--mono); font-size: 19px; font-weight: 700;
}
.schritt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.schritt-text b { font-size: 18px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.schritt-text span { font-size: 15.5px; line-height: 1.45; color: var(--tinte-2); }
.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; min-width: 0; overflow-wrap: anywhere; }
.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; }
  .halte { --gleis: 22px; padding-inline-start: 0; }
  .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; }
  /* das Liniennetz steht hier links neben dem Blatt */
  .kapitel.nur-schmal { 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-knoepfe, .klappe-berufe, .weitere-klappe > summary, .skip, .modal { display: none !important; }
  .klappe-details[hidden] { display: block !important; }
  .app { display: block; }
  .buehne { padding: 0; margin: 0; border-radius: 0; }
  .ansicht { animation: none; max-width: none; }
  .option, .staerke, .schulkarte, .fahrkarte { box-shadow: none; break-inside: avoid; }
  details > *:not(summary) { display: block !important; }
  .kapitel.nur-schmal { display: block !important; break-inside: avoid; }
  .mini-netz { -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow: visible; }
  .netz-mini { min-width: 0; }
  .kapitel-titel { break-after: avoid; }
  /* Die Strecke am Rand gehört zum Bildschirm */
  .halte { padding-inline-start: 0; }
  .kapitel::before, .kapitel-halt, .str-linie::after { display: none; }
  .kapitel { padding: 20px 0 6px; }
  .schritte li { box-shadow: none; break-inside: avoid; }
  /* Fahrkarte hell drucken: spart Farbe und bleibt auch ohne Hintergrunddruck lesbar */
  .fahrkarte { background: #fff; color: var(--tinte); border: 2px solid var(--navy); }
  .fk-kopf { border-bottom-color: var(--linie-2); }
  .fk-kopf, .fk-klein, .fk-abschnitt dt, .fk-unter { color: var(--tinte-2); }
  .fk-kopf span:first-child { color: var(--orange-tief); }
  .fk-ort::before { border-color: var(--navy); background: #fff; }
  .fk-von::before { border-color: var(--orange); }
  .fk-von::after { background: var(--navy); }
  .fk-abschnitt { border-color: var(--linie-2); }
  .fk-abschnitt::before, .fk-abschnitt::after { display: none; }
  .fk-richtung li { border-color: var(--linie-2); }
  .fk-richtung .mehr { color: var(--tinte-2); }
  .linien-marke, .n-pill, .option::before, .staerke-stufe, .opt-passung, .balken-wert, .str-fahrt, .str-punkt, .fk-ort::before, .fk-von::after, .gruende li::before, .schritt-nr {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
