/* =====================================================
   AI Revenue System — Portal-Interface (Mockup)
   Look 1:1 leaderlogic.de — alle Werte via tokens.css
   ===================================================== */

* { box-sizing: border-box; }

html {
  background: var(--portal-bg);
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  background: var(--portal-bg);
  color: var(--portal-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: rgba(var(--c-accent-rgb), 0.28); }

h1, h2, h3 { font-family: var(--heading-font); margin: 0; }

.kicker {
  font-size: var(--kicker-size);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--portal-text-soft);
  font-weight: 500;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn--accent { background: var(--portal-accent); color: var(--portal-accent-ink); }
.btn--accent:hover { background: var(--portal-accent-hover); }
.btn--speichern { font-weight: 700; }
.btn--speichern .btn-icon { display: inline-flex; }
.btn--speichern .btn-icon .ll-check { width: 15px; height: 15px; }
.btn--ghost {
  background: transparent;
  color: var(--portal-text);
  border: 1px solid var(--c-line);
}
.btn--ghost:hover { border-color: var(--portal-text-soft); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: default; }

/* =========== LOGO / BRAND =========== */
.logo-mark {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--portal-text);
  text-decoration: none;
}
.logo-mark strong { font-weight: 500; }

/* Produkt-Brand: "AI Revenue System" groß, "by LeaderLogic" klein darunter */
/* Klassisches LeaderLogic-Logo (wie leaderlogic.de: „Leader" 500, „Logic" 400)
   + darunter KUNDENPORTAL in kleinen Großbuchstaben */
.brand-block .brand-name {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--portal-text);
}
.brand-block .brand-name strong { font-weight: 500; }
.brand-block .brand-portal {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--portal-text-soft);
  margin-top: 3px;
}

/* Login-Fehler/-Hinweise */
.login-error {
  background: rgba(var(--c-accent-rgb), 0.08);
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.35);
  color: var(--portal-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14.5px !important;
  line-height: 1.5;
  margin: 0 0 20px !important;
}

/* =====================================================
   LOGIN
   ===================================================== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(var(--c-accent-rgb), 0.07) 0%, transparent 60%),
    var(--portal-bg);
}
.login-logo { position: absolute; top: 28px; left: clamp(20px, 3vw, 40px); }

/* Überschrift ÜBER der Login-Karte (zentriert) */
.login-wrap { width: min(460px, 100%); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .brand-name { font-size: 26px; }

.login-error-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--portal-text-soft);
  font-weight: 400;
}
.login-devlink {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--portal-text-faint);
  text-decoration: none;
}
.login-devlink:hover { color: var(--portal-accent-text); }

.login-card {
  width: 100%;
  background: var(--portal-card-gradient-login);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  box-shadow: var(--shadow-card);
}
.login-card .kicker {
  margin: 0 0 18px;
  font-size: var(--kicker-size);   /* 12px — gewinnt gegen die 16px der Karten-Absätze */
  color: var(--portal-text-soft);
}
.login-card h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: var(--portal-h1-weight);
  letter-spacing: var(--portal-h1-spacing);
  line-height: 1.12;
  margin-bottom: 10px;
}
.login-card p { color: var(--portal-text-soft); line-height: 1.55; margin: 0 0 28px; font-size: 16px; }

.login-step { display: none; }
.login-step.is-active { display: block; }

.field {
  display: block;
  width: 100%;
  font-family: var(--body-font);
  font-size: var(--field-font-size);
  color: var(--portal-text);
  background: var(--field-bg);
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.field::placeholder { color: var(--portal-text-faint); }
.field:focus { border-color: rgba(var(--portal-accent-text-rgb), 0.55); background: var(--field-bg-focus); }

.login-form { display: grid; gap: 14px; }

/* Floating-Label — Mechanik 1:1 von leaderlogic.de (.ll-field), dunkel gethemt:
   Label liegt mittig als Platzhalter, wandert bei Fokus/Inhalt klein nach oben links */
.ll-field { display: block; position: relative; }
/* Schreibzeile VERTIKAL MITTIG und fest (Jan, 2026-10-11): gleicher Abstand oben
   und unten; beim Reinklicken rutscht nur das Label klein in den oberen Rand,
   der Text bleibt in der Mitte stehen */
.ll-field .field {
  width: 100%;
  padding: 19px 15px;
  line-height: 1.35;
  color: var(--portal-text);   /* Eingabe in voller Schriftfarbe (hell: schwarz) */
}
.ll-field .field::placeholder { color: transparent; }
.ll-field-label {
  position: absolute;
  left: 16px;   /* Feld-Padding 15px + 1px Border */
  top: 20px;                   /* = Schreibzeile: 19px Padding + 1px Rand (mittig) */
  color: var(--portal-text-faint);
  font: 400 var(--field-font-size) var(--body-font);
  line-height: 1.35;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, transform .15s ease, color .15s ease;
}
.ll-field .field:focus + .ll-field-label,
.ll-field .field:not(:placeholder-shown) + .ll-field-label {
  top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--portal-text-faint);
  opacity: 0.8;                /* hochgewandert noch blasser als der Platzhalter */
}
/* Einfachauswahl im Formular (Chips, z.B. Zielhorizont) */
.form-auswahl { margin: 6px 0 4px; }
.form-auswahl-label { margin: 0 0 10px; font-size: 15px; color: var(--portal-text-soft); }
.form-auswahl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* .chip.form-chip: doppelte Klasse, sonst gewinnt die spätere .chip-Regel (Akzent-Rand) */
.chip.form-chip { border-color: var(--portal-line); color: var(--portal-text-soft); }
.chip.form-chip:hover { background: var(--field-bg); }
/* Gewählt: Farbwerte wie ein aktives/ausgefülltes Formularfeld, keine
   Akzentfläche (Jan, 2026-10-11: nur EIN Akzent-Element pro Seite) */
.chip.form-chip[aria-checked="true"] {
  background: var(--field-bg-focus);
  border-color: var(--portal-text-faint);
  color: var(--portal-text);
}
.termin-retro.form-retro { margin: 0 0 var(--r-l); max-width: 720px; background: var(--portal-hero-bg); border: 0; border-radius: 20px; }
/* Mehrzeiliges Feld (z.B. „Was hindert aktuell?"): Label startet oben statt mittig */
.field--area { min-height: 132px; resize: vertical; line-height: 1.45; }
.ll-field .field--area { padding-bottom: 14px; }
/* Mitwachsendes Feld (Ziel 1–3): startet einzeilig, wird mit dem Text höher */
.ll-field .field--wachsen { resize: none; overflow: hidden; display: block; }
.login-alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--portal-line);
  font-size: 14.5px;
  color: var(--portal-text-soft);
}
.login-alt a { color: var(--portal-accent-text); text-decoration: none; }
.login-alt a:hover { text-decoration: underline; }
/* Inline-Styles im Login-<body> (style="color:var(--portal-accent)", „Erneut senden",
   Dev-Code) kommen aus dem HTML und lassen sich dort nicht anfassen -> hier auf den
   lesbaren Akzent-Text-Ton umbiegen (dunkel: identisch var(--c-accent)) */
.login-hint [style*="color:var(--portal-accent)"] { color: var(--portal-accent-text) !important; }

/* Code-Eingabe (6 Kästchen) */
.code-row { display: flex; gap: 10px; margin-bottom: 14px; }
.code-box {
  width: 54px; height: 64px;
  text-align: center;
  font-size: 26px;
  font-weight: 500;
  color: var(--portal-text);
  background: var(--field-bg);
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}
.code-box:focus { border-color: rgba(var(--portal-accent-text-rgb), 0.55); }
.login-hint { font-size: 14px; color: var(--portal-text-faint); margin-top: 14px; }

/* =====================================================
   PORTAL-LAYOUT
   ===================================================== */
.portal {
  display: grid;
  grid-template-columns: 432px 1fr;   /* Modul-Spalte ist die Orientierung: 20 % breiter als früher (360px) */
  min-height: 100vh;
  /* Sehr große Fenster: Menü + Inhalt als EINE Einheit zentriert
     (432px Menü + 1240px Inhalts-Deckel) */
  max-width: 1672px;
  margin-inline: auto;
}

/* =========== SIDEBAR =========== */
.sidebar {
  background: var(--portal-bg);
  padding: 22px 14px 0 24px;   /* Raster: gleiche Oberkante wie .main; Kästen laufen weiter nach rechts */
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;          /* niemals horizontal schwimmen */
  scrollbar-width: none;       /* kein sichtbarer Scrollbalken */
}
.sidebar::-webkit-scrollbar { display: none; }
/* Unten läuft das Menü ins Dunkle aus */
.sidebar::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  flex: 0 0 72px;
  margin-top: -72px;
  background: linear-gradient(to bottom, transparent, var(--portal-bg) 85%);
  pointer-events: none;
  z-index: 3;
}

/* Bausteine als Kästen — gleiche Karten-Ästhetik wie die Inhalte.
   EINE durchgehende Timeline (.bausteine-rail) läuft über alle Kästen;
   Kreise + Schloss-Kreise liegen opak darüber. */
.bausteine { flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; position: relative; }
/* Die Timeline — der Farbverlauf (Stops an den Kreis-Positionen) kommt aus JS */
.bausteine-line {
  position: absolute;
  width: 2px;
  z-index: 1;
  pointer-events: none;
}

.sb-box,
.sb-start {   /* Dashboard-Punkt nutzt dieselbe Kasten-Fläche (Jan, v3) */
  /* Freigeschaltete Kästen hell, gesperrte deutlich dunkler (Segmentierung) */
  background: var(--portal-card-gradient);
  border-radius: var(--radius-md);
  padding: 8px 14px 12px;
  box-shadow: var(--shadow-card);
  position: relative;
  /* Zustandswechsel (auf/zu) blenden sanft */
  transition: background 0.5s ease, padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sb-box.is-locked {
  background: var(--portal-panel-locked);
}
/* Komplett abgeschlossene Rubrik (zugeklappt): dunkel wie gesperrt —
   aufgeklappt bleibt sie hell (aktive Karte) */
.sb-box.is-zu.is-fertig {
  background: var(--portal-panel-locked);
}
/* Aufgeklappte Karten: EIN Padding für aktiv wie inaktiv — sonst springt
   das Layout, wenn ein Modul-Klick die Karte zur aktiven macht */
.sb-box.is-open {
  padding: 6px 4px 31px;
}
/* Ausgleich fürs schmalere Seiten-Padding (4px statt 14px): Inhalt 10px
   einrücken, damit die Zahlen-Kreise wieder exakt auf der Timeline liegen
   (Titel-Zeile bekommt den Ausgleich direkt in ihrer is-open-Regel unten) */
.sb-box.is-open .step { padding-left: 10px; }
/* Titel auf derselben Rasterlinie wie die Step-Labels (Kreis-Spalte 32px + 16px Gap) */
/* Karten-Überschriften treten zurück (#555, dünner): die inhaltlichen
   Punkte darunter stehen im Mittelpunkt */
.sb-box-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: #555;
  padding: 8px 0 6px 48px;
}
.sb-box-title { transition: color 0.45s ease, font-size 0.45s ease; }
/* Offene Karte: Überschrift + Zahl-Kreis kräftig (Schriftfarbe).
   Zugeklappt (anklickbar): Überschrift + Kreis mittelgrau (Jan, 2026-10-11) */
