/* Lucid – Info-Seite. Farben und Schriften wie in der App (public/index.html, «Schülerheft»).
   Abstände auf dem 4-px-Raster, eine Strichstärke für Symbole, eine Einblend-Bewegung. */
:root {
  --ink: #1B2A6B; --paper: #FBFAF4; --grid: #DCE3F2; --rot: #B3261E; --gruen: #14463A; --leucht: #FFE45C;
  --sheet: #FFFFFF; --card-2: #EEF1FA; --muted: #4A5170; --line: #C9D2E8; --hard: rgba(27,42,107,.25);
  --on-ink: #FFFFFF; --on-leucht: #1B2A6B; --orange: #B85C00; --aus: #6A6F85; --c-aus: #C2570C;
  --nowfill: rgba(255,228,92,.6); --cover: #1B2A6B; --cover-2: #0F1A45; --cover-text: #FBFAF4;
  --hand: "Caveat", "Bradley Hand", cursive; --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --round: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.36, .5, 1); /* nur für den Prüfungs-Stempel, wie in der App */
  color-scheme: light;
}
/* Dunkel: Wandtafel mit Kreide, wie in der App */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1EEE4; --paper: #15211C; --grid: rgba(241,238,228,.06); --rot: #F28B7D; --gruen: #8FD3B0;
    --sheet: #1D2C26; --card-2: #263730; --muted: #C4CCC5; --line: #34453E; --hard: rgba(0,0,0,.45);
    --on-ink: #15211C; --orange: #F5A65B; --aus: #8A948D; --c-aus: #F5A65B; --nowfill: rgba(255,228,92,.24);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 19.5px 19.5px;
  font-family: var(--round); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* Inhalte, die hereingleiten, dürfen nie seitliches Scrollen auslösen */
