  /* ═══════════════════════════════════════════════
     HAMOFIN — Lovable PlanBuilder Design System
     Manrope + Inter | Forest Green + Warm Cream
     Modern, spacious, rounded card layout
     ═══════════════════════════════════════════════ */
  :root {
    --primary: #0B2A4A;            /* PLANVIK BLUE — exakt der Brand-Code */
    --primary-light: hsl(210, 58%, 24%); /* Hover/aktive Flaechen — eine Stufe heller */
    --primary-container: #0B2A4A;
    --surface: hsl(190, 20%, 97%);
    --surface-low: hsl(190, 14%, 95%);
    --surface-container: hsl(190, 12%, 93%);
    --surface-container-high: hsl(185, 33%, 94%);
    --card: #ffffff;
    --text: hsl(210, 45%, 10%);
    --muted: hsl(208, 12%, 45%);
    --label: hsl(208, 12%, 45%);
    --accent: hsl(185, 33%, 94%);
    --accent-warm: hsl(185, 33%, 94%);
    --border: hsl(195, 12%, 88%);
    --border-light: hsl(195, 12%, 92%);
    --error: hsl(0, 72%, 51%);
    --success: hsl(152, 60%, 36%);
    --on-primary: #ffffff;
    --sidebar-w: 260px;
    --sidebar-bg: #0B2A4A;         /* exakt Brand — 9%-Ableitung wirkte schwarz */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
  }
  * { box-sizing:border-box; margin:0; padding:0; }
  html { scroll-behavior:smooth; }
  body {
    font-family:'Inter',system-ui,sans-serif;
    background:var(--surface);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    min-height:100vh;
  }
  h1,h2,h3,.font-headline { font-family:'Manrope',sans-serif; }

  /* ═══ TOPBAR ═══════════════════════════════════ */
  .topbar {
    position:sticky; top:0; z-index:50;
    background:rgba(255,255,255,.92); backdrop-filter:blur(16px);
    padding:0 24px; height:56px;
    display:flex; align-items:center; justify-content:space-between;
    border-bottom:1px solid var(--border);
  }
  .topbar-brand {
    font-family:'Manrope',sans-serif;
    color:var(--primary); font-size:15px; font-weight:700;
    letter-spacing:-.01em;
    display:flex; align-items:center; gap:10px;
  }
  .topbar-brand .logo {
    width:32px; height:32px; border-radius:10px;
    background:var(--primary);
    display:flex; align-items:center; justify-content:center;
    color:var(--on-primary); font-size:13px; font-weight:800;
  }
  .topbar select { display:none; }

  /* Language Switcher */
  .lang-switcher {
    display:flex; gap:4px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-sm); padding:3px;
  }
  .lang-btn {
    display:flex; align-items:center; gap:5px;
    padding:5px 10px; border:none; border-radius:6px;
    background:transparent; color:var(--muted);
    font-family:'Inter',sans-serif; font-size:12px; font-weight:600;
    cursor:pointer; transition:all .15s;
  }
  .lang-btn:hover { color:var(--text); background:rgba(0,0,0,.04); }
  .lang-btn.active { background:var(--card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.08); }
  .lang-flag { font-size:15px; line-height:1; }

  /* Topbar back button */
  .topbar-back {
    display:none; align-items:center; gap:5px;
    padding:6px 12px; border:1px solid var(--border); border-radius:var(--radius-sm);
    background:transparent; color:var(--muted);
    font-family:'Inter',sans-serif; font-size:12px; font-weight:500;
    cursor:pointer; transition:all .15s;
  }
  .topbar-back:hover { color:var(--text); background:var(--surface); border-color:var(--text); }

  /* ═══ SIDEBAR (Lovable PlanBuilder style) ═════ */
  .sidebar {
    position:fixed; top:0; left:0; bottom:0;
    width:var(--sidebar-w); background:var(--sidebar-bg);
    border-right:none;
    display:flex; flex-direction:column;
    z-index:40; overflow-y:auto;
    transform:translateX(0);
    transition:transform .25s ease;
  }
  .sidebar-header {
    padding:20px 24px;
    border-bottom:1px solid rgba(255,255,255,.1);
    display:flex; align-items:center; gap:10px;
    text-decoration:none; cursor:pointer;
    transition:opacity .15s;
  }
  .sidebar-header:hover { opacity:.8; }
  .sidebar-title {
    font-family:'Manrope',sans-serif;
    font-size:14px; font-weight:600; color:rgba(255,255,255,.9);
    letter-spacing:-.01em;
    text-transform:none;
  }
  .sidebar-nav { flex:1; padding:16px 12px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; }
  .sidebar-cat {
    display:flex; align-items:center; gap:12px;
    padding:12px 14px;
    font-family:'Inter',sans-serif; font-size:14px; font-weight:500;
    color:rgba(255,255,255,.55); text-decoration:none;
    cursor:pointer; transition:all .2s;
    border-left:none;
    border-radius:var(--radius-md);
    user-select:none;
  }
  .sidebar-cat:hover {
    color:rgba(255,255,255,.9);
    background:rgba(255,255,255,.08);
  }
  .sidebar-cat.active {
    color:#ffffff; font-weight:600;
    background:rgba(255,255,255,.15);
    box-shadow:0 1px 4px rgba(0,0,0,.15);
  }
  .sidebar-cat.done { color:rgba(255,255,255,.7); }
  .sidebar-cat.done .sidebar-icon {
    background:hsl(152, 72%, 52%); color:hsl(152, 60%, 8%);
  }
  /* Category: has missing sub-steps (visited but empty) */
  .sidebar-cat.cat-missing { color:rgba(255,255,255,.6); }
  .sidebar-cat.cat-missing .sidebar-icon {
    background:hsla(0, 70%, 50%, .2); color:hsl(0, 70%, 70%);
  }
  .sidebar-cat.cat-missing::after {
    content:'';
    width:6px; height:6px; border-radius:50%;
    background:hsl(0, 70%, 55%);
    margin-left:auto; flex-shrink:0;
  }

  /* Sub-item: filled (has data) → green */
  .sidebar-sub.sub-filled {
    color:hsl(152, 55%, 68%);
  }
  .sidebar-sub.sub-filled::before {
    content:''; width:6px; height:6px; border-radius:50%;
    background:hsl(152, 72%, 52%); flex-shrink:0;
  }
  /* Sub-item: missing (visited but no data) → red */
  .sidebar-sub.sub-missing {
    color:hsl(0, 65%, 70%);
  }
  .sidebar-sub.sub-missing::before {
    content:''; width:6px; height:6px; border-radius:50%;
    background:hsl(0, 70%, 55%); flex-shrink:0;
  }
  .sidebar-icon {
    width:28px; height:28px;
    display:flex; align-items:center; justify-content:center;
    font-family:'Manrope',sans-serif; font-size:11px; font-weight:700;
    background:rgba(255,255,255,.08); color:rgba(255,255,255,.45);
    border-radius:var(--radius-sm);
    flex-shrink:0; transition:all .15s;
  }
  .sidebar-cat.active .sidebar-icon {
    background:rgba(255,255,255,.2); color:#ffffff;
  }
  .sidebar-footer {
    padding:12px 12px 20px; border-top:1px solid rgba(255,255,255,.08);
    display:flex; flex-direction:column; gap:2px;
  }
  .sidebar-footer .testlink {
    color:rgba(255,255,255,.45); font-size:13px; font-weight:500; text-decoration:none;
    padding:10px 14px; border-radius:var(--radius-md);
    transition:all .15s; display:flex; align-items:center; gap:8px;
  }
  .sidebar-footer .testlink:hover { color:rgba(255,255,255,.8); background:rgba(255,255,255,.06); }
  .sidebar-footer .back-link {
    color:rgba(255,255,255,.45); font-size:13px; font-weight:500; text-decoration:none;
    padding:10px 14px; border-radius:var(--radius-md);
    transition:all .15s; display:flex; align-items:center; gap:8px; cursor:pointer;
    border:none; background:none; text-align:left;
    font-family:'Inter',sans-serif;
  }
  .sidebar-footer .back-link:hover { color:rgba(255,255,255,.8); background:rgba(255,255,255,.06); }

  .sidebar-lang {
    display:flex; gap:2px; padding:2px;
    background:rgba(255,255,255,.08); border-radius:var(--radius-sm);
    margin:0 14px 8px;
  }
  .sidebar-lang-btn {
    flex:1; padding:6px 0; border:none; border-radius:6px;
    background:transparent; color:rgba(255,255,255,.45);
    font-family:'Inter',sans-serif; font-size:12px; font-weight:600;
    cursor:pointer; transition:all .15s; text-align:center;
  }
  .sidebar-lang-btn:hover { color:rgba(255,255,255,.7); }
  .sidebar-lang-btn.active { background:rgba(255,255,255,.15); color:#ffffff; }

  /* Sidebar logo */
  .sidebar-logo {
    height:36px; width:auto;
    object-fit:contain;
    filter:brightness(0) invert(1);
  }

  /* Sidebar sub-items (Lovable expandable sub-steps) */
  .sidebar-subs {
    display:none;
    margin:0 0 4px 22px;
    padding:4px 0 4px 22px;
    border-left:1px solid rgba(255,255,255,.1);
  }
  .sidebar-cat.active + .sidebar-subs { display:block; }
  .sidebar-sub {
    display:flex; align-items:center; gap:8px;
    padding:7px 12px;
    font-size:12px; font-weight:500;
    color:rgba(255,255,255,.4);
    cursor:pointer; border-radius:var(--radius-sm);
    transition:all .15s; text-decoration:none;
  }
  .sidebar-sub:hover {
    color:rgba(255,255,255,.7);
    background:rgba(255,255,255,.05);
  }
  .sidebar-sub.active {
    color:rgba(255,255,255,.9);
    background:rgba(255,255,255,.1);
  }
  .sidebar-sub::before {
    content:'·'; font-size:14px; color:rgba(255,255,255,.3);
  }

  /* Mobile sidebar toggle */
  .sidebar-toggle {
    display:none; position:fixed; bottom:20px; left:20px; z-index:45;
    width:48px; height:48px;
    background:var(--primary); color:var(--on-primary); border:0;
    border-radius:var(--radius-md);
    font-size:20px; cursor:pointer;
    align-items:center; justify-content:center;
    box-shadow:0 4px 16px rgba(0,0,0,.2);
  }

  /* ═══ WORKSPACE MAIN ═════════════════════════ */
  .workspace-main {
    margin-left:var(--sidebar-w);
    padding:56px 40px 80px;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .workspace-main > .progress { display:none; }
  .workspace-main > form,
  .workspace-main > .step-breadcrumb,
  .workspace-main > .progress-bar-wrap {
    width:100%;
    max-width:680px;
  }

  /* Step header breadcrumb — at the top */
  .step-breadcrumb {
    font-size:12px; font-weight:500; color:var(--muted);
    margin:0 0 12px;
    display:flex; align-items:center; justify-content:center; gap:6px;
  }
  .step-breadcrumb .step-breadcrumb-sep { margin:0 2px; }

  /* Progress bar — lives at the very top edge INSIDE the active card, so the
     card's rounded corners clip its ends and it follows the card's curve. */
  .progress-bar-wrap {
    position:absolute; top:0; left:0; right:0; z-index:1;
    height:6px; background:var(--surface-container);
    margin:0; overflow:hidden;
  }
  .progress-bar-fill {
    height:100%; border-radius:999px; background:var(--primary);
    transition:width .7s ease-out;
  }

  .site-footer {
    text-align:center; padding:24px 24px 28px;
    color:var(--muted); font-size:12px; line-height:1.6;
    border-top:1px solid var(--border);
    margin-left:var(--sidebar-w);
  }
  .site-footer .footer-links { margin-top:7px; display:flex; gap:10px; justify-content:center; align-items:center; }
  .site-footer .footer-links a { color:var(--muted); text-decoration:none; }
  .site-footer .footer-links a:hover { color:var(--primary); }

  /* Hide old progress bar (replaced by progress-bar-wrap) */
  #progress.progress { display:none; }

  /* ═══ CARD (step content wrapper — Lovable style) ═ */
  .card {
    position:relative;
    overflow:hidden;
    background:var(--card);
    border-radius:var(--radius-xl);
    padding:32px;
    border:none;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
    animation:slideIn .35s ease-out;
  }
  @keyframes slideIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
  .card h2 {
    font-family:'Manrope',sans-serif;
    margin:0 0 4px; font-size:clamp(26px, 3.5vw, 34px); font-weight:800;
    letter-spacing:-.03em; color:var(--text);
    line-height:1.1;
  }
  .card .sub { margin:0 0 24px; color:var(--muted); font-size:15px; line-height:1.5; }

  /* Dezenter "Neu"-Button oben rechts (Reset / frisch beginnen) */
  .reset-btn {
    position:fixed; top:16px; right:32px; z-index:60;
    background:var(--card); color:var(--muted);
    border:1px solid var(--border); border-radius:var(--radius-md);
    padding:7px 16px; font-family:'Inter',sans-serif; font-size:13px; font-weight:600;
    cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.06);
    transition:color .15s, border-color .15s;
  }
  .reset-btn:hover { color:var(--text); border-color:var(--text); }

  /* ═══ FIELDS (Lovable rounded style) ═════════ */
  .field { margin-bottom:16px; position:relative; }
  .field label {
    display:flex; align-items:center; gap:4px;
    font-size:13px; font-weight:400; color:var(--muted);
    margin-bottom:10px;
  }
  .field input, .field select {
    width:100%; padding:10px 14px;
    height:44px; min-height:44px; max-height:44px;
    font-family:'Inter',sans-serif; font-size:14px; color:var(--text);
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:rgba(255,255,255,.5);
    transition:border-color .15s, box-shadow .15s;
    box-sizing:border-box;
    font-variant-numeric:tabular-nums;
    -webkit-appearance:none; appearance:none;
  }
  .field input[type="date"]::-webkit-calendar-picker-indicator { opacity:.5; cursor:pointer; }
  .field select {
    height:44px; -webkit-appearance:none; appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat:no-repeat; background-position:right 12px center;
    padding-right:36px;
  }
  .field input::placeholder { color:var(--muted); opacity:.5; }
  /* Suggested default (select) shown grey until actively chosen; empty date grey */
  .field select.suggest { color:var(--muted); }
  .field select.suggest.chosen { color:var(--text); }
  .field input.date-empty { color:var(--muted); }
  /* Revenue-type 3-way toggle (Gleichmäßig / Individuell / Einmalig) */
  .rev-type-wrap { margin:10px 0 14px; }
  .rev-type-label { display:block; font-size:13px; font-weight:400; color:var(--muted); margin-bottom:8px; }
  /* Unified pill toggle — same look as the Absatz/Relativ (.toggle-group) below */
  .rev-type-toggle { display:flex; background:var(--surface-container); padding:3px; border-radius:var(--radius-md); gap:2px; border:1px solid var(--border); }
  .rev-type-btn {
    flex:1; padding:8px 16px; border:0; border-radius:var(--radius-sm);
    background:transparent; cursor:pointer; font:inherit;
    font-size:13px; font-weight:500; color:var(--muted); transition:all .12s; text-align:center;
  }
  .rev-type-btn:hover { color:var(--text); }
  .rev-type-btn.active { background:var(--primary); color:var(--on-primary); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.12); }
  .field input:hover, .field select:hover { border-color:rgba(0,0,0,.15); }
  .field input:focus, .field select:focus {
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px hsla(160, 40%, 16%, .08);
  }
  .field input:disabled {
    background:var(--surface-low); color:var(--muted); cursor:not-allowed;
    border-style:dashed; opacity:.65;
  }
  .field .help { font-size:12px; color:var(--muted); margin-top:5px; line-height:1.4; }
  .row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
  /* Working-Capital-Felder: Inputs unten bündig, auch wenn ein Label umbricht */
  .wc-grid > .field { display:flex; flex-direction:column; }
  .wc-grid > .field > input { margin-top:auto; }
  /* Ausschüttung pro Jahr: kompaktes Jahres-Raster */
  .div-year-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:10px; max-width:620px; }
  .div-year-grid > div { display:flex; flex-direction:column; gap:4px; }
  .div-year-grid label { font-size:11px; color:var(--muted); font-weight:500; }
  /* Sonderausschüttungen: flache Zeilen (kein Doppelrahmen in der Box) */
  .special-dividend-line { position:relative; padding:8px 34px 8px 0; }
  .special-dividend-line + .special-dividend-line { border-top:1px solid var(--border-light); padding-top:14px; }
  .special-dividend-line > .rev-remove { position:absolute; top:32px; right:0; background:none; border:none; color:var(--muted); font-size:20px; line-height:1; cursor:pointer; padding:0; transition:color .12s; }
  .special-dividend-line > .rev-remove:hover { color:var(--error); }
  /* PLZ (narrow) + Stadt (wide) */
  .row-zip { grid-template-columns:130px 1fr; }
  /* Labels sit tight (natural height) directly above each input — same
     distance everywhere. Single-line labels align across columns naturally. */
  .row > .field > label, .row3 > .field > label {
    display:block;
    height:auto;
    line-height:1.4;
    margin-bottom:8px;
  }

  /* ═══ DETAILS ═════════════════════════════════ */
  details.expand { margin:20px 0 4px; border-top:1px solid var(--border); padding-top:14px; }
  details.expand summary {
    cursor:pointer; color:var(--muted); font-size:13px; font-weight:500;
    list-style:none; padding:4px 0;
  }
  details.expand summary:hover { color:var(--primary); }
  details.expand summary::-webkit-details-marker { display:none; }
  details.expand[open] summary { margin-bottom:14px; color:var(--primary); }

  /* ═══ NAVIGATION ══════════════════════════════ */
  .nav { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:40px; padding-top:0; border-top:none; }
  .nav .spacer { flex:1; }
  .btn {
    padding:12px 28px; border-radius:var(--radius-md); border:0;
    font-family:'Inter',sans-serif; font-size:14px; font-weight:600;
    cursor:pointer; transition:all .15s;
    display:inline-flex; align-items:center; gap:8px;
  }
  .btn-primary {
    background:var(--primary); color:var(--on-primary);
    padding:14px 40px; height:48px;
    border-radius:var(--radius-md);
    font-size:15px;
  }
  .btn-primary:hover { opacity:.92; }
  .btn-primary:active { transform:scale(.98); }
  .btn-ghost {
    background:transparent; color:var(--muted);
    border:1px dashed var(--border); border-radius:var(--radius-lg);
    height:48px; font-size:14px;
  }
  .btn-ghost:hover {
    color:var(--text); border-color:rgba(0,0,0,.2);
    background:var(--surface-low);
  }
  .nav .btn-ghost {
    border:none; border-radius:var(--radius-md); height:48px;
    padding:14px 20px; color:var(--muted); font-size:14px;
  }
  .nav .btn-ghost:hover { background:var(--surface-container); color:var(--text); }

  /* ═══ SUMMARY (Executive Review) ══════════════
     Eine ruhige Seite: Hero-Zahlen oben + drei leichte Bloecke. EINE Akzentfarbe
     (gruener Punkt + Hero-Zahlen), EINE Typo-Skala, Lesefluss in einer Spalte.
     Bewusst KEINE gefuellten Balken/2-Spalten mehr (war Kuddelmuddel). */
  .summary { display:block; }

  /* Hero: die drei Zahlen, die zaehlen — der Abhol-Moment */
  .sum-hero { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 18px; }
  .sum-hero .tile {
    background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:18px 18px 16px;
  }
  .sum-hero .tile .lbl {
    font-size:11.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
    color:var(--muted); margin:0 0 8px;
  }
  .sum-hero .tile .num {
    font-family:'Manrope',sans-serif; font-size:25px; font-weight:700; line-height:1;
    color:var(--text); letter-spacing:-.02em;
  }
  .sum-hero .tile .num .u { font-size:14px; font-weight:600; color:var(--muted); margin-left:3px; }

  /* Abhak-Liste: eine Karte, ein Bereich pro Zeile (Haken + Name + Bearbeiten) */
  .sum-list {
    background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
    overflow:hidden;
  }
  .sum-lhead { display:flex; align-items:baseline; justify-content:space-between; padding:16px 20px 12px; }
  .sum-lhead .lt { font-family:'Manrope',sans-serif; font-size:15px; font-weight:600; color:var(--text); }
  .sum-lhead .ls { font-size:12.5px; color:var(--muted); }
  .sum-item {
    display:flex; align-items:center; gap:13px;
    padding:13px 20px; border-top:1px solid var(--border-light);
  }
  .sum-item .ck {
    flex:none; width:21px; height:21px; border-radius:50%;
    background:var(--text); color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px;
  }
  .sum-item .nm { flex:1; font-size:14.5px; font-weight:500; color:var(--text); }
  .sum-edit {
    background:none; border:none; cursor:pointer; font-family:inherit;
    font-size:13px; color:var(--muted); font-weight:500; padding:4px 0;
  }
  .sum-edit:hover { color:var(--text); }
  @media (max-width: 560px) { .sum-hero { grid-template-columns:1fr; } }

  /* ═══ PRODUKT-SEITE (Step 14) — ChatGPT-Stil, 2 Produkte ═══════
     Sidebar bleibt sichtbar; nur Breadcrumb aus, Formular zentriert, Footer ran. */
  body.product-mode .step-breadcrumb { display:none; }
  body.product-mode .workspace-main > form { max-width:940px; }
  body.product-mode .workspace-main { min-height:auto; }
  .card.card-product { max-width:940px; width:100%; }
  .product-head { text-align:center; }
  .card-product .product-head h2 { font-size:27px; color:var(--text); }

  /* Toggles: Planungshorizont + Sprachausgabe (Pills, zentriert nebeneinander) */
  .prod-toggles { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px; margin:18px 0 28px; }
  .prod-toggle {
    display:flex; align-items:center; gap:8px;
    background:var(--surface-container); border-radius:999px; padding:4px 12px 4px 14px;
  }
  .prod-toggle .ptg-l { font-size:11px; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:var(--muted); }
  .prod-toggle .ptg-u { font-size:11.5px; color:var(--muted); }
  .prod-toggle .cfg-seg { display:inline-flex; background:transparent; border:0; padding:0; }
  .prod-toggle .cfg-seg button {
    border:0; background:none; font-family:inherit; font-size:13px; font-weight:600; color:var(--muted);
    padding:6px 11px; border-radius:999px; cursor:pointer; transition:all .12s;
  }
  .prod-toggle .cfg-seg button.on { background:var(--primary); color:#fff; }

  /* 2 Produkt-Karten, zentriert — Hover-Highlight wandert mit */
  .prod-grid {
    display:grid; grid-template-columns:repeat(2, minmax(0,360px)); justify-content:center;
    gap:20px; align-items:stretch; margin:0 auto;
  }
  @media (max-width: 780px) { .prod-grid { grid-template-columns:minmax(0,360px); } }
  .prod-card {
    position:relative; background:var(--card); border:1.5px solid var(--border-light); border-radius:20px;
    padding:30px 28px; display:flex; flex-direction:column; cursor:pointer;
    transition:border-color .15s, box-shadow .15s, transform .15s;
  }
  .prod-card.recommended { border-color:var(--primary); }
  /* Hover: Rahmen + Highlight wandern zur überfahrenen Karte; empfohlene dimmt dann ab */
  .prod-grid:hover .prod-card.recommended:not(:hover) { border-color:var(--border-light); }
  .prod-card:hover { border-color:var(--primary); box-shadow:0 8px 26px rgba(11,42,74,.12); transform:translateY(-2px); }
  .prod-badge {
    position:absolute; top:20px; right:20px;
    background:var(--surface-container-high); color:var(--primary);
    font-size:11px; font-weight:700; padding:4px 11px; border-radius:999px;
  }
  .prod-name { font-family:'Manrope',sans-serif; font-size:22px; font-weight:800; color:var(--text); }
  .prod-price { font-family:'Manrope',sans-serif; margin:14px 0 0; }
  .prod-price .cur { font-size:16px; font-weight:700; color:var(--text); vertical-align:top; }
  .prod-price .num { font-size:32px; font-weight:800; color:var(--text); }
  .prod-price .u { font-size:12.5px; color:var(--muted); font-weight:500; }
  .prod-spec { font-size:12.5px; color:var(--muted); font-weight:600; margin:8px 0 0; }
  .prod-tag { font-size:13.5px; color:var(--muted); line-height:1.5; margin:10px 0 18px; min-height:62px; }
  .prod-cta {
    width:100%; height:46px; border-radius:999px; font-family:inherit; font-size:14px; font-weight:700;
    cursor:pointer; border:1px solid var(--border); background:#fff; color:var(--text); transition:background .15s, color .15s, border-color .15s;
  }
  /* gefuellter Button auf empfohlener UND ueberfahrener Karte; dimmt mit dem Highlight */
  .prod-card.recommended .prod-cta { background:var(--primary); color:#fff; border-color:var(--primary); }
  .prod-grid:hover .prod-card.recommended:not(:hover) .prod-cta { background:#fff; color:var(--text); border-color:var(--border); }
  .prod-card:hover .prod-cta { background:var(--primary); color:#fff; border-color:var(--primary); }
  .prod-feats { list-style:none; margin:32px 0 0; padding:0; display:flex; flex-direction:column; gap:13px; }
  .prod-feats li { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#3a3a38; line-height:1.45; }
  /* "Alles aus Standard, plus:" sichtbar ueber die gruene Farbe (nicht fett) */
  .prod-feats li.sec { font-size:12.5px; font-weight:600; letter-spacing:.01em; color:var(--primary); display:block; margin-bottom:2px; }
  .prod-feats .ck { width:15px; height:15px; color:var(--muted); flex:none; margin-top:1px; }

  .prod-back { display:block; margin:28px auto 0; background:none; border:0; color:var(--muted); font-family:inherit; font-size:13px; cursor:pointer; }
  .prod-back:hover { color:var(--primary); }

  /* Fuss-Zeile: Zurueck links, Berater-Link rechts */
  .prod-footrow { display:flex; justify-content:space-between; align-items:center; gap:16px; max-width:980px; margin:26px auto 0; }
  .prod-footrow .prod-back { margin:0; }
  .advisor-link {
    color:var(--primary); font-size:13.5px; font-weight:600; text-decoration:none; cursor:pointer; white-space:nowrap;
  }
  .advisor-link:hover { text-decoration:underline; }

  /* Berater-Ansicht */
  .advisor-back { display:block; margin:0 auto 18px; background:none; border:0; color:var(--muted); font-family:inherit; font-size:13px; cursor:pointer; }
  .advisor-back:hover { color:var(--primary); }
  .product-sub2 { text-align:center; color:var(--muted); font-size:15px; margin:8px auto 0; max-width:520px; }
  .advisor-card {
    max-width:520px; margin:28px auto 0; background:var(--card); border:1.5px solid var(--border-light);
    border-radius:22px; padding:34px 32px; display:flex; flex-direction:column; cursor:pointer;
    transition:border-color .15s, box-shadow .15s, transform .15s;
  }
  /* Hover: Rahmen + Shadow + Lift wie bei den normalen Produktkarten (.prod-card) */
  .advisor-card:hover { border-color:var(--primary); box-shadow:0 8px 26px rgba(11,42,74,.12); transform:translateY(-2px); }
  /* empfohlene (featured) Karte dimmt ab, wenn eine andere ueberfahren wird */
  .advisor-cards:hover .advisor-card.featured:not(:hover) { border-color:var(--border-light); }
  .adv-eyebrow { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); }
  .adv-price { font-family:'Manrope',sans-serif; margin:12px 0 0; }
  .adv-price .num { font-size:40px; font-weight:800; color:var(--text); }
  .adv-price .u { font-size:15px; color:var(--muted); font-weight:500; }
  .adv-tag { font-size:14px; color:var(--muted); line-height:1.5; margin:8px 0 22px; }
  .advisor-card .advisor-cta {
    width:100%; height:50px; border-radius:999px; border:0; background:var(--primary); color:#fff;
    font-family:'Manrope',sans-serif; font-size:15px; font-weight:700; cursor:pointer;
  }
  .adv-feats { list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:14px; }
  .adv-feats li { display:flex; align-items:flex-start; gap:11px; font-size:14px; color:#3a3a38; line-height:1.45; }
  .adv-feats li.hl { font-weight:700; color:var(--text); }
  .adv-feats .ck { width:16px; height:16px; color:var(--primary); flex:none; margin-top:1px; }
  .adv-note { text-align:center; font-size:12.5px; color:var(--muted); max-width:520px; margin:18px auto 0; }
  .advisor-cards { display:flex; gap:24px; justify-content:center; align-items:stretch; flex-wrap:wrap; margin-top:28px; }
  .advisor-cards .advisor-card { margin:0; max-width:400px; flex:1 1 340px; position:relative; }
  .advisor-card.featured { border-width:2px; border-color:var(--primary); box-shadow:0 12px 40px rgba(11,42,74,.12); }
  .adv-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; font-size:11px; font-weight:700; padding:4px 14px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }

  /* ═══ INFO BUTTON ═════════════════════════════ */
  .info-btn {
    position:absolute; top:1px; right:0;
    display:flex; align-items:center; justify-content:center;
    width:18px; height:18px; border-radius:50%;
    background:var(--surface-container); color:var(--primary); border:1px solid var(--border);
    font-size:11px; font-style:italic; cursor:help;
    padding:0; line-height:1; font-family:Georgia,serif;
    opacity:.7; transition:all .15s;
  }
  .info-btn:hover { opacity:1; background:var(--accent); }
  .info-btn-heading, .info-btn-inline {
    position:relative; top:0; right:auto;
    flex-shrink:0;
  }
  .info-btn-heading {
    width:20px; height:20px; font-size:12px; top:-2px;
  }

  /* ═══ OVERLAY ═════════════════════════════════ */
  .overlay {
    position:fixed; inset:0; z-index:100;
    display:flex; align-items:center; justify-content:center;
    background:rgba(0,0,0,.4); backdrop-filter:blur(6px);
    animation:fadeIn .15s ease;
  }
  @keyframes fadeIn { from{opacity:0} to{opacity:1} }
  .overlay-card {
    position:relative; background:var(--card); border-radius:var(--radius-xl);
    padding:32px 28px 28px; max-width:420px; width:calc(100% - 32px);
    box-shadow:0 20px 60px rgba(0,0,0,.15);
    border:1px solid var(--border);
    animation:popIn .2s ease-out;
  }
  @keyframes popIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
  .overlay-card h3 { font-family:'Manrope',sans-serif; margin:0 0 12px; font-size:16px; font-weight:700; color:var(--text); padding-right:28px; line-height:1.3; letter-spacing:-.02em; }
  .overlay-text { font-size:14px; line-height:1.7; color:var(--muted); }
  .overlay-close {
    position:absolute; top:14px; right:14px;
    width:28px; height:28px; border-radius:var(--radius-sm); border:none;
    background:var(--surface-low); color:var(--muted); font-size:16px; line-height:1;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:all .12s;
  }
  .overlay-close:hover { background:var(--surface-container); color:var(--text); }
  /* Consolidated per-card help: one button (top-right) opens a scrollable panel */
  .card-info-btn {
    position:absolute; top:22px; right:20px; z-index:2;
    width:24px; height:24px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--surface-container); color:var(--primary); border:1px solid var(--border);
    font-size:13px; font-style:italic; font-family:Georgia,serif; cursor:help;
    transition:all .15s;
  }
  .card-info-btn:hover { background:var(--accent); border-color:var(--primary); }
  .overlay-card-scroll { max-height:80vh; overflow-y:auto; }
  .overlay-help-item { padding:14px 0; border-top:1px solid var(--border); }
  .overlay-help-item:first-of-type { border-top:none; padding-top:2px; }
  .overlay-help-item h4 { margin:0 0 6px; font-size:14px; font-weight:700; color:var(--text); }

  /* ═══ SECTION LABELS ══════════════════════════ */
  .section-label {
    font-family:'Manrope',sans-serif;
    font-size:15px; font-weight:600; color:var(--text);
    margin:28px 0 14px; padding:0;
    border-bottom:none;
    letter-spacing:-.01em;
  }
  .section-label:first-child { margin-top:0; }
  /* Top-level group divider (e.g. Aktuelles Team vs. Personalplanung) */
  .group-block { margin-top:36px; }
  .group-block:first-of-type { margin-top:8px; }
  .group-title {
    font-family:'Manrope',sans-serif;
    font-size:15px; font-weight:700; letter-spacing:-.01em;
    color:var(--text);
    padding-bottom:12px; margin-bottom:22px;
    border-bottom:1.5px solid var(--border);
  }
  .group-block .form-group:last-child { margin-bottom:0; }
  /* Live-Summe Fixkosten */
  .fixcost-total {
    display:flex; align-items:baseline; justify-content:space-between; gap:12px;
    margin-top:20px; padding-top:16px; border-top:1px solid var(--border);
  }
  .fixcost-total .lbl { font-size:14px; font-weight:600; color:var(--text); }
  .fixcost-total .val { font-size:18px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
  .fixcost-total .val small { font-size:12px; font-weight:500; color:var(--muted); }
  .form-group > .section-label {
    margin:0 0 14px; padding:0;
    border-bottom:none; font-size:15px; letter-spacing:-.01em;
  }
  .form-group > .sub-section { margin-top:14px; }
  .form-group > .sub-section:first-child { margin-top:0; }
  .season-warn { font-size:11px; color:var(--error); margin-top:4px; text-align:right; }
  .feasib-warn { font-size:12px; color:var(--error); background:hsl(0,72%,97%); border:1px solid hsl(0,72%,85%); border-radius:8px; padding:10px 12px; margin:8px 0; }
  .feasib-warn ul { list-style:disc; }
  .hire-line.feasib-bad { outline:1px solid var(--error); outline-offset:2px; border-radius:8px; }

  /* ═══ LOAN SIM (dark card) ═══════════════════ */
  .loan-sim {
    margin:24px 0; padding:24px 28px;
    background:var(--surface-low);
    border:1px solid var(--border); border-radius:var(--radius-xl);
    box-shadow:none;
  }
  .loan-sim .sim-title {
    font-family:'Inter',sans-serif;
    font-size:11px; font-weight:700; color:var(--text);
    text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px;
  }
  .loan-sim .sim-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:8px 0; font-size:14px;
  }
  .loan-sim .sim-row .sim-k { color:var(--muted); font-size:14px; }
  .loan-sim .sim-row .sim-v { font-weight:700; color:var(--text); font-size:20px; font-variant-numeric:tabular-nums; }
  .loan-sim .sim-row:first-of-type .sim-v { font-size:28px; font-weight:800; }
  /* Revenue / cost build total — keep lighter style */
  #rev-build-total.loan-sim, #ec-build-total.loan-sim {
    margin:14px 0 4px; padding:16px 20px;
    background:var(--surface-low); border:1px solid var(--border);
    box-shadow:none;
  }
  #rev-build-total.loan-sim .sim-row .sim-k, #ec-build-total.loan-sim .sim-row .sim-k { color:var(--muted); font-size:13px; }
  #rev-build-total.loan-sim .sim-row .sim-v, #ec-build-total.loan-sim .sim-row .sim-v { color:var(--text); font-size:15px; }
  #ec-build-total.loan-sim .sim-row:first-of-type .sim-v { font-size:15px; font-weight:700; }

  /* ═══ KPI ═════════════════════════════════════ */
  .kpi-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
  .kpi-card {
    padding:24px; background:var(--card); border:1px solid var(--border);
    border-radius:var(--radius-xl); text-align:left;
    box-shadow:0 1px 4px rgba(0,0,0,.04);
  }
  .kpi-card .kpi-val { font-family:'Manrope',sans-serif; font-size:22px; font-weight:800; color:var(--text); font-variant-numeric:tabular-nums; }
  .kpi-card .kpi-label { font-size:12px; color:var(--muted); margin-top:6px; font-weight:400; }

  /* ═══ TOGGLE ══════════════════════════════════ */
  .toggle-group {
    display:flex; background:var(--surface-container); padding:3px;
    border-radius:var(--radius-md); gap:2px; margin-bottom:16px;
    border:1px solid var(--border);
  }
  .toggle {
    flex:1; padding:8px 16px; background:transparent; color:var(--muted);
    border:0; border-radius:var(--radius-sm); font:inherit; font-size:13px; font-weight:500;
    cursor:pointer; transition:all .12s; text-align:center;
  }
  .toggle:hover { color:var(--text); }
  .toggle.active { background:var(--primary); color:var(--on-primary); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.12); }

  /* ═══ REVENUE / COST LINES ═══════════════════ */
  .rev-line .field { margin-bottom:0; }
  .rev-line-top { display:flex; gap:8px; align-items:start; margin-bottom:8px; }
  #rev-lines > div > .rev-remove {
    position:absolute; top:10px; right:12px; z-index:2;
    background:none; border:none; color:var(--border); font-size:20px;
    line-height:1; cursor:pointer; padding:0; transition:color .12s;
  }
  #rev-lines > div > .rev-remove:hover { color:var(--error); }
  /* Collapsed line: only number+name and total are shown; click to re-expand */
  .rev-collapsed { display:none; align-items:center; justify-content:space-between; gap:12px; padding-right:26px; cursor:pointer; }
  .rev-collapsed-name { font-weight:700; color:var(--text); font-size:14px; }
  .rev-collapsed-total { color:var(--text); font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  /* Einklapp-Chevron oben rechts: nur sichtbar wenn die Karte offen ist (Klick klappt ein) */
  .fold-toggle {
    position:absolute; top:9px; right:40px; z-index:2;
    background:none; border:none; color:var(--border); cursor:pointer;
    padding:2px 4px; line-height:1; font-size:13px; transition:color .12s;
  }
  .fold-toggle:hover { color:var(--muted); }
  .rev-folded > .fold-toggle { display:none; }
  #rev-lines > div.rev-folded > .rev-line,
  #rev-lines > div.rev-folded > .rev-onetime-block,
  #rev-lines > div.rev-folded > .rev-line-total { display:none; }
  #rev-lines > div.rev-folded > .rev-collapsed { display:flex; }
  /* Individuelle Kosten: gleiche Karten- und Einklapp-Optik wie Umsatz */
  #extra-cost-lines > div {
    position:relative;
    padding:18px 18px 14px; margin-bottom:12px;
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--card);
  }
  #extra-cost-lines > div:last-child { border-bottom:1px solid var(--border); padding-bottom:14px; }
  #extra-cost-lines > div > .rev-remove {
    position:absolute; top:10px; right:12px; width:auto; height:auto;
    background:none; border:none; color:var(--border); font-size:20px;
    line-height:1; cursor:pointer; padding:0; opacity:1; border-radius:0; transition:color .12s;
  }
  #extra-cost-lines > div > .rev-remove:hover { color:var(--error); background:none; }
  #extra-cost-lines > div.rev-folded > .ec-line-inner,
  #extra-cost-lines > div.rev-folded > .ec-custom-season,
  #extra-cost-lines > div.rev-folded > .ec-onetime-block,
  #extra-cost-lines > div.rev-folded > .ec-total { display:none; }
  #extra-cost-lines > div.rev-folded > .rev-collapsed { display:flex; }
  /* Investitionen & Abschreibungen: gleiche Karten- und Einklapp-Optik wie Umsatz */
  #investment-lines > div, #existing-da-lines > div {
    position:relative;
    padding:18px 18px 14px; margin-bottom:12px;
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--card);
  }
  #investment-lines > div:last-child, #existing-da-lines > div:last-child { border-bottom:1px solid var(--border); padding-bottom:14px; }
  #investment-lines > div > .rev-remove, #existing-da-lines > div > .rev-remove {
    position:absolute; top:10px; right:12px; width:auto; height:auto;
    background:none; border:none; color:var(--border); font-size:20px;
    line-height:1; cursor:pointer; padding:0; opacity:1; border-radius:0; transition:color .12s;
  }
  #investment-lines > div > .rev-remove:hover, #existing-da-lines > div > .rev-remove:hover { color:var(--error); background:none; }
  #investment-lines > div.rev-folded > .inv-line-inner,
  #existing-da-lines > div.rev-folded > .eda-line-inner { display:none; }
  #investment-lines > div.rev-folded > .rev-collapsed,
  #existing-da-lines > div.rev-folded > .rev-collapsed { display:flex; }
  /* Personalplanung: Mitarbeiter + Kurzfristig Beschäftigte als einklappbare Karten */
  #staff-category-lines > div, #temp-staff-lines > div {
    position:relative;
    padding:18px 18px 14px; margin-bottom:12px;
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--card);
  }
  #staff-category-lines > div:last-child, #temp-staff-lines > div:last-child { border-bottom:1px solid var(--border); padding-bottom:14px; }
  #staff-category-lines > div > .rev-remove, #temp-staff-lines > div > .rev-remove {
    position:absolute; top:10px; right:12px; width:auto; height:auto;
    background:none; border:none; color:var(--border); font-size:20px;
    line-height:1; cursor:pointer; padding:0; opacity:1; border-radius:0; transition:color .12s;
  }
  #staff-category-lines > div > .rev-remove:hover, #temp-staff-lines > div > .rev-remove:hover { color:var(--error); background:none; }
  #staff-category-lines > div.rev-folded > .staff-line-inner,
  #temp-staff-lines > div.rev-folded > .temp-line-inner { display:none; }
  #staff-category-lines > div.rev-folded > .rev-collapsed,
  #temp-staff-lines > div.rev-folded > .rev-collapsed { display:flex; }
  /* Kredite: einklappbare Karten wie überall */
  #existing-loan-lines > div, #new-loan-lines > div {
    position:relative;
    padding:18px 18px 14px; margin-bottom:12px;
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--card);
  }
  #existing-loan-lines > div:last-child, #new-loan-lines > div:last-child { border-bottom:1px solid var(--border); padding-bottom:14px; }
  #existing-loan-lines > div > .rev-remove, #new-loan-lines > div > .rev-remove {
    position:absolute; top:10px; right:12px; width:auto; height:auto;
    background:none; border:none; color:var(--border); font-size:20px;
    line-height:1; cursor:pointer; padding:0; opacity:1; border-radius:0; transition:color .12s;
  }
  #existing-loan-lines > div > .rev-remove:hover, #new-loan-lines > div > .rev-remove:hover { color:var(--error); background:none; }
  #existing-loan-lines > div.rev-folded > .loan-line-inner,
  #new-loan-lines > div.rev-folded > .loan-line-inner { display:none; }
  #existing-loan-lines > div.rev-folded > .rev-collapsed,
  #new-loan-lines > div.rev-folded > .rev-collapsed { display:flex; }
  /* Sonderpositionen + Sonderausschüttungen: einklappbar (flach, kein Doppelrahmen) */
  #special-item-lines > div.rev-folded > .ec-line-inner,
  #special-item-lines > div.rev-folded > .rev-type-wrap,
  #special-item-lines > div.rev-folded > .sp-onetime-block { display:none; }
  #special-item-lines > div.rev-folded > .rev-collapsed { display:flex; }
  #special-dividend-lines > div.rev-folded > .row3 { display:none; }
  #special-dividend-lines > div.rev-folded > .rev-collapsed { display:flex; }
  .rev-line-fields { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:16px; margin-bottom:8px; }
  .rev-line-opts { display:flex; gap:8px; }
  .rev-line-opts .field { flex:1; max-width:180px; }
  /* Revenue line factors: two full-width rows (Preis/Menge/Wachstum + Ab Monat/Jahr),
     each row's boxes equal width and stretching the whole width */
  .rev-line-factors { margin-top:14px; }
  .rev-factors-row { display:flex; gap:10px; }
  .rev-factors-row + .rev-factors-row { margin-top:10px; }
  .rev-factors-row .field { flex:1; }
  /* Divider below the monthly-distribution block — only visible in Individuell (block shown) */
  .rev-custom-main { padding-bottom:14px; border-bottom:1px solid var(--border); }
  .rev-custom-main .season-bars, .rev-custom-main .season-months { padding-left:15px; padding-right:15px; }
  #rev-lines > div {
    position:relative;
    padding:18px 18px 14px; margin-bottom:12px;
    border:1px solid var(--border); border-radius:var(--radius-md);
    background:var(--card);
  }
  .rev-line-total, .ec-total {
    text-align:right; font-size:13px; font-weight:600; color:var(--text);
    padding:4px 0 2px; font-variant-numeric:tabular-nums;
  }
  .toggle .badge {
    display:inline-block; font-size:8px; font-weight:700;
    background:var(--primary); color:var(--on-primary); padding:2px 6px; border-radius:var(--radius-sm);
    margin-left:6px;
  }
  .rev-season-field { display:none; }
  #rev-build.detail-mode .rev-season-field { display:block; }
  #rev-build.detail-mode .rev-line-opts .rev-season-field { display:flex; flex-direction:column; }
  .cost-detail-fields { display:none; }
  #cost-form.detail-mode .cost-detail-fields { display:block; }

  /* ═══ SUB-SECTIONS & GROUPS ══════════════════ */
  .sub-section {
    font-family:'Manrope',sans-serif;
    font-size:13px; font-weight:600; color:var(--muted);
    margin:16px 0 8px; padding-bottom:0;
    border-bottom:none;
  }
  .bs-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .bs-grid .field { margin-bottom:10px; }
  .bs-grid .field:last-child { margin-bottom:0; }
  #bs-debt-auto { background:var(--surface-low); color:var(--muted); cursor:not-allowed; border-style:dashed; }
  .form-group {
    padding:24px; margin-bottom:20px;
    border:1px solid var(--border-light); border-radius:var(--radius-lg);
    background:var(--card);
    box-shadow:none;
  }
  .form-group .field { margin-bottom:10px; }
  .form-group .field:last-child { margin-bottom:0; }
  .form-group .row, .form-group .row3 { margin-bottom:10px; }
  .form-group .row:last-child, .form-group .row3:last-child { margin-bottom:0; }
  /* Fields inside a row must NOT add their own bottom margin — otherwise it
     stacks with the row margin and the gap below a row (20px) ends up bigger
     than above it (10px). The row margin alone sets the spacing. */
  .form-group .row > .field, .form-group .row3 > .field { margin-bottom:0; }

  /* Added managing director = its own separate white card with a numbered title */
  .manager-line, .collateral-item {
    position:relative;
    padding:18px 22px 20px; margin-top:12px;
    border:1px solid var(--border); border-radius:var(--radius-lg);
    background:var(--card); box-shadow:0 1px 3px rgba(0,0,0,.05);
  }
  .manager-line-title, .gf-title, .card-section-title { font-size:13px; font-weight:700; color:var(--text); margin-bottom:12px; }
  /* Lead field of a card: first/primary label in black + bold */
  .field label.field-lead { color:var(--text); font-weight:700; }
  /* Subtle, low-key guarantee checkbox sitting below the sections */
  .guarantee-check { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; color:var(--muted); margin-top:16px; padding:0 4px; }
  .guarantee-check input { width:16px; height:16px; flex-shrink:0; }
  /* Sicherheiten-Kachel: mehr Luft zwischen Titel, Eintraegen und Button */
  .collateral-card { padding:22px 24px; }
  .collateral-card .card-section-title { margin-bottom:16px; }
  /* Antragsteller: keep the "+ add GF" button close under the GF block */
  .card[data-step="1"] .form-group { margin-bottom:6px; }
  .manager-line .field, .collateral-item .field { margin-bottom:0; }
  .manager-line .rev-remove, .collateral-item .rev-remove {
    position:absolute; top:12px; right:12px;
    background:none; border:none; color:var(--muted);
    font-size:18px; line-height:1; cursor:pointer; padding:2px 6px;
    border-radius:var(--radius-sm); transition:color .12s;
  }
  .manager-line .rev-remove:hover, .collateral-item .rev-remove:hover { color:#d33; }

  /* ═══ DYNAMIC LINES ══════════════════════════ */
  /* Entry rows (personnel / costs / loans / special items): clean white,
     separated only by a hairline — no gray fill. */
  .hire-line, .extra-cost-line, .loan-line-wrapper, .special-item-line {
    padding:18px 40px 20px 0; margin:0;
    border:none; border-bottom:1px solid var(--border-light); border-radius:0;
    background:transparent; position:relative;
  }
  .hire-line:last-child, .extra-cost-line:last-child,
  .loan-line-wrapper:last-child, .special-item-line:last-child { border-bottom:none; padding-bottom:6px; }
  /* Toggle row (checkbox + label) — consistent across steps, no inline styles */
  .toggle-row {
    display:flex; align-items:center; gap:8px; cursor:pointer;
    font-size:14px; font-weight:600; color:var(--text);
  }
  .toggle-row input { width:18px; height:18px; flex-shrink:0; cursor:pointer; }
  .hire-line .field, .extra-cost-line .field,
  .loan-line-wrapper .field, .special-item-line .field { margin-bottom:0; }
  .form-group .hire-line .field { margin-bottom:0; }
  .hire-line-top { display:grid; grid-template-columns:1.5fr 0.7fr 1fr; gap:10px; margin-bottom:8px; }
  .ec-line-top { display:grid; grid-template-columns:1fr 0.7fr 0.6fr 0.6fr; gap:10px; margin-bottom:6px; }
  .hire-line-when { display:flex; gap:8px; }
  .hire-line-when .field { flex:0 0 auto; min-width:110px; }
  /* Direction toggle (Einstellung / Abbau) — pill, same look as other toggles */
  .hire-dir {
    display:inline-flex; background:var(--surface-container); padding:3px;
    border-radius:var(--radius-md); gap:2px; border:1px solid var(--border);
    margin-bottom:14px;
  }
  .hire-dir-btn {
    padding:7px 18px; border:0; border-radius:var(--radius-sm);
    background:transparent; cursor:pointer; font:inherit;
    font-size:13px; font-weight:500; color:var(--muted); transition:all .12s;
  }
  .hire-dir-btn:hover { color:var(--text); }
  .hire-dir-btn.active { background:var(--primary); color:var(--on-primary); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.12); }
  .hire-line .rev-remove, .extra-cost-line .rev-remove,
  .loan-line-wrapper .rev-remove, .special-item-line .rev-remove,
  .hire-line .staff-cat-remove, .hire-line .coll-remove {
    position:absolute; top:16px; right:0;
    display:flex; align-items:center; justify-content:center;
    width:28px; height:28px; padding:0;
    background:none; border:none; color:var(--muted); opacity:.7;
    font-size:20px; cursor:pointer;
    border-radius:50%; line-height:1; transition:all .12s;
  }
  .hire-line .rev-remove:hover, .extra-cost-line .rev-remove:hover,
  .loan-line-wrapper .rev-remove:hover, .special-item-line .rev-remove:hover,
  .hire-line .staff-cat-remove:hover, .hire-line .coll-remove:hover {
    color:var(--error); opacity:1; background:var(--surface-low);
  }

  /* ═══ HISTORY GRID ═══════════════════════════ */
  .hist-grid { margin-top:14px; }
  .hist-grid table { width:100%; border-collapse:collapse; border-radius:var(--radius-md); overflow:hidden; }
  .hist-grid th, .hist-grid td { padding:8px 8px; font-size:12px; }
  .hist-grid thead th { background:var(--surface-low); color:var(--muted); font-weight:600; text-align:center; border-bottom:1px solid var(--border); font-size:11px; }
  .hist-grid tbody th { text-align:left; font-weight:500; color:var(--text); }
  .hist-grid tbody td { text-align:right; font-variant-numeric:tabular-nums; }
  .hist-grid tbody tr.hist-sub td, .hist-grid tbody tr.hist-sub th { background:var(--surface-low); font-weight:700; color:var(--text); }
  .hist-grid input { width:100%; padding:8px; font:inherit; font-size:12px; text-align:right; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--card); font-variant-numeric:tabular-nums; }
  .hist-grid input:focus { border-color:var(--primary); outline:0; box-shadow:0 0 0 3px hsla(160, 40%, 16%, .12); }
  .hist-grid .hist-year-lbl { text-align:center; font-size:11px; color:var(--muted); }

  /* ═══ SEASON / MONTHLY ═══════════════════════ */
  .season-custom { margin-top:10px; }
  .season-bars { display:flex; align-items:flex-end; gap:2px; height:48px; margin-bottom:6px; }
  .season-bars .bar { flex:1; background:#d1d5db; border-radius:4px 4px 0 0; min-height:2px; transition:height .12s; }
  .season-months input::placeholder, .ot-months-grid input::placeholder { color:var(--muted); opacity:.55; }
  .season-months, .ot-months-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:4px; }
  .season-months label, .ot-months-grid label {
    display:block; font-size:9px; font-weight:500; color:var(--muted);
    margin-bottom:2px; text-align:center;
  }
  .season-months input, .ot-months-grid input {
    width:100%; padding:7px 3px; text-align:center; font-size:12px;
    border:1px solid rgba(0,0,0,.08); border-radius:var(--radius-sm);
    background:rgba(255,255,255,.6);
    box-sizing:border-box; font-variant-numeric:tabular-nums;
  }
  .season-months input:focus, .ot-months-grid input:focus {
    border-color:var(--primary); outline:none; box-shadow:0 0 0 3px hsla(160, 40%, 16%, .12);
  }

  /* ═══ RESPONSIVE ═════════════════════════════ */
  @media (max-width:768px) {
    .sidebar { transform:translateX(-100%); }
    .sidebar.open { transform:translateX(0); box-shadow:4px 0 24px rgba(0,0,0,.2); }
    .sidebar-toggle { display:flex; }
    .workspace-main { margin-left:0; padding:32px 16px 48px; display:block; }
    .site-footer { margin-left:0; }
    .loan-sim { margin:20px 0; padding:20px 16px; }
    .card h2 { font-size:24px; }
    .row, .row3, .row-zip { grid-template-columns:1fr; gap:10px; }
    .btn { padding:10px 16px; font-size:13px; }
    .sum-block { padding:6px 16px 8px; }
    .sum-row { padding:9px 0; }
    .rev-line-fields { grid-template-columns:1fr 1fr; }
    .rev-line-opts { flex-direction:column; }
    .bs-grid { grid-template-columns:1fr; }
    .overlay-card { padding:20px 16px 16px; max-width:calc(100% - 20px); }
    .overlay-card h3 { font-size:14px; }
    .overlay-text { font-size:13px; }
    .kpi-grid { grid-template-columns:1fr; }
  }
  @media (min-width:769px) and (max-width:1024px) {
    .workspace-main { padding:40px 24px 40px; }
    .row3 { grid-template-columns:1fr 1fr; }
    .loan-sim { margin:20px 0; padding:24px 24px; }
  }

  /* ═══ LANDING PAGE ═══════════════════════════ */
  .lp-hero {
    padding:80px 24px 60px; max-width:1100px; margin:0 auto;
    display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
  }
  .lp-hero h1 {
    font-family:'Manrope',sans-serif; font-size:48px; font-weight:800;
    letter-spacing:-.04em; line-height:1.08; color:var(--text); margin:0 0 16px;
  }
  .lp-hero .lp-sub { font-size:16px; color:var(--muted); line-height:1.6; margin:0 0 28px; max-width:480px; }
  .lp-hero .lp-actions { display:flex; gap:12px; flex-wrap:wrap; }
  .lp-hero .lp-actions .btn { padding:16px 32px; font-size:14px; border-radius:var(--radius-md); }
  .lp-hero .lp-actions .btn-secondary {
    background:var(--accent); color:var(--text); border:0; cursor:pointer;
    font-family:'Inter',sans-serif; font-size:14px; font-weight:600;
    padding:16px 32px; border-radius:var(--radius-md);
    transition:all .15s;
  }
  .lp-hero .lp-actions .btn-secondary:hover { background:hsl(185, 33%, 90%); }

  /* Hero Visual */
  .lp-visual { position:relative; min-height:380px; }
  .lp-browser {
    position:absolute; width:88%; background:var(--card); border:1px solid var(--border);
    border-radius:var(--radius-lg); box-shadow:0 8px 40px rgba(0,0,0,.08); overflow:hidden;
    top:0; left:0;
  }
  .lp-browser-bar {
    height:28px; background:var(--surface-container); border-bottom:1px solid var(--border);
    display:flex; align-items:center; padding:0 12px; gap:5px;
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  }
  .lp-browser-dot { width:6px; height:6px; border-radius:50%; background:var(--border); }
  .lp-browser-body { padding:16px; opacity:.35; }
  .lp-browser-body div { background:var(--surface-low); margin-bottom:6px; border-radius:4px; }

  .lp-report {
    position:relative; width:72%; margin-left:auto; margin-top:-40px;
    background:var(--card); border:1px solid var(--border);
    border-radius:var(--radius-lg); box-shadow:0 16px 50px rgba(0,0,0,.1); padding:28px 24px; z-index:2;
  }
  .lp-report-head { display:flex; justify-content:space-between; align-items:start; margin-bottom:20px; }
  .lp-report-title { font-family:'Manrope',sans-serif; font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--primary); }
  .lp-report-sub { font-size:10px; color:var(--muted); margin-top:2px; }
  .lp-stamp {
    border:2px solid hsla(160, 40%, 16%, .2); padding:3px; transform:rotate(8deg);
    font-size:7px; font-weight:800; text-transform:uppercase; color:hsla(160, 40%, 16%, .4);
    letter-spacing:.08em; border-radius:4px;
  }
  .lp-table { width:100%; }
  .lp-table th, .lp-table td { font-size:10px; padding:5px 6px; text-align:right; }
  .lp-table th:first-child, .lp-table td:first-child { text-align:left; }
  .lp-table th { font-weight:600; color:var(--muted); border-bottom:1px solid var(--border); }
  .lp-table td { color:var(--text); }
  .lp-table td.bold { font-weight:700; }

  .lp-badge {
    position:absolute; z-index:3; padding:6px 14px;
    font-family:'Manrope',sans-serif; font-size:9px; font-weight:700;
    letter-spacing:.06em; border-radius:var(--radius-sm);
  }
  .lp-badge-dark { background:var(--primary); color:var(--on-primary); top:8%; right:-2%; box-shadow:0 4px 16px rgba(0,0,0,.12); }
  .lp-badge-light { background:var(--card); color:var(--primary); border:1px solid var(--border); bottom:22%; left:-6%; box-shadow:0 4px 12px rgba(0,0,0,.06); }
  .lp-badge-accent { background:var(--accent); color:var(--primary); top:38%; left:-8%; box-shadow:0 2px 8px rgba(0,0,0,.05); font-size:8px; }

  /* Trust */
  .lp-trust {
    background:var(--surface-low); padding:36px 24px; text-align:center;
    border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  }
  .lp-trust-label {
    font-family:'Inter',sans-serif; font-size:11px; font-weight:500;
    letter-spacing:.08em; color:var(--muted); margin-bottom:20px;
  }
  .lp-trust-logos {
    display:flex; justify-content:center; align-items:center; gap:32px; flex-wrap:wrap;
    opacity:.35;
  }
  .lp-trust-logos span { font-family:'Manrope',sans-serif; font-size:18px; font-weight:800; letter-spacing:-.02em; }

  /* How it works */
  .lp-process { padding:80px 24px; max-width:1100px; margin:0 auto; }
  .lp-process h2 { font-family:'Manrope',sans-serif; font-size:32px; font-weight:800; letter-spacing:-.03em; margin:0 0 8px; }
  .lp-process .lp-process-sub { color:var(--muted); font-size:15px; margin:0 0 48px; max-width:500px; }
  .lp-steps { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }
  .lp-step {
    padding:28px; border:1px solid var(--border); border-radius:var(--radius-lg);
    transition:all .2s; background:var(--card);
  }
  .lp-step:hover { box-shadow:0 4px 16px rgba(0,0,0,.06); border-color:rgba(0,0,0,.12); }
  .lp-step-num {
    font-family:'Manrope',sans-serif; font-size:32px; font-weight:800; opacity:.1;
    display:inline-block; margin-bottom:12px; color:var(--primary);
  }
  .lp-step h3 { font-family:'Manrope',sans-serif; font-size:17px; font-weight:700; margin:0 0 8px; }
  .lp-step p { font-size:13px; color:var(--muted); line-height:1.6; }

  /* Benefits */
  .lp-benefits { padding:80px 24px; max-width:1100px; margin:0 auto; }
  .lp-benefits-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; }
  .lp-benefit-icon {
    width:48px; height:48px; background:hsla(160, 40%, 16%, .08); display:flex;
    align-items:center; justify-content:center; margin-bottom:16px;
    font-size:14px; font-weight:700; color:var(--primary);
    font-family:'Manrope',sans-serif; border-radius:var(--radius-md);
  }
  .lp-benefit h3 { font-family:'Manrope',sans-serif; font-size:16px; font-weight:700; margin:0 0 8px; }
  .lp-benefit p { font-size:13px; color:var(--muted); line-height:1.6; }

  /* Final CTA */
  .lp-cta {
    padding:80px 24px; text-align:center; border-top:1px solid var(--border);
  }
  .lp-cta h2 { font-family:'Manrope',sans-serif; font-size:36px; font-weight:800; letter-spacing:-.03em; margin:0 0 12px; }
  .lp-cta p { font-size:16px; color:var(--muted); margin:0 0 32px; }
  .lp-cta .btn-primary { padding:18px 40px; font-size:15px; border-radius:var(--radius-md); }
  .lp-cta .lp-cta-note {
    margin-top:20px; font-size:11px; font-weight:500; color:var(--muted);
    opacity:.6;
  }

  /* Footer */
  .lp-footer {
    background:var(--surface-low); padding:48px 24px 24px;
    border-top:1px solid var(--border);
  }
  .lp-footer-inner { max-width:1100px; margin:0 auto; display:flex; justify-content:space-between; align-items:start; gap:32px; flex-wrap:wrap; }
  .lp-footer-brand { font-family:'Manrope',sans-serif; font-size:15px; font-weight:700; margin-bottom:8px; }
  .lp-footer-desc { font-size:13px; color:var(--muted); max-width:280px; line-height:1.5; }
  .lp-footer-cols { display:flex; gap:48px; }
  .lp-footer-col h4 { font-size:11px; font-weight:600; color:var(--muted); margin:0 0 12px; }
  .lp-footer-col a { display:block; font-size:13px; color:var(--muted); text-decoration:none; margin-bottom:8px; }
  .lp-footer-col a:hover { color:var(--primary); }
  .lp-footer-bottom {
    max-width:1100px; margin:24px auto 0; padding-top:16px;
    border-top:1px solid var(--border);
    display:flex; justify-content:space-between;
    font-size:11px; font-weight:500; color:var(--muted);
  }

  /* Topbar back button */
  .topbar-back {
    display:none; align-items:center; gap:6px;
    color:var(--muted); font-size:13px; font-weight:500;
    cursor:pointer; border:0; background:none;
    font-family:'Inter',sans-serif; padding:6px 10px;
    border-radius:var(--radius-sm);
    transition:all .12s;
  }
  .topbar-back:hover { color:var(--primary); background:var(--surface-low); }

  @media (max-width:768px) {
    .lp-hero { grid-template-columns:1fr; padding:48px 16px 32px; gap:24px; }
    .lp-hero h1 { font-size:32px; }
    .lp-visual { display:none; }
    .lp-steps { grid-template-columns:1fr; }
    .lp-benefits-grid { grid-template-columns:1fr; }
    .lp-footer-inner { flex-direction:column; }
    .lp-footer-bottom { flex-direction:column; gap:4px; }
  }

/* input-guard.js — brief feedback when a disallowed character is rejected */
@keyframes input-reject-flash {
  0%   { border-color: #d33; box-shadow: 0 0 0 2px rgba(221,51,51,0.18); }
  100% { border-color: var(--border); box-shadow: none; }
}
.input-reject {
  animation: input-reject-flash 0.4s ease-out;
}

/* Firmenlogo-Upload (Schritt 0) */
.logo-upload { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.logo-upload .btn { width:auto; padding:8px 16px; }
.logo-preview { max-height:46px; max-width:180px; border:1px solid var(--border-light); border-radius:6px; padding:4px 8px; background:#fff; object-fit:contain; }
.logo-remove { background:none; border:0; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; text-decoration:underline; }
.logo-remove:hover { color:var(--primary); }
.logo-hint { font-size:12.5px; color:var(--muted); margin-top:6px; }

/* Logo-Upload auf der Produktseite (zentriert, kompakt) */
.prod-logo { display:flex; flex-direction:column; align-items:center; gap:8px; margin:4px auto 26px; text-align:center; }
.prod-logo-label { font-size:13px; font-weight:600; color:var(--text); }
.prod-logo .logo-upload { justify-content:center; }
.prod-logo .logo-hint { margin-top:0; }
