:root {
    /* Flächen & Text */
    --bg: #f5f6f9;
    --panel: #ffffff;
    --panel-2: #f3f4f8;          /* ruhige Hover-/Subtil-Fläche */
    --ink: #171b22;
    --muted: #5f6776;
    --line: #e7e9f0;             /* feine Linie */
    --line-2: #d9dce5;           /* kräftigere Linie / Feldrand */

    /* Akzent (bleibt blau) */
    --brand: #1f4e79;            /* Marken-Dunkelblau (Sidebar) */
    --brand-ink: #ffffff;
    --brand-accent: #5eb0ef;
    --primary: #1f6feb;
    --primary-hover: #195fd1;
    --primary-soft: #e8f0fc;     /* weiche Akzentfläche / Fokus-Ring */

    /* Status (Ampel) */
    --danger: #c23b3b;
    --rot: #d64545;
    --gelb: #e0a106;
    --gruen: #2f9e44;
    --offen: #94a3b8;

    /* Radius */
    --r-lg: 14px;
    --r: 10px;
    --r-sm: 7px;
    --pill: 999px;
    --radius: 10px;              /* Bestandsname → neuer Standard (war 8px) */

    /* Schatten (zurückhaltend, leicht blau getönt, abgestuft) */
    --sh-sm: 0 1px 2px rgba(20,28,46,.06);
    --sh: 0 1px 3px rgba(20,28,46,.06), 0 1px 2px rgba(20,28,46,.04);
    --sh-md: 0 6px 20px rgba(20,28,46,.08);
    --shadow: var(--sh);         /* Bestandsname → feinerer Schatten */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.01em; }
h1 { font-size: 1.5rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }

/* ---------- Sidebar / Navigation ---------- */
.sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--brand); color: var(--brand-ink);
    display: flex; flex-direction: column;
    position: sticky; top: 0; align-self: flex-start;
    height: 100vh; overflow-y: auto;
}
.brand {
    display: block; color: var(--brand-ink); text-decoration: none;
    padding: 1.25rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.10);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; font-weight: 700; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-fm { color: var(--brand-accent); }
