/* ============================================================
   INGmatch v4 — "Netzplan Soft"
   Kombi aus v3 "Netzplan" (Metapher, Struktur, Logo) und
   Softpop (Wärme, Pastell, runde Formen, weiche Schatten).
   Regeln: KEINE einseitigen Borders (kein border-left/top-Akzent),
   KEINE Monospace-Fonts. Trennung durch Fläche, Tint und Schatten.
   ============================================================ */

:root {
  /* Kernfarben */
  --tinte:     #37304A;   /* Pflaume-Dunkel: Schrift & Tafel */
  --tinte-70:  #5F5975;
  --tinte-45:  #948FA6;
  --tinte-20:  #D9D6E0;
  --tinte-08:  #EFEDF3;
  --grund:     #FBF6F0;   /* warmes Creme (Softpop-Erbe) */
  --karte:     #FFFFFF;
  --rot:       #E8452E;   /* Standort-Koralle: "Du bist hier" + CTA */
  --rot-dark:  #C93520;
  --rot-tint:  #FDE9E5;

  /* Pastell-Familie (Softpop) */
  --pfirsich:  #FFB39B;
  --lavendel:  #C5B3F0;
  --mint:      #9FE0C4;
  --butter:    #FFE08A;
  --pfirsich-t:#FFEFE8;
  --lavendel-t:#F0EBFB;
  --mint-t:    #E4F6EE;
  --butter-t:  #FFF5D6;

  /* Linienfarben (Zukunftsfelder F1–F8, warm harmonisiert) */
  --f1: #F2A93B;
  --f2: #C97D57;
  --f3: #4D8FE0;
  --f4: #E2679A;
  --f5: #8B6FE8;
  --f6: #3FA8B8;
  --f7: #7A87B8;
  --f8: #5CB86E;

  /* Typografie — zwei Stimmen, kein Mono */
  --disp: 'Archivo', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;

  /* Form */
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 2px 6px rgba(55, 48, 74, 0.05), 0 12px 32px rgba(55, 48, 74, 0.10);
  --shadow-lift: 0 4px 10px rgba(55, 48, 74, 0.07), 0 20px 48px rgba(55, 48, 74, 0.14);

  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: var(--grund);
  color: var(--tinte);
  line-height: 1.6;
  font-size: 16.5px;
  width: 100%;
  overflow-x: clip;
  position: relative;
  overscroll-behavior-x: none;
}
/* touch-action: manipulation entfernt den Tap-Delay + Doppeltipp-Zoom auf Mobile */
button, a { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; touch-action: manipulation; }
::selection { background: var(--rot); color: #fff; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; border-radius: 6px; }

/* Etiketten-Stil: Archivo caps statt Mono */
.tag {
  font-family: var(--disp); font-weight: 700; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase;
}

/* ---------- Pastell-Blobs im Hintergrund (Softpop-Erbe) ---------- */
.blob { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(2px); }
.blob-1 { width: 340px; height: 340px; top: -140px; left: -120px; background: var(--pfirsich); opacity: 0.34; animation: drift 16s ease-in-out infinite alternate; }
.blob-2 { width: 260px; height: 260px; top: 32%; right: -130px; background: var(--mint); opacity: 0.35; animation: drift 19s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 300px; height: 300px; bottom: -150px; left: 12%; background: var(--lavendel); opacity: 0.30; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(26px, 18px) scale(1.07); }
}
.dachzeile, .kopf, .haltband, main, .fussleiste { position: relative; z-index: 1; max-width: 100%; }

/* ---------- Dachzeile ---------- */
.dachzeile {
  background: var(--tinte); color: #fff;
  font-size: 12.5px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 22px;
}
.dachzeile span:last-child { opacity: 0.6; }