.sb-box.is-open .sb-box-title {
  color: var(--portal-text);
  font-size: 16px;
  letter-spacing: -0.001em;
}
/* Zugeklappt, aber anklickbar: Titel intensiver als erledigte/gesperrte Punkte,
   der Kreis dafür zurückhaltend (Jan, 2026-10-11) */
.sb-box.is-zu .sb-box-title { color: var(--portal-titel-zu); }
/* Gesperrte und zugeklappte Kästen: identisches Padding (gleiche Zeilenhöhe) */
.sb-box.is-locked,
.sb-box.is-zu { padding-top: 16px; padding-bottom: 16px; }

/* Verschlossener Baustein: Schloss im Kreis links, auf der Timeline */
.sb-lock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
}
.sb-lock-dot {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--portal-box-dot);
  border: 1px solid var(--portal-timeline);   /* gleiche Farbe wie Timeline, 1px wie die Buchstaben-Kreise */
  position: relative;
  z-index: 2;
}
/* Schloss-Emoji dezenter (Kreis/Umrandung bleiben voll sichtbar) */
.sb-lock-icon { opacity: 0.5; }
.sb-box-title--inline { padding: 0; }

/* Freigeschalteter Baustein: immer dieselbe Struktur (klickbare Kopfzeile +
   Steps-Container). Zugeklappt schiebt CSS die Steps weich zusammen. */
.sb-box-dot {
  transition: border-color 0.45s ease, background 0.45s ease, color 0.45s ease;
  /* Größer als die Unterpunkt-Kreise = Hierarchie (Jan, 2026-10-11). Negativer
     Rand: Mitte bleibt auf der Timeline, Zeilenhöhe und Titel-Flucht unverändert */
  flex: 0 0 36px;
  width: 36px; height: 36px;
  margin: -2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  /* Kreis mit der festen Baustein-Zahl: hell #333 / dunkel #eee, Zahl im
     Kontrast (Jan, 2026-10-11) — Tokens in tokens.css */
  background: var(--portal-kreis);
  border: 0;
  color: var(--portal-kreis-zahl);
  line-height: 1;
  position: relative;
  z-index: 2;
}
/* Kopfzeile jedes freigeschalteten Bausteins: Status-Kreis + Titel auf der
   Raster-Flucht, klickbar (Akkordeon) */
.sb-titel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--body-font);
  transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sb-box.is-open .sb-titel-row { padding: 15px 10px 15px 10px; }   /* 10px links = Timeline-Ausgleich, 10px rechts = Flucht mit .step */
/* ✓ des Bausteins ganz rechts, auf der Flucht der ✓ der Modul-Zeilen — nur bei
   ZUGEKLAPPTER Karte; aufgeklappt zeigen die Unterpunkte ihre Haken (Jan, 2026-10-11) */
.sb-titel-row .check-state { transition: opacity 0.3s ease; }
.sb-box.is-open .sb-titel-row .check-state { opacity: 0; }
/* Zugeklappte Karte: Kreis mittelgrau wie ihre Überschrift */
.sb-box.is-zu .sb-box-dot {
  /* Zugeklappt: Kreis 20 % dunkler als die Timeline */
  background: var(--portal-kreis-zu);
  color: var(--portal-kreis-zahl-zu);
}
.sb-titel-row .check-state { margin-left: auto; flex: 0 0 28px; }
.sb-box.is-zu .sb-titel-row:hover .sb-box-title { color: var(--portal-text); }
.sb-box.is-open .sb-titel-row:hover .sb-box-title { color: var(--portal-text-soft); }

/* Auf-/Zuschieben der Steps: 1fr ↔ 0fr läuft als weiche Transition, der
   Inhalt wird währenddessen gecroppt */
.sb-steps-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sb-box.is-zu .sb-steps-wrap { grid-template-rows: 0fr; }
.sb-steps-wrap > .steps { overflow: hidden; min-height: 0; }

/* Geheimer Bonus-Titel: unkenntlich geblurrt */
.sb-geheim {
  filter: blur(4px);
  margin-left: 6px;
  opacity: 0.8;
  user-select: none;
}

/* Gesperrte Zone: Cursor komplett aus — nur das mitlaufende Label ist sichtbar */
body.lock-zone, body.lock-zone * { cursor: none !important; }
.lock-tip {
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--portal-tip-bg);
  border: 1px solid var(--portal-line);
  color: var(--portal-text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.lock-tip svg { width: 13px; height: 13px; flex: 0 0 13px; }
.lock-tip.is-visible { opacity: 1; }
/* Erste Zeile links (Brand) und rechts (Topbar/Profil) sind GLEICH hoch —
   dadurch starten Menü-Kasten und Inhalts-Kasten auf exakt einer Höhe */
.sidebar-brand {
  height: 52px;
  margin-bottom: 10px;      /* + 8px Flex-Gap = 18px wie .topbar */
  padding-left: 30px;       /* Raster: beginnt exakt auf der Timeline-Linie (14px Kasten-Pad + 16px Kreis-Mitte) */
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 10px 16px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: transparent;   /* ruhig: nur der angeklickte Punkt trägt einen Hintergrund */
  margin-bottom: 5px;
  width: 100%;
  text-align: left;
  font-family: var(--body-font);
  color: var(--portal-text);
  font-size: 17.5px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.step-dot {
  /* Kleiner als die Kapitel-Kreise, Großbuchstaben (Jan, 2026-10-11). Rand 2px
     ringsum: Mitte bleibt auf der Timeline, Label-Flucht unverändert */
  flex: 0 0 28px;
  width: 28px; height: 28px;
  margin: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;            /* etwas dünner (Jan, 2026-10-11) */
  line-height: 1;
  text-transform: uppercase;
  /* OPAK in Kasten-Farbe: die Rail-Linie läuft dahinter durch und ist
     nur ZWISCHEN den Kreisen sichtbar — nie durch den Kreis hindurch.
     Rand in Linienfarbe statt Schriftfarbe: ruhiger (Jan, 2026-10-11) */
  background: var(--portal-box-dot);
  border: 1px solid var(--portal-timeline);   /* 1px (Jan, 2026-10-11) */
  color: var(--portal-text);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

/* ---- Status-Systematik (drei Zustände, wenige Farben) ----
   Aktuell  (offen, verfügbar)  = Schrift + Kreis voll in --portal-text, kräftig
   Erledigt / Noch nicht relevant = alles blass (--portal-text-faint), keine Akzentfarbe
   Angeklickt (.is-active-view)   = zusätzlich Hintergrund hervorgehoben */
.step.is-done,
.step.is-locked,
.step.is-inaktiv {
  color: var(--portal-text-blass);
  font-weight: 400;
}
.step.is-done .step-dot,
.step.is-locked .step-dot,
.step.is-inaktiv .step-dot {
  background: var(--portal-box-dot);
  color: var(--portal-text-blass);
  font-weight: 400;
}
/* Klickbare blasse Punkte (erledigt) werden beim Überfahren etwas kräftiger */
.step.is-done:not(.is-inaktiv):hover { color: var(--portal-text-soft); }
.step.is-done:not(.is-inaktiv):hover .step-dot { color: var(--portal-text-soft); }

/* Erledigt-Check rechts, auf der Ebene der To-do/Terminiert-Pillen: im grauen
   Kreis wie die neutrale Pille, Haken größer = Motivationspunkt (Jan, 2026-10-11) */
.check-state {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--portal-hover);
  border: 1px solid var(--portal-line);
  color: var(--portal-text-soft);
  line-height: 1;
}
.check-state .ll-check { width: 17px; height: 17px; }
/* Check-Icon (1:1 leaderlogic.de, per Stroke etwas dicker) — Größen pro Kontext */
.ll-check { display: block; width: 10px; height: 10px; }
.status-pille .ll-check {
  display: inline-block;
  width: 11px; height: 11px;
  vertical-align: -1px;
  margin-right: 8px;
}
.save-check .ll-check { width: 9px; height: 9px; }
.step:not(.is-inaktiv):not(.is-locked):not(.is-active-view):hover { background: var(--portal-hover); }
/* Angeklickt = NUR Hintergrund: Farben richten sich weiter nach dem Status */
.step.is-active-view { background: var(--portal-step-active-bg); }
/* Angewählter Punkt: Schrift + Buchstabe kräftig, auch wenn er erledigt ist */
.step.is-active-view,
.step.is-active-view .step-dot { color: var(--portal-text); }
/* Symbole hinter dem Namen (PDF / Video): kein Kreis, ~20px hoch, Farbe = Schrift
   des Punkts (currentColor) — kräftig bei aktuellen, blass bei blassen Punkten */
/* Typ-Icon auf eigener Fläche (Kachel) — integriert sich hochwertiger
   (Jan, 2026-10-11: #eee, 3px Innenabstand, 7px Rundung, 27px hoch) */
.label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 3px;
  border-radius: 7px;
  background: var(--portal-icon-flaeche);
  color: var(--portal-icon-farbe);   /* unauffällig: festes, gedämpftes Grau */
  margin-left: 8px;           /* etwas mehr Abstand zum Wort */
  vertical-align: -4px;       /* Kachel-Mitte = Textmitte des Namens (gemessen) */
}
.label-icon svg { display: block; height: 21px; width: auto; opacity: 0.9; }   /* 27px Kachel − 2 × 3px; Icon 10 % transparenter */
/* Angewählte Zeile: Kachel bleibt sichtbar (eigene, hellere Fläche) */
.step.is-active-view .label-icon { background: var(--portal-icon-flaeche-aktiv); }
.label-ende { white-space: nowrap; }
/* Klickbar erst, wenn etwas vorliegt (z.B. Dokumente ohne Inhalt) */
.step.is-inaktiv { cursor: default; }
.step.is-locked { cursor: default; }
.step-label { flex: 1; }
.step-state { font-size: 13px; }
.step.is-done .step-state { color: var(--portal-text-faint); }

/* „Offen"-Pille — kurz, akzentfarben = hier ist Handlungsbedarf */
.state-pill {
  display: inline-block;
  background: rgba(var(--c-accent-rgb), 0.13);
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.45);
  color: var(--portal-accent-text);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Status-Kapsel im Menü (Jan, 2026-10-12): Typ-Icon + Status in EINER Pille.
   Gleiche Höhe für alle Zustände, Icon in Schriftfarbe der Pille */
.state-pill.state-kapsel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 0 7px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
/* Nur Icon (offen, ohne Status-Wort): runde Kapsel */
/* Kreis statt Oval (Jan, 2026-10-14): Stift, Schloss, Haken in einem etwas größeren Kreis, alle gleich groß */
.state-pill.state-kapsel.state-kapsel--rund { width: 30px; height: 30px; padding: 0; border-radius: 50%; justify-content: center; }
/* Aktiver Kreis (Typ-Icon, z. B. Stift = offen und klickbar): größer als Haken/Schloss */
.state-pill.state-kapsel.state-kapsel--rund:not(.state-kapsel--glyph) { width: 36px; height: 36px; }
.state-pill.state-kapsel.state-kapsel--zu { padding: 0 8px 0 7px; gap: 6px; }
/* Kreis mit nur einem Zeichen (Haken bzw. Schloss): gleiche Größe wie der Stift-Kreis,
   Zeichen ohne eigenen Kreis (überschreibt die Kreis-Regeln von .kapsel-check/.kapsel-lock) */
.state-kapsel--glyph .kapsel-check,
.state-kapsel--glyph .kapsel-lock { width: auto; height: auto; margin: 0; background: none; display: inline-grid; place-items: center; }
.state-kapsel--glyph .kapsel-check .ll-check { width: 16px; height: 16px; }
.state-kapsel--glyph .kapsel-lock { font-size: 14px; }
.step .state-kapsel--glyph .kapsel-lock { color: color-mix(in srgb, var(--portal-text) 72%, transparent); }
.kapsel-icon { display: inline-flex; }
.kapsel-icon svg { display: block; width: 18px; height: 18px; }   /* Kalender etwas größer (Jan, 2026-10-12) */
/* PDF ist ein Wort: größer zeichnen, damit es optisch zu den Symbolen passt */
.kapsel-icon--pdf svg { width: 22px; height: 22px; margin: 0 -2px; }
.kapsel-icon--video svg { width: 15px; height: 15px; }
.kapsel-icon--ausfuellen svg { width: 20px; height: 20px; }   /* Stift etwas größer (Jan, 2026-10-12) */
.kapsel-lock { font-size: 14px; line-height: 1; }
/* Schloss im gleichen Kreis wie der Haken (Jan, 2026-10-12) */
.state-kapsel--zu .kapsel-lock { font-size: 15px; }
/* Chrome zeichnet Emojis mit der Deckkraft der Schriftfarbe: Schloss 10 %
   kräftiger als der Haken (72 % statt 62 %, Jan, 2026-10-12) */
.step .state-kapsel--zu .kapsel-lock,
.step .state-lock { color: color-mix(in srgb, var(--portal-text) 72%, transparent); }
/* Erledigt: Haken so groß wie im bisherigen Erledigt-Kreis */
.state-pill.state-kapsel.state-kapsel--done { gap: 6px; padding: 0 8px 0 7px; }
/* Haken im eigenen Kreis am Ende der Pille (Jan, 2026-10-12): klar „erledigt" */
.kapsel-check,
.state-kapsel--zu .kapsel-lock {
  display: inline-grid;
  place-items: center;
  /* Größer als die Pille und deckend: überlagert ihr rechtes Ende, rechts
     neben dem Kreis ist keine Pille mehr zu sehen (Jan, 2026-10-12) */
  width: 30px; height: 30px;
  margin: -2px -9px -2px 0;      /* rechte Kante = Außenkante der Pille (8px Innenabstand + 1px Rand) */
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: var(--portal-check-kreis);
  color: var(--portal-text-soft);
}
.kapsel-check .ll-check { width: 19px; height: 19px; }
/* Erledigte, gesperrte und inaktive Punkte: Pille blasser (Fläche + Rand),
   Haken und Schloss bleiben voll sichtbar */
.step.is-done .state-kapsel,
.step.is-locked .state-kapsel,
.step.is-inaktiv .state-kapsel,
.state-kapsel--zu {
  background: color-mix(in srgb, var(--portal-hover) 45%, transparent);
  border-color: color-mix(in srgb, var(--portal-line) 45%, transparent);
}
/* Inaktive Punkte (erledigt, gesperrt, nicht klickbar): Typ-Icon blass */
.step.is-done .kapsel-icon,
.step.is-locked .kapsel-icon,
.step.is-inaktiv .kapsel-icon,
.step.is-open .state-kapsel--zu .kapsel-icon { color: var(--portal-text-blass); }
/* Status-Wort (Jan, 2026-10-12): Versalien */
.state-kapsel .kapsel-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 500;              /* etwas dünner (Jan, 2026-10-12) */
}

