/* Auftakt – Website-Stylesheet
   Farben aus SPEC 9.2 (accent #0F766E / #2DD4BF), Systemschrift wie in der App.
   Keine externen Schriften, keine Tracker, kein Framework. */

:root {
  --accent: #0F766E;
  --accent-strong: #0B5F59;
  --accent-soft: #CCFBF1;
  --on-accent: #FFFFFF;
  --bg: #F2F2F7;
  --bg-elevated: #FFFFFF;
  --text: #1C1C1E;
  --text-2: #6E6E73;
  --line: #E5E5EA;
  --ring-track: rgba(15, 118, 110, .18);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(15, 50, 48, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2DD4BF;
    --accent-strong: #5EEAD4;
    --accent-soft: #134E4A;
    --on-accent: #0B1215;
    --bg: #000000;
    --bg-elevated: #1C1C1E;
    --text: #F2F2F7;
    --text-2: #AEAEB2;
    --line: #2C2C2E;
    --ring-track: rgba(45, 212, 191, .18);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg-elevated); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--on-accent); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--font-round); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--text-2); max-width: 38ch; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; }
.alt { background: var(--bg-elevated); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .95rem; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.chips li { background: var(--accent-soft); color: var(--text); font-size: .88rem; padding: .35rem .8rem; border-radius: 999px; }

/* ---------- Klickbarer Prototyp (assets/demo.js) – neutraler Rahmen, kein Apple-Geräterahmen ---------- */
.demo-wrap { display: grid; justify-items: center; gap: .9rem; }
.phone {
  position: relative; width: min(350px, 100%); height: 740px; margin-inline: auto;
  background: var(--bg); border-radius: 48px; overflow: hidden;
  box-shadow: 0 0 0 10px var(--bg-elevated), 0 0 0 11px var(--line), 0 30px 60px rgba(15, 50, 48, .18);
  display: flex; flex-direction: column; isolation: isolate;
  --c-teal: #0D9488; --c-blue: #2563EB; --c-purple: #9333EA; --c-orange: #EA580C; --c-green: #16A34A;
  --on-color: #FFFFFF; --seal-check: #FFFFFF; --d-card: #FFFFFF; --d-today: #CCFBF1;
}
@media (prefers-color-scheme: dark) {
  .phone { --c-teal: #2DD4BF; --c-blue: #60A5FA; --c-purple: #C084FC; --c-orange: #FB923C; --c-green: #4ADE80; --on-color: #0B1215; --seal-check: #0B1215; --d-card: #1C1C1E; --d-today: #134E4A; }
}
.phone button { font-family: var(--font); color: inherit; }
.phone noscript img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-teal { --c: var(--c-teal); } .c-blue { --c: var(--c-blue); } .c-purple { --c: var(--c-purple); } .c-orange { --c: var(--c-orange); } .c-green { --c: var(--c-green); }

.d-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 30px 4px; font-weight: 650; font-size: .9rem; flex: 0 0 auto; }
.d-bars { display: flex; gap: 2px; align-items: flex-end; }
.d-bars i { width: 3px; background: var(--text); border-radius: 1px; }
.d-bars i:nth-child(1) { height: 4px } .d-bars i:nth-child(2) { height: 6px } .d-bars i:nth-child(3) { height: 8px } .d-bars i:nth-child(4) { height: 10px }
.d-view { flex: 1; min-height: 0; display: flex; }
.d-scroll { flex: 1; overflow-y: auto; padding: 0 14px 100px; scrollbar-width: none; overscroll-behavior: contain; }
.d-scroll::-webkit-scrollbar { display: none; }
.d-top { display: flex; justify-content: flex-end; padding-top: 4px; min-height: 38px; }
.d-plus { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--d-card); color: var(--accent) !important; font-size: 1.4rem; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.08); cursor: pointer; }
.d-title { font-family: var(--font-round); font-weight: 800; font-size: 1.75rem; margin: 2px 2px 10px; letter-spacing: -.02em; outline: none; }
.d-muted { color: var(--text-2); font-size: .78rem; }
.d-ringbox { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; }
.d-ringsvg { transform: rotate(-90deg); display: block; }
.d-ringsvg circle { fill: none; stroke-linecap: round; }
.d-ringsvg .trk { stroke: var(--ring-track); }
.d-ringsvg .val { stroke: var(--accent); transition: stroke-dasharray .5s ease; }
.d-ringsvg.habit .trk { stroke: color-mix(in srgb, var(--c) 20%, transparent); }
.d-ringsvg.habit .val { stroke: var(--c); }
.d-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-round); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.d-num.big { font-size: 1.8rem; } .d-num.huge { font-size: 2.9rem; }

