/* =============================================================================
 * portal.css — LASSE4K Coaching · Onboarding
 * -----------------------------------------------------------------------------
 * Alle Styles des Onboardings an EINER Stelle. Design-Upgrade 2026: ruhiges
 * Token-System, klarere Hierarchie, warm getönte Schatten, durchdachte Zustände.
 * Struktur, Bedienung, Feld-IDs und Klassen bleiben unverändert. Aufbau:
 *   0. Schriften (selbst gehostet)     4. Onboarding-Shell (Sidebar, Progress, Nav)
 *   1. Design-Tokens (CSS-Variablen)   5. Feld-Komponenten (Chip, Card, Scale, …)
 *   2. Base / Reset / Animationen      6. Summary + Done-Screen
 *   3. Login-Screen
 * Die Akzentfarbe kommt aus config.php und wird per --l4k-accent gesetzt.
 * ========================================================================== */

/* 0 · SCHRIFTEN (selbst gehostet, DSGVO-konform, font-src 'self') ----------- */
/* Variable Fonts: eine Datei je Subset deckt den gesamten Gewichtsbereich ab. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1 · TOKENS ---------------------------------------------------------------- */
:root {
  /* Akzent (Grundwert kommt aus config.php via JS → --l4k-accent) */
  --l4k-accent:      #C0392B;
  --l4k-accent-dark: #a72d20;
  /* Statischer Fallback zuerst, color-mix überschreibt bei modernen Browsern
     (folgt dann einer in config.php geänderten Akzentfarbe). */
  --l4k-acc-tint:    rgba(192,57,43,.10);
  --l4k-acc-tint:    color-mix(in srgb, var(--l4k-accent) 10%, transparent);
  --l4k-acc-line:    rgba(192,57,43,.30);
  --l4k-acc-line:    color-mix(in srgb, var(--l4k-accent) 30%, transparent);

  /* Papierflächen (warm, geschichtet) */
  --l4k-paper:        #f2f0eb;
  --l4k-paper-raised: #f8f7f3;
  --l4k-paper-sunken: #e9e6dd;
  --l4k-line:         #dcd8ce;
  --l4k-line-2:       #cac5b8;

  /* Ink / Text auf Papier */
  --l4k-ink:   #141414; /* Marke: dunkel #141414 (Flächen + Überschriften) */
  --l4k-ink-2: #3b3934;
  --l4k-ink-3: #6c6a62;
  --l4k-ink-4: #97948a;
  --l4k-ink-5: #bcb8ac;

  /* Dunkle Flächen (Rail, Login, Done) */
  --l4k-void:      #141414;
  --l4k-void-2:    #1c1c1b;
  --l4k-void-3:    #232322;
  --l4k-void-line: #2b2b29;
  --l4k-on-void:   #f2f0eb;
  --l4k-on-void-2: rgba(242,240,235,.56);
  --l4k-on-void-3: rgba(242,240,235,.32);

  /* Gewählter Chip (dunkle Fläche, roter Marker) */
  --l4k-sel-bg: #1b1b19;
  --l4k-sel-fg: #f4f2ed;

  /* Schatten (warm getönt, sehr dezent) */
  --l4k-sh1: 0 1px 2px rgba(20,20,18,.05);
  --l4k-sh2: 0 4px 16px rgba(20,20,18,.06), 0 1px 3px rgba(20,20,18,.05);
  --l4k-sh3: 0 16px 44px rgba(20,20,18,.10), 0 4px 12px rgba(20,20,18,.06);
  --l4k-focus: 0 0 0 3px rgba(192,57,43,.22);
  --l4k-focus: 0 0 0 3px color-mix(in srgb, var(--l4k-accent) 22%, transparent);

  /* Radien */
  --l4k-r1: 8px; --l4k-r2: 12px; --l4k-r3: 16px;

  /* Bewegung */
  --l4k-ease: cubic-bezier(.2,0,0,1);
  --l4k-dur:  140ms;

  /* Typografie */
  --l4k-font-ui:      "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --l4k-font-display: "Bricolage Grotesque", var(--l4k-font-ui);
  --l4k-font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 2 · BASE / RESET / ANIMATIONEN ------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--l4k-void);
  font-family: var(--l4k-font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--l4k-ink-2);
}
a { color: var(--l4k-accent); text-decoration: none; }
a:hover { color: var(--l4k-accent-dark); }
::selection { background: var(--l4k-acc-tint); color: var(--l4k-accent-dark); }
input, textarea, button, select { font-family: inherit; }