/* Tooltip an den Schlössern (Jan, 2026-10-12): Sprechblase, zweizeilig,
   Grauwerte, kaum sichtbarer, sehr weicher Schatten. Rechtsbündig über dem
   Schloss-Kreis, die Spitze zeigt auf seine Mitte */
.schloss-tip {
  position: fixed;
  z-index: 1000;
  transform: translate(calc(-100% + 22px), calc(-100% + 4px));
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--portal-tip-flaeche);
  color: var(--portal-tip-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.schloss-tip.is-visible { opacity: 1; transform: translate(calc(-100% + 22px), -100%); }
.schloss-tip::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -5px;
  width: 12px; height: 12px;
  background: inherit;
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}
/* Seitlich am Schloss (Touch): vertikal mittig, Spitze zeigt waagrecht auf das Schloss */
.schloss-tip.is-links { transform: translate(calc(-100% - 6px), -50%); }
.schloss-tip.is-links.is-visible { transform: translate(calc(-100% - 12px), -50%); }
.schloss-tip.is-rechts { transform: translate(6px, -50%); }
.schloss-tip.is-rechts.is-visible { transform: translate(12px, -50%); }
.schloss-tip.is-links::after,
.schloss-tip.is-rechts::after { top: 50%; bottom: auto; margin-top: -6px; }
.schloss-tip.is-links::after { right: -5px; border-radius: 0 3px 0 0; }
.schloss-tip.is-rechts::after { left: -5px; right: auto; border-radius: 0 0 0 3px; }

/* Sanduhr solo im Menü (In Vorbereitung) — etwas größer für Erkennbarkeit */
.state-sanduhr { font-size: 19px; line-height: 1; }
/* Gesperrte Karte (Modul): Schloss rechts, dezent wie das Schloss der Bausteine */
/* Gesperrter Punkt in einer offenen Karte: Schloss VOLL sichtbar, keine
   Transparenz (Jan, 2026-10-11) — nur die Zukunfts-Kästen blenden ihr Schloss aus */
.state-lock { font-size: 15px; line-height: 1; }

/* Akut (To-do = Handlung erforderlich): volle Akzentfläche, sticht sofort heraus */
/* Schwarz mit Akzent-Schrift statt Akzentfläche (Jan, 2026-10-11: nur EIN
   Element pro Seite mit Akzent-Hintergrund = der Haupt-Button). Leuchtendes
   Akzent-Grün in beiden Modi, auf Schwarz immer lesbar. */
/* Termin-Status in der Inhaltskarte wie die Menü-Kapsel: Icon + Versalien,
   1px größer als die alte Pille (Jan, 2026-10-12) */
.state-banner.state-banner--kapsel {
  gap: 7px;
  padding: 5px 14px 5px 11px;
  font-size: 11.5px;
  font-weight: 500;
}
.state-banner--kapsel .kapsel-icon svg { width: 18px; height: 18px; }
/* Stattgefundener Termin: blass und grau wie die erledigten Pillen im Menü */
.state-banner.state-banner--vorbei {
  background: color-mix(in srgb, var(--portal-hover) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--portal-line) 45%, transparent);
  color: var(--portal-text-soft);
}
.state-banner--vorbei .kapsel-icon { color: var(--portal-text-blass); }
.state-banner--vorbei > span:nth-child(2) {
  font-family: var(--system-font);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.state-banner--vorbei .vorbei-check { display: inline-flex; margin-left: 2px; }
.state-banner--vorbei .vorbei-check .ll-check { width: 12px; height: 12px; }
.state-pill.state-pill--akut,
.state-banner.state-banner--akut {
  background: #000;
  border-color: #000;
  /* Gegen Ausfransen (Jan, 2026-10-12): deckende, leicht gedämpfte Akzentfarbe
     statt Transparenz (Alpha macht die Kanten weich) */
  color: color-mix(in srgb, var(--c-accent) 86%, #000);
}
/* Status-Wörter auf Schwarz in der Systemschrift (SF Pro auf Apple-Geräten):
   für kleine Größen gezeichnet und gehintet, bleibt bei 12px in Versalien
   gestochen scharf — die Markenschrift franst hier aus */
.state-pill--akut .kapsel-text,
.state-banner--akut.state-banner--kapsel > span:last-child {
  font-family: var(--system-font);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Neutral (z.B. „Ungeplant", „In Vorbereitung" — kein Handlungsdruck) */
.state-pill--neutral {
  background: var(--portal-hover);
  border-color: var(--portal-line);
  color: var(--portal-text-soft);
}

.sidebar-user {
  border-top: 1px solid var(--portal-line);
  padding-top: 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--portal-text-faint);
  display: none;   /* Desktop: Profil sitzt oben rechts — mobil unten im Menü */
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sidebar-user a { color: var(--portal-text-soft); text-decoration: none; }
.sidebar-user a:hover { color: var(--portal-text); }

/* =========== MAIN =========== */
.main {
  padding: 22px clamp(24px, 3vw, 48px) 56px 26px;
  min-width: 0;
  /* Bei sehr großen Fenstern: Inhalt nicht endlos breit, sondern
     gedeckelt und mittig in der verfügbaren Fläche */
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

/* Kopfzeile rechts: Profil (gleiche Höhe wie .sidebar-brand → Raster) */
.topbar {
  height: 52px;
  margin-bottom: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 22px;
}
/* Mobile-Bausteine: Logo über dem Inhalt + Begrüßung im Menü + Menü-Kreuz —
   auf Desktop komplett aus */
.main-brand { display: none; }
.sidebar-logo { display: none; }
/* Begrüßung links über der Timeline (im ehemaligen Logo-Slot) */
.sidebar-gruss {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-gruss .gruss-zeile { font-size: 24px; }
/* Logo rechts neben dem Profil (im ehemaligen Begrüßungs-Slot) */
.topbar-brand .brand-name { font-size: 22px; }
.menu-zu { display: none; }

/* Sanftes Hereingleiten von rechts mit elegantem Abbremsen: kurze Distanz
   + Fade (Premium-Standard) — stützt den Flow, statt zu unterbrechen */
@keyframes inhalt-rein {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* Bis zum ersten fertigen Render bleibt die Karten-Hülle unsichtbar —
   sonst blitzt eine leere Fläche auf, die dann „neu aufbaut" (Ruckeln) */
.content-card.wartet { opacity: 0; }
/* easeOutExpo-artig: zügig los, sehr langes weiches Andocken */
.content-card.karte-rein {
  animation: inhalt-rein 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .content-card.karte-rein,
  .portal-notiz-karte { animation: none; }
}

/* Wegklickbare Notiz-Karte (Custom Field Kundenportal-Notiz) über dem Inhalt:
   Info-Icon in Akzent statt farbiger Kante — gleitet wie eine eintreffende
   Nachricht leicht verzögert herein */
.portal-notiz-karte {
  animation: inhalt-rein 0.85s cubic-bezier(0.19, 1, 0.22, 1) both;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--portal-panel);
  border-radius: var(--radius-md);
  padding: 18px 54px 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.portal-notiz-icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  color: var(--portal-accent-text);
  margin-top: 2px;
}
.portal-notiz-icon svg { width: 100%; height: 100%; display: block; }
.portal-notiz-karte p {
  margin: 0;
  color: var(--portal-text);
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.portal-notiz-zu {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--portal-text-faint);
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  transition: color var(--transition);
}
.portal-notiz-zu:hover { color: var(--portal-text); }

/* Persönliche Begrüßung: Hauptzeile in Logo-Größe + Willkommens-Unterzeile */
.topbar-gruss {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
.gruss-zeile {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 400;
  color: var(--portal-text);
  line-height: 1.15;
}
.gruss-sub {
  font-size: 13.5px;
  color: var(--portal-text-soft);
  margin-top: 2px;
}
.profil-wrap { position: relative; }
.profil {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--portal-chip-bg);        /* Hover-Optik ist der Dauerzustand */
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-family: var(--body-font);
  color: var(--portal-text-soft);
  transition: background var(--transition), border-color var(--transition);
}
.profil:hover { background: var(--portal-hover-strong); border-color: var(--portal-text-faint); }
.profil-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--portal-avatar-bg);
  color: var(--portal-text-soft);
  display: grid;
  place-items: center;
}
.profil-avatar svg { width: 17px; height: 17px; }
.profil-mail { font-size: 14px; }
.profil-caret { font-size: 10px; color: var(--portal-text-faint); }
.profil-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--portal-panel);
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  padding: 6px;
  z-index: 40;
  box-shadow: var(--shadow-card);
}
.profil-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--portal-text);
  font: 400 15px var(--body-font);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.profil-menu button:hover { background: var(--portal-hover); }