/* ---------- Kopf: Logo + Stationsleiste ---------- */
.kopf { background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(55,48,74,0.06); }
.kopf-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--tinte); }
.logo .badge-ing {
  font-family: var(--disp); font-weight: 800; font-stretch: 110%;
  font-size: 17px; letter-spacing: 0.5px;
  background: var(--rot); color: #fff;
  padding: 3px 9px 4px; border-radius: 9px;
}
.logo .wort {
  font-family: var(--disp); font-weight: 800; font-stretch: 110%;
  font-size: 21px; letter-spacing: -0.3px; margin-left: 6px;
}

.stations { display: flex; align-items: center; }
.station {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--disp); font-weight: 600; font-size: 12px;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--tinte-45); padding: 6px 0;
  transition: color 0.2s ease;
}
.station .st-dot {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  background: var(--tinte-20);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.station .st-track { width: 32px; height: 4px; border-radius: 2px; background: var(--tinte-20); margin: 0 8px; transition: background 0.25s ease; }
.station.done { color: var(--tinte-70); }
.station.done .st-dot { background: var(--tinte); }
.station.done .st-track { background: var(--tinte); }
.station.active { color: var(--tinte); font-weight: 800; }
.station.active .st-dot { background: #fff; box-shadow: 0 0 0 3.5px var(--rot); animation: dotPulse 2.2s ease-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3.5px var(--rot); }
  50% { box-shadow: 0 0 0 5px var(--rot); }
}

/* ---------- Sub-Fortschritt: Haltestellenband ---------- */
.haltband {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px 0;
  display: none; align-items: center;
}
.haltband.visible { display: flex; }
.hb-dots { display: flex; align-items: center; flex: 1; }
.hb-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--tinte-08); }
.hb-seg.done { background: var(--mint); }
.hb-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--tinte-20); }
.hb-dot.done { background: var(--mint); }
.hb-dot.now { width: 15px; height: 15px; background: #fff; box-shadow: 0 0 0 3px var(--rot); }
.hb-label { font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--tinte-70); margin-left: 16px; white-space: nowrap; }

/* ---------- Screens ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.screen { display: none; padding: 32px 0 64px; }
.screen.active { display: block; animation: screenIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.05); }
@keyframes screenIn { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--disp); font-weight: 700; font-size: 11.5px;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--tinte-70);
  background: var(--karte); border-radius: 999px; padding: 7px 16px 7px 10px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rot); }

h1 {
  font-family: var(--disp); font-weight: 800; font-stretch: 114%;
  font-size: 46px; line-height: 1.05; letter-spacing: -1.1px; margin-bottom: 18px;
}
h1 .w { display: inline-block; animation: wordUp 0.65s cubic-bezier(0.2, 0.85, 0.25, 1.1) both; }
@keyframes wordUp { from { opacity: 0; transform: translateY(22px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
h1 .hl { position: relative; white-space: nowrap; }
h1 .hl::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 0.34em;
  background: var(--butter); border-radius: 6px; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: hlIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.9s;
}
@keyframes hlIn { to { transform: scaleX(1); } }

.locator-dot {
  display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%;
  background: var(--rot); margin-left: 0.07em; position: relative;
}
.locator-dot::after {
  content: ''; position: absolute; inset: -0.15em; border-radius: 50%;
  border: 3px solid var(--rot); opacity: 0;
  animation: locatorPulse 2.4s ease-out infinite 1.4s;
}
@keyframes locatorPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

.lead { font-size: 18.5px; color: var(--tinte-70); max-width: 540px; margin-bottom: 24px; }
.lead b { color: var(--tinte); font-weight: 800; }

/* ---------- Intro ---------- */
.hero { display: grid; gap: 36px; margin-top: 10px; align-items: center; }
.hero-netz { order: -1; position: relative; }
.hero-netz svg { width: 100%; height: auto; display: block; }
.hero-text > * { animation: fadeUp 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: 0.08s; }
.hero-text > *:nth-child(3) { animation-delay: 0.16s; }
.hero-text > *:nth-child(4) { animation-delay: 0.26s; }
.hero-text > *:nth-child(5) { animation-delay: 0.36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.pill {
  font-weight: 800; font-size: 13.5px;
  padding: 7px 16px; border-radius: 999px; color: var(--tinte);
}
.pill.p-butter { background: var(--butter-t); }
.pill.p-mint { background: var(--mint-t); }
.pill.p-lavendel { background: var(--lavendel-t); }

.cta-zeile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-hinweis { font-size: 13.5px; color: var(--tinte-45); max-width: 240px; line-height: 1.45; }

/* So geht's + Datenschutz */
.intro-unten { display: grid; gap: 20px; margin-top: 42px; }
.soft-card { background: var(--karte); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }
.soft-card h3 { font-family: var(--disp); font-weight: 800; font-stretch: 108%; font-size: 19px; letter-spacing: -0.2px; margin-bottom: 16px; }

.schritte { display: grid; gap: 16px; }
.schritt { display: flex; gap: 14px; align-items: flex-start; }
.schritt-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 15px;
}
.schritt:nth-child(1) .schritt-num { background: var(--butter); }
.schritt:nth-child(2) .schritt-num { background: var(--mint); }
.schritt:nth-child(3) .schritt-num { background: var(--lavendel); }
.schritt b { display: block; font-weight: 800; font-size: 15.5px; }
.schritt span { font-size: 14px; color: var(--tinte-70); }