/* Woche */
.d-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 2px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 14px; width: 100%; }
.d-headtext strong { display: block; font-size: .95rem; }
.d-headtext span { font-size: .72rem; color: var(--text-2); }
.d-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 12px; }
.d-day { display: grid; justify-items: center; gap: 1px; padding: 5px 0 6px; border-radius: 12px; font-size: .66rem; color: var(--text-2); border: 0; background: none; }
button.d-day { cursor: pointer; }
.d-day b { font-size: .82rem; color: var(--text); font-weight: 500; }
.d-day svg { width: 24px; height: 24px; transform: rotate(-90deg); margin-top: 2px; }
.d-day circle { fill: none; stroke-linecap: round; }
.d-day .trk { stroke: var(--ring-track); stroke-width: 2.6; }
.d-day .val { stroke: var(--accent); stroke-width: 2.6; transition: stroke-dasharray .4s ease; }
.d-day.today { color: var(--accent); font-weight: 700; }
.d-day.today b { color: var(--accent); font-weight: 750; }
.d-day.sel { background: var(--d-today); }
.d-day.future { opacity: .4; }
.d-banner { display: flex; align-items: center; gap: 10px; background: var(--d-today); border-radius: 16px; padding: 10px 10px 10px 14px; margin: 4px 0 8px; font-size: .8rem; }
.d-banner svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.d-pill { border: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent) !important; font: 650 .78rem var(--font); padding: 6px 12px; cursor: pointer; flex: 0 0 auto; margin-left: auto; }
.d-sec { display: flex; justify-content: space-between; align-items: center; margin: 14px 4px 7px; padding: 0; border: 0; background: none; font: 600 .76rem/1.3 var(--font); color: var(--text-2) !important; text-align: left; }
.d-sec.in { margin: 4px 0 8px; }
button.d-sec { cursor: pointer; width: calc(100% - 8px); }
button.d-sec span { font-size: .9rem; }
.d-card { display: flex; align-items: center; gap: 10px; background: var(--d-card); border-radius: 18px; padding: 10px 10px 10px 12px; margin-bottom: 7px; }
.d-main { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; border-radius: 12px; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.d-icon { --icon-bg: var(--c); flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--c); color: var(--on-color); display: grid; place-items: center; }
.d-icon svg { width: 22px; height: 22px; }
.d-icon.sm { width: 30px; height: 30px; border-radius: 8px; } .d-icon.sm svg { width: 18px; height: 18px; }
.d-icon.big { width: 52px; height: 52px; border-radius: 14px; } .d-icon.big svg { width: 30px; height: 30px; }
.d-text { display: grid; min-width: 0; }
.d-text strong { font-size: .93rem; font-weight: 650; }
.d-st { font-size: .78rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.d-st .seal { width: 14px; height: 14px; color: var(--c); flex: 0 0 auto; }
.d-hint { font-size: .74rem; color: var(--accent); margin-top: 2px; }
.d-check { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--c); background: transparent; color: var(--on-color) !important; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease; }
.d-check svg { width: 20px; height: 20px; }
.d-check.s-done { background: var(--c); }
.d-check.s-mini { background: color-mix(in srgb, var(--c) 40%, transparent); }
.d-check .half { color: var(--text); font-weight: 750; font-size: .85rem; }
.d-check.s-skipped { border-style: dashed; border-color: var(--text-2); }
.d-card.is-skipped .d-icon { opacity: .45; }
.d-check.pop { animation: d-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes d-pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

/* Gruppen, Zeilen, Knöpfe */
.d-group { background: var(--d-card); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.d-group.flush { padding: 0 14px; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; font: 400 .86rem var(--font); text-decoration: none; color: var(--text); }
.d-row:last-child { border-bottom: 0; }
.d-row.link { color: var(--accent) !important; cursor: pointer; }
.d-rowtext { display: grid; } .d-rowtext small { color: var(--text-2); font-size: .74rem; }
.d-link { border: 0; background: none; color: var(--accent) !important; font: 500 .86rem var(--font); cursor: pointer; padding: 6px 2px; }
.d-link.b { font-weight: 700; } .d-link.center { display: block; margin: 4px auto 0; }
.d-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; font: 650 .85rem var(--font); padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); white-space: nowrap; }
.d-locked > :not(.d-btn):not(.d-sec) { filter: blur(5px); opacity: .7; }
.d-switch { width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.d-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.d-switch[aria-checked="true"] { background: #34C759; } .d-switch[aria-checked="true"] i { transform: translateX(20px); }
.d-foot { font-size: .72rem; color: var(--text-2); margin: 8px 2px 0; }

/* Detail */
.d-nav { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.d-back { border: 0; background: none; color: var(--accent) !important; font: 500 .9rem var(--font); cursor: pointer; padding: 6px 0; }
.d-dhead { display: flex; align-items: center; gap: 12px; margin: 6px 2px 12px; }
.d-dname { font-family: var(--font-round); font-size: 1.45rem; font-weight: 800; margin: 0; outline: none; }
.d-dring { display: flex; align-items: center; gap: 14px; background: var(--d-card); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.d-dring strong { display: block; font-size: 1rem; }
.d-calhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .88rem; }
.d-arrow { border: 0; background: none; color: var(--accent) !important; font-size: 1.3rem; width: 36px; height: 32px; cursor: pointer; border-radius: 8px; }
.d-arrow:disabled { opacity: .25; cursor: default; }
.d-cal-wd, .d-cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.d-cal-wd span { font-size: .66rem; color: var(--text-2); padding-bottom: 4px; }
.d-cal { row-gap: 4px; }
.d-cal-d { position: relative; display: grid; justify-items: center; border: 0; background: none; padding: 1px 0 9px; cursor: pointer; }
.d-cal-d.off { cursor: default; opacity: .35; }
.d-cal-c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; position: relative; }
.d-cal-c b { font-weight: 500; position: relative; }
.d-cal-c.s-done { background: var(--c); color: var(--on-color); }
.d-cal-c.s-mini { background: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.d-cal-c.s-skipped { box-shadow: none; border: 1.5px dashed var(--text-2); }
.d-cal-c.s-paused { background: var(--line); color: var(--text-2); }
.d-cal-c.s-paused svg { position: absolute; width: 10px; height: 10px; top: 2px; opacity: .7; }
.d-cal-c.s-empty { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); }
.d-cal-d.today .d-cal-c b { font-weight: 800; }
.d-cal-d.today::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.d-cal-d i { position: absolute; bottom: -2px; font-style: normal; font-size: .6rem; font-weight: 700; }
.d-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-stats .d-group { display: grid; }
.d-stats b { font-family: var(--font-round); font-size: 1.5rem; }
.d-bars7 { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding: 0 4px; }
.d-bars7 span { flex: 1; background: var(--c); border-radius: 4px 4px 0 0; }

/* Fortschritt */
.d-bigring { display: grid; justify-items: center; gap: 6px; margin: 4px 0 8px; }
.d-bigring strong { font-size: 1.05rem; }
.d-explain { font-size: .78rem; color: var(--text-2); text-align: center; margin: 0 8px 4px; }
.d-prow { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; cursor: pointer; text-align: left; }
.d-prow:last-child { border-bottom: 0; }
.d-pname { flex: 1; display: grid; gap: 5px; font-size: .84rem; font-weight: 600; }
.d-pbar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.d-pbar i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width .4s ease; }
.d-prow b { font-family: var(--font-round); font-size: .95rem; min-width: 2ch; text-align: right; }
.d-grid4 { display: grid; gap: 7px; }
.d-grow > span { font-size: .7rem; color: var(--text-2); }
.d-grow > div { display: grid; grid-template-columns: repeat(28, 1fr); gap: 2px; margin-top: 2px; }
.d-grow i { aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.d-grow i.s-done { background: var(--c); }
.d-grow i.s-mini { background: color-mix(in srgb, var(--c) 45%, transparent); }
.d-grow i.s-skipped { background: transparent; box-shadow: inset 0 0 0 1px var(--text-2); }
.d-grow i.s-paused { background: var(--line); }
.d-year { display: grid; grid-template-columns: repeat(20, 1fr); grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 2px; height: 96px; }
.d-year i { border-radius: 2px; background: var(--accent); }

/* Tab-Leiste */
.d-tabs { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--d-card) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.08); z-index: 3; }
.d-tabs button { display: grid; justify-items: center; gap: 1px; border: 0; background: none; border-radius: 999px; padding: 5px 12px; font-size: .64rem; font-weight: 600; cursor: pointer; min-width: 78px; }
.d-tabs svg { width: 20px; height: 20px; }
.d-tabs button.on { background: var(--bg); color: var(--accent) !important; }

