/* WhyMacro – Landingpage. Farben und Schrift wie im Markenblatt (Obsidian: 05 Marke, seit 6.10. WhyMacro).
   Fürs Handy zuerst gebaut, ab 640 / 960 px breiter. Hell ist Standard, dunkel per Knopf (data-theme). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f8; --card: #ffffff; --fg: #14171f; --mut: #667085; --line: #e4e7ec;
  --acc: #2f5bea; --acc-hover: #2449c4; --acc-fg: #ffffff; --dot: #cfd4dc; --chip: #eef1f6; --soft: #eaf0ff;
  --head: rgba(247, 247, 248, .86); --shadow: 0 20px 50px rgba(20, 23, 31, .10);
  --band: #14171f; --band-fg: #f7f7f8; --band-mut: #c4cad6; --band-line: #3a4152; --band-input: #1f2430;
  --band-btn: #7c9cff; --band-btn-fg: #0f1218; --ok: #12805c; --err: #c0362c; --focus: #2f5bea;
  --head-font: "Schibsted Grotesk", system-ui, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1218; --card: #181c25; --fg: #e8ebf1; --mut: #98a2b3; --line: #2a3040;
  --acc: #7c9cff; --acc-hover: #9cb3ff; --acc-fg: #0f1218; --dot: #262c3a; --chip: #232837; --soft: #1c2440;
  --head: rgba(15, 18, 24, .86); --shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --band: #e8ebf1; --band-fg: #0f1218; --band-mut: #4a5262; --band-line: #c9ced8; --band-input: #ffffff;
  --band-btn: #2f5bea; --band-btn-fg: #ffffff; --ok: #4cc38a; --err: #ff8a80; --focus: #7c9cff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--fg);
  font: 16px/1.55 system-ui, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head-font); letter-spacing: -0.02em; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

[hidden] { display: none !important; }
.sale-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.header-login { padding: 0 12px; font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--acc); color: var(--acc-fg); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---------- Bausteine ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 500; }
.badge { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 600; }
.badge-pro { background: var(--acc); color: var(--acc-fg); font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--acc); letter-spacing: .06em; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--mut); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); color: var(--acc-fg); }
.btn-primary:hover { background: var(--acc-hover); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--mut); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46em; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.h2 { font-weight: 800; font-size: clamp(28px, 6.4vw, 42px); line-height: 1.1; }
.lead { color: var(--mut); font-size: 17px; }
@media (min-width: 640px) { .lead { font-size: 18px; } }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.tile p { color: var(--mut); }
.tile-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--acc); display: grid; place-items: center; margin-bottom: 6px; }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-no { width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: var(--acc-fg); display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--head); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo { height: 28px; width: auto; }
@media (min-width: 640px) { .logo { height: 30px; } }
.logo-frame { fill: none; stroke: var(--fg); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: var(--acc); }
.logo-light { fill: var(--mut); }
.logo-bold { fill: var(--fg); }
.nav { display: none; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--chip); }
@media (min-width: 900px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.icon-btn:hover { border-color: var(--mut); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.no-js .theme-toggle { display: none; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 56px; }
@media (min-width: 960px) { .hero { padding: 72px 0 80px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .chip { align-self: flex-start; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 10.5vw, 64px); line-height: 1.03; letter-spacing: -0.03em; }
.hero .lead { max-width: 34em; }

.signup { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .signup-row { flex-direction: row; } }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-size: 16px;
}
.signup input[type="email"]::placeholder { color: var(--mut); opacity: 1; }
.signup input[type="email"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.signup input[aria-invalid="true"] { border-color: var(--err); }
.signup .btn { min-height: 52px; }
.signup-status { font-size: 15px; font-weight: 600; min-height: 0; }
.signup-status:empty { display: none; }
.signup-status.is-ok { color: var(--ok); }
.signup-status.is-err { color: var(--err); }
.signup.is-done .signup-row { display: none; }
.signup-done { display: none; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.signup.is-done .signup-done { display: block; }
.signup-done strong { display: block; margin-bottom: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.hero-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--mut); max-width: 560px; }
.founder { display: flex; align-items: flex-start; gap: 8px; color: var(--fg); font-weight: 600; }
.founder .pulse { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--soft); }
.fine a { color: inherit; }

/* Beispiel-Karte im Dashboard-Look */
.newscard { box-shadow: var(--shadow); border-radius: 18px; overflow: hidden; }
.newscard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.newscard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.newscard-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.newscard-tags span { padding: 3px 10px; border-radius: 999px; background: var(--chip); }
.newscard-title { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; font-size: 18px; font-weight: 700; line-height: 1.35; }
.info-dot { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: var(--acc-fg); display: grid; place-items: center; font: italic 800 15px/1 Georgia, serif; }
.explain { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.explain-title { font-size: 12px; font-weight: 800; color: var(--acc); letter-spacing: .06em; text-transform: uppercase; }
.explain p { font-size: 15px; }
.newscard-foot { font-size: 13px; color: var(--mut); }

/* ---------- Medien im Browser-Rahmen ---------- */
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--mut); }
.frame-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.frame-media video, .frame-media img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { margin-top: 12px; font-size: 14px; color: var(--mut); text-align: center; }
.demo { margin: 32px 0 0; }
@media (min-width: 960px) { .demo { margin-top: 48px; max-width: 920px; margin-left: auto; margin-right: auto; } }