.consent ul { list-style: none; margin-bottom: 12px; }
.consent li { position: relative; padding: 5px 0 5px 30px; font-size: 14.5px; color: var(--tinte-70); font-weight: 600; }
.consent li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 19px; height: 19px; border-radius: 50%; background: var(--mint-t);
}
.consent li::after {
  content: ''; position: absolute; left: 5px; top: 13px;
  width: 9px; height: 5px;
  border-left: 2.5px solid #2E8C5F; border-bottom: 2.5px solid #2E8C5F;
  transform: rotate(-45deg);
}
.consent .fine { font-size: 13px; color: var(--tinte-45); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--disp); font-weight: 800; font-stretch: 106%;
  font-size: 17px; letter-spacing: 0.2px;
  padding: 16px 32px; border-radius: 999px;
  transition: background 0.15s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.4), box-shadow 0.18s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--rot); color: #fff; box-shadow: 0 6px 20px rgba(232, 69, 46, 0.32); }
.btn-primary:hover { background: var(--rot-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232, 69, 46, 0.36); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-dunkel { background: var(--tinte); color: #fff; box-shadow: var(--shadow); }
.btn-dunkel:hover { background: #262138; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-hell { background: var(--karte); color: var(--tinte); box-shadow: var(--shadow); }
.btn-hell:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: none; color: var(--tinte-45); font-family: var(--body); font-size: 14.5px; font-weight: 700; padding: 12px; }
.btn-ghost:hover { color: var(--tinte); }

/* ---------- Stufe 1: Karten ---------- */
.deck-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
.deck {
  position: relative; width: 100%; max-width: 420px;
  height: min(58vh, 500px); min-height: 400px; margin: 18px 0 18px;
  touch-action: pan-y;
}
.swipe-card {
  position: absolute; inset: 0;
  background: var(--karte); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
  will-change: transform; user-select: none;
  box-shadow: var(--shadow);
}
.swipe-card.top { cursor: grab; box-shadow: var(--shadow-lift); }
/* Einzugs-Animation nur beim ersten Austeilen (.deal) — Nachrücken läuft über .restack,
   damit die darunterliegende Karte beim Wischen nicht "aufploppt" */
.swipe-card.deal { animation: cardIn 0.45s cubic-bezier(0.2, 0.85, 0.3, 1.15) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; } }
.swipe-card.top:active { cursor: grabbing; }
.swipe-card.back-1 { transform: scale(0.95) translateY(18px); }
.swipe-card.back-2 { transform: scale(0.90) translateY(36px); }
.swipe-card.back-1, .swipe-card.back-2 { pointer-events: none; }
.swipe-card.gone { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.4, 1), opacity 0.3s ease; opacity: 0; pointer-events: none; z-index: 10; }
.swipe-card.restack { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.1), box-shadow 0.35s ease; }