@keyframes l4kStepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes l4kFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes l4kPop    { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

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

/* Scrollbar (dezent, heller Bereich) */
.l4k-scroll::-webkit-scrollbar { width: 9px; }
.l4k-scroll::-webkit-scrollbar-thumb { background: var(--l4k-line-2); border-radius: 9px; }

/* Range-Slider (Timeline + Scale) — nativ, aber ruhig gestylt */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; background: var(--l4k-paper-sunken); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--l4k-ink); cursor: grab;
  box-shadow: var(--l4k-sh2); border: 3px solid var(--l4k-paper-raised);
  transition: transform var(--l4k-dur) var(--l4k-ease);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--l4k-ink); cursor: grab;
  border: 3px solid var(--l4k-paper-raised); box-shadow: var(--l4k-sh2);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--l4k-sh2), var(--l4k-focus); }

/* Logo-Kachel + Wortmarke (in mehreren Screens) */
.l4k-logo {
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * 0.26);
  background: var(--l4k-void-2); border: 1px solid var(--l4k-void-line);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.l4k-logo img { width: calc(var(--s) * 0.66); height: calc(var(--s) * 0.66); object-fit: contain; }
.l4k-wordmark { font-weight: 700; letter-spacing: 0.02em; color: var(--l4k-on-void); }
.l4k-wordmark span { color: var(--l4k-accent); }

/* Gemeinsame Buttons */
.l4k-btn { transition: background var(--l4k-dur), transform var(--l4k-dur) var(--l4k-ease), box-shadow var(--l4k-dur); }
.l4k-btn:hover   { transform: translateY(-1px); }
.l4k-btn:active  { transform: translateY(0); }
.l4k-ghost:hover { background: rgba(0,0,0,.05); }
.l4k-btn:focus-visible, .l4k-ghost:focus-visible { outline: 0; box-shadow: var(--l4k-focus); }

/* 3 · LOGIN-SCREEN ---------------------------------------------------------- */
.l4k-login {
  min-height: 100vh; background: var(--l4k-void); color: var(--l4k-on-void);
  display: flex; flex-direction: column; animation: l4kFade .5s ease;
}
.l4k-login-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--l4k-accent); }
.l4k-login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.l4k-login-card { width: 100%; max-width: 420px; text-align: center; }
.l4k-login-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.l4k-login-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--l4k-on-void-2); margin-bottom: 14px; font-weight: 600; }
.l4k-login-title { font-family: var(--l4k-font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.05; color: var(--l4k-on-void); }
.l4k-login-lead { color: var(--l4k-on-void-2); font-size: 15px; line-height: 1.6; margin: 0 auto 34px; max-width: 38ch; }
.l4k-login-labelwrap { text-align: left; margin-bottom: 11px; }
.l4k-login-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l4k-on-void-3); font-weight: 600; }
.l4k-code-input {
  width: 100%; text-align: center; font-family: var(--l4k-font-mono);
  font-size: 16px; letter-spacing: 0.1em; font-weight: 500;
  padding: 15px 18px; border-radius: var(--l4k-r2); border: 1px solid var(--l4k-void-line);
  background: var(--l4k-void-2); color: var(--l4k-on-void); outline: none; margin-bottom: 16px;
  transition: box-shadow var(--l4k-dur), border-color var(--l4k-dur);
}
.l4k-code-input::placeholder { color: var(--l4k-on-void-3); }
.l4k-code-input:focus { border-color: transparent; box-shadow: var(--l4k-focus); }
.l4k-login-submit {
  width: 100%; padding: 15px; border-radius: var(--l4k-r2); border: none;
  background: var(--l4k-accent); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.l4k-login-submit:hover { background: var(--l4k-accent-dark); }
.l4k-resume-btn {
  width: 100%; margin-top: 12px; padding: 14px; border-radius: var(--l4k-r2);
  border: 1px solid var(--l4k-void-line); background: transparent; color: var(--l4k-on-void);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--l4k-dur);
}
.l4k-resume-btn:hover { background: var(--l4k-void-3); }
.l4k-login-domain { margin-top: 26px; font-family: var(--l4k-font-mono); font-size: 12px; color: var(--l4k-on-void-3); }