/* ---------- Produkt-Rundgang ---------- */
.tour { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 960px) { .tour { gap: 72px; } }
.tour-row { display: grid; gap: 22px; align-items: center; }
@media (min-width: 960px) {
  .tour-row { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .tour-row.flip { grid-template-columns: 1.2fr .8fr; }
  .tour-row.flip .tour-text { order: 2; }
}
.tour-text { display: flex; flex-direction: column; gap: 10px; }
.tour-text h3 { font-size: 24px; line-height: 1.2; }
.tour-text p { color: var(--mut); }

/* ---------- Bilanz ---------- */
.bilanz { border: 2px solid var(--acc); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 720px) { .bilanz { padding: 40px; } }
.stats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--head-font); font-size: 28px; font-weight: 800; line-height: 1.15; }
@media (min-width: 560px) { .stat { padding: 18px; gap: 4px; } .stat-value { font-size: 34px; } }
.stat-label { color: var(--mut); font-size: 14px; }
.lesson { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lesson-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.lesson-grid { display: grid; gap: 14px; grid-template-columns: 1fr; font-size: 15px; }
@media (min-width: 720px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } }
.lesson-grid dt { color: var(--mut); font-size: 13px; }
.lesson-grid dd { margin: 2px 0 0; }
.lesson-grid div { min-width: 0; }