.brand-sub { display: block; margin-top: .35rem; font-size: .72rem; color: #aec4de; letter-spacing: .02em; }

.mainnav { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .6rem; flex: 1; }
.mainnav a {
    color: #cfdcec; padding: .52rem .75rem; border-radius: var(--r-sm); font-size: .92rem;
    transition: background .12s ease, color .12s ease;
}
.mainnav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.mainnav a.active {
    background: rgba(255,255,255,.16); color: #fff; font-weight: 600;
    box-shadow: inset 3px 0 0 var(--brand-accent);
}

.userbox {
    display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
    padding: .9rem 1.2rem; border-top: 1px solid rgba(255,255,255,.10);
    font-size: .85rem; color: #cfdcec;
}
.userbox .inline { margin: 0; }
.linkbtn {
    background: none; border: none; color: #d7e3f2; cursor: pointer;
    font: inherit; padding: .2rem .3rem; text-decoration: underline;
}
.linkbtn:hover { color: #fff; }
.linkbtn.danger { color: var(--danger); text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; align-items: stretch; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 1.6rem 1.25rem 3.5rem; }
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin: 1.6rem 0 1rem; flex-wrap: wrap;
}
.page-head:first-child { margin-top: 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer { text-align: center; color: var(--muted); padding: 1.5rem 1rem; }

/* ---------- Flash ---------- */
.flash { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem 1rem;
    border-radius: var(--r); margin-bottom: .8rem; border: 1px solid transparent; }
.flash::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-top: .4rem;
    border-radius: var(--pill); background: currentColor; opacity: .85; }
.flash-success { background: #e7f6ec; border-color: #b6e3c4; color: #1c6b34; }
.flash-error   { background: #fce8e8; border-color: #f3bcbc; color: #9c2a2a; }
.flash-info    { background: #e8f0fc; border-color: #bcd3f3; color: #234e8c; }

/* ---------- Abo-/Trial-Hinweisbanner (persistent, im App-Layout) ---------- */
.abo-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid transparent; }
.abo-banner__txt { flex: 1 1 16rem; }
.abo-banner__txt strong { display: block; }
.abo-banner__txt span { opacity: .85; font-size: .92rem; }
.abo-banner .btn { white-space: nowrap; }
.abo-banner--info { background: #e8f0fc; border-color: #bcd3f3; color: #234e8c; }
.abo-banner--gelb { background: #fdf3da; border-color: #f3e0a8; color: #7a5907; }
.abo-banner--rot  { background: #fce8e8; border-color: #f3bcbc; color: #9c2a2a; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--panel-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: var(--panel-2); }
.table tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .actions { white-space: nowrap; }
.table .actions a { margin-right: .6rem; }
.row-inactive { opacity: .6; }
.row-expired { background: #fff7f0; }

/* ---------- Cards / Stats ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; margin: 1rem 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.15rem; }
.card.stat { border-left: 4px solid var(--line-2); }
.card.stat .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.card.stat .lbl { color: var(--muted); font-size: .85rem; }
.card.stat.status-rot   { border-left-color: var(--rot); }
.card.stat.status-gelb  { border-left-color: var(--gelb); }
.card.stat.status-gruen { border-left-color: var(--gruen); }
.card.stat.status-offen { border-left-color: var(--offen); }

/* ---------- Badges / Pills ---------- */
.badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.badge.status-rot   { background: var(--rot); }
.badge.status-gelb  { background: var(--gelb); }
.badge.status-gruen { background: var(--gruen); }
.badge.status-offen { background: var(--offen); }
.pill { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .78rem; background: #eef2f6; color: #4b5563; }
.pill-ok { background: #e7f6ec; color: #1c6b34; }
.pill-warn { background: #fde9d6; color: #9a4b09; }
.erg { font-size: .85rem; }
.erg-bad { color: var(--rot); font-weight: 600; }
.erg-mid { color: var(--gelb); }
.erg-ok  { color: var(--gruen); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .8rem; color: var(--muted); }

/* ---------- Detail grid ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem 1.5rem;
    background: var(--panel); padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.detail-grid .dt { display: block; font-size: .76rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: #374151; margin-bottom: .5rem; }
.textblock { background: var(--panel); padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.linklist { padding-left: 1.2rem; }

/* ---------- Forms ---------- */
.card.form { max-width: 720px; }
.card { background: var(--panel); }
.form label { display: block; margin-bottom: .9rem; font-weight: 600; font-size: .9rem; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=date], .form select, .form textarea {
    display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-weight: 400;
    background: #fff; color: var(--ink);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.form .check input { width: auto; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
.hint { color: var(--muted); font-size: .85rem; }
.hint-inline { color: var(--muted); font-weight: 400; font-size: .82rem; }
.form-actions { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .9rem; padding: .8rem 1rem; }
fieldset legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; }
.check-group label.check { margin-bottom: .4rem; }
.upload-box { background: #fbfcfe; }
.inline-form { display: flex; align-items: flex-end; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.inline-form label { margin: 0; }

/* Select + "+ Neu"-Schaltfläche in einer Zeile (Inline-Anlegen von Stammdaten). */
.input-with-add { display: flex; gap: .5rem; align-items: stretch; margin-top: .25rem; }
.input-with-add > select { flex: 1 1 auto; margin-top: 0; }
.input-with-add > .btn { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; }
.btn-sm { padding: .3rem .6rem; font-size: .85rem; }

/* Inline-Anlege-Dialog (natives <dialog>). */
dialog.inline-dialog { width: min(480px, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: 0 24px 60px rgba(20,28,46,.22); padding: 1.4rem; color: var(--ink); background: var(--panel); }
dialog.inline-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.inline-dialog__title { margin: 0 0 .8rem; font-size: 1.15rem; }
.inline-dialog .form-actions { margin-top: 1rem; }
.inline-error { background: #fcecec; border: 1px solid var(--danger); color: var(--danger);
    padding: .5rem .7rem; border-radius: 6px; font-size: .88rem; margin: 0 0 .8rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .5rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line-2);
    background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-weight: 500; text-decoration: none;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: #fcecec; }

/* ---------- Misc ---------- */
.empty { color: var(--muted); background: var(--panel-2); padding: 1.3rem 1.2rem; border-radius: var(--r-lg);
    border: 1px dashed var(--line-2); }
.hidden { display: none; }
.inline { display: inline; }
.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-brand { text-align: center; margin-bottom: 1.4rem; }
.login-brand .brand-mark { font-size: 2rem; color: var(--brand); }
.login-brand .brand-fm { color: var(--primary); }
.login-brand .brand-sub { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.report-head { margin: 1rem 0; }

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sidebar {
        width: auto; height: auto; position: static; overflow: visible;
        flex-direction: row; flex-wrap: wrap; align-items: center;
        gap: .3rem .9rem; padding: .5rem .8rem;
    }
    .brand { padding: 0; border-bottom: none; }
    .brand-mark { font-size: 1.2rem; }
    .brand-sub { display: none; }
    .mainnav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; padding: .35rem 0 0; gap: .15rem; }
    /* In der horizontalen Topbar sitzt der Aktiv-Indikator unten statt links. */
    .mainnav a.active { box-shadow: inset 0 -2px 0 var(--brand-accent); }
    .userbox {
        flex-direction: row; align-items: center; border-top: none;
        padding: 0; gap: .6rem; margin-left: auto;
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Print (Stichtagsbericht) ---------- */
@media print {
    .sidebar, .footer, .no-print, .form-actions { display: none !important; }
    body { background: #fff; }
    .container { margin: 0; max-width: none; }
    .table { box-shadow: none; }
    .table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge { color: #000 !important; background: none !important; border: 1px solid #000; }
}

/* ---------- Öffentliche Kopfleiste (anonyme Seiten) ---------- */
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1.2rem; background: var(--brand); color: #fff; }
.pubbar-brand { color: #fff; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.pubbar-brand:hover { text-decoration: none; }
.pubbar-nav { display: flex; align-items: center; gap: 1rem; }
.pubbar-nav a { color: #d7e3f2; }
.pubbar-nav a:hover { color: #fff; }

/* ---------- Betreiber-Konsole (eigenständiges /dash-Layout) ---------- */
/* Eigenes Farbthema über die Brand-Variablen – setzt die Konsole klar von der Kundenansicht ab. */
.layout.dash { --brand: #0f2e3a; --brand-accent: #4fd1c5; }
.layout.dash .brand-sub { color: #8fc2cd; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.layout.dash .dash-back { display: block; color: #cfe8ee; font-size: .85rem; margin-bottom: .15rem; }
.layout.dash .dash-back:hover { color: #fff; }
.pubbar-nav a.btn-primary { color: #fff; }

/* ---------- Footer-Links ---------- */
.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: .6rem; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-support { display: block; margin-bottom: .6rem; }

/* ---------- Landing One-Pager ---------- */
.hero { text-align: center; padding: 3rem 1rem 2.5rem; }
.hero h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 auto .8rem; max-width: 760px; }
.hero .lead { font-size: 1.15rem; color: #374151; max-width: 640px; margin: 0 auto 1.6rem; }
.hero .cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { padding: .7rem 1.3rem; font-size: 1.02rem; }
.hero .trial-note { color: var(--muted); font-size: .85rem; margin-top: .9rem; }
.section { padding: 1.6rem 0; }
.section h2 { text-align: center; font-size: 1.5rem; margin: 0 0 1.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.feature { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.feature h3 { margin: .2rem 0 .4rem; font-size: 1.05rem; color: var(--brand); }
.feature p { margin: 0; color: #4b5563; font-size: .92rem; }
.audience { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.pill-lg { background: #eef4fb; color: #234e8c; border-radius: 999px; padding: .4rem 1rem; font-weight: 600; }
.note-box { background: #eef4fb; border: 1px solid #cfe0f5; border-radius: var(--radius);
    padding: 1.1rem 1.3rem; max-width: 760px; margin: 0 auto; color: #234e8c; }
.cta-block { text-align: center; padding: 2.2rem 1rem 1rem; }

/* ---------- Preise / Pakete ---------- */
.pricing-intro { text-align: center; max-width: 620px; margin: -.6rem auto 1.6rem; color: var(--muted); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.3rem; }
.price-card--highlight { border-color: var(--primary); box-shadow: 0 6px 24px rgba(31,111,235,.14); }
.price-badge { position: absolute; top: -.7rem; right: 1.1rem; background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; }
.price-card h3 { margin: 0 0 .3rem; font-size: 1.3rem; color: var(--brand); }
.price-fuer { margin: -.05rem 0 .9rem; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.price-card .price { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 0 0 1.1rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.price-features li { position: relative; padding: .4rem 0 .4rem 1.6rem; color: #374151; border-bottom: 1px solid var(--line); font-size: .92rem; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen); font-weight: 700; }
.price-card .btn { width: 100%; text-align: center; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 1.1rem; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Abrechnungs-Umschalter (Monats-/Jahresabo) ---------- */
.billing-switch { text-align: center; margin: 0 0 1.6rem; }
.billing-toggle { position: relative; display: inline-flex; padding: 4px; vertical-align: middle;
    background: #eef1f6; border: 1px solid var(--line); border-radius: 999px; }
/* Beide Segmente exakt gleich breit (min-width), damit der 50%-Thumb sauber deckt. */
.billing-thumb { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
    z-index: 0; background: var(--primary); border-radius: 999px;
    box-shadow: 0 2px 6px rgba(31,111,235,.30); transition: transform .22s ease; }
.billing-toggle--jahr .billing-thumb { transform: translateX(100%); }
.billing-opt { position: relative; z-index: 1; box-sizing: border-box; min-width: 9.5rem;
    padding: .5rem 1rem; text-align: center; white-space: nowrap; font-weight: 600; font-size: .92rem;
    color: var(--muted); text-decoration: none; transition: color .2s ease; }
.billing-opt:hover { color: var(--ink); }
.billing-toggle--monat .billing-opt[data-intervall="monat"],
.billing-toggle--jahr  .billing-opt[data-intervall="jahr"] { color: #fff; }
.billing-badge { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; background: var(--gruen); color: #fff; vertical-align: middle; }
/* Wenn Jahr aktiv (Badge sitzt auf blauem Thumb): dezentes Weiß statt Grün. */
.billing-toggle--jahr .billing-opt[data-intervall="jahr"] .billing-badge { background: rgba(255,255,255,.25); }

/* Zwei-Zustands-Preis je Tarifkarte: genau ein Betrag sichtbar (vom Umschalter gesteuert). */
.price-amount { display: none; }
.price-amount.is-on { display: block; }
.price-num { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-per { color: var(--muted); font-weight: 500; }
.price-eq { display: block; margin-top: .25rem; color: var(--gruen); font-weight: 600; font-size: .82rem; }

/* ---------- Rechtsseiten (lesbarer Fließtext) ---------- */
.legal { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.6rem 1.8rem; max-width: 820px; margin: 0 auto; }
.legal h1 { margin-bottom: .3rem; }
.legal h2 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: #374151; }
.legal ul { padding-left: 1.3rem; }
.legal .platzhalter { background: #fff5d6; border-bottom: 1px dashed #d9a300; padding: 0 .2rem; }

@media (max-width: 640px) { .hero h1 { font-size: 1.8rem; } }

/* ================================================================
   Landing: Verkaufsseite (Hero-Split, Produkt-Mockups, Trust, Risiko,
   Schritte, Proof, FAQ). Baut auf dem bestehenden Design-System auf.
   ================================================================ */

/* ---------- Hero als zweispaltiger Aufbau (Text + Produkt-Mockup) ---------- */
.hero-split {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.4rem; align-items: center;
    max-width: 1100px; margin: 0 auto; text-align: left; padding: 3rem 1rem 2.2rem;
}
.hero-split .hero-copy { min-width: 0; }
.hero-split h1 { margin: 0 0 .8rem; max-width: none; font-size: 2.2rem; }
.hero-split .lead { margin: 0 0 1.4rem; max-width: 540px; }
.hero-split .cta { justify-content: flex-start; }
.hero-split .trial-note { margin-top: .9rem; }
.hero-visual { min-width: 0; }

/* ---------- Produkt-Mockup im Browser-Rahmen (reine HTML/CSS-Nachbildung) ---------- */
.mock {
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15,46,90,.16); overflow: hidden;
}
.mock-bar {
    display: flex; align-items: center; gap: .4rem;
    padding: .55rem .8rem; background: #eef1f6; border-bottom: 1px solid var(--line);
}
.mock-dot { width: 10px; height: 10px; border-radius: 999px; background: #cbd5e1; flex: none; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
    margin-left: .5rem; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .15rem .7rem; font-size: .76rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body { padding: .8rem; background: var(--bg); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: .8rem; }
.mock-stat {
    background: var(--panel); border-radius: 6px; box-shadow: var(--shadow);
    border-left: 4px solid var(--line); padding: .55rem .6rem;
}
.mock-stat.status-rot   { border-left-color: var(--rot); }
.mock-stat.status-gelb  { border-left-color: var(--gelb); }
.mock-stat.status-gruen { border-left-color: var(--gruen); }
.mock-num { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.mock-lbl { display: block; font-size: .72rem; color: var(--muted); }
.mock-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.mock-table th, .mock-table td { text-align: left; padding: .38rem .45rem; border-bottom: 1px solid var(--line); font-size: .76rem; white-space: nowrap; }
.mock-table th { background: #f0f3f6; font-size: .64rem; text-transform: uppercase; letter-spacing: .02em; color: #4b5563; }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table .badge { font-size: .66rem; padding: .08rem .4rem; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.mock-head strong { font-size: .82rem; color: var(--ink); }
.mock-head span { font-size: .68rem; color: var(--muted); }
.mock-upload { border: 1px dashed var(--brand-accent); border-radius: 6px; padding: .5rem .6rem; margin-bottom: .6rem; font-size: .72rem; color: var(--muted); text-align: center; background: #f5f8fc; }

/* ---------- Produkt-Tour (Landing) ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.tour-item h3 { margin: 0 0 .3rem; font-size: 1.12rem; color: var(--brand); }
.tour-item > p { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.tour-example { max-width: 760px; margin: 1.5rem auto 0; text-align: center; background: #eef4fb; border: 1px solid #cfe0f5; border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .95rem; color: #234e8c; }
@media (max-width: 820px) { .tour-grid { grid-template-columns: 1fr; } }

/* ---------- Trust-Bar (belegbare Vertrauensmerkmale) ---------- */
.trustbar {
    list-style: none; margin: 0 auto 1rem; padding: .2rem 1rem 0; max-width: 1000px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem;
}
.trustbar li { position: relative; padding-left: 1.35rem; color: #4b5563; font-size: .9rem; font-weight: 600; }
.trustbar li::before {
    content: "✓"; position: absolute; left: 0; top: -.02em;
    color: var(--gruen); font-weight: 700;
}

/* ---------- Gemeinsame Sektions-Einleitung ---------- */
.section-intro { text-align: center; max-width: 640px; margin: -.8rem auto 1.4rem; color: var(--muted); }

/* ---------- Risiko-Sektion ---------- */
.section-risk { background: #fbfcfe; border-radius: var(--radius); padding: 1.8rem 1.2rem; }
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.risk {
    background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
    border-top: 3px solid var(--gelb); padding: 1.1rem 1.2rem;
}
.risk h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--ink); }
.risk p { margin: 0; color: #4b5563; font-size: .9rem; }
.risk-bridge { text-align: center; margin: 1.4rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--brand); }

/* ---------- So funktioniert's (3 Schritte) ---------- */
.steps {
    list-style: none; counter-reset: step; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.step {
    position: relative; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.4rem 1.2rem 1.2rem;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 999px; margin-bottom: .6rem;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem;
}
.step h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--brand); }
.step p { margin: 0; color: #4b5563; font-size: .92rem; }

/* ---------- Proof-Sektion (Copy + zweites Mockup) ---------- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.proof-copy h2 { text-align: left; margin: 0 0 .6rem; }
.proof-copy p { color: #4b5563; margin: 0 0 1.1rem; }

/* ---------- FAQ (Accordion, funktioniert ohne JavaScript) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: .6rem; padding: 0 1.1rem;
}
.faq-item summary {
    list-style: none; cursor: pointer; padding: .9rem 1.8rem .9rem 0; position: relative;
    font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: .1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.3rem; font-weight: 400; color: var(--primary); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1rem; color: #4b5563; font-size: .94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; padding-top: 2.2rem; }
    .hero-split .lead { margin-left: auto; margin-right: auto; }
    .hero-split .cta { justify-content: center; }
    .steps { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .proof-copy h2 { text-align: center; }
    .proof-copy { text-align: center; }
}
@media (max-width: 480px) {
    .hero-split h1 { font-size: 1.7rem; }
    .mock-stats { gap: .4rem; }
    .mock-num { font-size: 1.25rem; }
    .mock-table th:nth-child(4), .mock-table td:nth-child(4) { display: none; }
}

/* ================================================================
   Ratgeber (öffentlicher Wissens-Hub): Übersicht (Karten) + Artikel (Prosa).
   Baut auf dem bestehenden Design-System auf (Tokens, .container, .btn, .cta-block).
   ================================================================ */

/* ---------- Übersicht ---------- */
.ratgeber-intro { max-width: 760px; margin: .4rem auto 1.8rem; text-align: center; }
.ratgeber-intro h1 { font-size: 2rem; line-height: 1.2; margin-bottom: .6rem; }
.ratgeber-intro .lead { color: #374151; font-size: 1.1rem; margin: 0; }

.ratgeber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.ratgeber-card {
    display: flex; flex-direction: column; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.3rem 1.3rem 1.1rem;
}
.ratgeber-card h2 { font-size: 1.15rem; line-height: 1.3; margin: .5rem 0 .5rem; text-align: left; }
.ratgeber-card h2 a { color: var(--brand); }
.ratgeber-card h2 a:hover { color: var(--primary); text-decoration: none; }
.ratgeber-card p { color: #4b5563; font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.ratgeber-cat {
    align-self: flex-start; background: #eef4fb; color: #234e8c; border-radius: 999px;
    padding: .12rem .6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.ratgeber-card-foot { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: var(--muted); }
.ratgeber-card-foot .ratgeber-more { margin-left: auto; color: var(--primary); font-weight: 600; white-space: nowrap; }
.ratgeber-badge-entwurf {
    background: #fdf3da; color: #7a5907; border: 1px solid #f3e0a8; border-radius: 999px;
    padding: .05rem .5rem; font-size: .72rem; font-weight: 700;
}

/* ---------- Artikel (lesbarer Fließtext) ---------- */
.ratgeber-article { max-width: 760px; margin: 0 auto; }
.ratgeber-breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.ratgeber-breadcrumb a { color: var(--muted); }
.ratgeber-breadcrumb a:hover { color: var(--primary); }
.ratgeber-head { margin-bottom: 1.2rem; }
.ratgeber-head h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0; }
.ratgeber-meta { display: flex; gap: .8rem; align-items: center; color: var(--muted); font-size: .85rem; margin: 0; }

.ratgeber-body {
    background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.6rem 1.9rem; color: #1f2933; font-size: 1.02rem; line-height: 1.7;
}
.ratgeber-body > :first-child { margin-top: 0; }
.ratgeber-body h2 { font-size: 1.4rem; text-align: left; margin: 1.8rem 0 .6rem; color: var(--brand); }
.ratgeber-body h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; color: var(--ink); }
.ratgeber-body p { margin: 0 0 1rem; }
.ratgeber-body ul, .ratgeber-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.ratgeber-body li { margin-bottom: .4rem; }
.ratgeber-body a { color: var(--primary); text-decoration: underline; }
.ratgeber-body strong { color: var(--ink); }
.ratgeber-body blockquote {
    margin: 1.2rem 0; padding: .6rem 1.1rem; border-left: 4px solid var(--brand-accent);
    background: #f5f8fc; color: #374151; border-radius: 0 var(--radius) var(--radius) 0;
}
.ratgeber-body blockquote p:last-child { margin-bottom: 0; }
.ratgeber-body code {
    background: #eef1f6; border-radius: 4px; padding: .1rem .35rem;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em;
}
.ratgeber-body pre { background: #0f2e3a; color: #e6edf3; padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.ratgeber-body pre code { background: none; padding: 0; color: inherit; }
.ratgeber-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.ratgeber-body th, .ratgeber-body td { text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); vertical-align: top; }
.ratgeber-body thead th { background: #f0f3f6; font-weight: 600; }
.ratgeber-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.ratgeber-body hr { border: none; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.ratgeber-quellen {
    max-width: 760px; margin: 1.6rem auto 0; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem;
}
.ratgeber-quellen h2 { text-align: left; font-size: 1.05rem; margin: 0 0 .5rem; color: var(--brand); }
.ratgeber-quellen ul { list-style: none; margin: 0; padding: 0; }
.ratgeber-quellen li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.5; color: #374151; }
.ratgeber-quellen li:last-child { border-bottom: none; }
.ratgeber-quellen a { color: var(--primary); text-decoration: underline; word-break: break-word; }

.ratgeber-disclaimer {
    max-width: 760px; margin: 1.4rem auto 0; background: #fbfcfe; border: 1px solid var(--line);
    border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--muted); font-size: .85rem; line-height: 1.55;
}
.ratgeber-cta {
    max-width: 760px; margin: 1.6rem auto 0; text-align: center; background: #eef4fb;
    border: 1px solid #cfe0f5; border-radius: var(--radius); padding: 1.7rem 1.4rem;
}
.ratgeber-cta h2 { text-align: center; font-size: 1.3rem; margin: 0 0 .5rem; color: var(--brand); }
.ratgeber-cta p { color: #234e8c; max-width: 560px; margin: 0 auto 1.1rem; }
.ratgeber-cta .btn { margin: .2rem .3rem 0; }

@media (max-width: 640px) {
    .ratgeber-body { padding: 1.2rem 1.1rem; }
    .ratgeber-intro h1, .ratgeber-head h1 { font-size: 1.6rem; }
}
