/* ============ Clevermatic v3 ============ */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-var.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #0a0e1f;
    --bg-alt: #0d1226;
    --surface: #121834;
    --surface-2: #182044;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eef1fb;
    --muted: #97a0c3;
    --faint: #6b7499;
    --blue: #4c8dff;
    --green: #34d399;
    --red: #f87171;
    --amber: #fbbf24;
    --wa: #25d366;
    --grad: linear-gradient(120deg, #4c8dff 0%, #34d399 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1160px;
    --header-h: 68px;

    /* Kompatibilität mit rechtliches.html */
    --dark-bg: var(--bg);
    --dark-card: var(--surface);
    --text-primary: var(--text);
    --text-secondary: #c3c9e4;
    --text-muted: var(--muted);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.accent { color: var(--green); }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- Risk bar ---------- */
.riskbar {
    display: flex; gap: 10px; align-items: flex-start; justify-content: center;
    padding: 8px 20px; font-size: 0.78rem; color: #d7dbef;
    background: #1a1330; border-bottom: 1px solid rgba(248, 113, 113, 0.25);
}
.riskbar .ico { color: var(--red); margin-top: 2px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 31, 0.82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text); }
.logo-img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 0.97rem;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 10px; }
.btn-primary { background: var(--grad); color: #06121f; box-shadow: 0 6px 24px rgba(52, 211, 153, 0.22); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(52, 211, 153, 0.35); }
.btn-ghost, .btn-outline { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover, .btn-outline:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); }
.btn-wa { background: var(--wa); color: #05240f; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; text-decoration: none; font-size: 0.93rem; }
.link:hover { text-decoration: underline; }
.link-wa { color: var(--wa); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(closest-side, rgba(76, 141, 255, 0.16), transparent 70%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--muted);
    padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03);
    margin-bottom: 24px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 22px; }
.lead { font-size: 1.08rem; color: #c3c9e4; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.87rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--green); }

/* Live card */
.live-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-strong); border-radius: 22px; padding: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.live-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.ok .dot { background: var(--green); animation: pulse 2s infinite; }
.status.stale .dot { background: var(--amber); }
.status.err .dot { background: var(--red); }
.demo-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: .02em; color: #1d1400; background: var(--amber); padding: 3px 9px; border-radius: 999px; }
.big-number { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sparkline { width: 100%; height: 88px; margin: 18px 0 20px; display: block; }
.live-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.live-mini div { display: flex; flex-direction: column; gap: 2px; }
.live-mini .k, .kpi .k { font-size: 0.76rem; color: var(--muted); }
.live-mini .v { font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head.center { justify-content: center; text-align: center; }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.section p.lead { margin: 16px 0 26px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* Range tabs */
.range-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.range-tabs button {
    background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 600;
    padding: 7px 13px; border-radius: 9px; cursor: pointer;
}
.range-tabs button:hover { color: var(--text); }
.range-tabs button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Chart */
.chart-panel { padding: 22px 22px 12px; }
.chart-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-meta > div { display: flex; align-items: baseline; gap: 10px; }
.range-change { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chart-wrap { position: relative; height: 340px; }
#chart { width: 100%; height: 100%; display: block; overflow: visible; }
#chart .grid { stroke: var(--line); stroke-width: 1; }
#chart .zero { stroke: rgba(255,255,255,.22); stroke-dasharray: 3 4; }
#chart .axis { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
#chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
#chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
#chart .hover-dot { fill: var(--green); stroke: var(--bg); stroke-width: 3; }
.chart-tip {
    position: absolute; top: 6px; pointer-events: none; transform: translateX(-50%);
    background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px;
    padding: 6px 10px; font-size: 0.8rem; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.chart-tip b { font-variant-numeric: tabular-nums; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 1.45rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Monthly table */
.table-scroll { overflow-x: auto; }
.months { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.84rem; font-variant-numeric: tabular-nums; min-width: 760px; }
.months th { color: var(--faint); font-weight: 600; font-size: 0.75rem; padding: 4px; text-align: center; }
.months td { text-align: center; padding: 9px 4px; border-radius: 6px; background: rgba(255,255,255,.025); font-weight: 600; }
.months td.year { background: none; color: var(--muted); font-weight: 700; text-align: left; padding-left: 2px; }
.months td.total { background: rgba(255,255,255,.06); }
.months td.empty { color: var(--faint); font-weight: 400; }
.months td.current { outline: 1px dashed rgba(255,255,255,.35); outline-offset: -1px; }

/* Verification */
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.widget-panel { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.widget-panel iframe { width: 100%; height: 160px; border: 0; }
.consent { text-align: center; max-width: 380px; }
.consent p { color: var(--muted); font-size: 0.87rem; margin-bottom: 14px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(52,211,153,.1); color: var(--green); margin-bottom: 16px; font-size: 1.3rem; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: #c3c9e4; font-size: 0.94rem; }
.symbols { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sym-row { display: grid; grid-template-columns: 76px 1fr 48px; align-items: center; gap: 10px; font-size: 0.84rem; }
.sym-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.sym-bar span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.sym-row .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.step-no { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #06121f; margin-bottom: 6px; }
.step p { color: #c3c9e4; font-size: 0.94rem; flex: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: center; }
.about-card { text-align: center; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.about-logo { border-radius: 18px; background: #fff; margin-bottom: 12px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: #d7dbef; }
.checklist .ico { color: var(--green); margin-top: 3px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: #c3c9e4; font-size: 0.95rem; }

/* CTA band */
.cta-band {
    display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
    padding: 40px; border-radius: 22px; border: 1px solid var(--line-strong);
    background: radial-gradient(600px 200px at 0% 0%, rgba(76,141,255,.18), transparent), radial-gradient(600px 200px at 100% 100%, rgba(52,211,153,.14), transparent), var(--surface);
}
.cta-band p { color: #c3c9e4; margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 28px; background: var(--bg-alt); }
.disclaimer { border: 1px solid rgba(248,113,113,.25); background: rgba(248,113,113,.04); border-radius: 12px; margin-bottom: 28px; }
.disclaimer summary { cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; gap: 10px; align-items: center; list-style: none; }
.disclaimer summary::-webkit-details-marker { display: none; }
.disclaimer summary .ico { color: var(--red); }
.disclaimer-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; color: #b9c0de; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.87rem; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 7px; background: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Legal subpages */
.legal { padding: 64px 0 88px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal p, .legal li { color: #c3c9e4; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal .todo { background: rgba(251,191,36,.12); border: 1px dashed var(--amber); color: #fde68a; padding: 2px 6px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .verify-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 18px;
        padding: 20px; background: rgba(10,14,31,.98); border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
    }
    .nav-menu.show { transform: none; visibility: visible; }
    .nav-list { flex-direction: column; gap: 14px; }
}
@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .hero { padding: 44px 0 48px; }
    .riskbar { font-size: 0.72rem; justify-content: flex-start; }
    .hero-cta .btn { width: 100%; }
    .live-card { padding: 20px; }
    .live-mini .v { font-size: 1rem; }
    .chart-wrap { height: 260px; }
    .kpi .v { font-size: 1.2rem; }
    .cta-band { padding: 28px 22px; }
    .cta-actions .btn { width: 100%; }
    .range-tabs button { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