/* ---------- Für wen ---------- */
.fit { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.fit h2 { font-size: 26px; font-weight: 800; }
.fit ul, .plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fit li, .plan li { display: flex; gap: 10px; align-items: flex-start; }
.ic { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-yes { stroke: var(--acc); }
.ic-no { stroke: var(--mut); }

/* ---------- Preise ---------- */
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); margin: 0 auto 26px; }
.billing button { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
@media (min-width: 420px) { .billing button { padding: 0 16px; font-size: 15px; } }
.billing button[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 700; }
.no-js .billing { display: none; }
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 940px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 26px; border-radius: 20px; display: flex; flex-direction: column; gap: 16px; }
.plan-pro { border: 2px solid var(--acc); }
.plan-name { font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-value { font-family: var(--head-font); font-size: 44px; font-weight: 800; line-height: 1; }
.price-note { color: var(--mut); font-size: 14px; }
.founder-box { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-fine { max-width: 46em; margin: 22px auto 0; text-align: center; font-size: 14px; color: var(--mut); }
.center-col { display: flex; flex-direction: column; align-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 18px; color: var(--mut); }
.faq details p a { color: var(--fg); }

/* ---------- Schluss-Aufruf ---------- */
.cta-band { background: var(--band); color: var(--band-fg); border-radius: 24px; padding: 28px 22px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 720px) { .cta-band { padding: 56px; } }
.cta-band .h2 { max-width: 18em; }
.cta-band .lead { color: var(--band-mut); max-width: 36em; }
.cta-band .signup input[type="email"] { background: var(--band-input); border-color: var(--band-line); color: var(--band-fg); }
.cta-band .signup input[type="email"]::placeholder { color: var(--band-mut); }
.cta-band .btn-primary { background: var(--band-btn); color: var(--band-btn-fg); }
.cta-band .btn-primary:hover { filter: brightness(1.08); }
.cta-band .signup-done { background: var(--band-input); color: var(--band-fg); }
.cta-band .signup-status.is-err { color: #ff8a80; }
:root[data-theme="dark"] .cta-band .signup-status.is-err { color: #c0362c; }
.cta-band .fine { font-size: 14px; color: var(--band-mut); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 36px 0 40px; margin-top: 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-brand .logo { height: 26px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { font-size: 13px; color: var(--mut); max-width: 62em; }

/* ---------- Unterseiten (Rechtliches, Warteliste) ---------- */
.page { padding: 40px 0 64px; }
.page-card { max-width: 760px; margin: 0 auto; padding: 24px; }
@media (min-width: 720px) { .page-card { padding: 40px 48px; } }
.page-card h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 800; line-height: 1.1; margin-bottom: 16px;
  hyphens: auto; overflow-wrap: break-word; }  /* lange deutsche Wörter (Leistungsbeschreibung) passen sonst nicht aufs Handy */
.page-card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 28px 0 8px; }
.page-card p, .page-card ul { margin: 0 0 12px; }
.page-card ul { padding-left: 20px; }
.page-card a:not(.btn) { color: var(--acc); }
.page-card .muted { font-size: 14px; }
.page-card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.page-card h4 { font-size: 15px; font-weight: 700; margin: 16px 0 4px; }
/* Rechtstexte der Kanzlei (www/tools/rechtstext.py): lange Titel und Schreiblinien dürfen umbrechen */
.legal-text h1 { font-size: clamp(26px, 5vw, 36px); overflow-wrap: anywhere; }
.legal-text p, .legal-text li { overflow-wrap: anywhere; }
.legal-form { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.legal-form p { margin: 0 0 6px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
/* Kontaktformular */
.contact { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact .page-actions { margin-top: 0; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field abbr { text-decoration: none; color: var(--mut); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px; font-weight: 400;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--err); }
.contact .fine { font-size: 14px; color: var(--mut); }
.contact .fine a { color: inherit; }
.contact-done { margin-top: 24px; }
.contact-done h2 { margin-top: 0; }
.todo { background: #fff4d6; color: #5c4400; padding: 0 4px; border-radius: 4px; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--acc); margin-bottom: 18px; }
.status-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mobile: Knopf unten, sobald das Formular aus dem Bild ist ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; box-shadow: 0 10px 30px rgba(20, 23, 31, .25); transform: translateY(140%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 640px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
.no-js .sticky-cta { display: none; }

/* =====================================================================================================
   Depot-Check und neue Startseite (seit 10.11.2026, Design „Startseite mit Depot-Check“).
   Auswahl-Knöpfe: nicht gewählt = Rand in --edge, gewählt = Blau (Chips) bzw. blauer Rand + heller Grund (Zeilen).
   ===================================================================================================== */
:root { --edge: #98a2b3; --acc-strong: #1f3fae; --ink: #344054; }
:root[data-theme="dark"] { --edge: #5b6577; --acc-strong: #b9c8ff; --ink: #c9d0dc; }

/* ---------- Auswahl-Knöpfe (Startseite und Check) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--edge); background: var(--card); color: var(--fg); font-size: 16px; font-weight: 600; cursor: pointer; }
.pick:hover { border-color: var(--fg); }
.pick[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-fg); }
.pick[aria-pressed="true"]::before, .rowpick[aria-pressed="true"] .box::before {
  content: ""; width: 12px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rowpick { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--edge); background: var(--card); color: var(--fg); text-align: left; cursor: pointer; }
.rowpick:hover, .colpick:hover { border-color: var(--fg); }
.rowpick .box { flex: 0 0 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--edge); background: var(--card);
  color: var(--acc-fg); display: inline-flex; align-items: center; justify-content: center; }
.rowtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rowtext b, .colpick b { font-weight: 600; }
.rowtext small, .colpick small { font-size: 14px; color: var(--mut); }
.rowpick[aria-pressed="true"], .colpick[aria-pressed="true"] { border-color: var(--acc); background: var(--soft); }
.rowpick[aria-pressed="true"] .box { background: var(--acc); border-color: var(--acc); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.colpick { display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--edge); background: var(--card); color: var(--fg); text-align: left; cursor: pointer; }
.badge-dark { background: var(--fg); color: var(--bg); border-radius: 6px; font-size: 12px; font-weight: 700; align-self: center; }

/* ---------- Check-Seite ---------- */
.check-wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .check-wrap { padding: 48px 24px 64px; } }
.check-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check-progress i { height: 6px; border-radius: 3px; background: var(--line); }
.check-progress i.on { background: var(--acc); }
.check-card { padding: 20px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .check-card { padding: 32px; } }
.check-step { display: flex; flex-direction: column; gap: 20px; }
.check-head { display: flex; flex-direction: column; gap: 8px; }
.check-head h1 { font-weight: 800; font-size: clamp(26px, 6vw, 32px); line-height: 1.1; letter-spacing: -0.01em; }
.check-head h1:focus { outline: none; }
.check-head p { color: var(--mut); }
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-group h2 { font: 700 16px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.check-note { font-size: 14px; color: var(--mut); }
.check-note a { color: var(--acc); }
.check-sum { margin: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.check-sum div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-sum dt { flex: 0 0 170px; color: var(--mut); }
.check-sum dd { margin: 0; flex: 1 1 260px; font-weight: 600; }
.check-sum dd.acc { color: var(--acc-strong); }
.check-form { display: flex; flex-direction: column; gap: 10px; }
.check-form label { font-size: 15px; font-weight: 700; }
.check-form input[type="email"], .check-form input[type="password"] { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--edge); background: var(--card); font-size: 16px; }
.check-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.check-form input[aria-invalid="true"] { border-color: var(--err); }
.check-form small { font-size: 13px; color: var(--mut); }
.check-formrow { display: flex; flex-wrap: wrap; gap: 10px; }
.check-formrow input { flex: 1 1 240px; width: auto !important; }
.check-formrow .btn, .btn-wide { min-height: 52px; border-radius: 12px; font-size: 17px; }
.btn-wide { width: 100%; margin-top: 6px; }
.check-fine { font-size: 13px; color: var(--mut); }
.check-fine a { color: inherit; }
/* Ausbau 13.11.2026 (P3-2): Ergebnis zum Teilen und geteilte Makro-Woche */
.check-share { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.check-share canvas { width: 100%; max-width: 340px; height: auto; border-radius: 14px; }
.check-shared { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; }
.check-shared h2 { margin: 0; font-size: 20px; }
.check-shared p { margin: 0; }
.check-status { font-size: 15px; font-weight: 600; }
.check-status:empty { display: none; }
.check-status.is-ok { color: var(--ok); }
.check-status.is-err { color: var(--err); }
.check-social { display: flex; flex-direction: column; gap: 10px; }
.check-or { text-align: center; font-size: 14px; color: var(--mut); }
.check-done { padding: 16px 18px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.check-done:focus { outline: none; }
.check-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.check-nav [data-next] { margin-left: auto; padding: 0 28px; }
.check-foot { font-size: 13px; color: var(--mut); text-align: center; }
.check-steplabel { font-size: 14px; color: var(--mut); margin-right: 4px; white-space: nowrap; }

/* ---------- Startseite: Einstieg „Was besitzt du?“ ---------- */
.hero-check { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero-check { grid-template-columns: 1fr 1fr; gap: 40px; } }
.hero-check .hero-copy { gap: 22px; }
.hero-check h1 { font-size: clamp(36px, 9vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.home-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .home-card { padding: 24px; } }
.home-card > h2 { font: 700 17px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.home-card .pick { min-height: 44px; padding: 0 16px; font-size: 15px; }
.home-card .btn-start { align-self: center; min-height: 52px; margin-top: 8px; padding: 0 36px; border-radius: 12px; font-size: 17px; }
.home-card .sub { font-size: 14px; color: var(--mut); text-align: center; }
/* Schalter „Depot-Check“ aus oder kein JavaScript: statt des Checks die Warteliste */
.check-fallback { display: none; flex-direction: column; gap: 14px; }
.no-js .check-fallback, .check-disabled .check-fallback { display: flex; }
.no-js .check-box, .check-disabled .check-box, .no-js [data-check-only], .check-disabled [data-check-only] { display: none; }
.evcard { gap: 4px; }
.evcard-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 12px; }
.evcard-head h2 { font: 700 17px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.evcard-head span, .evcard-foot { font-size: 13px; color: var(--mut); }
.evcard-foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.evempty { padding: 28px 16px; border: 1.5px dashed var(--dot); border-radius: 12px; text-align: center; color: var(--mut); }
:root:not([data-theme="dark"]) .evempty { border-color: #cfd4dc; }
.evrow { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.evdate { flex: 0 0 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 6px 0; text-align: center; }
.evdate span { display: block; font-size: 11px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.evdate b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.evbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.evtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evtime { font-size: 13px; color: var(--mut); }
.evwhy { margin-top: 2px; font-size: 15px; color: var(--ink); }
.lvl { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lvl-3 { background: var(--acc); color: var(--acc-fg); }
.lvl-2 { background: var(--soft); color: var(--acc-strong); }
.lvl-1 { background: var(--chip); color: var(--mut); }
:root:not([data-theme="dark"]) .lvl-1 { color: #475467; }

/* „Neue Regeln für dein Geld“ (seit 22.11.2026): zweite Karte unter den Terminen, jede Zeile klappt auf */
.hero-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rule { border-top: 1px solid var(--line); }
.rule-sum { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; min-height: 56px; padding: 14px 0; }
.rule-sum::-webkit-details-marker { display: none; }
.rule-sum::after { content: ""; grid-column: 2; grid-row: 1 / span 3; width: 9px; height: 9px; margin: 0 4px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.rule[open] > .rule-sum::after { transform: rotate(-135deg) translate(-2px, -2px); }
.rule-sum > * { grid-column: 1; min-width: 0; }
.rule-when { font-size: 13px; color: var(--mut); }
.rule-title { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.rule-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.st { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--chip); color: var(--mut); }
:root:not([data-theme="dark"]) .st { color: #475467; }
.st-good, :root:not([data-theme="dark"]) .st-good { background: #e3f4e8; color: #17603a; }
.st-mid, :root:not([data-theme="dark"]) .st-mid { background: #fdf1cf; color: #6f5000; }
:root[data-theme="dark"] .st-good { background: #15301f; color: #86d9a6; }
:root[data-theme="dark"] .st-mid { background: #382d0d; color: #f0cd6a; }
.rule-body { display: flex; flex-direction: column; gap: 6px; padding: 0 0 16px; font-size: 15px; color: var(--ink); }
.rule-q { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--fg); }
.rule-note { padding: 10px 12px; border-radius: 10px; background: var(--chip); font-size: 14px; }
.rule-src, .rule-links { margin-top: 6px; font-size: 13px; color: var(--mut); overflow-wrap: anywhere; }
.rule-src a, .rule-links a { color: var(--acc-strong); }
.rule-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rule-sep { padding: 14px 0 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.rule-hint { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.no-js [data-rules] { display: none; }

/* ---------- Startseite: weitere Abschnitte ---------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2-home { font-weight: 800; font-size: clamp(28px, 6vw, 38px); line-height: 1.1; letter-spacing: -0.01em; }
.kicker { font-size: 13px; font-weight: 700; color: var(--acc); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.trio > div { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.trio h3 { font: 700 20px/1.3 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.trio p { color: var(--mut); }
.split { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.split.mid { align-items: center; }
.split-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-text .lead { font-size: 17px; }
.split-text ul { margin: 0; padding-left: 20px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.split-card { flex: 1.3 1 320px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .split-card { padding: 24px; } }
.split-card h3 { font: 700 19px/1.3 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.card-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-headrow span, .tiny { font-size: 13px; color: var(--mut); }
.tiny { font-size: 12px; }
.cap { font-size: 13px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
:root:not([data-theme="dark"]) .cap { color: #475467; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row > span:first-child { flex: 0 0 92px; font-size: 14px; color: var(--mut); }
.bar-row.own > span:first-child { color: var(--fg); font-weight: 600; }
.bar-track { flex: 1; height: 14px; border-radius: 4px; background: var(--chip); }
.bar-track i { display: block; height: 14px; border-radius: 4px; background: var(--edge); }
.bar-row.own .bar-track i { background: var(--acc); }
.bar-row > b { flex: 0 0 48px; text-align: right; }
.past { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.past p, .split-card > p { font-size: 15px; color: var(--ink); }
.split-card > p.small { font-size: 14px; color: var(--mut); }
.stat4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.statbox { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.statbox b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.statbox span { display: block; margin-top: 6px; color: var(--mut); }
.lessons2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lessonbox { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lessonbox .evtitle b { font-weight: 700; }
.lessonbox p { color: var(--ink); }
.lessonbox p.learn { color: var(--mut); font-size: 15px; }
.lessonbox p.learn strong { color: var(--fg); }
.lvl-miss { background: var(--fg); color: var(--bg); }
.quiz label { font-size: 14px; font-weight: 600; }
.quiz input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--acc); }
.quiz-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mut); }
.quiz-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quiz-three div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.quiz-three span { display: block; font-size: 12px; color: var(--mut); }
.quiz-three b { font-size: 22px; font-weight: 800; }
.badge-soft { background: var(--soft); color: var(--acc-strong); border-radius: 6px; font-size: 12px; font-weight: 700; }
.plans2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.plans2 .plan ul { list-style: disc; padding-left: 20px; gap: 8px; color: var(--ink); }
.plans2 .plan li { display: list-item; }
.plans2 .plan .btn { margin-top: 0; }
.plans2 .price-value { font-size: 40px; }
.fitrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 12px; }
.fitrow h3 { font: 700 17px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; margin-bottom: 8px; }
.fitrow ul { margin: 0; padding-left: 20px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.final { max-width: 760px; margin: 0 auto; padding: 64px 16px 72px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.final .btn { min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 17px; }
.final p { font-size: 14px; color: var(--mut); }
.stack { display: flex; flex-direction: column; gap: 28px; }