/* Menü */
.phone.menu-open .d-view { filter: blur(3px) saturate(.8); }
.d-menu { position: absolute; left: 50%; transform: translateX(-50%); width: 74%; z-index: 6; background: color-mix(in srgb, var(--d-card) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 18px; padding: 6px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.22); }
.d-menu-title { margin: 6px 12px 4px; font-size: .75rem; color: var(--text-2); }
.d-menu button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 12px; font: 500 .9rem var(--font); cursor: pointer; }
.d-menu button:hover, .d-menu button:focus-visible { background: var(--bg); outline: none; }
.d-menu .tick { width: 1.1em; color: var(--accent); font-weight: 700; }

/* Sheets */
.d-sheet-wrap { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.28); display: flex; align-items: flex-end; }
.d-sheet { position: relative; width: 100%; max-height: 92%; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 18px 16px 28px; animation: d-up .28s ease; scrollbar-width: none; }
@keyframes d-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.d-sheet-title { font-family: var(--font-round); font-size: 1.35rem; font-weight: 800; margin: 18px 0 10px; text-align: center; }
.d-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; font-size: .8rem; }
.d-benefits { margin: 0 0 12px; padding-left: 1.2rem; font-size: .82rem; }
.d-benefits li { margin-bottom: 3px; }
.d-plans { display: grid; gap: 8px; margin-bottom: 12px; }
.d-plan { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 11px 13px; border-radius: 14px; border: 0; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: left; }
.d-plan[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--accent); }
.d-plan span:first-child { display: grid; font-size: .9rem; }
.d-plan small { font-size: .7rem; color: var(--text-2); }
.d-price { display: grid; justify-items: end; font-weight: 750; font-size: .9rem; }
.d-price em { font-style: normal; font-size: .66rem; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 2px 7px; border-radius: 999px; margin-bottom: 3px; }
.d-cta { display: block; text-align: center; background: var(--accent); color: var(--on-accent) !important; text-decoration: none; font-weight: 700; padding: 13px; border-radius: 14px; font-size: .95rem; }
.d-legal { font-size: .66rem; color: var(--text-2); text-align: center; margin: 8px 4px 0; }
.d-legal a { color: inherit; }
.d-sheet-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .92rem; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.d-chip { border: 0; border-radius: 999px; padding: 8px 12px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 .8rem var(--font); cursor: pointer; }
.d-chip[aria-checked="true"] { background: var(--d-today); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent) !important; font-weight: 650; }

