/* Tiny Gains: Farben wie in der App. Bewusst ohne externe Schriften, damit keine Daten an Dritte gehen. */
:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --ink: #14212b;
  --muted: #5b6770;
  --line: #ecdcd2;
  --accent: #ff5a1f;
  --accent-ink: #c2410c;
  --accent-soft: #ffe6dc;
  --good: #1f8a5b;
  --joker: #6b4fd8;
  --mark: #fff1a8;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181f;
    --surface: #172028;
    --ink: #e8eef2;
    --muted: #9aa7b1;
    --line: #2a3640;
    --accent: #ff7a45;
    --accent-ink: #ff9a70;
    --accent-soft: #3a2219;
    --good: #3fbf87;
    --joker: #a08cff;
    --mark: #5a4a00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Kopf und Fuß */
header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand svg { width: 32px; height: 32px; color: var(--accent); flex: none; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 18px; }
header.site nav a:hover { color: var(--accent); }

footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site nav a { color: var(--muted); margin-right: 18px; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; font-weight: 850; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34ch; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.badge small { font-weight: 500; opacity: .75; }

/* Handy-Vorschau im Stil der App: Gehäuse mit echten Proportionen (ca. 9:19,5) */
.phone { position: relative; justify-self: center; width: 100%; max-width: 290px; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #3a4550, #0b1116 40%, #1c252d); box-shadow: 0 0 0 1.5px #4a5661 inset, 0 30px 70px -28px rgba(20,33,43,.55); }
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #2a343d; }
.phone::before { top: 110px; height: 34px; }
.phone::after { top: 168px; height: 64px; }
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 38px; overflow: hidden; background: #172028; color: #e8eef2; display: flex; flex-direction: column; }
.phone .statusbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 22px 0; font-size: 12px; font-weight: 700; }
.phone .camera { width: 12px; height: 12px; border-radius: 50%; background: #05080a; box-shadow: 0 0 0 2px #0e151b; }
.phone .sys { justify-self: end; display: flex; gap: 4px; }
.phone .sys svg { width: 13px; height: 13px; }
.phone .content { flex: 1; padding: 18px 16px 10px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.phone .content > * { flex-shrink: 0; }
.phone .date { font-size: 10px; letter-spacing: .12em; color: #9aa7b1; font-weight: 600; }
.phone .hello { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.phone .hello b { font-size: 22px; font-weight: 850; }
.phone .streak { color: #ff7a45; font-weight: 850; font-size: 20px; display: flex; align-items: center; gap: 4px; }
.phone .streak svg { width: 17px; height: 17px; }
.phone .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.phone .week > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: #9aa7b1; }
.phone .dot { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #2f3b45; display: grid; place-items: center; font-size: 10px; font-weight: 800; font-style: normal; color: #e8eef2; }
.phone .dot.done { background: #1f8a5b; border-color: #1f8a5b; color: #fff; }
.phone .dot.joker { background: #272046; }
.phone .dot.today { border-color: #ff7a45; }
.phone .chips { display: flex; gap: 6px; overflow: hidden; margin: 0 -16px 10px 0; white-space: nowrap; }
.phone .chips span, .phone .sets span { border: 1px solid #3a4651; border-radius: 8px; padding: 5px 9px; font-size: 11px; font-weight: 600; color: #c9d3da; }
.phone .chips .on { background: #3a2219; border-color: #3a2219; color: #ffd9c9; }
.phone .card { background: #3a2219; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.phone .card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.phone .card small { color: #f3d9cf; font-size: 12px; }
.phone .card .big { font-size: 40px; font-weight: 850; line-height: 1; color: #fff3ec; }
.phone .card .big span { font-size: 20px; font-weight: 700; }
.phone .figure { width: 80px; height: 74px; color: #ffd9c9; margin: -2px -4px -6px 0; }
.phone .sets { display: flex; gap: 6px; }
.phone .sets span { border-color: #5a3a2d; color: #f3d9cf; }
.phone .sets .on { background: #ff7a45; border-color: #ff7a45; color: #fff; }
.phone .card .btn { margin-top: 2px; background: #ff7a45; color: #fff; text-align: center; border-radius: 999px; padding: 9px; font-weight: 700; font-size: 13px; }
.phone .jcard { margin-top: 10px; border: 1.5px solid #2f3b45; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.phone .jcard small { color: #9aa7b1; font-size: 11px; }
.phone .jtop { font-weight: 700; font-size: 13px; }
.phone .bar { height: 6px; border-radius: 999px; background: #2f3b45; overflow: hidden; }
.phone .bar span { display: block; width: 71%; height: 100%; background: #a08cff; border-radius: 999px; }
.phone .tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #1d2730; padding: 8px 6px 4px; font-size: 10px; font-weight: 600; color: #93a2ae; }
.phone .tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.phone .tabs svg { width: 38px; height: 24px; padding: 3px 9px; border-radius: 999px; }
.phone .tabs .on { color: #e8eef2; }
.phone .tabs .on svg { background: #3a2219; color: #ff7a45; }
.phone .gesture { background: #1d2730; padding: 6px 0 9px; }
.phone .gesture::before { content: ""; display: block; width: 92px; height: 4px; margin: 0 auto; border-radius: 999px; background: #e8eef2; opacity: .55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); font-size: 20px; }
.feature .icon { margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.privacy-note { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.privacy-note p { margin: 0; color: var(--muted); }
.privacy-note strong { color: var(--ink); }

/* Rechtstexte */
.legal h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 24px 0 6px; font-weight: 850; }
.legal .stand { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 8px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .summary { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; }
.legal .summary ul { margin: 0; }
.legal address { font-style: normal; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.legal .toc ol { margin: 0; padding-left: 20px; }

/* Platzhalter, die vor der Veröffentlichung ersetzt werden müssen */
.todo { background: var(--mark); padding: 0 4px; border-radius: 4px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .features { grid-template-columns: 1fr; }
  header.site nav a { margin-left: 12px; font-size: 14px; }
}
