/* Theme "Lotse" auf Basis von "Klar". Systemschriften, damit keine Daten an Google Fonts gehen;
   Bricolage Grotesque / Public Sans können später selbst gehostet werden. */
:root {
  --ink: #16213e;
  --ink-2: #3b4763;
  --muted: #55627d;
  --line: #dce2ee;
  --soft: #f4f6fb;
  --bg: #ffffff;
  --accent: #c2410c;
  --accent-soft: #fdece4;
  --ok: #157f3b;
  --ok-soft: #e8f6ed;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --fail: #b91c1c;
  --fail-soft: #fdecec;
  --info: #2b59c3;
  --info-soft: #eaf0fc;
  --radius: 16px;
  --font: "Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--info); }
a:hover { color: #1c3f91; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.band { background: var(--soft); padding: 40px 0 48px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.mono { font-family: var(--mono); font-size: 14px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 680px; }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--fail-soft); color: var(--fail); font-weight: 600; }

/* Kopf und Fuß */
header.site { border-bottom: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; }
.logo svg { color: var(--ink); }
.head nav { display: flex; gap: 20px; font-weight: 500; }
.head nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
footer.site { border-top: 1px solid var(--line); margin-top: 32px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.foot span { margin-right: auto; }

/* Buttons und Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.big { min-height: 52px; padding: 0 28px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #9a3412; color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.danger { background: var(--fail); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
input[type=email], input[type=password], input[type=text] { min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid #b8c2d6; font: inherit; color: var(--ink); }
label { font-weight: 600; }
.start { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Karten */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 20px; }
.card ul { margin: 0; padding-left: 20px; }
.cards.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* Warteseite */
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); }
.address code { font-family: var(--mono); font-size: clamp(16px, 3vw, 22px); font-weight: 600; overflow-wrap: anywhere; flex: 1 1 260px; }
.live { font-weight: 600; color: var(--info); }