/* 4 · ONBOARDING-SHELL ------------------------------------------------------ */
.l4k-shell { display: flex; min-height: 100vh; }

/* Sidebar / Rail */
.l4k-rail {
  width: 290px; flex: 0 0 290px; background: var(--l4k-void); color: var(--l4k-on-void);
  padding: 34px 26px; display: flex; flex-direction: column; min-height: 100vh;
}
.l4k-rail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.l4k-rail-head .l4k-logo { --s: 36px; }
.l4k-rail-head-title { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.l4k-rail-head-sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--l4k-on-void-3); margin-top: 4px; }
.l4k-rail-steps { flex: 1; }

/* Kapitel-Navigation */
.l4k-chapter { display: flex; align-items: center; gap: 13px; padding: 9px 0; position: relative; }
/* Verbindungsstrich zwischen den Schritten (nur zwischen den Punkten, nicht darüber hinaus) */
.l4k-chapter::before {
  content: ""; position: absolute; left: 12px; top: 50%; height: 100%; width: 2px;
  background: var(--l4k-void-line); z-index: 0;
}
.l4k-chapter:last-child::before { display: none; }
.l4k-chapter-num {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--l4k-on-void-2);
  background: var(--l4k-void-2); border: 1.5px solid var(--l4k-void-line);
  transition: background var(--l4k-dur), box-shadow var(--l4k-dur);
}
.l4k-chapter.is-done .l4k-chapter-num   { background: var(--l4k-accent); border-color: transparent; color: #fff; }
.l4k-chapter.is-active .l4k-chapter-num { background: var(--l4k-accent); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px rgba(192,57,43,.18); box-shadow: 0 0 0 4px color-mix(in srgb, var(--l4k-accent) 18%, transparent); }
.l4k-chapter-label { font-size: 15px; font-weight: 500; color: var(--l4k-on-void-2); }
.l4k-chapter.is-active .l4k-chapter-label { font-weight: 700; color: var(--l4k-on-void); }

/* Progress */
.l4k-progress { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--l4k-void-line); }
.l4k-progress-row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--l4k-on-void-2); margin-bottom: 9px; }
.l4k-progress-row span:last-child { color: var(--l4k-on-void); }
.l4k-progress-track { height: 5px; border-radius: 999px; background: var(--l4k-void-3); overflow: hidden; }
.l4k-progress-fill { height: 100%; background: var(--l4k-accent); border-radius: 999px; transition: width .4s ease; }
.l4k-progress-note { font-size: 12px; color: var(--l4k-on-void-3); margin-top: 14px; line-height: 1.5; }

/* Hauptbereich */
.l4k-main {
  flex: 1; background: var(--l4k-paper); min-height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.l4k-main-inner { flex: 1; padding: 48px 6vw 30px; max-width: 900px; width: 100%; }
/* Slide-in nur beim Kapitelwechsel, nicht bei jeder Antwort (sonst „blinzelt" es). */
.l4k-step.is-anim { animation: l4kStepIn .42s cubic-bezier(.2,.7,.3,1); }

/* Sticky-Navigationsleiste unten */
.l4k-navbar {
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, rgba(242,240,235,0) 0%, var(--l4k-paper) 38%);
  padding: 18px 6vw 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.l4k-btn--back {
  padding: 13px 22px; border-radius: var(--l4k-r2); border: 1px solid var(--l4k-line-2);
  background: transparent; color: var(--l4k-ink); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--l4k-dur), border-color var(--l4k-dur);
}
.l4k-btn--back:hover:not(:disabled) { background: var(--l4k-paper-sunken); border-color: var(--l4k-ink-4); }
.l4k-btn--back:disabled { opacity: 0.4; cursor: default; }
.l4k-btn--next {
  padding: 13px 26px; border-radius: var(--l4k-r2); border: none;
  background: var(--l4k-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: var(--l4k-sh1);
}
.l4k-btn--next:hover:not(:disabled) { background: var(--l4k-accent-dark); box-shadow: var(--l4k-sh2); }
.l4k-btn--next:disabled { background: var(--l4k-paper-sunken); color: var(--l4k-ink-5); box-shadow: none; cursor: default; transform: none; }

/* Section-Kopf */
.l4k-sechead { margin-bottom: 34px; }
.l4k-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--l4k-ink-4); margin-bottom: 14px; font-weight: 600; }
.l4k-h1 { font-family: var(--l4k-font-display); font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--l4k-ink); margin: 0 0 12px; line-height: 1.05; }
.l4k-lead { font-size: 16px; color: var(--l4k-ink-2); line-height: 1.6; margin: 0; max-width: 60ch; text-wrap: pretty; }
.l4k-fields { display: flex; flex-direction: column; gap: 32px; }