/* Nicht verfügbare Einträge (Modul existiert noch nicht / leer): ausgegraut */
.profil-menu button.is-aus {
  opacity: 0.4;
  cursor: default;
}
.profil-menu button.is-aus:hover { background: none; }

/* Der gesamte Modul-Inhalt in EINEM Kasten (gleiche Ästhetik wie Menü-Kästen) */
.content-card {
  background: var(--portal-card-gradient);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: var(--shadow-card);
  position: relative;
}
/* Innere Karten: gleiche abgesetzte Fläche wie der Termin-Block (.termin-hero) —
   ein Flächen-Ton für alle Unterkarten, ohne Rahmen */
.content-card .card {
  background: var(--portal-hero-bg);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.module-head { max-width: 860px; margin-bottom: clamp(24px, 3vw, 40px); }
.module-head .kicker { margin: 0 0 14px; }
.module-head h1 {
  font-size: calc(var(--portal-h1-size) * 0.9);   /* 10% kleiner (Jan, 2026-07-06) */
  font-weight: var(--portal-h1-weight);
  letter-spacing: var(--portal-h1-spacing);
  line-height: 1.1;
  margin-bottom: 14px;
}
/* EIN Stil für alle Texte direkt unter Karten-Überschriften (Jan, 2026-10-14: Einheitlichkeit
   im gesamten System): 17px, normal, blasses Grau. Gilt für Modul-Einleitungen, Dashboard-Karten,
   „Was dich erwartet" — neue Karten nutzen einfach .modul-intro */
.modul-intro,
.db-sub,
.termin-erwartung p { color: var(--portal-text-soft); font-size: 17px; font-weight: 400; line-height: 1.6; margin: 0; }
.module-head .modul-intro { max-width: 640px; }
/* Orientierung: Modul-Nummer. Desktop: Pille (Stil der Status-Pille, neutral) in
   der Pillen-Zeile über der Headline, daneben die Status-Pille (Jan, 2026-10-11).
   Mobile (Media-Query unten): mittig AUF der oberen Kartenkante. */
.head-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.head-title h1 { margin-bottom: 0; }
.head-pillen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.head-pillen > .state-banner,
.head-pillen > .status-pille { margin: 0; white-space: nowrap; }


.done-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--c-accent-rgb), 0.10);
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.35);
  color: var(--portal-accent-text);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
/* Status-Pillen — in ALLEN Karten an derselben Stelle: direkt unter der H1 */
.state-banner,
.status-pille {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.state-banner {
  background: rgba(var(--c-accent-rgb), 0.13);
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.45);
  color: var(--portal-accent-text);
}
.state-banner--neutral {
  background: var(--portal-hover);
  border-color: var(--portal-line);
  color: var(--portal-text-soft);
}
.status-pille--done {
  background: #000;
  border: 1px solid #000;
  color: var(--c-accent);
}

/* =========== TERMIN-MODUL (Kick-off) — Kachel-Maße 1:1 Terminportal =========== */
/* Kachel links NEBEN der Headline; Datum + Buttons darunter */
.termin-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  flex-wrap: wrap;
  margin-top: 10px;
  /* Termin als eigenes Widget, gleicher Look wie die Karten im Dashboard (Jan, 2026-10-14) */
  background: var(--portal-card-inner-bg);
  border: 1px solid var(--portal-line);
  padding: 40px;
  border-radius: 20px;
}
/* Stattgefundener Termin: Kachel 60 % blasser (inaktiv), Headline bleibt */
.termin-hero.is-vorbei { opacity: 0.4; transition: opacity 0.3s ease; }
/* Zielsetzung in der Fläche: hebt sich als helle (bzw. dunkle) Karte ab */
.termin-hero .termin-retro { background: var(--portal-panel); }
@media (max-width: 900px) {
  .termin-hero { padding: 20px; border-radius: 16px; gap: 16px; }
}
.termin-hero-col { flex: 1 1 320px; min-width: 0; }
.termin-hero-col h1 {
  font-size: var(--portal-h1-size);
  font-weight: var(--portal-h1-weight);
  letter-spacing: var(--portal-h1-spacing);
  line-height: 1.1;
  margin: 0 0 12px;
}
.termin-hero .termin-when {
  font-size: 21px;               /* so hoch wie die Status-Pille */
  font-weight: 600;              /* Datum fett (Jan, 2026-10-12) */
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.state-banner--inline { margin: 0; }
.termin-hero .termin-actions { margin-top: 20px; }
/* Datums-Wimpel: gleicher Look wie im Dashboard (Jan, 2026-10-14) — schwarz in beiden
   Modi, Monat auf eigenem Band (Akzent), darunter Tag weiß + Wochentag */
.termin-date-badge {
  flex: 0 0 88px;
  width: 88px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  text-align: center;
}
.termin-date-badge span {
  align-self: stretch;
  padding: 7px 0 6px;
  background: #262628;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.termin-date-badge strong {
  padding: 10px 0 2px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.termin-date-badge small { padding-bottom: 11px; font-size: 11px; color: rgba(255, 255, 255, 0.62); }
.termin-body { flex: 1 1 300px; min-width: 0; }
.termin-titel { font-size: 20px; font-weight: 500; margin: 2px 0 8px; }
.termin-when { margin: 0 0 3px; font-size: 15.5px; color: var(--portal-text); }
.termin-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--portal-text-faint); }
.termin-sub .termin-dauer { color: var(--portal-text); font-weight: 600; }
.termin-telefon { display: flex; align-items: center; gap: 7px; }
.termin-telefon svg { width: 12px; height: 12px; flex: none; }
/* Zielsetzung liegt in der Text-Spalte rechts der Datums-Kachel */
.termin-hero-col .termin-retro { margin-top: var(--r-m); }
/* Retrospektive unter vergangenen Terminen: die Zielsetzung aus der
   ursprünglichen Buchung (Discovery-Feld) — anzeigen, nicht editierbar */
.termin-retro {
  max-width: 640px;
  margin-top: 20px;
  padding: 16px 19px;
  background: var(--portal-quote-bg);
  border: 1px solid var(--portal-line);
  border-radius: 10px;
}
.termin-retro-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--portal-text-faint);
}
.termin-retro-text {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 17px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.termin-actions { display: flex; flex-direction: column; gap: 10px; }
/* Button-Zeilen in der Termin-Kachel (Jan, 2026-10-11) */
.termin-actions-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.termin-actions-zeile > .termin-pill { justify-content: center; text-align: center; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.termin-actions-zeile--1 > .termin-pill--meet { flex: 1 1 auto; }      /* Video-Call füllt die Zeile */
.termin-actions-zeile--1 > .termin-pill:not(.termin-pill--meet) { flex: 0 0 auto; }   /* Daten ändern: eigene Breite */
/* Jeder Button so breit wie sein Text, der Restplatz wird gleichmäßig verteilt
   (Jan, 2026-10-11) — Text nie zweizeilig */
.termin-actions-zeile--2 > .termin-pill { flex: 1 1 auto; }
/* Handy (Jan, 2026-10-12): alle Termin-Buttons untereinander, volle Breite */
@media (max-width: 900px) {
  .termin-actions-zeile { flex-direction: column; }
  .termin-actions-zeile > .termin-pill,
  .termin-actions-zeile--1 > .termin-pill:not(.termin-pill--meet) { flex: 0 0 auto; width: 100%; }
}
.termin-pill .pill-icon { display: inline-flex; margin-right: 6px; }
.termin-pill .pill-icon svg { width: 14px; height: 14px; display: block; }
/* Video-Call = Hauptaktion: größer und fett, Icon mit (Jan, 2026-10-12) */
.termin-actions-zeile > .termin-pill.termin-pill--meet {
  font-size: 14.5px;
  font-weight: 700;
  padding-top: 11px;
  padding-bottom: 11px;
}
.termin-pill--meet .pill-icon { margin-right: 8px; }
.termin-pill--meet .pill-icon svg { width: 17px; height: 17px; }
.termin-pill--meet .pill-icon path { stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
/* hidden-Attribut muss gegen display:inline-flex der Pillen gewinnen */
.termin-pill[hidden] { display: none; }
.termin-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-pill);
  color: var(--portal-text-soft);
  background: var(--portal-chip-bg);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.termin-pill:hover { color: var(--portal-text); border-color: var(--portal-text-faint); }
.termin-pill--accent {
  background: var(--portal-accent);
  border-color: var(--portal-accent);
  color: var(--portal-accent-ink);
}
.termin-pill--accent:hover { background: var(--portal-accent-hover); color: var(--portal-accent-ink); }
.termin-pill--danger:hover { border-color: rgba(224, 72, 61, 0.6); color: var(--portal-danger-text); }
.termin-pill:disabled { opacity: 0.4; cursor: default; }

/* Flow-Panels unter den Termin-Buttons — linke Flucht = Video-Call-Button
   (Datums-Kachel 70px + 24px Gap) */
/* Panels liegen IN der Termin-Kachel unter den Buttons (Jan, 2026-10-11) → kein Einzug */
.termin-panels { max-width: 100%; margin-top: 20px; margin-left: 0; }
.termin-panels .terminportal-flow { margin-top: 8px; }
.termin-when.is-struck { text-decoration: line-through; opacity: 0.55; }
/* Verschieben: "Neuen Termin buchen" + Hinweis unter dem durchgestrichenen Datum (1:1 Terminportal) */
.termin-rehead { margin: 2px 0 14px; }
.termin-rehead[hidden] { display: none; }
.termin-rehead__title { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -0.3px; color: var(--portal-text); }
.termin-rehead__sub { margin: 4px 0 0; font-size: 15px; font-weight: 300; line-height: 1.3; color: var(--portal-text-faint); }

/* „Was dich erwartet" unter der Termin-Kachel */
.termin-erwartung {
  max-width: 760px;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 32px 40px;
  border-radius: 20px;
  background: var(--portal-card-inner-bg);
}
@media (max-width: 900px) { .termin-erwartung { padding: 20px; border-radius: 16px; } }
.termin-erwartung h2 { font-size: 17px; font-weight: 600; color: var(--portal-text); margin: 0 0 8px; letter-spacing: 0; }

.workbook-card--follow { margin-top: 24px; }

/* Teaser (Willkommen): geblurrte Platzhalter-Blöcke + Video-Bild */
.teaser-blur {
  max-width: 720px;
  filter: blur(7px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.teaser-line {
  height: 14px;
  border-radius: 6px;
  background: var(--portal-skeleton);
  margin: 13px 0;
}
.teaser-video {
  aspect-ratio: 16 / 9;
  max-width: 540px;
  border-radius: var(--radius-md);
  background: var(--portal-video-gradient);
  border: 1px solid var(--portal-line);
  display: grid;
  place-items: center;
  margin: 24px 0;
}
.teaser-play {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--portal-skeleton);
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--portal-text);
  padding-left: 5px;
}

/* Gültigkeits-Hinweis unter der Vereinbarungs-Karte (zeitliche Verknappung) */
.gueltig-hinweis {
  margin: 16px 0 0 4px;
  font-size: 14px;
  color: var(--portal-text-soft);
}
.gueltig-hinweis strong { color: var(--portal-text); font-weight: 500; }
/* In der Dokument-Karte unter dem Button */
.gueltig-hinweis--karte { margin: 14px 0 0; font-size: 13px; }

/* =========== CARDS =========== */
.card {
  background: var(--portal-card-gradient);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}

/* Workbook */
.workbook-card { max-width: 640px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.workbook-thumb {
  flex: 0 0 96px;
  width: 96px; height: 124px;
  border-radius: var(--radius-sm);
  background: var(--portal-thumb-gradient);
  border: 1px solid var(--portal-line);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--portal-text-soft);   /* für SVG-Icons (Signatur) */
}
.workbook-thumb svg { width: 42px; height: 42px; }
/* Emoji-Symbol in der Dokument-Kachel: richtig groß (z.B. 📄 Vereinbarung) */
.workbook-thumb .thumb-emoji { font-size: 64px; line-height: 1; }
/* Icons in Aktions-Buttons (Unterzeichnen, Download) */
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* Status-Pille IN der Dokument-Karte (To-do / In Vorbereitung / Unterschrieben) */
.dok-pille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--portal-hover);
  border: 1px solid var(--portal-line);
  color: var(--portal-text-soft);
  margin: 0 0 10px;
}
/* Nur HANDLUNGS-Pillen tragen Akzent — Erledigtes (Unterschrieben,
   Bereitgestellt) bleibt grau, allein der Haken leuchtet */
