/* New Fire — InFlow · Design-System
   Markenauftritt new-fire.de: New-Fire-Blau auf Schwarz/Weiß, Oswald (Headlines) +
   Rubik (Fließtext). Herleitung + Quelle: docs/style-kit-newfire.md. */

/* Selbst gehostet (woff2, OFL-lizenziert via Google Fonts bezogen) — kein externer
   Font-Call, CSP-safe (default-src 'self'). Ein File pro Familie deckt dank
   Variable-Font-Technik den ganzen Schnittbereich ab. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/static/fonts/oswald-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/rubik-variable-latin.woff2") format("woff2");
}

:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #14171a;
  --ink-2: #33383d;
  --muted: #6b7075;
  --line: #e4e6e8;
  --line-2: #d3d6d9;

  --brand: #12161b;        /* Topbar / New-Fire-Schwarz */
  --accent: #0077ab;       /* New-Fire-Blau, für Flächen auf AA-Kontrast vertieft (Quelle: #009fe7) */
  --accent-ink: #045480;
  --accent-soft: #e3f4fb;
  --accent-vivid: #009fe7; /* rohes Markenblau — nur auf Schwarz/für große Deko (Logo, Hero), nie als Text/Fill auf Weiß */
  --muted-on-dark: #93a4bb; /* Sekundärtext auf --brand/dunklen Flächen */
  --data: #4f46e5;         /* Datenvisualisierung — bewusst Indigo statt Blau, sonst nicht von --accent unterscheidbar */
  --data-soft: #eef0fe;

  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;

  --r: 8px; --r-sm: 5px; --r-xs: 3px;
  --sh: 0 1px 2px rgba(20,23,26,.05), 0 4px 16px rgba(20,23,26,.06);
  --sh-lg: 0 8px 30px rgba(20,23,26,.12);
  --maxw: 1120px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Oswald", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1 { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .15em; }
h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; letter-spacing: -.005em; }
h3 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin: 0; letter-spacing: -.005em; }
p { margin: .3em 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 1rem; }

/* ---------- Topbar ---------- */
/* Logo-Lockup nachgebaut aus new-fire.de (nicht das Website-Bild hotlinken, s. docs/style-kit-newfire.md):
   vertikales "New" links neben großem "Fire"-Schriftzug + getrackte Subline. Auf --brand-Schwarz
   darf --accent-vivid (rohes #009fe7) roh stehen — großer/fetter Text, 7.1:1 Kontrast (AA). */
.topbar {
  background: var(--brand); color: #eef2f7; display: flex; align-items: center;
  justify-content: space-between; padding: 0 clamp(16px, 4vw, 40px); height: 60px;
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading);
  font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-on-dark); line-height: 1;
}
.brand-name {
  font-family: var(--font-heading); font-weight: 300; font-size: 1.55rem; line-height: 1;
  letter-spacing: .01em; text-transform: uppercase; color: var(--accent-vivid);
  display: flex; flex-direction: column;
}
.brand-sub {
  font-family: var(--font); font-weight: 500; font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-on-dark); margin-top: 3px;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: var(--r-sm); padding: 4px 6px; }