/* 5 · FELD-KOMPONENTEN ------------------------------------------------------ */
/* Feld-Label */
.l4k-flabel { margin-bottom: 16px; max-width: 640px; }
.l4k-flabel-q { font-size: 17px; font-weight: 600; color: var(--l4k-ink); line-height: 1.4; letter-spacing: -0.005em; text-wrap: pretty; }
.l4k-flabel-sub { font-size: 14px; color: var(--l4k-ink-3); line-height: 1.5; margin-top: 8px; text-wrap: pretty; }

/* Options-Container */
.l4k-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.l4k-opts--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

/* Chip (single / multi / gym) */
.l4k-chip {
  cursor: pointer; transition: border-color var(--l4k-dur), transform var(--l4k-dur) var(--l4k-ease), box-shadow var(--l4k-dur), background var(--l4k-dur);
  border: 1px solid var(--l4k-line-2); background: var(--l4k-paper-raised); border-radius: 11px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 15px; font-weight: 500; color: var(--l4k-ink);
  box-shadow: var(--l4k-sh1);
}
.l4k-chip:hover { border-color: var(--l4k-ink-4); transform: translateY(-1px); box-shadow: var(--l4k-sh2); }
.l4k-chip:focus-visible { outline: 0; box-shadow: var(--l4k-focus); }
.l4k-chip.is-sel {
  background: var(--l4k-sel-bg); border-color: var(--l4k-sel-bg);
  color: var(--l4k-sel-fg); font-weight: 600; box-shadow: var(--l4k-sh1);
}
.l4k-chip.is-sel:hover { transform: translateY(-1px); box-shadow: var(--l4k-sh2); }
/* Roter Punkt als Marke — nur bei Einfachauswahl-Chips (die .l4k-chip-text enthalten) */
.l4k-chip.is-sel .l4k-chip-text::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--l4k-accent); margin-right: 9px; vertical-align: middle;
}
.l4k-chip--multi { gap: 9px; padding: 11px 17px; }
.l4k-chip--gym { gap: 8px; padding: 10px 15px; font-size: 15px; }

/* Card-Option */
.l4k-card {
  cursor: pointer; transition: border-color var(--l4k-dur), transform var(--l4k-dur) var(--l4k-ease), box-shadow var(--l4k-dur); text-align: left; display: block;
  border: 1px solid var(--l4k-line); background: var(--l4k-paper-raised); border-radius: var(--l4k-r3);
  padding: 16px 18px; box-shadow: var(--l4k-sh1);
}
.l4k-card:hover { border-color: var(--l4k-line-2); transform: translateY(-2px); box-shadow: var(--l4k-sh3); }
.l4k-card:focus-visible { outline: 0; box-shadow: var(--l4k-focus); }
.l4k-card.is-sel { border: 1.5px solid var(--l4k-accent); box-shadow: var(--l4k-sh2); }
.l4k-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.l4k-card-label { font-size: 16px; font-weight: 700; color: var(--l4k-ink); }
.l4k-card-check {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--l4k-line-2); background: transparent; color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.is-sel .l4k-card-check { border: none; background: var(--l4k-accent); }
.l4k-card-desc { font-size: 13.5px; color: var(--l4k-ink-3); margin-top: 5px; line-height: 1.4; }

/* Chip-Text (single) */
.l4k-chip-text { font-size: 15px; font-weight: 500; color: var(--l4k-ink); }
.l4k-chip.is-sel .l4k-chip-text { color: var(--l4k-sel-fg); font-weight: 600; }