/* Toast */
.d-toast { position: absolute; left: 14px; right: 14px; bottom: 78px; margin: 0; z-index: 9; background: color-mix(in srgb, var(--text) 88%, transparent); color: var(--bg); font-size: .78rem; padding: 10px 14px; border-radius: 14px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.d-toast.show { opacity: 1; transform: none; }

/* Unter dem Handy */
.demo-hint { margin: .4rem 0 0; font-size: .9rem; color: var(--text-2); text-align: center; max-width: 36ch; }
.demo-compare { margin: 0; font-size: .95rem; text-align: center; max-width: 36ch; background: var(--bg-elevated); border-radius: var(--radius-sm); padding: .8rem 1rem; box-shadow: var(--shadow); }
.demo-compare strong { color: var(--accent); }
.link-btn { border: 0; background: none; color: var(--accent); font: 500 .9rem var(--font); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; padding: .3rem; }
@media (prefers-reduced-motion: reduce) {
  .d-ringsvg .val, .d-day .val, .d-check, .d-pbar i, .d-switch, .d-switch i, .d-toast { transition: none; }
  .d-check.pop, .d-sheet { animation: none; }
}

/* ---------- Facts (GEO: zitierfähige Kurzfakten) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.facts div { background: var(--bg-elevated); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.facts dt { font-size: .85rem; color: var(--text-2); }
.facts dd { margin: .2rem 0 0; font-family: var(--font-round); font-weight: 750; font-size: 1.15rem; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--bg-elevated); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.alt .card { background: var(--bg); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.card .ico svg { width: 24px; height: 24px; }

/* ---------- Momentum explainer ---------- */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .explain { grid-template-columns: 1fr; } }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.versus .card { text-align: center; }
.versus .big { font-family: var(--font-round); font-size: 3.4rem; font-weight: 800; line-height: 1; margin: .4rem 0; }
.versus .bad .big { color: var(--text-2); }
.versus .good .big { color: var(--accent); }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; overflow-x: auto; }
.alt .formula { background: var(--bg); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: .9rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-elevated); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; padding: 1rem 1.2rem 0; font-weight: 650; }
th, td { text-align: left; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .85rem; color: var(--text-2); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.yes { color: var(--accent); font-weight: 650; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 1.6rem; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.price { font-family: var(--font-round); font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin: .3rem 0 .1rem; }
.price small { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.price s { font-size: 1.05rem; color: var(--text-2); font-weight: 600; margin-left: .3rem; white-space: nowrap; }
.price { white-space: nowrap; }
.plan ul { padding-left: 1.1rem; margin: 1rem 0 0; }
.plan li { margin-bottom: .35rem; }
.legal-note { margin-top: 1.5rem; font-size: .9rem; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 0 1.25rem; box-shadow: var(--shadow); }
.alt .faq details { background: var(--bg); box-shadow: none; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.1rem; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: var(--on-accent); }
.cta-band p { color: color-mix(in srgb, var(--on-accent) 85%, transparent); }
.cta-band .btn { background: var(--on-accent); color: var(--accent); }
.cta-band .btn:hover { color: var(--accent); }

/* ---------- Document pages (Support, Datenschutz, Impressum, App-Store-Infos) ---------- */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc h2 { font-size: 1.55rem; margin-top: 2.6rem; }
.doc h3 { margin-top: 1.8rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: .35rem; }
.doc address { font-style: normal; }
.breadcrumb { font-size: .88rem; color: var(--text-2); margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }
.toc { background: var(--bg-elevated); border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow); margin: 1.5rem 0 2rem; }
.toc ol { margin: .4rem 0 0; }
.info-list { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0; margin: 1rem 0; background: var(--bg-elevated); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.info-list dt, .info-list dd { margin: 0; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 600; color: var(--text-2); font-size: .95rem; }
.info-list dt:last-of-type, .info-list dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .info-list { grid-template-columns: 1fr; } .info-list dt { border-bottom: 0; padding-bottom: 0; } }
.callout { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.callout p:last-child { margin-bottom: 0; }
.updated { font-size: .9rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .93rem; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: .8rem; font-family: var(--font); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Gründerpreis wird nach Ablauf per Skript ausgeblendet */
[hidden] { display: none !important; }