.karten-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.linien-badge { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.linien-badge .lb-code {
  font-family: var(--disp); font-weight: 800; font-size: 13.5px; letter-spacing: 0.5px;
  color: #fff; background: var(--lc, var(--tinte));
  padding: 3px 10px 4px; border-radius: 999px; flex-shrink: 0;
}
.linien-badge.hell .lb-code { color: var(--tinte); }
.linien-badge .lb-name {
  font-family: var(--disp); font-weight: 700; font-size: 11.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--tinte-70);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.karten-typ {
  font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--tinte-08); color: var(--tinte-70); flex-shrink: 0;
}

.karten-visual {
  flex: 1; margin: 4px 16px 0; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 140px;
  background: color-mix(in srgb, var(--lc, var(--tinte)) 13%, #FFFDFA);
}
.karten-visual svg { width: 88px; height: 88px; stroke: var(--lc, var(--tinte)); }
/* Bild-Slot: img/<code>-<typ>.jpg legt sich über das Icon, sobald ein Bild existiert.
   Fehlt das Bild, entfernt onerror das img und das Icon bleibt als Fallback. */
.karten-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--r-md);
  user-select: none; -webkit-user-drag: none;
}
.karten-visual .kv-tag { z-index: 2; }
.karten-visual .kv-tag {
  position: absolute; left: 14px; bottom: 12px;
  font-weight: 800; font-size: 12px; color: var(--tinte-70);
  background: rgba(255,255,255,0.75); border-radius: 999px; padding: 3px 11px;
}
.karten-statement { padding: 18px 22px 26px; }
.karten-statement p {
  font-family: var(--disp); font-weight: 700; font-stretch: 104%;
  font-size: 21px; line-height: 1.32; letter-spacing: -0.3px;
}

.verdict {
  position: absolute; top: 16px;
  font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: 1.4px;
  padding: 8px 16px; border-radius: 999px; opacity: 0;
  pointer-events: none; z-index: 5; box-shadow: var(--shadow);
}
.verdict.yes { right: 14px; background: var(--mint); color: #1D5C41; transform: rotate(5deg); }
.verdict.no { left: 14px; background: var(--rot-tint); color: var(--rot-dark); transform: rotate(-5deg); }

.swipe-actions { display: flex; align-items: center; gap: 20px; }
.swipe-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--karte); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.4), background 0.15s ease, box-shadow 0.15s ease;
}
.swipe-btn svg { width: 24px; height: 24px; }
.swipe-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lift); }
.swipe-btn.yes { background: var(--rot); box-shadow: 0 6px 20px rgba(232, 69, 46, 0.32); }
.swipe-btn.yes:hover { background: var(--rot-dark); }
.swipe-skip { font-weight: 800; font-size: 13px; color: var(--tinte-45); padding: 8px 4px; }
.swipe-skip:hover { color: var(--tinte); }
.swipe-hint { text-align: center; font-size: 14px; font-weight: 600; color: var(--tinte-70); margin-bottom: 14px; }
.swipe-hint b { color: var(--tinte); font-weight: 800; }
.key-hints { display: none; }