/* Auswahl-Kästchen (multi / gym) */
.l4k-check {
  width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto;
  border: 2px solid var(--l4k-line-2); background: transparent; color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; transition: background var(--l4k-dur), border-color var(--l4k-dur);
}
.is-sel .l4k-check { border: none; background: var(--l4k-accent); }
.l4k-check--sm { width: 16px; height: 16px; border-radius: 4px; font-size: 10px; }

/* Scale */
.l4k-scale { background: var(--l4k-paper-raised); border: 1px solid var(--l4k-line); border-radius: var(--l4k-r3); padding: 22px 24px; max-width: 560px; box-shadow: var(--l4k-sh1); }
.l4k-scale-vals { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin-bottom: 16px; }
.l4k-scale-val { font-family: var(--l4k-font-display); font-size: 48px; font-weight: 700; color: var(--l4k-accent); letter-spacing: -0.02em; line-height: 1; }
.l4k-scale-unit { font-size: 18px; font-weight: 600; color: var(--l4k-ink-3); }
.l4k-scale-unit--max { color: var(--l4k-ink-4); }
.l4k-scale-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--l4k-ink-4); }

/* Text / Textarea */
.l4k-in {
  width: 100%; border: none; border-bottom: 1.5px solid var(--l4k-line-2); background: transparent;
  padding: 10px 2px; font-size: 18px; color: var(--l4k-ink); outline: none; transition: border-color .18s;
}
.l4k-in::placeholder { color: var(--l4k-ink-4); }
.l4k-in:focus { border-color: var(--l4k-accent); }
.l4k-ta {
  width: 100%; border: 1px solid var(--l4k-line); border-radius: var(--l4k-r2); background: var(--l4k-paper-raised);
  padding: 15px 16px; font-size: 16px; line-height: 1.6; color: var(--l4k-ink);
  outline: none; resize: vertical; min-height: 118px; transition: border-color .18s, box-shadow var(--l4k-dur), background var(--l4k-dur);
}
.l4k-ta::placeholder { color: var(--l4k-ink-4); }
.l4k-ta:focus { border-color: var(--l4k-accent); background: #fff; box-shadow: var(--l4k-focus); }

/* Zahl-Feld (Feldtyp 'number', z. B. Größe/Gewicht) */
.l4k-numwrap { display: inline-flex; align-items: baseline; gap: 12px; }
.l4k-in--num { max-width: 160px; font-weight: 600; }
.l4k-num-unit { font-size: 16px; font-weight: 600; color: var(--l4k-ink-2); }

/* Timeline */
.l4k-tl { background: var(--l4k-paper-raised); border: 1px solid var(--l4k-line); border-radius: var(--l4k-r3); padding: 24px 26px 26px; max-width: 720px; box-shadow: var(--l4k-sh1); }
.l4k-tl-bar {
  position: relative; height: 44px; border-radius: var(--l4k-r2); margin-bottom: 9px; overflow: hidden;
  background: linear-gradient(90deg, #20264a 0%, #20264a 17%, #5b567e 24%, #c9a878 29%, #f0ece2 42%, #f0ece2 60%, #d19a6f 72%, #6a5a78 79%, #20264a 88%, #20264a 100%);
}
.l4k-tl-marker { position: absolute; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
.l4k-tl-marker-dot { position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.l4k-tl-hours { display: flex; justify-content: space-between; font-family: var(--l4k-font-mono); font-size: 11px; color: var(--l4k-ink-4); margin-bottom: 22px; }
.l4k-tl-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.l4k-tl-row:last-child { margin-bottom: 0; }
.l4k-tl-labelwrap { flex: 0 0 150px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.l4k-tl-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.l4k-tl-name { font-size: 15px; font-weight: 600; color: var(--l4k-ink); white-space: nowrap; }
.l4k-tl-slider { flex: 1; padding: 0 8px; display: flex; align-items: center; }
.l4k-tl-slider input[type=range] { width: 100%; }
.l4k-tl-val { flex: 0 0 58px; text-align: right; font-family: var(--l4k-font-mono); font-size: 15px; font-weight: 600; color: var(--l4k-ink); }

/* Gym-Presets */
.l4k-gym-group { margin-bottom: 18px; }
.l4k-gym-grouptitle { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--l4k-ink-4); margin-bottom: 10px; font-weight: 600; }

/* 6 · SUMMARY + DONE -------------------------------------------------------- */
.l4k-sum-eyebrow { margin-bottom: 14px; }
.l4k-sum-h1 { font-family: var(--l4k-font-display); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--l4k-ink); margin: 0 0 12px; line-height: 1.06; }
.l4k-sum-lead { font-size: 16px; color: var(--l4k-ink-2); line-height: 1.6; margin: 0 0 24px; max-width: 620px; }

.l4k-aibox { background: var(--l4k-void); color: var(--l4k-on-void); border-radius: var(--l4k-r3); padding: 26px 28px; max-width: 720px; margin-bottom: 18px; border-left: 3px solid var(--l4k-accent); }
.l4k-aibox-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l4k-on-void-2); margin-bottom: 12px; font-weight: 600; }
.l4k-aibox-text { font-size: 16px; line-height: 1.7; margin: 0; }

.l4k-flags { max-width: 720px; margin-bottom: 26px; }
.l4k-flags-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--l4k-ink-4); margin-bottom: 10px; font-weight: 600; }
.l4k-flags-list { display: flex; flex-wrap: wrap; gap: 9px; }
.l4k-flag { background: var(--l4k-acc-tint); color: var(--l4k-accent-dark); border: 1px solid var(--l4k-acc-line); border-radius: 9px; padding: 8px 13px; font-size: 14px; font-weight: 600; }