main { overflow-x: hidden; overflow-x: clip; }
a { color: var(--ink); text-underline-offset: 3px; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--round); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 12px; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--leucht); outline-offset: 4px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--leucht); color: var(--on-leucht); padding: 8px 16px; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 12px; }
/* Eine Symbol-Familie: gezeichnete Linien, Strich 2 */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.tag-beta { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--rot); border: 1.5px solid currentColor; border-radius: 4px; padding: 0 6px; display: inline-block; line-height: 1.5; letter-spacing: 0; }
.top nav { display: none; margin-left: auto; gap: 24px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s var(--ease); }
.top nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) {
  .top nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* ---------- Knöpfe: Tinte mit hartem Heft-Schatten, beim Drücken sinkt er ein ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 2px 3px 0 var(--hard);
  font-family: var(--round); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
.btn:hover { box-shadow: 3px 4px 0 var(--hard); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--hard); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 19px; font-weight: 700; box-shadow: 3px 4px 0 var(--hard); }
.btn.ghost { background: var(--sheet); color: var(--ink); box-shadow: none; font-weight: 500; }
.btn.ghost:hover { background: var(--card-2); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn .arr { font-size: 1.1em; transition: transform .15s var(--ease); }
.btn:hover .arr { transform: translateX(2px); }

/* ---------- Abschnitte ---------- */
section { padding: 80px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
h2.title { font-size: clamp(32px, 8vw, 50px); font-weight: 800; letter-spacing: -1.4px; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
/* Signatur: Leuchtstift unter einem Wort pro grosser Überschrift – zeichnet sich beim Erscheinen */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: .04em; height: .42em; z-index: -1;
  background: var(--leucht); border-radius: 3px 8px 4px 9px; transform: rotate(-1.2deg); transform-origin: left; }
/* Dunkel: Leuchtstift durchscheinend, damit die helle Kreide-Schrift lesbar bleibt */
@media (prefers-color-scheme: dark) { .hl::after { background: rgba(255,228,92,.34); } }

/* ---------- Karten im App-Stil ---------- */
.card { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; padding: 20px; }
.postit { position: relative; background: var(--leucht); color: var(--on-leucht); transform: rotate(-1.2deg); box-shadow: 2px 3px 0 rgba(27,42,107,.18); padding: 20px; }
.postit::before { content: ""; position: absolute; top: -8px; left: 50%; width: 72px; height: 20px; margin-left: -36px; background: rgba(255,255,255,.72); border: 1px solid rgba(27,42,107,.12); transform: rotate(2deg); }
.postit a { color: var(--on-leucht); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 13vw, 84px); font-weight: 800; letter-spacing: -2.4px; line-height: .98; margin: 8px 0 20px; }
.hero .sub { font-family: var(--hand); font-size: 28px; font-weight: 500; color: var(--muted); line-height: 1.1; margin: 0; }
.hero .lead { margin-bottom: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

/* Gezeichnetes Handy mit nachgebauter Startseite (Beispieldaten). Die Werte darin folgen der App. */
.phone { position: relative; width: min(332px, 100%); margin: 0 auto; border: 2.5px solid var(--ink); border-radius: 40px; padding: 12px; background: var(--sheet); box-shadow: 6px 8px 0 var(--hard); }
.phone .screen { position: relative; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--line);
  background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 15px 15px;
  padding: 28px 16px 0; font-size: 14px; }
.phone .notch { position: absolute; top: 8px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 10px; background: var(--ink); opacity: .9; }
.phone .greet { font-weight: 800; font-size: 25px; letter-spacing: -.8px; margin: 8px 0 0; }
.phone .squig { width: 110px; height: 10px; margin: 2px 0 4px; color: var(--ink); }
.phone .date { font-family: var(--hand); font-size: 19px; color: var(--muted); line-height: 1.1; margin-bottom: 16px; }
.mini-hero { padding: 16px 76px 12px 16px; margin: 4px 0 16px; }
.mini-hero .k { font-size: 10.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.mini-hero .big { font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; margin: 4px 0 2px; }
.mini-hero .sm { font-size: 13px; }
.mini-hero .pill { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.6); border-radius: 4px; font-family: var(--hand); font-size: 17px; font-weight: 700; padding: 0 8px; }
.ring { position: absolute; right: 12px; top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: rgba(27,42,107,.16); }
.ring .fg { stroke: #1B2A6B; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 32px 32px; stroke-dasharray: 163.4; stroke-dashoffset: 85; }
.ring text { fill: #1B2A6B; font-family: var(--mono); font-size: 14px; font-weight: 500; text-anchor: middle; }
.day h3 { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 4px; }
.day h3 .today { background: var(--leucht); color: var(--on-leucht); padding: 0 4px; }
.day h3 .cnt { font-family: var(--hand); font-size: 17px; font-weight: 500; color: var(--muted); }
.it { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 8px 0 8px 16px; border-top: 1px solid var(--line); }
.it::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: #9AA5C9; }
.it .t { font-family: var(--mono); font-size: 12.5px; font-weight: 500; min-width: 40px; font-variant-numeric: tabular-nums; }
.it .title { font-size: 14.5px; font-weight: 600; flex: 1; min-width: 0; }
.it.pr::before { background: var(--rot); width: 4px; }
.it.now { background: linear-gradient(90deg, var(--nowfill) 58%, transparent 58%); margin: 0 -16px; padding-left: 32px; padding-right: 16px; }
.it.now::before { left: 16px; background: var(--ink); }
.it.now .t, .it.now .title { font-weight: 800; }
.it.out .title, .it.out .t { color: var(--aus); text-decoration: line-through; text-decoration-color: var(--c-aus); text-decoration-thickness: 2px; }
.it.out::before { background: var(--c-aus); }
.stamp { display: inline-block; background: var(--rot); color: var(--paper); border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .6px; padding: 0 4px; text-transform: uppercase; transform: rotate(-3deg); line-height: 1.6; }
.aus { font-family: var(--hand); font-size: 18px; font-weight: 700; color: var(--c-aus); transform: rotate(-3deg); display: inline-block; text-decoration: none; }
.phone .tabs { display: flex; justify-content: space-around; border-top: 2px solid var(--ink); margin: 16px -16px 0; padding: 0 8px 12px; background: var(--paper); }
.phone .tabs span { display: flex; align-items: center; justify-content: center; width: 44px; height: 40px; color: var(--ink); }
.phone .tabs span.on { background: var(--ink); color: var(--on-ink); border-radius: 0 0 10px 10px; }
.phone .tabs svg { width: 20px; height: 20px; }
.phone-note { text-align: center; font-family: var(--hand); font-size: 19px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Beta-Hinweis ---------- */
.beta { padding: 0 0 16px; }
.beta .postit { display: grid; gap: 12px 24px; max-width: 820px; margin: 0 auto; padding: 24px; transform: rotate(-.8deg); }
.beta .big-stamp { justify-self: start; font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: 3px; color: #B3261E; border: 3px solid #B3261E; border-radius: 6px; padding: 2px 12px; transform: rotate(-7deg); line-height: 1.3; }
.beta h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.beta p { margin: 0 0 8px; }
.beta p:last-child { margin: 0; }
@media (min-width: 700px) { .beta .postit { grid-template-columns: auto 1fr; align-items: center; padding: 32px; } }

/* ---------- Funktionen: abwechselnde Reihen ---------- */
.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1.5px dashed var(--line); }
.feature h3 { font-size: clamp(26px, 6.5vw, 36px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.feature p { color: var(--muted); }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 28px; margin: 8px 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 4px; }
.feature li::after { content: ""; position: absolute; left: 5px; top: .44em; width: 5px; height: 10px; border: solid var(--gruen); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.feature .vis { width: 100%; max-width: 420px; margin: 0 auto; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0; }
  .feature.flip .vis { order: -1; }
}
/* Prüfungsliste: Tag im Kreis, Rotstift wenn es bald ist */
.exam { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.exam:first-of-type { border-top: 0; }
.exam .when { flex: none; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); line-height: 1; font-variant-numeric: tabular-nums; }
.exam .when b { font-size: 18px; font-weight: 500; }
.exam .when span { font-size: 11px; margin-top: 2px; }
.exam .what { flex: 1; min-width: 0; }
.exam .what b { display: block; font-size: 16px; }
.exam .what small { color: var(--muted); font-size: 14px; }
.exam .left { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.exam.soon .when { border-color: var(--rot); color: var(--rot); border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; }
.exam.soon .left { color: var(--rot); font-weight: 500; }
.month { font-family: var(--hand); font-size: 24px; font-weight: 700; margin: 0 0 4px; }
/* Noten */
.pp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.pp-head .pp { font-family: var(--hand); font-size: 54px; font-weight: 700; color: var(--gruen); line-height: 1; }
.pp-head small { font-size: 13px; color: var(--muted); display: block; }
.grade { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.pp-head + .grade { border-top: 0; }
.grade .s { flex: 1; font-weight: 600; font-size: 16px; }
.grade .s small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.grade .g { font-family: var(--hand); font-size: 32px; font-weight: 700; line-height: 1; min-width: 48px; text-align: right; }
.g-top { color: var(--gruen); } .g-ok { color: var(--ink); } .g-low { color: var(--orange); }
.g-bad { color: var(--rot); text-decoration: underline double; text-decoration-thickness: 1.5px; }
.neu { font-family: var(--hand); font-size: 18px; font-weight: 700; color: var(--on-leucht); background: var(--leucht); padding: 0 6px; margin-left: 4px; display: inline-block; transform: rotate(-2deg); line-height: 1.15; }
/* Einfach hinschreiben */
.type-box { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; padding: 12px 16px; font-size: 17px; min-height: 48px; display: flex; align-items: center; box-shadow: 0 0 0 4px var(--leucht); }
.type-box .caret { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); margin-left: 2px; vertical-align: -3px; }
.type-box.typing .caret { animation: blink 1s steps(1) infinite; }
.type-box.done .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.found { margin-top: 16px; }
.found .k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.found .row { display: flex; gap: 12px; align-items: center; }
.found .cal { flex: none; width: 52px; text-align: center; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; font-family: var(--mono); line-height: 1; }
.found .cal span { display: block; background: var(--ink); color: var(--on-ink); font-size: 11px; padding: 4px 0; }
.found .cal b { display: block; font-size: 20px; font-weight: 500; padding: 8px 0; }
.found .what b { display: block; font-size: 17px; }
.found .what small { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.found .rep { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-family: var(--hand); font-size: 18px; font-weight: 700; }
.found .rep svg { width: 16px; height: 16px; }
/* Schulweg */
.cmgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
.cmgrid div { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; padding: 12px 8px; text-align: center; }
.cmgrid div:first-child { background: var(--leucht); color: var(--on-leucht); }
.cmgrid b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cmgrid span { font-size: 13px; font-weight: 600; }
.route { position: relative; padding-left: 24px; }
.route::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; border-left: 2.5px dotted var(--ink); }
.route .st { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 4px 0; font-size: 14.5px; }
.route .st::before { content: ""; position: absolute; left: -22px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sheet); border: 2.5px solid var(--ink); }
.route .tm { font-family: var(--mono); font-weight: 500; font-size: 13.5px; min-width: 44px; font-variant-numeric: tabular-nums; }
.route .line { background: var(--ink); color: var(--on-ink); border-radius: 3px; font-size: 12px; font-weight: 600; padding: 0 6px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; }
.sechead h4 { margin: 0; font-size: 17px; font-weight: 700; }
.sechead .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Und noch mehr: ruhige Liste statt gleicher Kästen ---------- */
.more-title { font-size: clamp(26px, 6.5vw, 36px); font-weight: 800; letter-spacing: -1px; margin: 48px 0 8px; }
.more { display: grid; grid-template-columns: 1fr; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.more li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.more li:first-child { border-top: 0; }
.more .i { width: 28px; height: 28px; margin-top: 2px; }
.more h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.more p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 760px) {
  .more { grid-template-columns: 1fr 1fr; }
  .more li:nth-child(2) { border-top: 0; }
}
.swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); }

/* ---------- Sicherheit: blauer Heftumschlag ---------- */
.cover { background: var(--cover); color: var(--cover-text); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: var(--cover-2); opacity: .55; }
.cover::after { content: ""; position: absolute; right: 7%; top: 0; bottom: 0; width: 12px; background: var(--cover-2); }
.cover .wrap { position: relative; z-index: 1; }
.cover .kicker { color: rgba(251,250,244,.75); }
.cover .lead { color: rgba(251,250,244,.85); }
.cover a { color: var(--cover-text); }
.label { display: inline-block; background: #FBFAF4; color: #1B2A6B; border: 3px solid #0F1A45; border-radius: 8px; padding: 8px 20px; transform: rotate(-3deg); margin-bottom: 20px; }
.label h2 { font-size: clamp(30px, 8vw, 48px); font-weight: 800; letter-spacing: -1.3px; position: relative; z-index: 0; }
.label h2 span { position: relative; }
.label h2 span::after { content: ""; position: absolute; left: -3px; right: -4px; bottom: .05em; height: .4em; background: #FFE45C; z-index: -1; border-radius: 3px 8px 4px 9px; }
.safe { display: grid; gap: 16px; margin: 32px 0 24px; padding: 0; list-style: none; }
.safe li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; background: rgba(251,250,244,.07); border: 1.5px solid rgba(251,250,244,.28); border-radius: 4px; padding: 20px; }
.safe .i { width: 28px; height: 28px; color: #FFE45C; }
.safe b { display: block; font-size: 18px; margin-bottom: 4px; }
.safe span { color: rgba(251,250,244,.85); font-size: 16px; }
@media (min-width: 760px) { .safe { grid-template-columns: 1fr 1fr; } }
.cover .links { display: flex; flex-wrap: wrap; gap: 12px; }
.cover .btn { background: #FBFAF4; color: #1B2A6B; border-color: #FBFAF4; box-shadow: 2px 3px 0 rgba(0,0,0,.3); }
.cover .btn.ghost { background: transparent; color: #FBFAF4; box-shadow: none; }
.cover .btn.ghost:hover { background: rgba(251,250,244,.08); }

/* ---------- Kosten ---------- */
.cost { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .cost { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.price { text-align: center; padding: 32px 20px 28px; }
.price .num { font-family: var(--hand); font-size: 96px; font-weight: 700; line-height: .9; display: block; }
.price .num small { font-size: .45em; }
.price .note { font-family: var(--hand); font-size: 24px; color: var(--muted); }
.price .circle { position: relative; display: inline-block; padding: 8px 28px; }
.price .circle svg { position: absolute; inset: -8px -12px; width: calc(100% + 24px); height: calc(100% + 16px); max-width: none; overflow: visible; }
.price .circle path { fill: none; stroke: var(--rot); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { position: relative; padding: 0 0 16px 44px; counter-increment: r; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.donate { margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; }
.donate .heart { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--leucht); color: #B3261E; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.donate .heart svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.donate h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.donate p { margin: 0; color: var(--muted); font-size: 16px; }
.badge-sup { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--on-ink); background: var(--ink); border-radius: 12px; padding: 0 8px; white-space: nowrap; line-height: 1.8; }

/* ---------- Installieren ---------- */
.install .head { max-width: 680px; }
.pills { display: flex; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; margin: 24px 0; max-width: 480px; }
.pills button { flex: 1; min-height: 44px; border: 0; background: none; color: var(--ink); font-family: var(--round); font-size: 16px; font-weight: 500; cursor: pointer; padding: 0 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.pills button:hover { background: var(--card-2); }
.pills button + button { border-left: 1.5px solid var(--ink); }
.pills button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.pills { display: none; }
.js .pills { display: flex; }
.panel h3 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; }
.js .panel h3.ph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .panel[hidden] { display: none; }
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; padding: 20px 20px 20px 72px; min-height: 80px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); font-size: 28px; font-weight: 700; line-height: 1; border: 2px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; }
.steps li b.t { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.steps li span { color: var(--muted); font-size: 16px; }
.steps li span b { color: var(--ink); }
.steps .ico-inline { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; color: var(--ink); }
@media (min-width: 860px) { .steps.three { grid-template-columns: repeat(3, 1fr); } .steps.four { grid-template-columns: repeat(2, 1fr); } }
.why { margin: 20px 0 0; font-family: var(--hand); font-size: 22px; line-height: 1.2; color: var(--muted); max-width: 640px; }
.after { margin-top: 48px; }
.after h3 { font-size: clamp(24px, 6vw, 32px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px; }
.after .steps { counter-reset: s 3; }
.after .steps li::before { border-color: var(--rot); color: var(--rot); }

/* ---------- Fragen ---------- */
.faq { max-width: 780px; }
.faq details { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 4px; color: var(--muted); }

/* ---------- Kontakt und Fuss ---------- */
.contact .card { max-width: 780px; display: grid; gap: 20px; padding: 24px; }
@media (min-width: 700px) { .contact .card { grid-template-columns: 1fr auto; align-items: center; padding: 32px; } }
.contact h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 8px; }
.contact p { margin: 0 0 4px; color: var(--muted); }
.contact .mail { font-weight: 600; color: var(--ink); word-break: break-word; }
.final { text-align: center; padding: 32px 0 96px; }
.final h2 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; letter-spacing: -1.6px; margin-bottom: 12px; }
.final .sub { font-family: var(--hand); font-size: 25px; color: var(--muted); margin-bottom: 24px; }
footer { border-top: 2px solid var(--ink); padding: 24px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

/* ---------- Scroll-Animationen ----------
   Eine Bewegung für alles: kurz einblenden und 12 px aufsteigen, mit kleiner Staffelung.
   Dazu nur Bewegungen, die etwas zeigen: Leuchtstift, Ring, Stempel, Tippen, Noten, Preis-Kreis.
   Nur mit JavaScript (Klasse .js am <html>) werden Inhalte zuerst versteckt.
   Ohne JavaScript oder mit «Bewegung reduzieren» ist alles sofort sichtbar. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .postit.reveal { transform: translateY(12px) rotate(-1.2deg); }
.js .postit.reveal.in { transform: rotate(-1.2deg); }
.js .beta .postit.reveal { transform: translateY(12px) rotate(-.8deg); }
.js .beta .postit.reveal.in { transform: rotate(-.8deg); }
.js .label.reveal { transform: translateY(12px) rotate(-3deg); }
.js .label.reveal.in { transform: rotate(-3deg); }
/* Leuchtstift zeichnet sich */
.js .hl::after { transform: rotate(-1.2deg) scaleX(0); transition: transform .8s cubic-bezier(.45,.05,.3,1) .3s; }
.js .in .hl::after, .js .hl.in::after { transform: rotate(-1.2deg) scaleX(1); }
/* Prüfungs-Stempel knallt, wie in der App */
.js .reveal .stamp, .js .reveal .big-stamp { opacity: 0; transform: scale(1.8) rotate(-12deg); }
.js .reveal.in .stamp { animation: stamp .45s var(--spring) .5s forwards; }
.js .reveal.in .big-stamp { animation: bigstamp .5s var(--spring) .3s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-3deg); } }
@keyframes bigstamp { to { opacity: 1; transform: rotate(-7deg); } }
/* Ring füllt sich */
.js .reveal .ring .fg { stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.2s var(--ease) .5s; }
.js .reveal.in .ring .fg { stroke-dashoffset: 85; }
/* Laufende Lektion: Leuchtstift läuft */
.js .reveal .it.now { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(90deg, var(--nowfill) 58%, transparent 58%); background-color: transparent; transition: background-size 1.2s var(--ease) .8s; }
.js .reveal.in .it.now { background-size: 100% 100%; }
/* Kreis um den Preis zeichnet sich */
.js .price .circle path { stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.45,.05,.3,1) .4s; }
.js .price.in .circle path { stroke-dashoffset: 0; }
/* Häkchen erscheinen nacheinander */
.js .reveal .feature-list li::after { opacity: 0; transition: opacity .3s var(--ease); }
.js .reveal.in .feature-list li::after { opacity: 1; }
.js .reveal.in .feature-list li:nth-child(1)::after { transition-delay: .2s; }
.js .reveal.in .feature-list li:nth-child(2)::after { transition-delay: .32s; }
.js .reveal.in .feature-list li:nth-child(3)::after { transition-delay: .44s; }
/* Noten erscheinen wie hingeschrieben */
.js .reveal .grade .g, .js .reveal .pp { clip-path: inset(0 100% 0 0); transition: clip-path .6s ease-out; transition-delay: calc(.4s + var(--gd, 0s)); }
.js .reveal.in .grade .g, .js .reveal.in .pp { clip-path: inset(0 -20% 0 0); }
/* Erkannter Termin */
.js .found { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .found.show { opacity: 1; transform: none; }
/* Kopfzeile: Schatten-Linie wenn gescrollt */
.top { transition: box-shadow .2s var(--ease); }
.top.scrolled { box-shadow: 0 3px 0 var(--hard); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .postit.reveal { transform: rotate(-1.2deg); }
  .js .beta .postit.reveal { transform: rotate(-.8deg); }
  .js .label.reveal { transform: rotate(-3deg); }
  .js .hl::after { transform: rotate(-1.2deg); }
  .js .reveal .stamp { opacity: 1; transform: rotate(-3deg); }
  .js .reveal .big-stamp { opacity: 1; transform: rotate(-7deg); }
  .js .reveal .ring .fg { stroke-dashoffset: 85; }
  .js .reveal .it.now { background-size: 100% 100%; }
  .js .price .circle path { stroke-dashoffset: 0; }
  .js .reveal .feature-list li::after { opacity: 1; }
  .js .reveal .grade .g, .js .reveal .pp { clip-path: none; }
  .js .found { opacity: 1; transform: none; }
  .type-box .caret { display: none; }
}

/* ---------- Rechtstexte (datenschutz.html, nutzungsbedingungen.html) ---------- */
.legal-page { padding: 32px 0 64px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(27px, 8vw, 52px); hyphens: auto; overflow-wrap: break-word; font-weight: 800; letter-spacing: -1.4px; margin: 12px 0 20px; }
.legal-page .card { padding: 24px 20px; }
.legal-page h3 { font-size: 20px; font-weight: 700; margin: 28px 0 8px; }
.legal-page .hint { color: var(--muted); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin: 8px 0; }
.back { font-family: var(--hand); font-size: 22px; font-weight: 700; text-decoration: none; }
