/* Layout: helle Mailer-Seite (Rice White) mit dunklem App-Panel für die Analyse, mobil zuerst, max. 960 px */
:root {
  color-scheme: light;
  --red: #D62B2B;
  --ink: #0D0D0D;
  --rice: #F5F4F0;
  --gray-light: #E8E7E2;
  --stone: #9A9890;
  --sand: #C4A882;
  --white: #FFFFFF;
  --ink-soft: #3A3935;
  --panel-line: rgba(255,255,255,0.12);
  --panel-text-dim: #B9B7AF;
  --f-head: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
body { background: var(--rice); color: var(--ink); font-family: var(--f-body); font-weight: 300; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.02em; line-height: 0.95; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-weight: 400; }
.wrap { max-width: 960px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Vorschau-Steuerung (nicht Teil der Seite) */
/* Kopfleiste */
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.logo { font-family: var(--f-head); font-size: 26px; letter-spacing: 0.04em; display: inline-flex; align-items: baseline; line-height: 1; text-decoration: none; color: var(--ink); }
.logo .cross { display: inline-block; width: 0.34em; height: 0.34em; background: var(--red); position: relative; margin: 0 0.12em 0 0.1em; }
.logo .cross::before, .logo .cross::after { content: ""; position: absolute; background: var(--white); }
.logo .cross::before { left: 42%; width: 16%; top: 18%; height: 64%; }
.logo .cross::after { top: 42%; height: 16%; left: 18%; width: 64%; }
.topbar .lang { font-family: var(--f-mono); font-size: 12px; color: var(--stone); letter-spacing: 0.06em; }

/* 1 Kopf */
.hero { padding-block: 28px 36px; }
.hero-inner { border-left: 6px solid var(--red); padding-left: 18px; display: grid; gap: 10px; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(64px, 17vw, 128px); }
.hero .sub { font-size: clamp(20px, 4.6vw, 28px); font-weight: 300; line-height: 1.25; }
.hero .meta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.hero .intro { max-width: 60ch; margin-top: 10px; font-size: 17px; }

/* 2 Kurzfazit */
.summary { padding-block: 0 32px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.fig { background: var(--white); padding: 14px 12px 12px; display: grid; gap: 4px; align-content: start; }
.fig .num { font-family: var(--f-head); font-size: clamp(44px, 12vw, 72px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.fig .num small { font-family: var(--f-mono); font-size: 12px; color: var(--stone); margin-left: 4px; letter-spacing: 0; }
.fig .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.3; }
.fig.accent .num { color: var(--red); }
.verdict { margin-top: 16px; max-width: 62ch; font-size: 17px; display: grid; gap: 6px; }
.verdict p:first-child { font-weight: 400; }

/* 3 Analyse-Panel */
.panel { background: var(--ink); color: var(--white); }
.panel .wrap { padding-block: 32px 36px; display: grid; gap: 34px; }
.panel h2 { font-size: 34px; }
.panel .lead { color: var(--panel-text-dim); margin-top: 6px; max-width: 60ch; }
.ptitle { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.ptitle .score { font-family: var(--f-mono); font-size: 13px; color: var(--panel-text-dim); }
.ptitle .score b { font-family: var(--f-head); font-weight: 400; font-size: 40px; color: var(--white); letter-spacing: 0.02em; }
.systems { display: grid; border-top: 1px solid var(--panel-line); }
.sys { border-bottom: 1px solid var(--panel-line); }
.sys-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding-block: 12px; }
.sys-name { font-weight: 500; font-size: 16px; }
.sys-expl { grid-column: 1 / -1; color: var(--panel-text-dim); font-size: 14px; }
.badge { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; white-space: nowrap; }
.b-rec { background: var(--red); color: var(--white); }
.b-men { background: var(--sand); color: var(--ink); }
.b-none { background: transparent; color: var(--panel-text-dim); border: 1px solid #4a4944; }
.b-noans { background: transparent; color: var(--panel-text-dim); border: 1px dashed #4a4944; }
.linkbtn { background: none; border: 0; color: var(--sand); font: inherit; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; grid-column: 1 / -1; }
.answer { grid-column: 1 / -1; background: #1A1918; color: #E8E7E2; font-size: 14px; padding: 12px 14px; border-left: 3px solid var(--sand); }
.answer .q { font-family: var(--f-mono); font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.answer p + .q { margin-top: 10px; }
.note { font-size: 13px; color: var(--panel-text-dim); margin-top: 12px; }
details.qs { border: 1px solid var(--panel-line); padding: 12px 14px; }
details.qs summary { cursor: pointer; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.03em; }
details.qs ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
details.qs .small { font-size: 13px; color: var(--panel-text-dim); margin-top: 10px; }
.bars { display: grid; gap: 14px; margin-top: 16px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar-head .mono { color: var(--panel-text-dim); font-size: 13px; }
.bar-head .val { font-family: var(--f-mono); font-size: 14px; color: var(--white); font-variant-numeric: tabular-nums; }
.track { height: 6px; background: #2A2927; margin-top: 6px; }
.fill { height: 100%; background: var(--sand); }
.fill.hi { background: var(--white); }
.fill.lo { background: var(--red); }
.recs { display: grid; gap: 10px; margin-top: 16px; }
.rec { border-left: 3px solid var(--red); background: #1A1918; padding: 12px 14px; display: grid; gap: 6px; }
.rec .prio { font-family: var(--f-mono); font-size: 11px; color: var(--sand); text-transform: uppercase; letter-spacing: 0.06em; }
.rec .vals { font-family: var(--f-mono); font-size: 12px; color: var(--panel-text-dim); }
.details-toggle { justify-self: start; background: transparent; border: 1px solid var(--panel-line); color: var(--white); font-family: var(--f-mono); font-size: 13px; padding: 10px 14px; cursor: pointer; }
.details { display: grid; gap: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.metric-grid h3 { font-size: 22px; }
.metric-grid ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--panel-text-dim); display: grid; gap: 4px; }
.metric-grid ul span { font-family: var(--f-mono); color: var(--white); float: right; }
.rescan { font-family: var(--f-mono); font-size: 12px; color: var(--ink); background: var(--sand); padding: 10px 14px; }

/* 4 So geht's weiter */
.steps { padding-block: 44px 12px; }
.steps h2, .cta h2, .agency h2, .contact h2 { font-size: clamp(38px, 9vw, 56px); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.box { background: var(--gray-light); border-left: 3px solid var(--red); padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.box .n { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.box h3 { font-size: 30px; }
.box p { font-size: 15px; }

/* 5 CTA + 6 Plugin */
.cta { padding-block: 44px; }
.cta-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .cta-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.cta-main { background: var(--white); padding: 22px 20px; display: grid; gap: 14px; }
.cta-main p.lead { font-size: 17px; max-width: 52ch; }
.cta-note { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.03em; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: var(--red); color: var(--white); border: 0; font-family: var(--f-head); font-size: 24px; letter-spacing: 0.04em; padding: 14px 22px 12px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #b82424; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-size: 20px; padding: 10px 16px 8px; }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
form.reg { display: grid; gap: 12px; border-top: 1px solid var(--gray-light); padding-top: 16px; }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field input[type=password] { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #C4C2BA; background: var(--rice); color: var(--ink); width: 100%; }
.field input[readonly] { background: var(--gray-light); font-family: var(--f-mono); font-size: 14px; }
.field .hint { font-size: 12px; color: var(--stone); }
.field .err { font-size: 13px; color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--red); }
.formmsg { font-size: 14px; padding: 10px 12px; background: var(--gray-light); border-left: 3px solid var(--red); }
.plugin { background: var(--gray-light); border-left: 3px solid var(--red); padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.plugin .kicker { font-family: var(--f-mono); font-size: 12px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.plugin h3 { font-size: 30px; }
.plugin p { font-size: 15px; }

/* 7 Agentur */
.agency { padding-block: 8px 44px; }
.agency .inner { background: var(--ink); color: var(--white); padding: 24px 20px; display: grid; gap: 12px; border-left: 6px solid var(--red); }
.agency p { color: #E8E7E2; max-width: 60ch; }
.agency .btn.ghost { color: var(--white); border-color: var(--white); justify-self: start; }
.agency .btn.ghost:hover { background: var(--white); color: var(--ink); }

/* 8 Kontakt */
.contact { padding-block: 20px 44px; }
.contact .inner { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: center; }
.team { width: 132px; height: 132px; position: relative; }
.team .circle { position: absolute; inset: 22px 0 0; border-radius: 50%; background: var(--white); }
.team .heads { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 2px; align-items: flex-end; }
.team .head { width: 34px; display: grid; justify-items: center; }
.team .head i { width: 26px; height: 26px; border-radius: 50%; background: var(--stone); display: block; }
.team .head b { width: 34px; height: 46px; border-radius: 16px 16px 0 0; background: var(--ink-soft); display: block; margin-top: 2px; }
.team .head:nth-child(2) i { background: var(--sand); width: 28px; height: 28px; }
.team .head:nth-child(2) b { height: 54px; background: var(--ink); }
.team-label { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--stone); }
.contact p { font-size: 17px; margin-top: 6px; }
.agent-photo { width: 132px; height: 148px; position: relative; }
.agent-photo img { width: 132px; height: 132px; object-fit: cover; object-position: center top; border-radius: 50%; background: var(--white); position: absolute; left: 0; bottom: 0; }
.mail { font-family: var(--f-mono); font-size: 17px; color: var(--red); margin-top: 6px; display: inline-block; user-select: all; }

/* 9 Fuss */
footer { border-top: 1px solid #D9D6CC; }
footer .wrap { padding-block: 24px 96px; display: grid; gap: 10px; }
footer .made { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
footer .made svg { width: 15px; height: 15px; fill: var(--red); }
footer .links { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer .links button { background: none; border: 0; font: inherit; color: var(--red); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Zustandsseiten */
.state { padding-block: 0 48px; }
.state .inner { background: var(--white); padding: 24px 20px; display: grid; gap: 12px; max-width: 640px; border-left: 3px solid var(--red); }
.state p { font-size: 17px; }

[hidden] { display: none !important; }

/* Löschdialog */
.dialog-back { position: fixed; inset: 0; background: rgba(13,13,13,0.55); display: grid; place-items: center; padding: 20px; z-index: 30; }
.dialog { background: var(--rice); max-width: 420px; width: 100%; padding: 22px 20px; display: grid; gap: 12px; border-top: 4px solid var(--red); }
.dialog h3 { font-size: 34px; }
.dialog .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* fixe CTA-Leiste mobil */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--rice); border-top: 1px solid #D9D6CC; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform .25s ease; }
.sticky.show { transform: none; }
.sticky .btn { width: 100%; font-size: 22px; }
@media (min-width: 760px) { .sticky { display: none; } }
