/* Shimly-Ad: eigenes Design-System. Keine Fremdbibliotheken, kein Build-Schritt.
   Aufbau: 1 Farben und Maße · 2 Grundlagen · 3 Öffentliche Seiten (Kopfleiste, Hero, Abschnitte, Fuß)
           4 Anwendung (Seitenleiste, Kopfzeile) · 5 Bausteine · 6 Diagramme */

/* ---------- 1 Farben und Maße ---------- */
:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --surface-3: #e3e9ef;
    --border: #dbe2ea;
    --border-strong: #c3ceda;
    --text: #0f1a24;
    --text-2: #334455;
    --muted: #61707f;
    --brand: #0f9d58;
    --brand-strong: #0a7a44;
    --brand-soft: #e2f5ea;
    --brand-ink: #063d23;
    --on-brand: #ffffff;
    --accent: #f5b324;
    --accent-soft: #fff4d6;
    --ok: #15803d;
    --ok-soft: #e3f5e9;
    --warn: #b45309;
    --warn-soft: #fdf0d9;
    --err: #c62828;
    --err-soft: #fde7e7;
    --info: #1d5fbf;
    --info-soft: #e6eefb;
    --side: #ffffff;
    --side-text: #334455;
    --side-active: #e2f5ea;
    --side-active-text: #0a7a44;
    --side-border: #e5eaf0;
    --shadow-1: 0 1px 2px rgba(15, 26, 36, .05), 0 2px 8px rgba(15, 26, 36, .04);
    --shadow-2: 0 2px 6px rgba(15, 26, 36, .06), 0 12px 32px rgba(15, 26, 36, .08);
    --shadow: var(--shadow-1);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --wrap: 1180px;
    --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0b1117; --surface: #121a22; --surface-2: #18222c; --surface-3: #1f2b37; --border: #26323f; --border-strong: #35445400;
    --text: #e7edf3; --text-2: #c2cdd8; --muted: #93a2b1;
    --brand: #2fc47a; --brand-strong: #5fd996; --brand-soft: #12301f; --brand-ink: #c9f2dc; --on-brand: #04200f;
    --accent: #f5c04a; --accent-soft: #3a2d0c;
    --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #3a2c0c; --err: #f87171; --err-soft: #3b1818; --info: #7ab3ff; --info-soft: #152a47;
    --side: #0e151c; --side-text: #b7c3cf; --side-active: #143325; --side-active-text: #7fe3ad; --side-border: #1b2630;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1117; --surface: #121a22; --surface-2: #18222c; --surface-3: #1f2b37; --border: #26323f; --border-strong: #354454;
        --text: #e7edf3; --text-2: #c2cdd8; --muted: #93a2b1;
        --brand: #2fc47a; --brand-strong: #5fd996; --brand-soft: #12301f; --brand-ink: #c9f2dc; --on-brand: #04200f;
        --accent: #f5c04a; --accent-soft: #3a2d0c;
        --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #3a2c0c; --err: #f87171; --err-soft: #3b1818; --info: #7ab3ff; --info-soft: #152a47;
        --side: #0e151c; --side-text: #b7c3cf; --side-active: #143325; --side-active-text: #7fe3ad; --side-border: #1b2630;
        --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
        --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
        --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
        color-scheme: dark;
    }
}

/* ---------- 2 Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .55em; letter-spacing: -.012em; color: var(--text); }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; vertical-align: -4px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .live, .tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 8px; }
.lead { font-size: 1.08rem; color: var(--text-2); max-width: 64ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* ---------- 3 Öffentliche Seiten ---------- */
.pub { display: flex; flex-direction: column; min-height: 100vh; }
.pub-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border); }
.pub-top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #1fbf74); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 800;
    box-shadow: 0 2px 6px rgba(15, 157, 88, .35); }