/* ---------- Stufe 2: Über dich ---------- */
.sk-wrap { max-width: 760px; margin: 0 auto; }
.sk-frage {
  font-family: var(--disp); font-weight: 800; font-stretch: 110%;
  font-size: 30px; letter-spacing: -0.5px; margin: 12px 0 28px;
}
.either { display: flex; flex-direction: column; }
.either-opt {
  background: var(--karte); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 24px; text-align: left;
  border: 2.5px solid transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.3), box-shadow 0.18s ease, border-color 0.15s ease, background 0.15s ease;
}
.either-opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.either-opt.selected { border-color: var(--rot); background: #FFF9F7; }
.either-opt .ab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--disp); font-weight: 800; font-size: 15px;
  background: var(--lavendel-t); margin-bottom: 12px;
  transition: background 0.15s ease;
}
.either-opt.selected .ab { background: var(--rot); color: #fff; }
.either-opt .opt-text { display: block; font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: -0.2px; }
.either-divider {
  align-self: center; margin: 14px 0;
  font-weight: 800; font-size: 13px; color: var(--tinte-45);
}

.these-card {
  background: var(--karte); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 30px 26px; margin: 8px 0 22px;
}
.these-card p { font-family: var(--disp); font-weight: 700; font-size: 22px; line-height: 1.4; letter-spacing: -0.3px; }
.these-kicker { font-family: var(--body); font-weight: 800; font-size: 14.5px; color: var(--tinte-70); letter-spacing: 0; text-transform: none; }
.likert { display: flex; gap: 12px; }
.likert button {
  flex: 1; padding: 16px 8px; border-radius: 999px;
  background: var(--karte); box-shadow: var(--shadow);
  font-size: 15.5px; font-weight: 800;
  border: 2.5px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.likert button:hover { transform: translateY(-2px); }
.likert button.selected { border-color: var(--rot); background: var(--rot); color: #fff; }
.sk-step { margin-top: 32px; font-weight: 700; font-size: 13.5px; color: var(--tinte-45); display: flex; justify-content: space-between; }

/* ---------- Stufe 3: Dein Liniennetz ---------- */
.netz-doc { background: var(--karte); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin: 10px 0 22px; }
.netz-kopf {
  padding: 22px 26px 6px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.netz-kopf h2 { font-family: var(--disp); font-weight: 800; font-stretch: 110%; font-size: 24px; letter-spacing: -0.4px; }
.netz-kopf .ausgabe { font-weight: 700; font-size: 13px; color: var(--tinte-45); }
.netz-body { padding: 4px 26px 10px; }
.liniennetz svg { width: 100%; height: auto; display: block; }
/* Mobile-Liniennetz: vertikale Linien-Liste (Desktop-SVG-Fächer wird dort versteckt) */
.mobil-netz { display: none; position: relative; padding: 6px 0 4px 2px; }
.mobil-netz::before {
  content: ''; position: absolute; left: 9px; top: 30px; bottom: 22px;
  width: 3.5px; border-radius: 2px; background: var(--tinte-20);
}
.mn-du {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 800; font-size: 11.5px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--rot);
  margin-bottom: 16px;
}
.mn-du-dot {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 3.5px var(--tinte);
  position: relative; z-index: 1;
}
.mn-du-dot::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--rot);
}
.mn-row { padding-left: 24px; margin-bottom: 16px; }
.mn-row:last-child { margin-bottom: 4px; }
.mn-label { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; flex-wrap: wrap; }
.mn-label b { font-weight: 800; font-size: 15px; }
.mn-label em {
  font-style: normal; font-family: var(--disp); font-weight: 800; font-size: 9.5px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--rot-dark);
  background: var(--rot-tint); border-radius: 999px; padding: 3px 10px;
}
.mn-code {
  font-family: var(--disp); font-weight: 800; font-size: 12px; letter-spacing: 0.5px;
  padding: 2px 9px 3px; border-radius: 999px; flex-shrink: 0;
}
.mn-bar { position: relative; height: 7px; min-width: 56px; }
.mn-fill {
  position: absolute; inset: 0; border-radius: 4px;
  transform-origin: left center; transform: scaleX(0);
  animation: mnGrow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes mnGrow { to { transform: scaleX(1); } }
.mn-dot {
  position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--tinte);
  opacity: 0; animation: nFade 0.4s ease forwards;
}