a.user-chip:hover { background: rgba(255,255,255,.08); }
a.user-chip:hover .user-name { color: #fff; }
.user-name { font-size: .9rem; color: #d7dee8; }
/* Abmelden: war zu dunkel (--muted) auf Schwarz — eine Stufe heller + Website-Nav-Anmutung (Oswald, Versalien, Tracking) */
.topbar .btn-ghost {
  color: var(--muted-on-dark); font-family: var(--font-heading); font-weight: 600;
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
}
.topbar .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Subnav ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 60px; z-index: 20; }
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.subnav-context { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.subnav-company { font-weight: 700; }
.subnav-back { color: var(--muted); font-size: .85rem; }
.subnav-back:hover { color: var(--accent); }
.subnav-links { display: flex; gap: 4px; }
.subnav-links a { padding: 7px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.subnav-links a:hover { background: var(--surface-2); }
.subnav-links a.active { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 3vw, 34px) clamp(16px, 4vw, 40px); flex: 1; }
/* Footer bookendet die Seite im Website-Schwarz (new-fire.de hat einen dunklen Footer) — schlicht gehalten,
   keine erfundenen Nav-Links. */
.footer { background: var(--brand); width: 100%; margin-top: auto; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px,4vw,40px);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted-on-dark); font-size: .82rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.radar-layout { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 820px) { .grid.two, .radar-layout { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--sh); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { flex: 1; }
.card-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.module-card, .company-card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; display: block; }
.module-card:hover, .company-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
.arrow { color: var(--accent); font-size: 1.2rem; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vision-preview, .vision-big { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--ink-2); font-style: italic; margin: 12px 0; }
.vision-big { font-size: 1.15rem; line-height: 1.5; }
.northstar { font-weight: 600; color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: background .12s, border-color .12s, color .12s; line-height: 1; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-danger { color: var(--bad); border-color: #f0b8b8; }
.btn-danger:hover { background: #fdecec; color: var(--bad); }
/* Gefahrenzone (Löschen): klar abgesetzt, damit nichts versehentlich passiert */
.card-danger { border-color: #f0c4c4; }
.card-danger .card-head h3 { color: var(--bad); }
/* Inline-Bearbeiten je Tabellenzeile: aufklappbares Formular */
.row-edit { display: inline-block; }
.row-edit > summary { cursor: pointer; list-style: none; }
.row-edit > summary::-webkit-details-marker { display: none; }
.form-compact { margin-top: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); max-width: 340px; }
.form-compact .field { margin-bottom: 8px; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-xs { padding: 3px 8px; font-size: .8rem; border-radius: var(--r-xs); }
.inline { display: inline; }

/* ---------- Badges ---------- */
/* white-space:nowrap — Badges sind Pills, kein Fließtext: in schmalen Tabellenspalten (Heatmap)
   sonst hässlicher Zeilenumbruch mitten im Label ("nicht" / "erhoben"), s. Mobile-Fix unten. */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap; }
.badge-role { background: rgba(255,255,255,.12); color: #d7dee8; border-color: transparent; }
.badge-phase { background: var(--data-soft); color: var(--data); border-color: transparent; }
.badge-sponsor { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge-mp-ausgangslage { background: #eef1f5; color: #475569; border-color: transparent; }
.badge-mp-aktuell { background: var(--data-soft); color: var(--data); border-color: transparent; }
.badge-status { border: none; }
.status-bereit_fuer_linie { background: #e7f6ec; color: var(--ok); }
.status-in_verstetigung { background: var(--data-soft); color: var(--data); }
.status-fokus_2026 { background: #fdf0e0; color: var(--warn); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); }
.kpi-val { display: block; font-size: 1.85rem; font-weight: 750; letter-spacing: -.02em; }
.kpi-lbl { color: var(--muted); font-size: .82rem; }
.kpi-val .pos { color: var(--ok); } .kpi-val .neg { color: var(--bad); }
.kpi-row { display: flex; gap: 18px; margin-top: 14px; }
.kpi-mini-val { display: block; font-weight: 700; font-size: 1.15rem; }
.kpi-mini-lbl { color: var(--muted); font-size: .74rem; }

/* ---------- Phase Stepper ---------- */
/* Labels sind text-align:center und breiter als ihr Slot — bei Rand-Steps (erster/letzter
   pro Zeile) ragt der Text dadurch links/rechts über den Slot hinaus. Ohne seitliches
   Padding schneidet die Scroll-Box (overflow-x:auto) genau dort an. */
.phase-stepper { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; padding: 0 10px 4px; }
.phase-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 84px; position: relative; }
.phase-step::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.phase-step:first-child::before { display: none; }
.phase-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: .85rem; position: relative; z-index: 1; }
.phase-label { font-size: .76rem; color: var(--muted); text-align: center; }
.phase-step.done .phase-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.phase-step.done::before { background: var(--ok); }
.phase-step.current .phase-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.phase-step.current .phase-label { color: var(--accent-ink); font-weight: 700; }

/* ---------- Lists ---------- */
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list.compact .item-row { padding: 8px 0; }
.item-row, .pain-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child, .pain-row:last-child { border-bottom: none; }
.item-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prio { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs); white-space: nowrap; }
.prio-1 { background: #fdecec; color: var(--bad); }
.prio-2 { background: #fdf0e0; color: var(--warn); }
.prio-3 { background: #eef1f5; color: var(--muted); }
.goal-dot { color: var(--data); font-size: 1.1rem; }

/* KR-Zeile (OKR): item-main + Fortschrittsbalken + Aktionen passen nebeneinander nicht
   mehr auf schmale Screens — der Titel würde umbrechen, während Balken/Aktionen (vertikal
   zentriert) mittig darüberliegen. Ab hier: Titel eigene Zeile, Balken+Eingabe+Aktionen
   darunter. */
@media (max-width: 640px) {
  .kr-row { flex-wrap: wrap; }
  .kr-row .item-main { flex: 1 1 100%; }
}

/* Pain Points: eigene Zeilen-Klasse (statt .item-row) — Platz für die Bearbeiten-Disclosure darunter. */
.pain-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.pain-item:last-child { border-bottom: none; }
.pain-row-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pain-meta { margin-top: 6px; }
details.pain-edit { margin-top: 6px; }
details.pain-edit > summary { cursor: pointer; list-style: none; font-size: .82rem; font-weight: 600;
  color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
details.pain-edit > summary::-webkit-details-marker { display: none; }
details.pain-edit > summary::before { content: "✎"; }
details.pain-edit > summary:hover { color: var(--accent-ink); }
details.pain-edit[open] > summary { color: var(--accent-ink); margin-bottom: 10px; }
.pain-edit-form { padding: 2px 0 4px; }
.pain-edit-form .row-fields select { min-width: 150px; }

/* ---------- Priorisierte Themencluster (Standortbestimmung) ---------- */
.cluster-lede { margin: -4px 0 14px; max-width: 62ch; }
.cluster-list { display: flex; flex-direction: column; gap: 12px; }
.cluster-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 14px 16px; }
.cluster-item-top { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface-2) 65%); }
.cluster-head { display: flex; align-items: flex-start; gap: 12px; }
.cluster-rank {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--line-2); color: var(--ink-2); font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem; display: grid; place-items: center;
}
.cluster-item-top .cluster-rank { background: var(--accent); border-color: var(--accent); color: #fff; }
.cluster-head-main { flex: 1; min-width: 0; }
.cluster-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cluster-title-row strong { font-family: var(--font-heading); font-size: 1.02rem; }
.cluster-desc { margin: 3px 0 0; font-style: italic; }
.cluster-actions { flex-shrink: 0; display: flex; gap: 4px; }
.cluster-pains { margin: 12px 0 0; padding-left: 46px; display: flex; flex-direction: column; gap: 7px; }
.cluster-pain-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cluster-pains-linked .cluster-pain-row::before { content: "↳"; color: var(--muted); }
.cluster-pain-title { flex: 1; min-width: 0; font-size: .92rem; color: var(--ink-2); }
.cluster-pain-assign { display: flex; gap: 6px; align-items: center; }
.cluster-pain-assign select { width: auto; font-size: .8rem; padding: 5px 8px; }
details.cluster-edit { padding-left: 46px; }
.cluster-empty { padding: 6px 0; }
.cluster-unassigned { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.cluster-unassigned-head { margin-bottom: 10px; }
@media (max-width: 600px) {
  .cluster-pains, details.cluster-edit { padding-left: 0; }
  .cluster-head { flex-wrap: wrap; }
  .cluster-actions { width: 100%; justify-content: flex-end; }
  .cluster-pain-row { align-items: flex-start; }
  .cluster-pain-assign { width: 100%; }
  .cluster-pain-assign select { flex: 1; min-width: 0; }
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.row-fields > * { flex: 1; min-width: 140px; }
.form-inline-add { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.form-inline-add input[type=text] { flex: 1; min-width: 150px; }
.form-inline-add select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2); }
.check input { width: auto; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.team-card.is-sponsor { border-color: var(--accent); background: var(--accent-soft); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
/* hyphens:auto (statt overflow-wrap:anywhere) lässt den Browser lange deutsche
   Komposita ("Geschäftsführung") an Silbengrenzen trennen statt mitten im Wort
   abzuschneiden ("Geschäftsführu-/ng"). break-word bleibt als Fallback, falls ein
   Wort auch mit Silbentrennung nicht passt. */
.team-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow-wrap: break-word; hyphens: auto; }
.team-card > form.inline { flex-shrink: 0; margin-left: 4px; align-self: flex-start; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
thead th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 12px; border-bottom: 2px solid var(--line); }
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.dim-name { font-weight: 600; max-width: 320px; }
.data-table tr.is-inactive { opacity: .5; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
/* Als Tabellenzelle muss row-actions table-cell bleiben, sonst fällt sie aus dem Spaltenraster. */
td.row-actions { display: table-cell; text-align: right; white-space: nowrap; }
td.row-actions > * { display: inline-block; vertical-align: middle; }
td.row-actions > * + * { margin-left: 6px; }

/* Reifegrad-Level-Chips (1 rot → 5 grün) */
.lvl { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 750; color: #fff; }
.lvl-1 { background: #ef4444; } .lvl-2 { background: #f97316; } .lvl-3 { background: #d4a017; }
.lvl-4 { background: #65a30d; } .lvl-5 { background: #16a34a; }
.lvl-empty { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.lvl-select { width: 64px; }
.score-table td { padding: 10px 12px; }

/* ---------- Radar / Legend ---------- */
.radar { width: 100%; height: auto; display: block; }
.radar-lvl { font-size: 9px; fill: var(--muted); }
.radar-axis { font-size: 10.5px; fill: var(--ink-2); font-weight: 600; }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Survey ---------- */
.survey-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.survey-q:last-child { border-bottom: none; }
.survey-text { flex: 1; }
.likert { display: flex; gap: 4px; }
.likert-opt { position: relative; }
.likert-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.likert-opt span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 600; color: var(--muted); transition: all .1s; }
.likert-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.likert-opt input:disabled + span { opacity: .55; }
.likert-opt-skip { margin-left: 8px; padding-left: 12px; border-left: 1px dashed var(--line-2); }
.likert-opt-skip span { width: auto; padding: 0 10px; font-size: .78rem; }

/* Rollen-Auswahl im Fragebogen */
.role-select-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 18px; }
.role-select-form .field { flex-direction: row; align-items: center; gap: 8px; }
.role-select-form select { width: auto; }

/* ---------- Auth (Login als Website-Hero-Seite, s. docs/style-kit-newfire.md) ---------- */
/* main_class-Override (base.html): kein .container-Padding/Maxwidth — der Hero läuft
   randlos innerhalb von <main>, ohne vw-Breakout-Hacks (Mobile-Overflow-Falle). */
.auth-main { display: flex; flex-direction: column; flex: 1; padding: 0; width: 100%; }
.auth-hero {
  background: linear-gradient(135deg, #0b0f13 0%, #123247 100%);
  color: #eef2f7; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding: 56px clamp(16px, 4vw, 40px); text-align: center;
}
.auth-hero-inner { max-width: 560px; }
.auth-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-vivid); margin: 0 0 14px; }
.auth-headline { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.16; color: #fff; margin: 0 0 14px; }
.auth-lead { color: var(--muted-on-dark); font-size: 1rem; line-height: 1.55; margin: 0; }
/* Eigene Farbe statt Vererbung von .auth-hero (sonst erbt die Karte das helle Hero-Weiß
   auf ihrem eigenen weißen Grund → unlesbare Überschrift). */
.auth-card {
  background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--sh-lg);
  padding: 34px; width: 100%; max-width: 400px;
}
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h2 { font-size: 1.25rem; margin: 0 0 4px; }
/* Marketing-Anmutung fürs Auth-Formular (Oswald, Versalien, Tracking) — bewusst nur hier
   und nicht auf .btn-primary global, das dichte Dashboard-UI bleibt unangetastet. */
.auth-card .btn-primary { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 600px) {
  .auth-hero { padding: 40px 16px; gap: 28px; }
  .auth-card { padding: 28px 22px; }
}

/* ---------- Dashboard-Story ---------- */

/* Klartext-Leitsatz */
.lead-banner { background: var(--accent-soft); border: 1px solid #f6d3c5; border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: 14px 20px; margin-bottom: 18px; }
.lead-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.lead-text { font-size: 1.12rem; line-height: 1.45; color: var(--ink); margin: 4px 0 0; }
.lead-text strong { color: var(--accent-ink); }

/* Hero: Nordstern (dunkles Zielpanel) + Reise */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--sh); margin-bottom: 18px; }
.hero-northstar { background: linear-gradient(135deg, #0b0f13 0%, #123247 100%); color: #eef2f7; padding: 26px 28px; }
.hero-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6fd4fb; }
.hero-star { font-family: var(--font-heading); font-size: 1.32rem; line-height: 1.4; font-weight: 650; margin: 10px 0 0; letter-spacing: -.01em; }
.hero-star a { color: #6fd4fb; text-decoration: underline; }
.hero-vision { color: #9fb0c6; font-size: .9rem; margin-top: 12px; }
.hero-journey { background: var(--surface); padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.journey-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.journey-title { font-weight: 700; }
.gain-pill { background: #e7f6ec; color: var(--ok); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.journey-bar { position: relative; height: 12px; background: #eef1f5; border-radius: 999px; margin: 30px 0 14px; }
.journey-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--data), var(--ok)); }
.journey-start { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line-2); transform: translate(-50%, -50%); }
.journey-now { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(228,87,46,.5); }
.journey-now .now-val { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-weight: 750;
  font-size: .9rem; color: var(--accent-ink); white-space: nowrap; }
.journey-target { position: absolute; top: -8px; height: 28px; border-left: 2px dashed var(--muted); }
.journey-target span { position: absolute; top: -16px; left: 6px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.journey-foot { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.journey-progress { font-weight: 700; color: var(--ink-2); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

/* Fokus-Block — dominanter Aufmerksamkeits-Anker */
.focus-block { background: linear-gradient(180deg, #eaf7fd, #ffffff 70%); border: 1px solid #bfe6f7;
  border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.focus-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.focus-head h2 { font-size: 1.18rem; }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.focus-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; box-shadow: var(--sh); }
.focus-card.focus-pain { border-color: #f3d9b0; background: #fffbf3; }
.focus-rank { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 750; display: grid; place-items: center; }
.focus-pain .focus-rank { background: var(--warn); }
.focus-title { font-weight: 700; }
.focus-meta { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.focus-note { font-size: .85rem; color: var(--ink-2); margin: 4px 0 0; }
.lvl-sm { width: 24px; height: 24px; font-size: .82rem; border-radius: 6px; }

/* Signal-Panels (Blocker / Wins) */
.panel-blockers .card-head h3 { color: var(--bad); }
.panel-wins .card-head h3 { color: var(--ok); }
.signal-list { list-style: none; margin: 0; padding: 0; }
.signal-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.signal-list li:last-child { border-bottom: none; }
.signal-list li > span:nth-child(2) { font-weight: 600; flex: 1; }

/* Ziele als Brücke */
.goals-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.goal-chip { display: flex; gap: 10px; align-items: flex-start; min-width: 240px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.goal-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--data-soft); color: var(--data);
  font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.empty-onboard .meta-row { margin-top: 14px; }

/* ---------- Misc ---------- */
.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 14px; }
.alert-error { background: #fdecec; color: var(--bad); border: 1px solid #f7c7c7; }
.alert-ok { background: #eaf7ef; color: #12783a; border: 1px solid #bfe5cd; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); }
.empty-code { font-size: 3.4rem; font-weight: 800; color: var(--line-2); }
.empty-state .btn { margin-top: 16px; }

/* ---------- Architektur der Transformation (Treppe, P1c) ---------- */
.inflow-architecture-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.inflow-architecture { display: flex; gap: 16px; align-items: stretch; margin-top: 14px; }
.inflow-enablement { flex: 0 0 32px; background: linear-gradient(180deg, var(--brand), #1c333f);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.inflow-enablement span { writing-mode: vertical-rl; transform: rotate(180deg); color: #eef2f7; font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding: 14px 0; }
.inflow-stairs { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 12px; flex: 1; }
.inflow-step { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 14px 14px 16px; border-radius: var(--r-sm) var(--r-sm) 0 0; border: 1px solid var(--line-2);
  border-bottom: none; background: var(--surface-2); }
.inflow-step-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 750;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-2); font-size: .82rem; }
.inflow-step-body strong { display: block; font-size: .93rem; margin-bottom: 3px; }
/* padding-top statt min-height treibt die Treppen-Höhe: min-height konkurriert mit dem
   Textinhalt (unterschiedlich lange Beschreibungen je Stufe rendern sonst gleich hoch,
   siehe P1c-Nachbesserung) — zusätzliches padding-top oben drauf ist dagegen unabhängig
   vom Inhalt und garantiert die aufsteigende Stufenfolge 0→1→2→3. */
.inflow-step-0 { padding-top: 14px; }
.inflow-step-1 { padding-top: 56px; }
.inflow-step-2 { padding-top: 98px; }
.inflow-step-3 { padding-top: 150px; background: linear-gradient(180deg, var(--accent-soft), var(--surface-2)); border-color: #f0c3ad; }
.inflow-step-3 .inflow-step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 760px) {
  .inflow-architecture { flex-direction: column; }
  .inflow-enablement { flex-direction: row; flex: 0 0 auto; padding: 6px 0; }
  .inflow-enablement span { writing-mode: horizontal-tb; transform: none; padding: 0; }
  .inflow-stairs { flex-direction: column; align-items: stretch; }
  .inflow-step { min-height: auto !important; padding-top: 14px !important; border-radius: var(--r-sm); border-bottom: 1px solid var(--line-2); }
}

/* ---------- OKR Cascade (3c) ---------- */
.cascade-root { padding: 8px 0; }
.cascade-vision { margin-bottom: 16px; }
.cascade-node { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 8px; }
.cascade-vision-node { background: linear-gradient(135deg, #0b0f13 0%, #123247 100%); color: #eef2f7; border-color: transparent; }
.cascade-vision-node .cascade-label { color: #93a4bb; }
.cascade-vision-node .cascade-text { color: #eef2f7; }
.cascade-obj-node { background: var(--data-soft); border-color: var(--data); }
.cascade-obj-node .cascade-label { color: var(--data); }
.cascade-kr-node { background: var(--surface); border-color: var(--line-2); }
.cascade-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: inherit; }
.cascade-obj-node .cascade-icon { background: var(--data); color: #fff; }
.cascade-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.cascade-text { font-weight: 600; font-size: .95rem; margin-top: 2px; }
.cascade-children { margin-left: 28px; padding-left: 16px; border-left: 2px solid var(--line); }
.cascade-krs { margin-left: 20px; padding-left: 12px; border-left: 2px dashed var(--line-2); }
.cascade-kr-progress { flex-shrink: 0; min-width: 36px; padding: 3px 6px; border-radius: var(--r-xs); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }

/* ---------- Phase Stepper flex-wrap ---------- */
.phase-stepper { flex-wrap: wrap; }

/* ---------- Nutzerverwaltung (P2) ---------- */
.pw-reset-form { display: inline-flex; gap: 6px; align-items: center; }
.pw-reset-form input[type=password] { width: 170px; }

/* ---------- Kommunikationsreise (Gantt-artige Swimlane-Zeitleiste) ---------- */
.journey-range { margin: 0 0 10px; }
.journey-legend { justify-content: flex-start; margin: 0 0 14px; flex-wrap: wrap; }

.journey-scroll { overflow-x: auto; margin: 0 -4px; padding: 4px; }
.journey-timeline { display: flex; flex-direction: column; }

.journey-lane { display: flex; border-bottom: 1px solid var(--line); }
.journey-lane:last-child { border-bottom: none; }
.journey-lane-label {
  flex: 0 0 128px; display: flex; align-items: center; padding: 8px 14px 8px 4px;
  font-weight: 700; font-size: .84rem; color: var(--ink-2);
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  border-right: 1px solid var(--line);
}
.journey-lane-track {
  position: relative; flex: 1 1 0%; min-width: 0; min-height: 92px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 100px);
}
/* Höhe für leere Lanes bewusst knapp — Whitespace nur da, wo tatsächlich Stationen sitzen
   (befüllte Lanes bekommen ihre Höhe inline aus dem Template, je nach Kollisions-Tiefe). */
.journey-lane-track.is-empty { min-height: 56px; }
.journey-lane-empty {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .82rem; font-style: italic;
}

/* Station-Marker: Checkbox IST der sichtbare Marker (appearance:none), Klick/Space toggelt
   das Detail-Panel — kein Inline-Handler, rein CSS + native Checkbox-Semantik.
   Kein z-index hier: ein eigener Stacking-Context pro Slot hätte zur Folge, dass ein
   NACHFOLGENDER Slot (gleicher z-index, spätere DOM-Position) über dem GESAMTEN
   Stacking-Context eines geöffneten .station-modal gemalt wird — genau der Durchblitz-Bug
   (fremdes Label/Pulse-Chip über dem offenen Formular). Ohne eigenen Stacking-Context
   entkommt das fixed-positionierte Modal sauber bis zur Wurzel. */
/* --lvl versetzt den GESAMTEN Slot (Marker + Label + Datum wandern gemeinsam) —
   vorher landete der Versatz nur auf .station-label/.station-date (s. u.), wodurch die
   Marker selbst aller Kollisions-Level exakt übereinander lagen (ein Meilenstein konnte
   unsichtbar INNERHALB eines Balken-Markers gleicher Farbe sitzen). 70px/Level ist die
   Stack-Höhe einer vollen Zeile (Marker ~22px + Chip + Datum, s. Kommentar unten) plus
   Gap — muss mit der Lane-Höhen-Formel in kommunikation.html (Zeile ~103) übereinstimmen. */
.station-slot { position: absolute; top: calc(30px + var(--lvl, 0) * 70px); }
.station-slot.is-bar { min-width: 34px; }

.station-toggle {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: filter .12s ease, box-shadow .12s ease;
}
.station-toggle:hover { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(15, 23, 42, .35); }
.station-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.is-point .station-toggle {
  width: 16px; height: 16px; border-radius: 3px; background: var(--muted);
  transform: translateX(-50%) rotate(45deg);
  /* Dünner Surface-Ring: bleibt lesbar, falls ein Meilenstein optisch an einen
     gleichfarbigen Balken grenzt (z. B. Randberührung trotz eigener Zeile). */
  border: 2px solid var(--surface);
}
.is-point .station-toggle.type-meilenstein { background: var(--accent); }
.is-point .station-toggle.type-town_hall { background: var(--data); }
.is-point .station-toggle.type-pulse_check { background: var(--warn); }

.is-bar .station-toggle {
  display: block; width: 100%; height: 22px; border-radius: 6px; background: var(--line-2);
}
.is-bar .station-toggle.status-geplant { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--line-2) 6px, var(--line-2) 12px); }
.is-bar .station-toggle.status-laeuft { background: var(--accent); }
.is-bar .station-toggle.status-abgeschlossen { background: var(--ok); }

/* Liegen Stationen zeitlich eng zusammen, würden sich ihre Labels überlappen — das Template
   weist jeder Station pro Lane einen kollisionsfreien "Zeilen-Slot" zu (0/1/2, als --lvl
   Custom Property auf .station-slot) statt nur jede zweite Station zu versetzen.
   Das allein reicht aber nicht, solange das Label unbegrenzt breit ist: ein zentrierter,
   frei fließender Titel ("Town Hall "Warum wir das tun"") kann trotz stagger_gap-Abstand
   in Nachbar-Stationen laufen, weil seine Breite von der Textlänge statt von einer festen
   Grenze abhängt. Deshalb ist .station-label jetzt eine begrenzte, linksbündig ab der
   Marker-x-Position wachsende Chip-Box: feste max-width + Ellipsis statt unbegrenztem Text.
   Damit ist die Chip-Breite eine verlässliche Obergrenze, gegen die stagger_gap (im Template)
   rechnen kann — mehr Stagger-Level wären hier NICHT die Lösung, die Breite musste begrenzt
   werden. Voller Titel bleibt per title-Attribut (Hover-Tooltip) + Klick-Detail-Modal erreichbar.
   Kein --lvl hier mehr: der Level-Versatz sitzt jetzt auf .station-slot selbst (s. o.), Label
   und Datum sind rein relativ zu ihrem (bereits verschobenen) Slot positioniert — sonst würde
   der Versatz doppelt gezählt (Slot UND Label je um --lvl verschoben). */
.station-label {
  position: absolute; top: 24px; left: 0;
  display: block; max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xs);
  padding: 1px 6px;
}
.is-point .station-label { left: 14px; }
.is-bar .station-label { top: 28px; }
.station-date {
  position: absolute; top: 44px; left: 0; white-space: nowrap;
  font-size: .72rem; color: var(--muted);
}
.is-point .station-date { left: 14px; }
.is-bar .station-date { top: 48px; }
.station-pulse-chip {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--warn); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}

/* Detail-Panel als CSS-only Modal: input:checked ~ .station-modal blendet ein.
   Backdrop/Close sind <label for="..."> — Klick togglet die Checkbox, kein JS nötig. */
.station-modal {
  display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.station-toggle:checked ~ .station-modal { display: flex; }
.station-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .68); cursor: pointer; }
.station-modal-panel {
  position: relative; z-index: 1; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 26px 28px; width: 100%; max-width: 440px;
  max-height: 85vh; overflow-y: auto;
}
.station-modal-close {
  position: absolute; top: 8px; right: 10px; cursor: pointer; font-size: 1.4rem; line-height: 1;
  color: var(--muted); padding: 4px 9px; border-radius: var(--r-xs);
}
.station-modal-close:hover { background: var(--surface-2); color: var(--ink); }
.station-modal-panel h3 { margin: 8px 0 4px; }

/* Pulse-Check-Ring: reiner CSS-Kreis via conic-gradient, --pct kommt aus dem Template */
.pulse-ring {
  --pct: 0; width: 92px; height: 92px; border-radius: 50%; margin: 14px auto 0;
  background: conic-gradient(var(--warn) calc(var(--pct) * 1%), var(--line) 0);
  display: grid; place-items: center; position: relative;
}
.pulse-ring::before { content: ""; position: absolute; inset: 8px; background: var(--surface); border-radius: 50%; }
.pulse-ring-val { position: relative; font-weight: 800; font-size: 1.3rem; color: var(--accent-ink); }

details.station-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.station-edit > summary { cursor: pointer; list-style: none; font-size: .84rem; font-weight: 600; color: var(--muted); }
details.station-edit > summary::-webkit-details-marker { display: none; }
details.station-edit > summary::before { content: "✎ "; }
details.station-edit[open] > summary { color: var(--accent-ink); margin-bottom: 10px; }
details.station-edit form.form { margin-top: 4px; }

/* ---------- Hilfeseite ("So funktioniert InFlow") ---------- */
.hilfe-intro { max-width: 62ch; font-size: 1.05rem; line-height: 1.62; color: var(--ink-2); margin: 0 0 20px; }
.hilfe-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.hilfe-toc a { padding: 6px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.hilfe-toc a:hover, .hilfe-toc a:focus-visible { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.hilfe-subtitle { color: var(--ink-2); }
.hilfe-dims { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; }
.hilfe-section { scroll-margin-top: 128px; }
.hilfe-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hilfe-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); font-weight: 750; font-size: .85rem; display: grid; place-items: center; }
.hilfe-lede { color: var(--ink-2); max-width: 68ch; margin: 0 0 14px; }
.hilfe-find-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.hilfe-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; max-width: 68ch; }
.hilfe-list li { position: relative; padding-left: 20px; line-height: 1.55; color: var(--ink-2); }
.hilfe-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.hilfe-list strong { color: var(--ink); }
.hilfe-closing { text-align: center; padding: 26px 20px; }
.hilfe-closing p { max-width: 52ch; margin: 6px auto 0; }

/* ---------- Mobile-Sicherheit (schmale Viewports) ---------- */
@media (max-width: 600px) {
  html, body { max-width: 100vw; overflow-x: hidden; }
  .brand-sub, .user-name { display: none; }
  .subnav-links { flex-wrap: wrap; }

  /* Kommunikationsreise: statt Pixel-Timeline eine vertikale Stationsliste je Swimlane —
     die Inline-Left/Width-Styles je Station müssen per !important überschrieben werden. */
  .journey-legend { gap: 10px 14px; }
  .journey-scroll { overflow-x: visible; }
  .journey-timeline { width: auto !important; }
  .journey-lane { flex-direction: column; }
  .journey-lane-label {
    position: static; flex: 0 0 auto; border-right: none; border-bottom: 1px dashed var(--line-2);
    padding: 10px 0 6px;
  }
  /* min-height per !important: befüllte Lanes bekommen im Desktop-Layout eine inline
     min-height (Kollisions-Tiefe), die hier sonst die kompakte Mobile-Liste aufbläht. */
  .journey-lane-track { width: auto !important; min-height: 0 !important; background-image: none; padding: 4px 0 10px; }
  .journey-lane-empty { position: static; display: block; transform: none; padding: 4px 0; }
  .station-slot {
    position: static !important; left: auto !important; width: auto !important;
    display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line);
  }
  .is-point .station-toggle { transform: rotate(45deg); flex-shrink: 0; }
  .is-bar .station-toggle { width: 34px; flex-shrink: 0; }
  /* Spezifität wie die Desktop-Regeln (.is-point .station-label u. Ä.) matchen, sonst
     gewinnt dort trotz späterer Media-Query die desktop-transform (Label läuft aus dem
     Viewport, weil html/body overflow-x:hidden den Rest abschneidet). */
  .station-slot .station-label, .station-slot .station-date { position: static; left: auto; transform: none; }
  /* Desktop-Chip (feste max-width + Ellipsis) macht auf der gestapelten Mobile-Liste keinen
     Sinn — hier ist vertikal genug Platz für den vollen, umbrechenden Titel. */
  .station-label {
    order: 1; flex: 1; min-width: 0; max-width: none; overflow: visible; text-overflow: clip;
    overflow-wrap: anywhere; white-space: normal; background: none; border: none; padding: 0;
  }
  .station-date { order: 2; flex-shrink: 0; }
  .station-slot .station-pulse-chip { position: static; transform: none; order: 3; flex-shrink: 0; }

  /* Breite Tabellen (z. B. Dimensions-Heatmap) bleiben bewusst horizontal scrollbar
     (kein Dokument-Overflow) — ohne Hinweis wirkt der harte Schnitt am Rand aber wie ein
     Rendering-Fehler (Spaltenkopf "AKTUELL" mitten im Wort abgeschnitten). Fade-Kante
     macht sichtbar, dass hier noch etwas folgt; engeres Padding schafft zusätzlich Platz. */
  .table-wrap, .goals-rail { position: relative; }
  .table-wrap::after, .goals-rail::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 4px; width: 28px;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
  }
  .heatmap thead th, .heatmap tbody td { padding: 8px 8px; }
  /* Ziele-Rail: klarer Swipe-Peek (Folgekarte sichtbar) statt schmalem Rand-Anschnitt, der wie Clipping wirkte */
  .goal-chip { min-width: 80%; }
}
