/* Selfday-Website (#2105, neu in #2433, Konzept docs/selfday-website-konzept.md §6). Hell ist der Standard, ein dunkles Geraet bekommt dunkel
   (prefers-color-scheme, kein Skript). Alle Farbwerte stammen aus packages/ui/src/palette.css (Grund, Karte, Schrift, Akzent, Link) und
   scripts/lib/brand.mjs (Verlauf Cyan -> Blau); scripts/check-site.mjs prueft, dass jede Hex-Farbe hier in einer der beiden Quellen steht.
   Die Schrift Inter liegt unter /fonts, damit die Content-Security-Policy (default-src 'self') nichts von Dritten laden muss.
   Mobil zuerst (eine Spalte), ein Breakpoint bei 768 px. Keine Schatten ausser der Kartenkante. */
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
}
:root {
  color-scheme: light dark;
  --bg: #f5f6f9;
  --card: #ffffff;
  --text: #111113;
  --text2: #45454c;
  --text3: #686871;
  --line: rgba(10, 10, 12, 0.14);
  --a: #06b6d4;
  --b: #2f5bea;
  --link: #2448c9;
  --btn: #111113;
  --on-btn: #fafafa;
  --bezel: #111113;
  --warn: #be400c;
  --wash-a: rgba(6, 182, 212, 0.2);
  --wash-b: rgba(47, 91, 234, 0.14);
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --card: #16161a;
    --text: #fafafa;
    --text2: #cfcfd6;
    --text3: #9c9ca6;
    --line: rgba(255, 255, 255, 0.1);
    --a: #22d3ee;
    --b: #3b6bff;
    --link: #5ee0f2;
    --btn: #fafafa;
    --on-btn: #0a0a0c;
    --bezel: #16161a;
    --warn: #f59e0b;
    --wash-a: rgba(34, 211, 238, 0.14);
    --wash-b: rgba(59, 107, 255, 0.18);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font: 17px/1.55 Inter, -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 340px at 15% 0, var(--wash-a), transparent 70%),
    radial-gradient(120% 340px at 90% 0, var(--wash-b), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 5; background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
/* Schriftzug (#2260, Konzept #2245): Zeichen + Name in Inter 700. Masse aus scripts/lib/brand.mjs (WORDMARK), dort gemessen:
   Zeichen-Durchmesser 1,22 x Hoehe von l/f/d = 0,896 em, Abstand 0,2 em; das Zeichen sitzt mit der Unterkante auf der Grundlinie und
   rutscht um (0,896 - x-Hoehe 0,531) / 2 = 0,182 em nach unten, damit die Mitte seines Kern-Punkts auf halber x-Hoehe liegt. */
.brand { display: inline-flex; align-items: baseline; gap: 0.2em; color: var(--text); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -0.045em; text-decoration: none; }
.brand .mark { flex: none; width: 0.896em; height: 0.896em; transform: translateY(0.182em); }
/* Der Verlauf im Zeichen folgt dem Erscheinungsbild: die SVG traegt die dunklen Stops, CSS ueberschreibt sie (helle Werte in :root). */
.brand stop:first-child { stop-color: var(--a); }
.brand stop:last-child { stop-color: var(--b); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: var(--text2); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav .lang { color: var(--text); font-weight: 600; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 750; }
h2 { font-size: 28px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
h1 em, .feat h2 em, .end h2 em { display: block; }
em { font-style: normal; background: linear-gradient(100deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang='de'] h1 { font-size: clamp(30px, 8.8vw, 44px); }
p { margin: 0; }
.lead { color: var(--text2); margin-top: 14px; max-width: 34em; }

/* Hero: Text, ein Knopf, darunter eine Zeile, dann die App im Geraet, unten angeschnitten. Bei 390 px beginnt das Geraet spaetestens bei 430 px. */
.hero { padding-top: 14px; }
.cta { margin-top: 20px; }
.btn { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font-weight: 650; font-size: 16px; text-decoration: none; }
.btn:hover { opacity: 0.88; }
.cta-note { font-size: 13px; color: var(--text3); text-align: center; margin-top: 10px; }
.qr { display: none; }
.phone { margin: 22px auto 0; width: 78%; max-width: 320px; border: 7px solid var(--bezel); border-bottom: 0; border-radius: 44px 44px 0 0; overflow: hidden; height: 330px; background: var(--bezel); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px 37px 0 0; }
.facts { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.facts li { display: flex; align-items: center; gap: 10px; }
.ic { width: 20px; height: 20px; flex: none; color: var(--text3); }

main > section { padding-top: 56px; }
main > .hero { padding-top: 14px; }
.feat + .feat { margin-top: 44px; }
.feat p { color: var(--text2); margin-top: 10px; max-width: 30em; }
.shot { margin-top: 18px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--card); height: 400px; -webkit-mask-image: linear-gradient(black 78%, transparent); mask-image: linear-gradient(black 78%, transparent); }
.shot img { display: block; width: 100%; height: auto; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.tile { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; padding: 14px; }
.tile p { font-size: 13px; line-height: 1.4; color: var(--text2); margin-top: 4px; }
.group { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; margin-top: 18px; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; font-size: 15px; }
.row + .row { border-top: 1px solid var(--line); }
.link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--link); }
.plans { display: grid; gap: 10px; margin-top: 18px; }
.plan { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 14px; padding: 16px; }
.plan .head { display: flex; justify-content: space-between; align-items: baseline; }
.plan .amt { font-size: 15px; font-weight: 600; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { width: 18px; height: 18px; margin-top: 2px; }
.fine { font-size: 13px; color: var(--text3); margin-top: 10px; max-width: 52em; }
.faq { padding: 0 16px; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; font-size: 15px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: 1; }
.qa summary .ic { margin-left: auto; transition: transform 0.15s; }
.qa[open] summary .ic { transform: rotate(90deg); }
.faq-a { font-size: 14px; color: var(--text2); padding: 0 0 14px; margin-top: -4px; }
.more { font-size: 14px; color: var(--text2); margin-top: 14px; }
.end { text-align: center; padding-bottom: 8px; }
.end .btn { max-width: 340px; margin-left: auto; margin-right: auto; }
.end .cta-note { text-align: center; }

.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 22px 0 36px; font-size: 13px; color: var(--text3); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; font-size: 14px; }
.foot .links a { color: var(--text2); }
.foot .links a:hover { color: var(--text); }

/* Rechtsseiten: Datenschutz, Impressum, Support */
.legal { max-width: 760px; padding: 24px 0 40px; }
.legal h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 16px; }
.legal h2 { margin: 32px 0 8px; font-size: 21px; }
.legal h3 { margin: 22px 0 6px; font-size: 17px; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal code { font: 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.legal section + section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.langs { color: var(--text2); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; box-shadow: 0 0 0 1px var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--text2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
/* Platzhalter fuer JP: scripts/check-site.mjs --release schlaegt an, solange einer steht */
mark.todo { background: transparent; color: var(--warn); border-bottom: 1px dashed var(--warn); font: inherit; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  h1 { font-size: 68px; }
  html[lang='de'] h1 { font-size: 60px; }
  h2 { font-size: 36px; }
  .feat h2 em, .end h2 em { display: inline; }
  .hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; padding-top: 48px; }
  main > .hero { padding-top: 48px; }
  .btn { display: inline-flex; }
  .cta { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px 20px; }
  .cta .cta-note { grid-column: 1 / -1; text-align: left; margin-top: 0; }
  .qr { display: block; height: 96px; width: 96px; border-radius: 8px; }
  .phone { margin-top: 0; width: 100%; max-width: 340px; height: 440px; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; }
  main > section { padding-top: 88px; }
  .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .feat:nth-child(even) .txt { order: 2; }
  .feat + .feat { margin-top: 64px; }
  .shot { margin-top: 0; height: 520px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .two .group { margin-top: 0; }
  .end .cta { display: block; }
  .end .cta .cta-note { text-align: center; margin-top: 10px; }
  .foot { margin-top: 88px; }
}
