/* AI-Act-Kompass – gemeinsames Design (öffentliche Seiten + App). Ruhig, vertrauenswürdig, barrierearm. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f6; --ink: #0f1b2d; --ink-2: #3b4658; --muted: #5d6879;
  --line: #e1e5ec; --line-2: #cfd5df; --primary: #1f4fd1; --primary-ink: #ffffff; --primary-soft: #e8eefc; --primary-hover: #1a43b3;
  --ok: #157f4a; --ok-soft: #e4f4ea; --info: #1f62a8; --info-soft: #e5effa; --warn: #a2560a; --warn-soft: #fdf1e2;
  --danger: #b4232c; --danger-soft: #fbe8e9; --focus: #ffbf47;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(15,27,45,.05), 0 6px 24px -12px rgba(15,27,45,.18);
  --maxw: 1140px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c1320; --surface: #131c2c; --surface-2: #1a2436; --ink: #e9eef6; --ink-2: #c3ccda; --muted: #95a1b4;
  --line: #243046; --line-2: #33415a; --primary: #7fa2ff; --primary-ink: #0b1220; --primary-soft: #1b2a4d; --primary-hover: #9db8ff;
  --ok: #5fd197; --ok-soft: #12301f; --info: #7cb6f2; --info-soft: #142a44; --warn: #f2b35f; --warn-soft: #36260f;
  --danger: #ff8a91; --danger-soft: #3d171b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.018em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; letter-spacing: -.028em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: .72rem; display: block; line-height: 1; margin-top: 2px; letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: .94rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.icon-btn.menu-btn { display: none; margin-left: auto; }
@media (max-width: 920px) {
  .icon-btn.menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
}

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 .96rem/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); min-height: 38px; padding: 0 10px; }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: .98rem;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.field { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; margin: 6px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; background: var(--surface); }
.chip-check input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Karten, Badges, Hinweise */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-muted { background: var(--surface-2); color: var(--muted); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.notice.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice p:last-child { margin: 0; }
.disclaimer { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }

/* Öffentliche Seiten */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 46em; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .92rem; }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } .section { padding: 60px 0; } }
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15,27,45,.35), var(--shadow); padding: 18px; }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-count { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); margin-bottom: 12px; }
.mock-count b { font-size: 2rem; letter-spacing: -.03em; color: var(--primary); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row span:first-child { font-weight: 600; }
.mock-row small { display: block; color: var(--muted); font-weight: 400; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.feature-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feature-ico svg { width: 22px; height: 22px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 14px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 30px; margin: 10px 0; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157f4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.list-x li::before { background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4232c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Zeitstrahl & Countdown */
.countdown { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 26px; }
.countdown div { min-width: 96px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.countdown b { display: block; font-size: 2rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .82rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 22px 38px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); }
.timeline li.past::before { background: var(--ok); border-color: var(--ok); }
.timeline li.next::before { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 5px var(--warn-soft); }
.timeline li.hl::before { border-color: var(--primary); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline .tl-title { font-weight: 650; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); font-size: .94rem; }
.timeline .ref { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }

/* Preise */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); }
.price { font-size: 2.6rem; font-weight: 760; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .list-check { margin: 18px 0 24px; flex: 1; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 52em; }

/* Artikel / Ratgeber / Rechtliches */
.article { max-width: 780px; margin: 0 auto; padding: 48px 22px 72px; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.article h2 { font-size: 1.5rem; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article li { margin: .35em 0; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .94rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--surface-2); font-weight: 650; }
.table-wrap { overflow-x: auto; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.cta-box { margin: 40px 0; padding: 26px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.cta-box h2, .cta-box h3 { color: var(--bg); margin-top: 0; }
.cta-box p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cta-box .btn-primary { background: var(--bg); color: var(--ink); }
.placeholder { background: #fff3b0; color: #5a4500; padding: 0 4px; border-radius: 4px; font-weight: 600; }
[data-theme="dark"] .placeholder { background: #5a4a00; color: #fff3b0; }
.sources { font-size: .88rem; color: var(--muted); }
.sources li { margin: .3em 0; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 32px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .ico-moon, :root:not([data-theme="dark"]) .ico-sun { display: none; }