/* Wie die Status-Pille „Ausstehend": schwarz mit Akzent-Schrift (nur der
   Haupt-Button trägt die Akzentfläche) */
.dok-pille--todo {
  background: #000;
  border-color: #000;
  color: var(--c-accent);
}
.dok-pille .ll-check { width: 9px; height: 9px; color: var(--portal-accent-text); }
/* Haupt-CTA (Jetzt unterzeichnen): eine Stufe größer */
.btn--gross { font-size: 17.5px; padding: 17px 34px; }
.btn--gross svg { width: 19px; height: 19px; }
/* Haken im dunklen Kreis hinter dem Button-Text (Abschluss-Aktion) */
.btn .btn-check {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-left: 12px;
  border-radius: 50%;
  background: #000;
  color: var(--c-accent);
}
.btn .btn-check .ll-check { width: 13px; height: 13px; }
.workbook-info { flex: 1 1 260px; }
.workbook-info h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.workbook-info p { color: var(--portal-text-soft); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }

/* Formular — liegt direkt im Inhalts-Kasten, kein doppelter Rahmen */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
/* Meine Daten: alle Feld-Texte (Werte + Labels) in 17px */
.form-grid .field { font-size: 17px; }
.form-grid .ll-field-label { font-size: 17px; }
.form-grid .span-2 { grid-column: span 2; }
.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-text-faint);
  margin-bottom: 7px;
  font-weight: 500;
}
.form-actions { margin-top: 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Speicher-Status rechts neben dem Button: Spinner -> ✓ Gespeichert am … */
.save-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--portal-text);
}
.save-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(var(--portal-accent-text-rgb), 0.25);
  border-top-color: var(--portal-accent-text);
  border-radius: 50%;
  animation: booking-spin 0.7s linear infinite;   /* Keyframes aus booking.css */
}
.save-check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--portal-accent);
  color: var(--portal-on-accent);
  font-size: 10px;
  font-weight: 700;
}
.save-fehler { color: var(--portal-danger-text); font-size: 14px; }
.form-note { font-size: 13.5px; color: var(--portal-text-faint); }

/* =====================================================
   KI-MODUL: Chat + Empfehlung
   ===================================================== */
.duo {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  gap: 24px;
  align-items: start;
}

/* Tabs nur mobil sichtbar */
.duo-tabs { display: none; }

/* ---- Chat ---- */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: min(72vh, 760px);
  padding: 0;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--portal-line);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--portal-accent);
  color: var(--portal-accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.chat-head-name { font-size: 15px; font-weight: 500; }
.chat-head-sub { font-size: 12.5px; color: var(--portal-text-soft); }
.chat-head-sub .dot-on {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--portal-accent-text); margin-right: 5px;
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.5;
  animation: bubble-in 0.28s cubic-bezier(.3,1.2,.4,1);
}
@keyframes bubble-in {
  from { opacity: 0.2; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1;   transform: none; }
}
.bubble--ai {
  align-self: flex-start;
  background: var(--portal-bubble-bg);
  border-bottom-left-radius: 5px;
}
.bubble--user {
  align-self: flex-end;
  background: rgba(var(--c-accent-rgb), 0.16);
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.22);
  border-bottom-right-radius: 5px;
}
.bubble--typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
.bubble--typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--portal-text-soft);
  animation: typing 1.1s infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: 0.18s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Upload-Dropzone im Chat-Flow */
.dropzone {
  align-self: stretch;
  border: 1.5px dashed rgba(var(--portal-accent-text-rgb), 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--portal-text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.dropzone:hover { background: rgba(var(--c-accent-rgb), 0.05); }
.dropzone strong { color: var(--portal-text); font-weight: 500; }
.dropzone .sub { font-size: 12.5px; color: var(--portal-text-faint); margin-top: 4px; }
.file-chip {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--portal-bubble-bg);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
}

/* Antwort-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.chip {
  border: 1px solid rgba(var(--portal-accent-text-rgb), 0.4);
  background: transparent;
  color: var(--portal-text);
  font-family: var(--body-font);
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.chip:hover { background: rgba(var(--c-accent-rgb), 0.12); }

.chat-composer {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--portal-line);
}
.chat-composer .field { flex: 1; padding: 13px 16px; font-size: 16px; border-radius: var(--radius-pill); resize: none; max-height: 120px; }
.chat-send {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--portal-accent);
  color: var(--portal-accent-ink);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.chat-send:hover { background: var(--portal-accent-hover); }
.chat-send:active { transform: scale(0.94); }

/* ---- Ergebnis / lebendes Briefing ---- */
.result-panel { padding: 0; overflow: hidden; }
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--portal-line);
}
.result-head h3 { font-size: 17px; font-weight: 500; }
.badge {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
}
.badge--draft { background: var(--portal-avatar-bg); color: var(--portal-text-soft); }
.badge--review { background: rgba(var(--c-accent-rgb), 0.14); color: var(--portal-accent-text); border: 1px solid rgba(var(--portal-accent-text-rgb), 0.4); }

.result-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.result-empty { color: var(--portal-text-faint); font-size: 15px; line-height: 1.6; padding: 18px 0 26px; text-align: center; }

.brief-item { animation: bubble-in 0.35s cubic-bezier(.3,1.2,.4,1); }
.brief-item h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-text-faint);
  margin: 0 0 6px;
  font-weight: 500;
}
.brief-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--portal-text); }

/* Zielgruppen-Karten */
.persona {
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  animation: bubble-in 0.35s cubic-bezier(.3,1.2,.4,1);
}
.persona.is-reco { border-color: rgba(var(--portal-accent-text-rgb), 0.55); background: rgba(var(--c-accent-rgb), 0.05); }
.persona-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-accent-text);
  font-weight: 500;
  margin-bottom: 6px;
}
.persona h4 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
.persona p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--portal-text-soft); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1180px) {
  .duo { grid-template-columns: 1fr; }
  .duo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
  }
  .duo-tab {
    flex: 1;
    border: 1px solid var(--portal-line);
    background: transparent;
    color: var(--portal-text-soft);
    font-family: var(--body-font);
    font-size: 14.5px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    padding: 11px 16px;
    cursor: pointer;
  }
  .duo-tab.is-active {
    background: var(--portal-accent);
    border-color: var(--portal-accent);
    color: var(--portal-accent-ink);
  }
  .duo[data-view="chat"] .result-panel { display: none; }
  .duo[data-view="result"] .chat-panel { display: none; }
}