.netz-fuss {
  background: var(--butter-t); padding: 13px 26px;
  font-weight: 700; font-size: 13.5px; color: var(--tinte-70);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* Muster-Chip (§5.4) + Arbeitsstil (D2) + Brücken-Hinweis (Verbindungsdefizit) */
.muster-chip {
  margin: 0 26px 6px; padding: 12px 18px; border-radius: var(--r-md);
  background: var(--butter-t); font-size: 14.5px; font-weight: 600; color: var(--tinte-70);
}
.muster-chip b { color: var(--tinte); font-weight: 800; }
.stil-zeile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin: 0 0 22px;
}
.stil-intro { font-weight: 800; font-size: 14.5px; color: var(--tinte-70); margin-right: 3px; }
.stil-chip {
  font-weight: 800; font-size: 13.5px; padding: 7px 15px; border-radius: 999px;
  background: var(--karte); box-shadow: var(--shadow); color: var(--tinte);
}
.bruecke {
  background: var(--mint-t); border-radius: var(--r-lg);
  padding: 18px 22px; margin: 0 0 24px; max-width: 900px;
  font-size: 15px; font-weight: 600; color: var(--tinte-70);
}
.bruecke b { color: var(--tinte); font-weight: 800; }

.zukunft-panel { display: grid; gap: 20px; margin-bottom: 26px; }
.zukunft {
  background: var(--pfirsich-t); border-radius: var(--r-lg);
  padding: 24px 26px; font-size: 17.5px; font-weight: 600; line-height: 1.6;
}
.zukunft b { color: var(--rot-dark); font-weight: 800; }
.rolle {
  background: var(--karte); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 20px 22px; display: flex; gap: 16px; align-items: center;
}
.rolle-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--lavendel); color: var(--tinte);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 21px;
}
.rolle-txt .rolle-k { font-weight: 800; font-size: 12.5px; color: var(--tinte-45); }
.rolle-txt .rolle-name { font-weight: 800; font-size: 16.5px; margin: 2px 0 1px; }
.rolle-txt .rolle-tut { font-size: 14.5px; font-weight: 600; color: var(--tinte-70); }

.no-test-note { font-size: 14px; font-weight: 600; color: var(--tinte-45); margin: 0 4px 26px; max-width: 620px; }