.pub-nav { display: none; gap: 2px; margin-left: 10px; }
.pub-nav a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.pub-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.pub-nav a.active { color: var(--brand-strong); background: var(--brand-soft); }
.pub-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pub-actions .btn.ghost { display: none; }
.pub-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 20px 16px; box-shadow: var(--shadow-2); }
.pub-menu a { display: block; padding: 10px 8px; border-radius: 8px; font-weight: 600; color: var(--text); }
.pub-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-open .pub-menu { display: block; }
@media (min-width: 900px) {
    .pub-nav { display: flex; }
    .pub-actions .btn.ghost { display: inline-flex; }
    .pub-top .nav-toggle { display: none; }
}
.pub-main { flex: 1; }
.pub-page { padding: 36px 0 64px; }
.pub-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .35em; }
.pub-narrow { max-width: 760px; }

/* Hero */
.hero-x { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); color: #fff;
    background: linear-gradient(160deg, #062a1b 0%, #0b3d2a 45%, #0f1a24 100%); }
.hero-x::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 420px at 15% 0%, rgba(31, 191, 116, .55), transparent 60%), radial-gradient(700px 380px at 95% 20%, rgba(245, 179, 36, .25), transparent 60%); }
.hero-x::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px);
    background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 85%); }
.hero-x .wrap { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-x .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero-x .eyebrow { color: #9ff0c4; }
.hero-x h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .4em; }
.hero-x h1 em { font-style: normal; color: #7ff0b4; }
.hero-x .lead { color: rgba(255, 255, 255, .86); font-size: 1.12rem; }
.hero-x .btn-row { margin-top: 26px; }
.hero-x .btn { border-color: transparent; padding: 12px 20px; font-size: 1rem; }
.hero-x .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero-x .btn.ghost:hover { background: rgba(255, 255, 255, .2); }
.hero-note { margin-top: 14px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.hero-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 22px; backdrop-filter: blur(8px); }
.hero-card h2, .hero-card h3 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-kpi { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 14px 12px; }
.hero-kpi .v { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.hero-kpi .l { font-size: .78rem; color: rgba(255, 255, 255, .72); }
.hero-check { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.hero-check li { display: flex; gap: 10px; align-items: flex-start; }
.hero-check .icon { color: #7ff0b4; margin-top: 2px; }

/* Abschnitte */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: .94rem; }
.section.alt .feature { background: var(--bg); }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card { counter-increment: s; position: relative; padding: 24px 22px 22px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-card::before { content: counter(s); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
    display: grid; place-items: center; font-weight: 800; font-size: .9rem; box-shadow: 0 2px 6px rgba(15, 157, 88, .35); }
.step-card h3 { margin-top: 4px; }
.step-card p { margin: 0; color: var(--text-2); font-size: .94rem; }
.split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel { border-radius: 18px; padding: 28px; border: 1px solid var(--border); background: var(--surface); }
.panel.tone-brand { background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); }
.panel.tone-info { background: linear-gradient(160deg, var(--info-soft), var(--surface) 70%); }
.panel h2, .panel h3 { font-size: 1.25rem; font-weight: 750; }
.panel ul.ticks { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; }
.panel ul.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.panel ul.ticks .icon { color: var(--brand-strong); flex: none; margin-top: 3px; }
.statband { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.statband .stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
.statband .stat-value { font-size: 1.9rem; letter-spacing: -.02em; }
.fitlist { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fitlist .fit { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.fitlist .fit h3 { display: flex; gap: 8px; align-items: center; }
.fitlist .fit.yes h3 .icon { color: var(--ok); }
.fitlist .fit.no h3 .icon { color: var(--err); }
.fitlist ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--text-2); }
.fitlist li { margin-bottom: 4px; }

/* Preise */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-2); }
.plan .ribbon { position: absolute; top: -11px; right: 16px; background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan .name { font-weight: 700; color: var(--text-2); }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .reach { color: var(--text-2); font-size: .94rem; }
.plan .reach strong { color: var(--text); }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }

/* Kalkulator */
.calc { display: grid; gap: 18px; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
@media (min-width: 760px) { .calc { grid-template-columns: 1.2fr 1fr; } }
.calc output, .calc .out { display: block; }
.calc .out { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.calc .out .big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.range { width: 100%; accent-color: var(--brand); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .15s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 10px 0 0; color: var(--text-2); }

/* Abschluss-Aufruf und Fuß */
.cta-band { background: linear-gradient(135deg, #0b3d2a, #0f1a24); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta-band .btn { border-color: transparent; padding: 12px 20px; }
.cta-band .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.pub-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: auto; font-size: .92rem; }
.pub-foot .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 28px; }
.pub-foot h4, .pub-foot .foot-h { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pub-foot a { color: var(--text-2); }
.pub-foot .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; font-size: .85rem; }
.pub-foot .legal a { color: var(--muted); }

/* Anmelde-Seiten */
.auth { display: grid; gap: 28px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 440px; } }
.auth .card { margin: 0; }
.auth-aside h2 { font-size: 1.6rem; font-weight: 800; }
.auth-aside .ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.auth-aside .ticks li { display: flex; gap: 10px; color: var(--text-2); }
.auth-aside .ticks .icon { color: var(--brand-strong); flex: none; margin-top: 3px; }

/* ---------- 4 Anwendung: Seitenleiste und Kopfzeile ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--side); color: var(--side-text); overflow-y: auto; border-right: 1px solid var(--side-border);
    transform: translateX(-100%); transition: transform .2s; z-index: 30; display: flex; flex-direction: column; }
.nav-open .side { transform: none; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; color: var(--text); font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.side-brand:hover { text-decoration: none; }
.side-brand .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #1fbf74); display: grid; place-items: center; color: #fff; font-size: .9rem; }
.side-user { margin: 0 14px 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; }
.side-user strong { color: var(--text); display: block; margin-bottom: 6px; }
.side-user div { display: flex; justify-content: space-between; gap: 8px; }
.side-user div span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 10px; padding: 3px; border-radius: 9px; background: var(--surface-3); }
.seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .78rem; font-weight: 650; padding: 5px 4px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-1); }
.side nav a .icon { color: var(--muted); }
.side nav a:hover .icon, .side nav a.active .icon { color: currentColor; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .88rem; font-weight: 600; }
.subnav a .count { font-size: .75rem; background: var(--surface-3); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.subnav a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.subnav a.active .count { background: rgba(255, 255, 255, .25); color: inherit; }
.onboard { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.onboard button { text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 6px; }
.onboard button:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.onboard button .oi { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.onboard button strong { font-size: 1.05rem; }
.onboard button span { color: var(--text-2); font-size: .92rem; }
.side nav { padding: 6px 10px 20px; flex: 1; }
.nav-group { margin-top: 16px; padding: 0 10px 6px; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); font-weight: 550; font-size: .95rem; }
.side nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.side nav a.active { background: var(--side-active); color: var(--side-active-text); font-weight: 650; }
.side nav .count { margin-left: auto; font-size: .76rem; background: var(--surface-3); color: var(--text-2); padding: 1px 7px; border-radius: 999px; }
.side nav a.active .count { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--side-active-text); }
.side nav .mark { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.side-foot { padding: 12px 20px 18px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--side-border); }
.side-foot a { color: var(--text-2); }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(5, 10, 15, .45); z-index: 20; }
.nav-open .backdrop { display: block; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 60px;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top h1 { font-size: 1.12rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn .badge-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--err); border: 2px solid var(--surface); }
.main { padding: 20px 16px 48px; max-width: 1240px; margin: 0 auto; }
.subnav-bar { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.subnav-bar::-webkit-scrollbar { display: none; }
.subnav-bar a { flex: none; padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.subnav-bar a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.subnav-bar a.active { background: var(--brand-soft); color: var(--brand-strong); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { font-size: 1.35rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

@media (min-width: 900px) {
    .side { transform: none; }
    .content-wrap { margin-left: 268px; }
    .nav-toggle, .backdrop { display: none !important; }
    .main { padding: 28px 32px 64px; }
    .subnav-bar { padding: 8px 32px; }
}

/* ---------- 5 Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); margin-bottom: 20px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; flex: 1; font-size: 1.05rem; }
.card-head .sub { width: 100%; font-size: .88rem; color: var(--muted); margin-top: -2px; }
.card-body { padding: 18px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: .9rem; color: var(--muted); }
.card.tone-brand .card-head { background: var(--brand-soft); border-radius: var(--radius) var(--radius) 0 0; }
.card.tone-info .card-head { background: var(--info-soft); border-radius: var(--radius) var(--radius) 0 0; }
.card.flat { box-shadow: none; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.tight { gap: 12px; }
.layout-side { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .layout-side { grid-template-columns: minmax(0, 1fr) 340px; } .layout-side .sticky { position: sticky; top: 76px; } }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1);
    padding: 16px 18px; display: flex; gap: 14px; align-items: center; color: var(--text); }
a.stat:hover { text-decoration: none; border-color: var(--brand); }
.stat .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.stat .stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.stat .stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .stat-sub { font-size: .8rem; color: var(--muted); }
.kpi-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-1); }
.kpi .k-label { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .k-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-delta { font-size: .82rem; margin-top: 4px; color: var(--muted); }
.kpi .k-delta.up { color: var(--ok); } .kpi .k-delta.down { color: var(--err); }
.kpi.tone-brand { background: linear-gradient(160deg, var(--brand-soft), var(--surface) 80%); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert.fehler { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.alert.warnung { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert a { color: inherit; text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; line-height: 1.3; transition: background .12s, border-color .12s, transform .08s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(15, 157, 88, .3); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--err-soft); border-color: transparent; color: var(--err); }
.btn.small { padding: 5px 10px; font-size: .85rem; border-radius: 8px; }
.btn.large { padding: 12px 22px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--err); }
.field .error-text { color: var(--err); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], input[type=tel], select, textarea {
    width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input:disabled, input[readonly], textarea[readonly] { background: var(--surface-2); color: var(--muted); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* Auswahl-Karten (z. B. Werbeform wählen) */
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 16px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); height: 100%; transition: border-color .12s, box-shadow .12s; }
.choice .box .ci { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; margin-bottom: 10px; }
.choice .box strong { display: block; margin-bottom: 2px; }
.choice .box small { color: var(--muted); display: block; line-height: 1.4; }
.choice .box .from { margin-top: 8px; font-size: .82rem; font-weight: 650; color: var(--brand-strong); }
.choice:hover .box { border-color: var(--border-strong); }
.choice input:checked + .box { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.choice input:checked + .box .ci { background: var(--brand-soft); color: var(--brand-strong); }
.choice input:focus-visible + .box { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Schrittanzeige */
.stepper { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: st; }
.stepper li { counter-increment: st; flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: .9rem; color: var(--muted); font-weight: 600; min-width: 0; }
.stepper li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: .8rem; font-weight: 800; flex: none; }
.stepper li.active { color: var(--text); border-color: var(--brand); }
.stepper li.active::before { background: var(--brand); color: var(--on-brand); }
.stepper li.done { color: var(--text-2); }
.stepper li.done::before { background: var(--ok-soft); color: var(--ok); content: "✓"; }
.stepper li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .stepper li span { display: none; } .stepper li { justify-content: center; } }
.step-pane[hidden] { display: none; }

/* Zusammenfassung (klebt rechts) */
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.summary .s-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.summary .s-body { padding: 14px 18px; display: grid; gap: 8px; font-size: .93rem; }
.summary .s-row { display: flex; justify-content: space-between; gap: 12px; }
.summary .s-row span:last-child { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.summary .s-total { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--brand-soft); border-radius: 0 0 var(--radius) var(--radius); }
.summary .s-total .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.summary .s-total .minus { display: block; margin-top: 4px; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.progress.warn > i { background: var(--warn); }
.progress.done > i { background: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; background: var(--surface-2); font-weight: 700; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ↕"; opacity: .4; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-tools { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); align-items: center; flex-wrap: wrap; }
.table-tools input { max-width: 260px; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.empty .icon { width: 32px; height: 32px; color: var(--border-strong); margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; letter-spacing: .01em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.plain::before { display: none; }
.plus { color: var(--ok); font-weight: 650; }
.minus { color: var(--err); font-weight: 650; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }

.codebox { position: relative; }
.codebox textarea, .codebox input { font-family: var(--mono); font-size: .85rem; padding-right: 90px; }
.codebox textarea { min-height: 84px; }
.codebox .btn { position: absolute; top: 6px; right: 6px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pager { display: flex; gap: 6px; padding: 14px 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--border); }
.pager span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.prose { max-width: 78ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--border); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.timeline li:last-child { border-color: transparent; }
.timeline time { display: block; font-size: .8rem; color: var(--muted); }
.quick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.quick a { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; font-size: .92rem; }
.quick a:hover { border-color: var(--brand); text-decoration: none; }
.quick a .icon { color: var(--brand-strong); }
.hero { padding: 36px 28px; border-radius: 18px; color: #fff; margin-bottom: 20px;
    background: radial-gradient(1200px 400px at 10% -10%, #1fbf74 0%, transparent 60%), linear-gradient(135deg, #0b3d2a, #0f1a24 70%); }
.hero h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: .4em; color: #fff; }
.hero p { max-width: 62ch; opacity: .92; }
.hero .btn { border-color: transparent; }
.hero .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 6 Diagramme ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .axis { stroke: var(--border); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart-box { margin: 0; position: relative; }
.chart .serie.s1 { stroke: var(--series-1); }
.chart .serie.s2 { stroke: var(--series-2); }
.chart .serie.s3 { stroke: var(--series-3); }
.chart .punkt { stroke: var(--surface); }
.chart .punkt.s1 { fill: var(--series-1); }
.chart .punkt.s2 { fill: var(--series-2); }
.chart .punkt.s3 { fill: var(--series-3); }
.chart .flaeche.s1 { fill: var(--series-1); opacity: .08; }
.chart .fadenkreuz { stroke: var(--muted); stroke-width: 1; }
.legend .key { width: 16px; height: 0; border-top: 2px solid; border-radius: 0; vertical-align: middle; margin-right: 6px; display: inline-block; }
.key.s1 { border-color: var(--series-1); }
.key.s2 { border-color: var(--series-2); }
.key.s3 { border-color: var(--series-3); }
.chart-tip { position: absolute; top: 8px; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-2); padding: 8px 10px; font-size: .85rem; min-width: 130px; z-index: 2; }
.chart-tip .tip-kopf { color: var(--muted); margin-bottom: 4px; }
.chart-tip .tip-zeile { display: flex; align-items: center; gap: 6px; }
.chart-tip .tip-zeile strong { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.chart-tabelle { margin-top: 10px; font-size: .9rem; }
.chart-tabelle summary { cursor: pointer; color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bars .bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr max-content; gap: 10px; align-items: center; font-size: .9rem; }
.bars .bar .track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bars .bar .track i { display: block; height: 100%; background: var(--series-1); border-radius: 999px; }
.chart .fadenkreuz[hidden], [hidden] { display: none !important; }

@media print {
    .side, .top, .backdrop, .pub-top, .pub-foot, .btn { display: none !important; }
    .content-wrap { margin: 0 !important; }
    .card, .kpi, .stat { box-shadow: none; break-inside: avoid; }
}