/* Burger — nur mobil und nur wenn das Menü zu ist */
.burger {
  display: none;
  position: fixed;
  top: 14px; right: 14px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--portal-line);
  background: var(--portal-bubble-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
/* Linien auf festen GANZEN Pixelpositionen (Jan, 2026-10-12): mittig per Flex
   verteilt landeten sie auf Bruchteilen und wurden unterschiedlich dick
   geglättet. So hat jede Linie auf jedem Display dieselbe Lage im Pixelraster */
.burger span {
  position: absolute;
  left: 14px;                    /* (44px Innenfläche − 16px) / 2 */
  width: 16px; height: 1.5px;
  background: var(--portal-text);
  border-radius: 1px;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* =========== VERTIKALES LAYOUT-RASTER — EIN Rhythmus für alle Karten ======
   Überschreibt die historisch gewachsenen Einzelwerte mit den --r-*-Tokens
   (tokens.css, 4px-Basis). Hochwertigkeit = überall derselbe Takt:
   Titel →(xs) Pille →(s) Text →(m) Aktion · Blöcke/Karten im l-Abstand. */
.head-title { margin-bottom: var(--r-s); }
.state-banner,
.status-pille { margin-bottom: var(--r-s); }
.module-head { margin-bottom: var(--r-l); }
.module-head .modul-intro { max-width: 640px; }

/* Termin-Karten */
.termin-hero { margin-top: var(--r-xs); }
.termin-when { margin-bottom: 4px; }
.termin-sub { margin-bottom: var(--r-m); }
.termin-hero .termin-actions { margin-top: var(--r-m); }
.termin-retro { margin-top: var(--r-m); }
.termin-retro-label { margin-bottom: var(--r-xs); }

/* Dokument-/Workbook-Karten: Titel → Pille → Text → Button im festen Takt,
   Text klebt nie am Button, letzte Zeile erzeugt keinen Schiefstand */
.workbook-card--follow { margin-top: var(--r-m); }
.workbook-info h3 { margin-bottom: var(--r-xs); }
.dok-pille { margin: 0 0 var(--r-s); }
.workbook-info p { margin: 0 0 var(--r-m); }
.workbook-info p:last-child { margin-bottom: 0; }
.gueltig-hinweis--karte { margin-top: var(--r-s); }

/* Formular */
.form-actions { margin-top: var(--r-l); }

@media (max-width: 900px) {
  /* KEIN horizontales Schwimmen: die 200vw-Fläche darf nur der Burger bewegen,
     nicht der Finger (clip verhindert Panning, pan-y erlaubt nur vertikal) */
  html, body { overflow-x: clip; }
  .portal { touch-action: pan-y; }

  /* ECHTES Schieben: Menü + Inhalt liegen nebeneinander auf einer 2-Screens-
     breiten Fläche. Das Menü kommt von RECHTS herein (der Burger sitzt rechts
     oben): Inhalt links, Menü rechts — Menü offen = Fläche nach links geschoben. */
  .portal {
    display: flex;
    width: 200vw;
    max-width: none;    /* Desktop-Deckel gilt mobil nicht (2-Screens-Fläche!) */
    margin: 0;
    transform: translateX(-100vw);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  }
  body.menu-closed .portal { transform: translateX(0); }
  /* Drag-Geste: während des Ziehens folgt die Fläche dem Finger ohne
     Transition; beim Loslassen schnappt sie mit weichem Ausrollen ein */
  .portal.is-dragging { transition: none; }
  .portal.is-snapping { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

  .sidebar {
    order: 2;             /* Menü liegt RECHTS neben dem Inhalt */
    flex: 0 0 100vw;
    width: 100vw;
    height: 100dvh;
    border-right: none;
    /* Karten 95 % der Viewport-Breite: 2,5 % Rand je Seite (Jan, 2026-10-11) */
    padding: 24px 2.5vw calc(16px + env(safe-area-inset-bottom));
  }
  .main {
    flex: 0 0 100vw;
    width: 100vw;
    padding-top: 20px;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }

  /* Mobil getauscht: Begrüßung über dem Inhalt, Logo + Kundenportal im Menü */
  /* Begrüßung auf der Text-Flucht der Karte (18px Karten-Innenabstand); rechts
     frei bis hinter den Menü-Button (fixed: 14px Rand + 46px + 10px Luft) */
  .main-brand { display: flex; flex-direction: column; gap: 2px; padding: 4px calc(70px - 2.5vw) 22px 18px; }
  .main-gruss .gruss-zeile { font-size: 24px; }
  .sidebar-logo { display: block; }
  .sidebar-gruss { display: none; }
  /* Mobile-Menü: Begrüßung ohne Desktop-Einrückung, mit Luft nach unten */
  .sidebar-brand {
    height: auto;
    padding-left: 0;
    padding-bottom: 22px;
    margin-bottom: 0;
  }

  body.menu-closed .burger { display: flex; }

  /* Kreuz oben rechts IM Menü (fixed wirkt durch den transformierten .portal
     relativ zur 200vw-Fläche -> klebt an der rechten Kante des Menü-Panels
     und bleibt beim Scrollen sichtbar) */
  .menu-zu {
    display: grid;
    place-items: center;
    position: fixed;
    top: 14px; right: 14px;
    z-index: 60;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--portal-line);
    background: var(--portal-bubble-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--portal-text);
    cursor: pointer;
  }
  .menu-zu svg { width: 20px; height: 20px; }

  /* Der Abdunklungs-Verlauf unten springt auf Mobile wie ein Fehler -> weg */
  .sidebar::after { display: none; }

  /* Buttons einzeilig halten: kompakter + kein Umbruch */
  .btn {
    font-size: 14.5px;
    padding: 12px 18px;
    white-space: nowrap;
  }
  .btn--gross { font-size: 15.5px; padding: 13px 20px; }
  .btn svg { width: 15px; height: 15px; }
  .termin-pill { white-space: nowrap; }

  /* Menü mobil (Jan, 2026-10-11): Status-Pillen 20 % kleiner, Texte näher an
     der Timeline (Abstand Kreis → Text 16 → 10px), damit auch kleine Geräte
     (320px) Name + Icon + Pille in einer Zeile fassen */
  .state-pill { font-size: 8.8px; padding: 2.4px 8px; }
  .step,
  .sb-titel-row { gap: 10px; }
  .step { padding-right: 6px; }

  .state-pill.state-kapsel { height: 23px; font-size: 9.5px; padding: 0 8px 0 6px; }
  .state-pill.state-kapsel.state-kapsel--rund { width: 28px; height: 28px; }   /* Kreis bleibt Kreis (Jan, 2026-10-14) */
  .state-pill.state-kapsel.state-kapsel--rund:not(.state-kapsel--glyph) { width: 33px; height: 33px; }
  .kapsel-check,
  .state-kapsel--zu .kapsel-lock { width: 27px; height: 27px; margin-right: -9px; }
  .state-kapsel--zu .kapsel-lock { font-size: 13px; }
  .state-pill.state-kapsel.state-kapsel--done,
  .state-pill.state-kapsel.state-kapsel--zu { padding: 0 8px 0 6px; }
  .kapsel-check .ll-check { width: 17px; height: 17px; }
  .state-kapsel .kapsel-text { font-size: 10.5px; }   /* „Terminiert" 1px größer (Jan, 2026-10-14) */

  .bausteine { gap: 12px; }
  .termin-panels { margin-left: 0; }
  .topbar { display: none; }              /* Profil mobil unten im Voll-Menü */
  .sidebar-user { display: flex; }
  .content-card { padding: 20px 18px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .chat-panel { height: 68vh; }
}

/* Anonyme Zukunfts-Kästen (Interessenten): Fade über --fade statt opacity.
   Hintergrund liegt als ::before UNTER der Timeline, der Schloss-Kreis bleibt
   opak darüber (Füllung = Kreisfarbe auf Seitenhintergrund heruntergemischt). */
.sb-box.is-anonym {
  --fade-eff: min(1, calc(var(--fade, 1) * var(--anonym-boost, 1)));
  background: none;
  box-shadow: none;
}
.sb-box.is-anonym::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--portal-card-gradient);
  box-shadow: var(--shadow-card);
  opacity: var(--fade-eff);
  z-index: 0;
  pointer-events: none;
}
.sb-box.is-anonym .sb-lock-dot {
  background: color-mix(in srgb, var(--portal-box-dot) calc(var(--fade-eff) * 100%), var(--portal-bg));
  /* Rand blendet genauso aus wie die Timeline an dieser Stelle (--fade) */
  border-color: color-mix(in srgb, var(--portal-timeline) calc(var(--fade, 1) * 100%), transparent);
}
.sb-box.is-anonym .sb-lock-icon { opacity: calc(var(--fade-eff) * 0.5); }

/* Kleine Texte in der Systemschrift, damit sie maximal klar sind (Jan, 2026-10-12):
   Zahlen/Buchstaben auf der Timeline, Schloss-Tooltip, Header-Unterzeile
   („Willkommen im … Kundenportal.") samt Intro-Claim */
.step-dot,
.sb-box-dot,
.schloss-tip,
.gruss-sub,
.intro-claim { font-family: var(--system-font); }
/* Das Wort LeaderLogic™ im Satz bleibt das Original-Logo (Markenschrift) */
.gruss-sub .ll-wort,
.intro-claim .ll-wort { font-family: var(--heading-font); }

/* =========== MOBIL: Profil im Seitenmenü (Jan, 2026-10-12) ===========
   Unten EINE Reihe: Avatar (öffnet das Profil-Menü von unten, E-Mail steht
   oben im Blatt), Hell/Dunkel-Schalter und ein echter Abmelden-Button. */
.profil-menu.profil-blatt,
.profil-schleier { display: none; }
.user-profil {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--portal-text-faint);
  font: 400 13px var(--body-font);
  cursor: pointer;
}
/* Nur der Avatar-Kreis, ohne E-Mail (Jan, 2026-10-12) */
.user-profil { flex: none; }
.user-profil .profil-avatar {
  width: 42px; height: 42px;
  border: 1px solid var(--portal-line);
  background: var(--portal-chip-bg);
}
.user-profil .profil-avatar svg { width: 19px; height: 19px; }
.user-profil #user-email { display: none; }
.user-aktionen { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar-user .theme-toggle { margin-top: 0; }
.sidebar-user .theme-toggle button {
  width: 40px; height: 34px;
  padding: 0; margin: 0;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--portal-text-faint);
  cursor: pointer;
}
.sidebar-user .theme-toggle button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--portal-text) 8%, transparent);
  color: var(--portal-text);
}
.sidebar-user .theme-toggle svg { width: 17px; height: 17px; }
.sidebar-user a.abmelden-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-pill);
  background: var(--portal-chip-bg);
  color: var(--portal-text);
  font: 600 15px var(--body-font);
}

@media (max-width: 900px) {
  /* Untere Leiste (Avatar, Hell/Dunkel, Abmelden) immer sichtbar: klebt am
     unteren Rand des Seitenmenüs, auch beim Scrollen (Jan, 2026-10-12) */
  .sidebar { display: flex; flex-direction: column; }
  .sidebar-user {
    display: block;
    position: sticky;
    bottom: calc(-16px - env(safe-area-inset-bottom));   /* bis an den Rand, über das Innenpolster */
    z-index: 5;
    margin-top: auto;            /* kurzer Inhalt: trotzdem ganz unten */
    margin-left: -2.5vw;
    margin-right: -2.5vw;
    margin-bottom: calc(-16px - env(safe-area-inset-bottom));
    padding: 14px 2.5vw calc(14px + env(safe-area-inset-bottom));
    background: var(--portal-bg);
  }
  /* Logo im Menü auf der Flucht der Timeline-Linie (Jan, 2026-10-12):
     Linie = Kasten-Rand + 29px (gemessen), Logo links genauso weit drin */
  .sidebar-brand.sidebar-logo { padding-left: 29px; }
  /* Seitenhöhe richtet sich nach dem Inhalt, nicht nach dem bildschirmhohen
     Seitenmenü: es zählt für die Höhe nicht mit (negativer Außenabstand),
     so dockt der Footer auch bei kurzem Inhalt unten an (Jan, 2026-10-12) */
  body:has(> .ll-footer) .sidebar { margin-bottom: -100dvh; }
  /* Inhaltsseite: Footer näher am Inhalt (150 statt 250px) */
  body > .ll-footer { margin-top: 150px; }   /* schlägt die Grundregel in brand.css */
  .kapsel-icon--ausfuellen svg { width: 22px; height: 22px; }   /* Stift mobil größer */

  /* Schleier hinter dem Blatt */
  .profil-schleier {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .profil-schleier.is-open { opacity: 1; pointer-events: auto; }

  /* Profil-Blatt: volle Breite, fährt von unten herein */
  .profil-menu.profil-blatt {
    display: block;
    position: fixed;
    left: 0; right: 0;
    top: auto; bottom: auto;
    z-index: 70;
    min-width: 0;
    max-height: 88vh;
    overflow-y: auto;
    border: 0;
    background: var(--portal-panel);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    opacity: 1;
    transition:
      transform 0.5s cubic-bezier(.16, 1, .3, 1),
      visibility 0s linear 0.5s;
  }
  .profil-menu.profil-blatt[data-von="unten"] {
    bottom: 0;
    border-radius: 26px 26px 0 0;
    padding: 36px 28px calc(30px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .profil-menu.profil-blatt.is-open {
    transform: none;
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1), visibility 0s;
  }
  .profil-blatt .menu-brand { margin-top: 28px; padding-top: 32px; }
  .blatt-kopf {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-text-soft);
    font-size: 14px;
  }
  .blatt-kopf .profil-avatar { width: 34px; height: 34px; flex: none; }
  .blatt-kopf .profil-avatar svg { width: 17px; height: 17px; }
  .blatt-mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Formular-Fläche wie die Termin-Kachel (Jan, 2026-10-12) */
.content-card .card.form-karte { max-width: 760px; padding: 40px; }
@media (max-width: 900px) {
  .content-card .card.form-karte { padding: 20px; border-radius: 16px; }
}

/* ===== ÜBERSICHT (Dashboard) ===== */
/* Plan-Änderung (Jan): minimalistisch, nur Kopf, „Als Nächstes" und „Dein Weg". Name im Menü: „Dashboard" */
/* ---- Menü-Eintrag „Dashboard" (steht über den Bausteinen, nicht in der Timeline) ---- */
.sb-start {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 2px;   /* + 12px Abstand des Menüs = 14px nach unten */
  padding: 15px 14px 16px;   /* Icon-Mitte auf der Flucht der Timeline-Kreise */
  border: none;
  border-radius: var(--radius-md);
  color: var(--portal-titel-zu);
  font-family: var(--body-font);
  font-size: 17.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.sb-start-icon {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  margin: 2px;
  display: grid;
  place-items: center;
  color: var(--portal-icon-farbe);
  transition: color var(--transition);
}
.sb-start-icon svg { width: 22px; height: 22px; display: block; }
/* Fläche nicht aktiv/aktiv = zugeklappter/aktiver Kapitel-Kasten (brand.css), hier nur die Schrift */
.sb-start.is-active { color: var(--portal-text); }
.sb-start.is-active .sb-start-icon { color: var(--portal-accent-text); }
@media (max-width: 900px) {
  .sb-start { gap: 10px; }
}

/* ---- Abschnitte ---- */
.db-sec {
  background: var(--portal-card-inner-bg);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 16px;
}
.db-sec:last-child { margin-bottom: 0; }
.db-h2 { margin: 0 0 6px; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--portal-text); }
.db-sec-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* 1 Kopf */
.db-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--portal-accent-text);
}
.db-kopf.module-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.db-kopf.module-head .modul-intro { max-width: 680px; }
.db-sig {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 8px clamp(14px, 2.4vw, 24px) 8px 8px;
  border-radius: 999px;
  background: var(--portal-card-inner-bg);
  transition: background 200ms ease;
}
.db-sig-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Video-Call-Zeichen (Akzent-Kreis wie ein FaceTime-Button) vor der Trennlinie */
.db-sig-call {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--portal-accent);
  color: var(--portal-accent-ink);
  transition: transform 200ms ease;
}
.db-sig-call svg { width: 20px; height: 20px; display: block; }
@media (hover: hover) and (pointer: fine) {
  button.db-sig-person:hover .db-sig-call { transform: scale(1.08); }
}
/* Social-Icons ganz hinten, durch eine feine Linie abgesetzt */
.db-sig-socials { display: flex; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--portal-line); }
.db-social {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--portal-text-faint);
  transition: background 0.18s ease, color 0.18s ease;
}
.db-social svg { width: 15px; height: 15px; display: block; }
.db-social:hover { background: var(--portal-accent); color: var(--portal-accent-ink); }
.db-sig-text { display: flex; flex-direction: column; gap: 2px; }
.db-sig-name { font-size: 15px; font-weight: 500; color: var(--portal-text); }
.db-sig-rolle { font-size: 13px; color: var(--portal-text-soft); }
.db-avatar {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--portal-avatar-bg);
  color: var(--portal-text);
  font-size: 17px;
  font-weight: 700;
}
.db-avatar--klein { flex-basis: 40px; width: 40px; height: 40px; font-size: 14px; }
/* Jans Foto: rund, 40px, nicht klickbar */
.db-foto { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }

/* 2 Als Nächstes: Fläche wie die übrigen Abschnitte, 1px Rand, keine Verläufe (Jan, v3) */
.db-sec.db-next { padding: 0; border: 1px solid var(--portal-line); }
.db-next-innen {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3vw, 32px);
}
/* Ganze Karte anklickbar: hebt sich 2px (translate, damit die Einblend-Animation nicht stört) */
.db-sec.db-next.is-klickbar { cursor: pointer; transition: translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.db-sec.db-next.is-klickbar:hover { translate: 0 -2px; }
/* Große Datums-Kachel (gleicher Look wie termin-date-badge, größer): Monat · Tag · Wochentag */
.db-datum {
  flex: 0 0 132px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.db-datum-monat { align-self: stretch; padding: 9px 0 8px; background: #262628; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; color: var(--c-accent); }
.db-datum-tag { padding: 14px 0 4px; font-size: 68px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.db-datum-wtag { padding-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.62); }
.db-next-kreis {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--portal-chip-bg);
  color: var(--portal-text-soft);
}
.db-next-kreis svg { width: 28px; height: 28px; display: block; }
.db-next-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.db-next-col .state-banner { margin-bottom: 12px; }
.db-next-titel {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--portal-text);
}
.db-next-zeile { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--portal-text-soft); }
.db-next-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
/* Pfeil im Button, rückt beim Hover leicht nach rechts */
.btn.db-btn-pfeil { display: inline-flex; align-items: center; gap: 8px; }
.db-pfeil { width: 17px; height: 17px; flex: none; transition: transform 0.2s ease; }
.btn.db-btn-pfeil:hover .db-pfeil,
.db-next.is-klickbar:hover .btn--accent .db-pfeil { transform: translateX(3px); }

/* Schloss wie in der Menüleiste: Emoji im runden Kreis (überall gleich) */
.db-schloss {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--portal-check-kreis);
  font-size: 13px;
  line-height: 1;
  color: color-mix(in srgb, var(--portal-text) 72%, transparent);
}
/* In der Pille: Kreis sitzt am rechten Ende wie im Menü */
.state-banner.db-pille-zu { display: inline-flex; align-items: center; gap: 8px; padding-right: 3px; }
.db-pille-zu .db-schloss { width: 24px; height: 24px; font-size: 12px; }

/* Countdown */
.db-cd-wrap { margin-top: 20px; }
.db-cd { display: flex; flex-wrap: wrap; gap: 10px; }
.db-cd[hidden], .db-cd-kachel[hidden], .db-laeuft[hidden] { display: none; }
/* Feste Kachelbreite: Ziffernwechsel darf das Layout nie verschieben */
.db-cd-kachel {
  flex: none;
  box-sizing: border-box;
  width: 72px;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--portal-chip-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.db-cd-zahl { display: block; width: 100%; text-align: center; font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--portal-text); }
.db-cd-zahl.is-neu { animation: db-ziffer 0.28s ease-out; }
@keyframes db-ziffer { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
.db-cd-einheit { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--portal-text-soft); }
.db-laeuft { margin: 0; font-size: 16px; font-weight: 500; color: var(--portal-accent-text); }

/* Arbeits-Balken (Zustand C): einfarbiger Akzent-Streifen wandert endlos */
.db-arbeit {
  position: relative;
  align-self: stretch;
  max-width: 420px;
  height: 4px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--portal-line);
  overflow: hidden;
}
.db-arbeit::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  border-radius: 2px;
  background: var(--portal-accent);
  animation: db-licht 1.8s ease-in-out infinite;
}
@keyframes db-licht { from { transform: translateX(-100%); } to { transform: translateX(333%); } }

/* Transformation Roadmap: Text links, Mockup rechts (Querformat-Blätter im Stil der echten PDFs) */
.db-sec.db-roadmap { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); }
.db-roadmap-text { flex: 0 1 45%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.db-roadmap-text .state-banner { margin-bottom: 14px; }
.db-meta { margin: 12px 0 0; font-size: 13px; color: var(--portal-text-faint); }
.db-mock { flex: 1 1 55%; min-width: 0; position: relative; max-width: 440px; margin: 14px 14px 4px auto; aspect-ratio: 16 / 10; }
.db-blatt {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 10px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.db-blatt--hinten { transform: rotate(4deg) translate(14px, -10px); }
.db-blatt--mitte { transform: rotate(2deg) translate(7px, -5px); }
/* Deckblatt: schwarz in beiden Modi, Inhalt skaliert mit der Blattbreite.
   Lesbar ist nur die Headline (vertikal mittig), alles andere sichtbar verschwommen */
.db-blatt--vorne {
  container-type: inline-size;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.db-unscharf { filter: blur(3px); user-select: none; }
.db-blatt-oben { position: absolute; top: 6%; left: 5%; right: 5%; display: flex; justify-content: space-between; align-items: center; }
.db-blatt-kopf { font-size: clamp(8px, 2.6cqw, 11px); color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.db-blatt-kopf strong { font-weight: 700; }
.db-blatt-label { font-size: clamp(5px, 1.6cqw, 7px); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }
.db-blatt-titel { display: flex; flex-direction: column; align-items: center; margin-bottom: 9cqw; font-size: clamp(16px, 7cqw, 32px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-align: center; }
.db-blatt-titel span:first-child { color: #d8fd5b; }
.db-blatt-unten { position: absolute; left: 7%; right: 7%; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: 4cqw; }
.db-blatt-zeilen { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; width: 100%; }
.db-blatt-zeilen b { display: block; height: 1.4cqw; min-height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); width: 62%; }
.db-blatt-zeilen b + b { width: 40%; }
.db-blatt-kacheln { display: flex; gap: 3cqw; width: 100%; height: 10cqw; }
.db-blatt-kacheln i { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; padding: 0 7%; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.db-blatt-kacheln b { display: block; height: 1cqw; min-height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); width: 70%; }
.db-blatt-kacheln b + b { width: 45%; }
.db-blatt-seite { position: absolute; right: 0; bottom: -4cqw; font-size: clamp(5px, 1.4cqw, 6px); color: rgba(255, 255, 255, 0.4); }
.db-schloss--blatt { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; font-size: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .db-roadmap:hover .db-blatt--vorne { transform: translateY(-6px); }
  .db-roadmap:hover .db-blatt--mitte { transform: rotate(4deg) translate(9px, -7px); }
  .db-roadmap:hover .db-blatt--hinten { transform: rotate(6deg) translate(18px, -13px); }
}
@media (max-width: 900px) {
  .db-sec.db-roadmap { flex-direction: column-reverse; align-items: stretch; }
  .db-mock { width: calc(100% - 28px); margin: 14px auto 10px; }
}

/* 3 Transformation-Fortschritt: größer, je Gruppe eine eigene Karte */
.db-h2--gross { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.db-roadmap .db-h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.db-weg-intro { margin: 0; }
.db-weg-reihe { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.db-gruppe {
  box-sizing: border-box;
  padding: 18px 20px 22px;
  border-radius: 16px;
  background: var(--portal-chip-bg);
}
.db-gruppe.is-aktuell { background: var(--portal-hover-strong); }
/* Gruppen-Name: dünn, blass, ohne Ziffer */
.db-gruppe-name { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--portal-text-faint); }
.db-gruppe.is-aktuell .db-gruppe-name { color: var(--portal-text-soft); }
.db-weg-bahn { position: relative; }
/* Linie + Füllung je Karte: Lage und Länge setzt JS (gemessene Kreis-Mitten: --x0 --y0 --len --fl) */
.db-weg-linie {
  position: absolute;
  left: var(--x0, 0px);
  top: calc(var(--y0, 0px) - 1px);
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--portal-line);
  overflow: hidden;
}
.db-weg-fuell { display: block; height: 100%; width: var(--fl, 0px); background: var(--portal-accent); transition: width 1200ms ease-out; }
.db-weg-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--gn), minmax(0, 1fr)); column-gap: 16px; }
.db-station { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; text-align: left; }
.db-station-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%; }
.db-station-pdf { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; color: var(--portal-text-faint); }
.db-punkt {
  box-sizing: border-box;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--portal-box-dot);
  border: 1px solid var(--portal-line);
}
.db-station-name { padding: 0; font-size: 15px; line-height: 1.3; overflow-wrap: normal; hyphens: manual; color: var(--portal-text-faint); }
.db-station.is-done .db-punkt { background: var(--portal-accent); border-color: var(--portal-accent); color: var(--portal-on-accent); }
.db-station.is-done .db-punkt .ll-check { width: 14px; height: 14px; }
.db-station.is-done .db-station-name { color: var(--portal-text-soft); }
.db-station.is-aktuell .db-punkt { border: 2px solid var(--portal-accent); }
.db-station.is-aktuell .db-punkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--portal-accent); animation: db-puls 2s infinite; }
.db-station.is-aktuell .db-station-name { color: var(--portal-text); font-weight: 500; }
/* Aktive Station als Link: gleiche Schrift wie der Name, Pfeil rückt beim Hover */
.db-station-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--portal-text);
  text-align: left;
  cursor: pointer;
}
.db-station-link .db-pfeil { width: 14px; height: 14px; color: var(--portal-accent-text); transition: transform 0.2s ease; }
.db-station-link:hover .db-pfeil { transform: translateX(3px); }
.db-station-link:focus-visible { outline: 2px solid rgba(var(--portal-accent-text-rgb), 0.55); outline-offset: 3px; border-radius: 4px; }
/* Noch nicht offen: Schloss-Kreis wie im Menü */
.db-station.is-zu .db-punkt { background: var(--portal-check-kreis); border-color: transparent; }
.db-punkt .db-schloss { width: auto; height: auto; background: none; font-size: 10px; }
@keyframes db-puls {
  from { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.5); }
  to { box-shadow: 0 0 0 10px rgba(var(--c-accent-rgb), 0); }
}
/* Geheime Kapitel (nach dem Onboarding): Namen sichtbar verschwommen, Deckkraft setzt JS */
.db-gruppe.is-geheim .db-gruppe-name,
.db-gruppe.is-geheim .db-station-name { filter: blur(4px); user-select: none; }
.db-gruppe.is-geheim { background: var(--portal-chip-bg); }