/* ---------- Stufe 4: Abfahrtstafel ---------- */
.tafel {
  background: var(--tinte); border-radius: var(--r-lg); box-shadow: var(--shadow);
  margin: 10px 0 26px; padding: 20px; color: #fff;
}
.tafel-kopf {
  display: grid; grid-template-columns: 86px 1fr 62px; gap: 14px;
  padding: 2px 16px 12px;
  font-family: var(--disp); font-weight: 700; font-size: 11px;
  letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.tafel-row {
  display: grid; grid-template-columns: 86px 1fr 62px; gap: 14px;
  padding: 16px; align-items: center; border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  width: 100%; text-align: left; color: #fff;
  animation: tafelIn 0.5s cubic-bezier(0.2, 0.85, 0.3, 1.1) backwards;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tafel-row:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.tafel-row.geklickt { background: rgba(255,224,138,0.16); }
.tafel-row.geklickt .t-gleis::after { content: ' ✓'; }
.tafel-row + .tafel-row { margin-top: 10px; }
.tafel-row:nth-child(2) { animation-delay: 0.12s; }
.tafel-row:nth-child(3) { animation-delay: 0.24s; }
@keyframes tafelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tafel-row .t-zeit { font-family: var(--disp); font-weight: 800; font-size: 14px; letter-spacing: 0.8px; color: var(--butter); }
.tafel-row .t-ziel { min-width: 0; }
.tafel-row .t-typ { display: block; font-weight: 800; font-size: 12px; color: rgba(255,255,255,0.55); }
.tafel-row .t-titel { display: block; font-weight: 800; font-size: 16.5px; color: #fff; margin: 1px 0; }
.tafel-row .t-sub { display: block; font-weight: 600; font-size: 13.5px; color: rgba(255,255,255,0.6); }
.tafel-row .t-gleis {
  font-family: var(--disp); font-weight: 800; font-size: 16px;
  width: 38px; height: 38px; border-radius: 50%; justify-self: end;
  background: var(--butter); color: var(--tinte);
  display: flex; align-items: center; justify-content: center;
}

.vdi-panel {
  background: var(--lavendel-t); border-radius: var(--r-lg);
  padding: 28px; margin-bottom: 24px;
}
.vdi-panel h3 { font-family: var(--disp); font-weight: 800; font-stretch: 108%; font-size: 22px; letter-spacing: -0.3px; margin-bottom: 8px; }
.vdi-panel p { font-size: 15.5px; font-weight: 600; color: var(--tinte-70); margin-bottom: 20px; max-width: 560px; }

/* ---------- Fußzeile ---------- */
.fussleiste { margin-top: 24px; }
.fussleiste-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 22px 26px;
  font-weight: 700; font-size: 12.5px; color: var(--tinte-45);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- Netzplan-SVG: Zeichen-Animation ---------- */
.netz-svg .nl {
  fill: none; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: nlDraw 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes nlDraw { to { stroke-dashoffset: 0; } }
.netz-svg .nstop { opacity: 0; animation: nFade 0.4s ease forwards; }
.netz-svg .nlabel { opacity: 0; animation: nFade 0.5s ease forwards; }
@keyframes nFade { to { opacity: 1; } }
.netz-svg .du-node { opacity: 0; animation: duPop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.35) forwards 1.15s; transform-origin: center; transform-box: fill-box; }
@keyframes duPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.netz-svg .du-pulse {
  transform-origin: center; transform-box: fill-box; opacity: 0;
  animation: duPulse 2.6s ease-out infinite 1.9s;
}
@keyframes duPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .netz-svg .nl { stroke-dashoffset: 0; }
  .netz-svg .nstop, .netz-svg .nlabel, .netz-svg .du-node, h1 .w, .hero-text > * { opacity: 1; }
  .netz-svg .du-pulse, .locator-dot::after { display: none; }
  h1 .hl::after { transform: scaleX(1); }
  .blob { animation: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 719px) {
  h1 { font-size: 35px; }
  .kopf-inner { padding: 12px 16px; gap: 10px; }
  .logo .wort { font-size: 18px; }
  .logo .badge-ing { font-size: 15px; padding: 2px 7px 3px; }
  .station { gap: 5px; }
  .station .st-name { display: none; font-size: 10.5px; }
  .station.active .st-name { display: inline; }
  .station .st-dot { width: 11px; height: 11px; }
  .station .st-track { width: 10px; margin: 0 4px; }
  .dachzeile span:last-child { display: none; }
  .deck { max-width: 100%; }
  .tafel-kopf, .tafel-row { grid-template-columns: 62px 1fr 46px; gap: 10px; }
  .tafel-row .t-gleis { width: 34px; height: 34px; font-size: 14px; }
  .blob-1 { width: 220px; height: 220px; }
  .hero-netz { order: 1; }
  /* Ergebnis: SVG-Fächer raus, lesbare Linien-Liste rein */
  .liniennetz .netz-svg { display: none; }
  .mobil-netz { display: block; }
  .netz-body { padding: 14px 20px 10px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 48px; }
  .hero-netz { order: 1; }
  .intro-unten { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .screen { padding: 44px 0 74px; }

  .key-hints {
    display: flex; justify-content: center; gap: 26px;
    font-size: 13.5px; font-weight: 600; color: var(--tinte-45); margin-bottom: 16px;
  }
  .kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 27px; height: 25px; padding: 0 7px; margin-right: 7px;
    border-radius: 8px; background: var(--karte); box-shadow: var(--shadow);
    font-family: var(--disp); font-weight: 700; font-size: 12px; color: var(--tinte);
  }
  .swipe-hint { display: none; }

  .either { flex-direction: row; align-items: stretch; }
  .either-opt { flex: 1; padding: 28px; min-height: 150px; }
  .either-opt .opt-text { font-size: 23px; }
  .either-divider { margin: 0 22px; align-self: center; }
  .sk-frage { font-size: 36px; }

  .zukunft-panel { grid-template-columns: 1.4fr 1fr; }
  .netz-doc, .zukunft-panel { max-width: 900px; }
  .tafel, .vdi-panel { max-width: 900px; }
  .vdi-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .vdi-panel .vdi-txt p { margin-bottom: 0; }
  .vdi-panel .btn { flex-shrink: 0; }
}