/* Fortschritt und Lite-Hinweis */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.steps li { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--muted); }
.steps li.done { color: var(--ok); }
.steps li.active { background: var(--ink); color: #fff; }
.lite-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lite-bar a { margin-left: auto; font-weight: 600; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; }

/* Ergebnis-Kopf */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 2 1 460px; display: flex; flex-direction: column; gap: 14px; }
.score-card { flex: 1 1 280px; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.score { font-family: var(--display); font-size: 72px; font-weight: 800; line-height: 1; }
.score span { font-size: 28px; color: var(--muted); }
.bar { height: 12px; border-radius: 999px; background: #e6eaf3; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--accent); }
.bar.thin { height: 8px; }
.bar > div.low { background: var(--fail); }
.compare { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); font-size: 14px; }
.compare ul { margin: 6px 0 0; padding-left: 18px; }
.compare.hint { background: transparent; border: 1px dashed #b8c2d6; color: var(--ink-2); }
.cats { display: grid; gap: 12px; background: #fff; border-radius: var(--radius); padding: 20px 24px; }
.cat { display: grid; grid-template-columns: 160px minmax(0, 1fr) 90px; gap: 12px; align-items: center; }
.cat .mono { text-align: right; color: var(--muted); }

/* Fix-Plan */
.fix { border: 2px solid var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.fix-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.gain { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.finding { color: var(--muted); font-size: 14px; }
.snippet { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.snippet pre { flex: 1 1 360px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-family: var(--mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.providers { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.providers .small { width: 100%; }
.providers details { border: 1px solid #c8d0e0; border-radius: 14px; padding: 8px 14px; }
.providers summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.providers ol { margin: 8px 0 4px; padding-left: 20px; font-size: 14px; }

/* Anforderungen und Verbindung */
.req { list-style: none; margin: 0; padding: 0; }
.req li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #eef2f7; }
.state { font-size: 14px; font-weight: 700; }
.state.ok { color: var(--ok); }
.state.partial { color: var(--warn); }
.state.missing { color: var(--fail); }
.state.unknown { color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.links { display: flex; gap: 16px; font-weight: 600; }

/* Alle Prüfungen */
.group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group h3 { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 17px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 16px; align-items: start; padding: 12px 20px; border-top: 1px solid #eef2f7; }
.row:first-of-type { border-top: 0; }
.row .mono { text-align: right; }
.row .small { overflow-wrap: anywhere; }
.pill { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.fail { background: var(--fail-soft); color: var(--fail); }
.pill.info { background: var(--info-soft); color: var(--info); }
.minus { color: var(--fail); }
.plus { color: var(--ok); }

/* Konto-Aufruf */
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cta > .stack { flex: 3 1 420px; }
.cta > form, .cta > .cta-actions { flex: 2 1 300px; }
.cta h2 { font-size: 32px; }
.cta .small { color: #b8c2d6; }
.warn-text { color: #ffb48a; font-weight: 600; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: #d5dcea; }
.checks li::before { content: "✓ "; color: #7fd39a; font-weight: 700; }

/* Konto */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid #eef2f7; }
thead th { background: var(--soft); border-top: 0; font-size: 14px; }
details.danger { border: 1px solid var(--fail-soft); border-radius: var(--radius); padding: 16px 20px; }
details.danger summary { cursor: pointer; color: var(--fail); font-weight: 600; }

@media (max-width: 640px) {
  .cat { grid-template-columns: 1fr 70px; }
  .cat .bar { grid-column: 1 / -1; grid-row: 2; }
  .row { grid-template-columns: 80px minmax(0, 1fr); }
  .row .mono { grid-column: 2; text-align: left; }
  .cta { padding: 28px; }
}

/* Rechtstexte und Erklärseiten */
.legal { display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal h3 { font-size: 17px; margin-top: 6px; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal code { font-family: var(--mono); font-size: 14px; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 18px 24px; }
.toc ol { columns: 2; column-gap: 32px; display: block; }
.toc li { margin-bottom: 4px; }
.consent { font-size: 13px; color: var(--muted); width: 100%; }

/* Startseite: So testen wir */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: schritt; list-style: none; margin: 0; padding: 0; }
.process li { counter-increment: schritt; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.process h3 { font-size: 18px; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.area { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.area-head h3 { font-size: 18px; }
.area .pts { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.area ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.fact { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact strong { font-family: var(--display); font-size: 17px; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

/* Konto und Anmeldung */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; }
.alert.info { background: var(--info-soft); color: var(--info); }
.card h3 { font-size: 18px; }
.card details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: 0.2em; }
.totp-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.totp-box .stack { flex: 1 1 240px; gap: 10px; }
.secret { font-family: var(--mono); font-size: 16px; overflow-wrap: anywhere; background: var(--soft); padding: 10px 12px; border-radius: 10px; }
.setup-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.codes { font-family: var(--mono); font-size: 18px; line-height: 1.8; background: var(--soft); border-radius: var(--radius); padding: 18px 24px; columns: 2; margin: 0; }
.btn.ghost-light { background: transparent; color: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- Startseite */
.icon { flex-shrink: 0; vertical-align: middle; }
.btn .icon { margin-left: 8px; }
.btn { gap: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.section-head { display: flex; flex-direction: column; gap: 10px; }

.hero-band {
  background-color: var(--soft);
  background-image: radial-gradient(circle at 1px 1px, #d5dbe8 1px, transparent 0);
  background-size: 22px 22px;
  padding: 48px 0 28px;
  overflow: hidden;
}
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-grid .hero-text { flex: 1 1 460px; }
.hero-visual { flex: 1 1 360px; margin: 0; position: relative; display: flex; justify-content: center; padding: 28px 0 8px; }
.preview-card { width: 100%; max-width: 380px; background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(22,33,62,.06), 0 18px 40px -12px rgba(22,33,62,.25); transform: rotate(-1.5deg); }
.preview-head { display: flex; align-items: center; gap: 16px; }
.preview-title { font-family: var(--display); font-weight: 800; font-size: 22px; }
.preview-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.preview-rows li { display: flex; align-items: center; gap: 10px; }
.preview-rows li.fix { padding: 8px 10px; margin: 0 -10px; border-radius: 12px; background: var(--fail-soft); }
.dot { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dot.ok { background: var(--ok-soft); color: var(--ok); }
.dot.fail { background: #fff; color: var(--fail); }
.gain-chip { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.preview-fix { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.mail-chip { position: absolute; top: 0; left: 4%; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(22,33,62,.5); transform: rotate(-4deg); }

.trust { list-style: none; margin: 36px 0 0; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.trust .icon { color: var(--accent); }

.process li { position: relative; }
.step-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.process li::after { content: counter(schritt); position: absolute; top: 18px; right: 20px; font-family: var(--display); font-size: 34px; font-weight: 800; color: #eef1f7; line-height: 1; }

.area { background: #fff; }
.area-head { align-items: center; }
.area-head h3 { flex: 1; }
.area-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; flex-shrink: 0; }
.area-icon.light { background: rgba(255,255,255,.12); }
.area-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.area-cta p { color: #d5dcea; }

.fact { gap: 10px; }
.fact-icon { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--accent); }
.cta-sub { color: #d5dcea; font-size: 17px; }
.cta .cta-actions { display: flex; justify-content: flex-end; }

@media (max-width: 640px) {
  .hero-band { padding-top: 32px; }
  .preview-card { transform: none; }
  .mail-chip { left: 0; }
  .trust { justify-content: flex-start; }
  .cta .cta-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .preview-card { animation: schweben 6s ease-in-out infinite; }
  @keyframes schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}