/* Einblenden der Abschnitte (nur beim echten Öffnen; JS setzt .db-anim, dann .db-los) */
.db-anim:not(.db-los) .db-rein { opacity: 0; }
.db-anim.db-los .db-rein {
  animation: db-rein 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--db-basis, 0s) + var(--i, 0) * 90ms);
}
@keyframes db-rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .db-next-innen { flex-direction: column; gap: 18px; }
  .db-datum { flex-basis: auto; width: 84px; border-radius: 14px; }
  .db-datum-monat { padding: 6px 0 5px; font-size: 12px; }
  .db-datum-tag { padding: 8px 0 2px; font-size: 40px; }
  .db-datum-wtag { padding-bottom: 9px; font-size: 11px; }
  .db-next-titel { font-size: 32px; }
  /* volle Breite unabhängig vom Inhalt: sonst wandert der Countdown bei jedem Ziffernwechsel */
  .db-cd-wrap { align-self: stretch; }
  .db-cd { gap: 8px; width: 100%; }
  .db-cd-kachel { flex: 1 1 0; width: auto; min-width: 0; padding: 8px 4px; }
  .db-cd-zahl { font-size: 26px; }
}

/* Weg senkrecht, wenn die Karte schmal ist: Gruppen-Karten untereinander, Linie links durch die Kreise */
.db-sec.db-weg { container-type: inline-size; }
@container (max-width: 720px) {
  .db-weg-liste { display: flex; flex-direction: column; gap: 26px; }
  .db-weg-linie { left: calc(var(--x0, 0px) - 1px); right: auto; top: var(--y0, 0px); width: 2px; height: var(--len, 0px); }
  .db-weg-fuell { width: 100%; height: var(--fl, 0px); transition: height 1200ms ease-out; }
  .db-station { flex-direction: row; align-items: center; gap: 14px; text-align: left; }
  .db-station-text { align-items: flex-start; }
  .db-station-name { padding: 0; font-size: 17px; }
  .db-station-link { font-size: 17px; }
}

/* Reduzierte Bewegung: alles sofort im Endzustand */
@media (prefers-reduced-motion: reduce) {
  .db-anim .db-rein,
  .db-anim.db-los .db-rein { animation: none !important; opacity: 1 !important; transform: none !important; }
  .db-weg-fuell { transition: none; }
  .db-station.is-aktuell .db-punkt i { animation: none; }
  .db-arbeit::after { animation: none; left: 35%; }
  .db-cd-zahl.is-neu { animation: none; }
}
/* Schmales Mockup: Seiten-Label weg, sonst stößt es an die Kopfzeile */
@container (max-width: 300px) { .db-blatt-label { display: none; } }

/* ===== WEEKLY SPRINTS ===== */
/* Abstände Kopf, nächster Sprint, Buchen: je 28px */
.module-head.sprints-kopf { margin-bottom: 28px; }
.sprints-sektion + .sprints-sektion,
.sprints-naechster:not([hidden]) + .sprints-buchen { margin-top: 28px; }
.sprints-sektion h2 { font-size: 17px; font-weight: 600; color: var(--portal-text); margin: 0 0 8px; letter-spacing: 0; }
.sprints-naechster .termin-hero { margin-top: 0; }
/* „Sprint buchen" samt Kalender als Karte wie im Dashboard (Jan, 2026-10-14) */
.sprints-sektion.sprints-buchen {
  max-width: 760px;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--portal-line);
  background: var(--portal-card-inner-bg);
}
.sprints-buchen > h2 { margin-bottom: 14px; }
.sprints-buchen-titel { display: flex; align-items: center; gap: 10px; }
/* Video-Call-Zeichen über dem Kalender: wie im Dashboard, nur grau */
/* Video-Call-Zeichen im Akzent-Button („Video-Call starten", „Jetzt beitreten"): schwarzer Kreis,
   Kamera in Akzent — gleiche Form wie überall, invertiert auf der Akzent-Fläche */
.db-sig-call.db-sig-call--im-button { width: 28px; height: 28px; margin: -4px 9px -4px -8px; background: #000; color: var(--c-accent); }
.db-sig-call.db-sig-call--im-button svg { width: 17px; height: 17px; }
.btn.db-btn-call { display: inline-flex; align-items: center; }
.db-sig-call.db-sig-call--grau { margin-left: 0; background: var(--portal-check-kreis); color: var(--portal-text); }

/* Kapsel im Kopf: Schloss statt Kalender-Icon (Interessent) */
.sprints-kopf .state-banner--kapsel .db-schloss { width: 22px; height: 22px; font-size: 11px; margin: -3px 0 -3px -6px; }

/* Buchungs-Kalender im Portal: Karte aus booking.css neutralisiert (wie der Verschieben-Kalender im Kick-off) */
.sprints-buchen .booking-panel {
  max-width: 760px;
  position: static;
  min-height: 0;
  height: auto !important;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
  color: var(--portal-text);
}
.sprints-buchen .booking-panel__head { display: none; }
/* Kalender linksbündig auf der Raster-Linie (wie der Verschieben-Kalender im Kick-off) */
.content-card .sprints-buchen .booking-panel .booking-step--calendar { margin: 0 auto 0 0; }

/* Formular-Schritt „Sprint bestätigen": booking.css ist hell, hier mit Portal-Tokens */
.content-card .sprints-buchen .booking-panel[data-booking-current-step="form"] .booking-step--form { max-width: 530px; margin: 0 auto 0 0; }
.sprints-buchen .booking-form-head { margin-bottom: 20px; }
.sprints-buchen .booking-form-title { font-size: 21px; font-weight: 600; letter-spacing: 0; color: var(--portal-text); }
.sprints-buchen .booking-back { background: var(--portal-chip-bg); color: var(--portal-text-soft); }
.sprints-buchen .booking-back:hover { background: var(--portal-hover-strong); color: var(--portal-text); }
.sprints-buchen .booking-notes-field { margin-bottom: 0; padding: 0; background: transparent; }
.sprints-buchen .booking-notes-headline { font-size: 15px; font-weight: 500; line-height: 1.4; }
.sprints-buchen .ll-field--area textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  resize: vertical;
  font-family: var(--body-font);
  font-size: var(--field-font-size);
  line-height: 1.45;
  color: var(--portal-text);
  background: var(--field-bg);
  border: 1px solid var(--portal-line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.sprints-buchen .ll-field--area textarea::placeholder { color: var(--portal-text-faint); }
.sprints-buchen .ll-field--area textarea:focus { border-color: rgba(var(--portal-accent-text-rgb), 0.55); background: var(--field-bg-focus); }
/* Buchen-Button in Portal-Größe (wie „Termin verschieben"), linksbündig */
.sprints-buchen .booking-submit {
  justify-self: start;
  min-height: 46px;
  margin-top: 18px;
  padding: 8px 26px;
  font-size: 16px;
  letter-spacing: 0;
}
.sprints-buchen .booking-submit__slot { flex: 0 0 0; }
.sprints-buchen .booking-submit-when { font-size: 12.5px; letter-spacing: 0; opacity: 0.6; }

/* Interessent: echte Kalender-Ansicht (Klassen aus booking.css), nur die Tage sind unscharf */
.sprints-vorschau { position: relative; }
.sprints-vorschau .booking-month-grid {
  filter: blur(7px);   /* stärker unscharf (Jan, 2026-10-14) */
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
.sprints-hinweis {
  position: absolute;
  left: 50%;
  top: 50%;   /* mittig auf der ganzen Kalender-Karte (Jan, 2026-10-14) */
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  /* kaum durchsichtig + Milchglas, damit der Kalender dahinter nicht durchscheint */
  background: color-mix(in srgb, var(--portal-panel) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--portal-line);
  font-size: 15px;
  font-weight: 400;
  color: var(--portal-text);
  white-space: nowrap;
}

/* Hinweiszeile unter „Sprint buchen" und mehrere kommende Sprints untereinander */
.sprints-regel { margin: -2px 0 12px; font-size: 13px; color: var(--portal-text-soft); }
.sprints-liste { display: flex; flex-direction: column; gap: 12px; }

/* Dashboard: Jans Foto + Name als Button (öffnet die Weekly Sprints) */
button.db-sig-person {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 999px;
}
button.db-sig-person:focus-visible { outline: 2px solid rgba(var(--portal-accent-text-rgb), 0.55); outline-offset: 4px; }
.db-sig .db-foto { transition: transform 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .db-sig:has(button.db-sig-person:hover) { background: var(--portal-hover-strong); }
  button.db-sig-person:hover .db-foto { transform: scale(1.04); }
}

/* Profil-Menü hat einen Eintrag mehr: Staffel-Verzögerung für den vierten */
.profil-menu.is-open .menu-nav button:nth-child(4) { transition-delay: 0.18s; }

@media (max-width: 640px) {
  .sprints-buchen .booking-panel { max-width: none; width: 100%; }
  .sprints-hinweis { font-size: 13px; padding: 8px 14px; gap: 8px; max-width: calc(100% - 16px); box-sizing: border-box; }
  .sprints-buchen .booking-submit { width: 100%; min-height: 48px; font-size: 16px; padding: 8px 26px; }
  /* Kapsel mit den Zeiten ist breiter als der Bildschirm: umbrechen statt abschneiden */
  .sprints-kopf .state-banner--kapsel { white-space: normal; max-width: 100%; box-sizing: border-box; line-height: 1.35; border-radius: 18px; }
}

/* Text im Portal nicht markierbar (Jan, 2026-10-14) — Eingabefelder bleiben bedienbar */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