.l4k-confirm {
  display: flex; align-items: flex-start; gap: 12px; max-width: 720px; cursor: pointer;
  background: var(--l4k-paper-raised); border: 1px solid var(--l4k-line); border-radius: var(--l4k-r2); padding: 16px 18px;
  transition: border-color var(--l4k-dur), box-shadow var(--l4k-dur);
}
.l4k-confirm:hover { border-color: var(--l4k-line-2); }
.l4k-confirm.is-on { border-color: var(--l4k-accent); box-shadow: var(--l4k-sh1); }
.l4k-confirm-check {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px;
  border: 2px solid var(--l4k-line-2); background: transparent; color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: background var(--l4k-dur), border-color var(--l4k-dur);
}
.l4k-confirm.is-on .l4k-confirm-check { border: none; background: var(--l4k-accent); }
.l4k-confirm-text { font-size: 15px; color: var(--l4k-ink-2); line-height: 1.5; }

.l4k-done { min-height: 100vh; background: var(--l4k-void); color: var(--l4k-on-void); display: flex; align-items: center; justify-content: center; padding: 40px 24px; animation: l4kFade .5s ease; }
.l4k-done-inner { max-width: 520px; text-align: center; }
.l4k-done-check { width: 82px; height: 82px; border-radius: 50%; background: var(--l4k-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; font-size: 40px; color: #fff; animation: l4kPop .5s cubic-bezier(.2,.8,.3,1.2); }
.l4k-done-title { font-family: var(--l4k-font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.l4k-done-lead { font-size: 16px; color: var(--l4k-on-void-2); line-height: 1.65; margin: 0 0 34px; }
.l4k-done-domain { margin-top: 26px; font-family: var(--l4k-font-mono); font-size: 12px; color: var(--l4k-on-void-3); }

/* Submit-Fehlermeldung (server-seitiges Absenden) */
.l4k-error { max-width: 720px; margin-top: 14px; background: var(--l4k-acc-tint); border: 1px solid var(--l4k-acc-line); color: var(--l4k-accent-dark); border-radius: var(--l4k-r2); padding: 13px 16px; font-size: 14px; font-weight: 600; }

/* Responsive: Sidebar über den Inhalt legen (schmale Screens) */
@media (max-width: 760px) {
  .l4k-shell { flex-direction: column; }
  .l4k-rail { width: 100%; flex: none; min-height: 0; flex-direction: row; flex-wrap: wrap; gap: 16px 24px; padding: 20px 22px; }
  .l4k-rail-head { margin-bottom: 0; width: 100%; }
  .l4k-rail-steps { display: none; }
  .l4k-progress { margin-top: 0; padding-top: 0; border-top: none; flex: 1; min-width: 180px; }
  .l4k-progress-note { display: none; }
  .l4k-main { min-height: 0; }
  .l4k-main-inner { padding: 32px 20px 24px; }
  .l4k-navbar { padding: 16px 20px 20px; }
}
