/* Quittwerk – Website. Dieselbe Haltung wie die App: ordentlich, verlässlich, ein wenig warm. Papier, Stempel, Ablage.
   Ruhige Flächen aus einer neutralen Reihe, ein Akzent (Quittwerk-Blau) nur für die Hauptaktion und die eine Zahl.
   Farbe und Tiefe gehören den Bildern der App, nicht den Knöpfen. Raster 4 px, Schriftstärken 400/500/600.
   Immer hell, auch wenn der Rechner auf Dunkel steht.
   Keine fremden Schriften, Skripte oder Tracker: keine Cookies, kein Banner nötig. */

:root {
  color-scheme: light;
  --blue: #1f4ff0;
  --blue-hover: #1a44e0;
  --blue-ink: #1f4ff0;
  --blue-soft: #eef2ff;
  --ink: #161618;
  --ink-2: #4b4f58;
  --ink-3: #6e727c;
  --line: rgba(22, 22, 24, 0.09);
  --line-2: rgba(22, 22, 24, 0.14);
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --desk: #eef0f3;
  --panel: #ffffff;
  --green: #17864b;
  --nav: rgba(255, 255, 255, 0.86);
  --shot-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08), 0 24px 64px -24px rgba(16, 24, 40, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
  --r: 12px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
.num, .price, .tab { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(91, 124, 255, 0.5); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-quiet { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-quiet:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .zeichen { width: 26px; height: 26px; color: var(--blue); }
.brand .wortmarke { height: 18px; width: auto; aspect-ratio: 852 / 170; color: var(--ink); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1;
  height: 48px; padding: 0 20px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line-2); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; text-align: center; }
.eyebrow { font-size: 15px; color: var(--ink-3); margin-bottom: 20px; }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin: 0 8px 2px 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.025em; max-width: 880px; margin: 0 auto; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 620px; margin: 24px auto 0; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

/* Bild der App auf dem Schreibtisch: das eine farbige Element des ersten Bildschirms */
.desk { margin-top: 64px; background: var(--desk); padding: 56px 0 0; overflow: hidden; }
.shot {
  border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--panel);
  box-shadow: var(--shot-shadow);
}
.shot img { width: 100%; height: auto; }
.shot.round { border-radius: var(--r); }
.window-bar { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }

/* ---------- Leiste mit Formaten ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; }
.facts span { font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--ink-3); }

/* ---------- Abschnitte ---------- */
.section { padding: 128px 0 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }
.sub { color: var(--ink-2); font-size: 18px; margin-top: 16px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .split-text { order: 2; }
.split-text h2 { font-size: clamp(28px, 3vw, 36px); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-ink); }

/* Ausschnitt der App auf dem Schreibtisch */
.crop { border-radius: var(--r-lg); background: var(--desk); padding: 24px; }
.crop .shot { border-radius: var(--r); }

/* ---------- Funktionsliste ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(3n + 2), .feature:nth-child(3n) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature svg { width: 20px; height: 20px; color: var(--ink-2); margin-bottom: 16px; }
.feature h3 { font-size: 17px; letter-spacing: -0.005em; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--ink-2); }

/* ---------- Daten ---------- */
.local { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.local > div { background: var(--bg-soft); border-radius: var(--r-lg); padding: 28px; }
.local h3 { font-size: 17px; margin-bottom: 8px; }
.local p { font-size: 15px; color: var(--ink-2); }
.local-note { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ---------- Preis ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.price-card, .trial-card { border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; }
.price-card { background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.trial-card { background: var(--bg-soft); }
.card-label { font-size: 15px; color: var(--ink-3); }
.price { font-family: var(--display); font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 8px; }
.price-note { font-size: 15px; color: var(--ink-3); }
.price-card .ticks, .trial-card .ticks { margin: 28px 0 32px; }
.price-card .btn, .trial-card .btn { width: 100%; margin-top: auto; }
.trial-card h3 { font-size: 22px; margin: 12px 0 12px; }
.trial-card > p { color: var(--ink-2); font-size: 16px; }
.compare { max-width: 920px; margin: 24px auto 0; text-align: center; font-size: 15px; color: var(--ink-3); }

/* ---------- Fragen ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-weight: 500; font-size: 17px; cursor: pointer; list-style: none; padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 16px; padding: 0 40px 24px 0; }
.faq details p + p { margin-top: -12px; }

/* ---------- Abschluss und Fußzeile ---------- */
.closing { padding: 128px 0; text-align: center; }
.closing h2 { max-width: 640px; margin: 0 auto; }
.closing .sub { max-width: 560px; margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
footer h4 { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
footer a { display: block; color: var(--ink-3); text-decoration: none; margin-bottom: 8px; }
footer a:hover { color: var(--ink); }
footer .brand { margin-bottom: 12px; }
footer p { max-width: 320px; }
.copy { margin-top: 20px; font-size: 14px; }

/* ---------- Unterseiten ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 80px 32px 112px; }
.page h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.page .lead { margin: 16px 0 0; text-align: left; font-size: 18px; }
.page h2 { font-size: 22px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.page p + p, .page ul + p, .page p + ul { margin-top: 12px; }
.page ul, .page ol { color: var(--ink-2); padding-left: 20px; margin: 0; }
.page li + li { margin-top: 6px; }
.page .ticks { padding: 0; }
.page p { color: var(--ink-2); }
.summary { margin-top: 40px; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.summary-row .price { font-size: 40px; margin: 0; }
.summary .btn { width: 100%; }
.fine { font-size: 14px; color: var(--ink-3); }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.download { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.download h2 { margin: 0; font-size: 20px; }
.download .fine { margin-bottom: 16px; }
.download .btn { align-self: stretch; }
.download .alt { font-size: 14px; margin-top: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin-top: 16px !important; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin: 0 !important; }
.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
code, .key { font-family: var(--mono); font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* Platzhalter, die vor dem Hochladen ersetzt werden (siehe ANLEITUNG.md) */
.todo { background: #fff6d6; color: #5c4600; border: 1px dashed #c9a400; border-radius: 10px; padding: 14px 16px; font-size: 15px; margin: 16px 0; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-text { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(3n + 2), .feature:nth-child(3n) { padding: 28px 28px 32px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .local { grid-template-columns: 1fr; }
  .section { padding-top: 96px; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 56px; }
  .nav-quiet { display: none; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  .actions .btn { width: 100%; }
  .desk { margin-top: 48px; padding-top: 24px; }
  .desk .wrap { padding-right: 0; }
  .shot { border-radius: var(--r) 0 0 0; }
  .desk .shot img { width: 170%; max-width: none; }
  .facts .wrap { justify-content: flex-start; gap: 10px 24px; }
  .section { padding-top: 80px; }
  .section-head { text-align: left; margin-bottom: 32px; }
  .sub { font-size: 17px; }
  .crop { padding: 12px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n), .feature:nth-child(3n + 2), .feature:nth-child(3n) { padding: 24px 0; border-left: 0; }
  .pricing { grid-template-columns: 1fr; }
  .price-card, .trial-card { padding: 24px; }
  .price { font-size: 52px; }
  .compare { text-align: left; }
  .faq details p { padding-right: 0; }
  .closing { padding: 96px 0; text-align: left; }
  .closing .actions { justify-content: flex-start; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: span 2; }
  .page { padding: 48px 16px 80px; }
  .downloads { grid-template-columns: 1fr; }
}

/* =====================================================================
   Farbe und Bewegung
   Ein einziger Akzent: Quittwerk-Blau, für Überzeilen, Symbole, den Schreibtisch hinter den Bildern
   und das Band am Ende. Alles andere bleibt in der neutralen Reihe. Die Themen-Klassen (green, amber …)
   bleiben im HTML stehen, zeigen aber alle dasselbe Blau.
   Bewegung: der Kopf baut sich auf, Abschnitte gleiten beim Scrollen herein, und der Stempel fällt aufs Blatt.
   Alles ohne Bibliothek; bei „Bewegung reduzieren“ steht alles sofort still da.
   ===================================================================== */
:root {
  --c-blue: #1f4ff0;
  --t-blue: var(--bg-soft);
  --c-green: var(--c-blue);  --t-green: var(--bg-soft);
  --c-amber: var(--c-blue);  --t-amber: var(--bg-soft);
  --c-violet: var(--c-blue); --t-violet: var(--bg-soft);
  --c-teal: var(--c-blue);   --t-teal: var(--bg-soft);
  --c-rose: var(--c-blue);   --t-rose: var(--bg-soft);
  --desk-blue: linear-gradient(180deg, #eef2fb 0%, #e4e9f5 100%);
  --desk-green: var(--desk-blue);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Schreibtische hinter den Bildern */
.desk { background: var(--desk-blue); }
.crop { background: var(--desk-blue); }
.crop.green { background: var(--desk-green); }

/* kleine farbige Überzeile über den Abschnitten */
.kicker { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--c-blue); }
.kicker.green { color: var(--c-green); }
.kicker.violet { color: var(--c-violet); }
.kicker.teal { color: var(--c-teal); }
.kicker.amber { color: var(--c-amber); }
.eyebrow { color: var(--ink-2); }
.facts svg { color: var(--c-green); }
.split-text .ticks svg { color: var(--c-blue); }
.split-text.green .ticks svg { color: var(--c-green); }

/* Symbole in getönten Kacheln */
.tile-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; transition: transform 0.3s var(--ease-out); }
.tile-icon svg { width: 20px; height: 20px; margin: 0; color: inherit; }
.feature:hover .tile-icon { transform: translateY(-2px) rotate(-4deg); }
.blue { --c: var(--c-blue); --t: var(--t-blue); }
.green { --c: var(--c-green); --t: var(--t-green); }
.amber { --c: var(--c-amber); --t: var(--t-amber); }
.violet { --c: var(--c-violet); --t: var(--t-violet); }
.teal { --c: var(--c-teal); --t: var(--t-teal); }
.rose { --c: var(--c-rose); --t: var(--t-rose); }
.tile-icon { background: var(--t); color: var(--c); box-shadow: inset 0 0 0 1px var(--line); }

/* Karten „Deine Daten“ */
.local > div { background: var(--t); transition: transform 0.3s var(--ease-out); }
.local > div:hover { transform: translateY(-3px); }
.local .tile-icon { background: var(--panel); }

/* Preis: Testversion auf ruhiger Fläche, Preiskarte mit blauer Oberkante */
.price-card { border-top: 4px solid var(--blue); }
.trial-card { background: var(--bg-soft); }
.trial-card .btn-secondary { background: var(--panel); border-color: transparent; }
.trial-card .btn-secondary:hover { background: var(--bg-soft); }

/* Blauer Abschluss */
.closing { background: linear-gradient(180deg, #2453f2 0%, #1a3fd0 100%); color: #fff; position: relative; overflow: hidden; }
.closing .sub { color: rgba(255, 255, 255, 0.82); }
.closing .btn-primary { background: #fff; color: #1a3fd0; }
.closing .btn-primary:hover { background: #eef2ff; }
.closing .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.closing .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
/* Wasserzeichen: das Quittwerk-Zeichen groß und blass im Band */
.closing-mark { position: absolute; width: 420px; height: 420px; right: -80px; bottom: -120px; color: rgba(255, 255, 255, 0.07); transform: rotate(-12deg); pointer-events: none; }
.closing .wrap { position: relative; }

/* ---------- Stempel auf dem Blatt (wie in der App) ---------- */
.stamp-paper { position: relative; container-type: inline-size; }
.stamp-paper .stamp-hit {
  --u: calc(100cqw / 794);
  position: absolute; left: 50%; top: calc(var(--u) * 292); z-index: 2; pointer-events: none;
  translate: -50% 0; transform: rotate(-6deg);
}
.stamp-paper .stamp {
  --ink: #2747c9;
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 9) calc(var(--u) * 18) calc(var(--u) * 8) calc(var(--u) * 16);
  border: calc(var(--u) * 2.5) solid var(--ink); border-radius: calc(var(--u) * 10);
  color: var(--ink); mix-blend-mode: multiply; filter: url(#stamp-ink); opacity: 0.9;
  font-family: var(--display);
}
.stamp-paper .stamp-title { display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 21); line-height: 1; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.stamp-paper .stamp-title svg { width: calc(var(--u) * 20); height: calc(var(--u) * 20); flex: none; }
.stamp-paper .stamp-meta { padding-left: calc(var(--u) * 28); font-size: calc(var(--u) * 12); line-height: 1; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.stamp-paper .stamp-shadow { position: absolute; inset: 0; border-radius: calc(var(--u) * 10); background: rgba(12, 18, 40, 0.42); filter: blur(10px); opacity: 0; }

/* ---------- Bewegung (nur mit Skript; ohne Skript steht alles fertig da) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Kopf baut sich nacheinander auf */
  .js .hero .wrap > * { animation: rise 0.8s var(--ease-out) both; }
  .js .hero .wrap > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero .wrap > :nth-child(3) { animation-delay: 0.12s; }
  .js .hero .wrap > :nth-child(4) { animation-delay: 0.18s; }
  .js .hero .wrap > :nth-child(5) { animation-delay: 0.24s; }
  .js .desk .shot { animation: rise-far 1.1s var(--ease-out) 0.3s both; }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } }
  @keyframes rise-far { from { opacity: 0; translate: 0 64px; scale: 0.98; } }

  /* Beim Scrollen hereingleiten; --i staffelt Geschwister */
  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].in { opacity: 1; translate: 0 0; }

  /* Stempel: wartet, bis das Blatt zu sehen ist, fällt schneller werdend von oben, drückt kurz ein und bleibt */
  .js .stamp-paper:not(.in) .stamp { opacity: 0; }
  .js .stamp-paper.in .stamp { animation: stamp-drop 1.6s linear 0.35s both; }
  .js .stamp-paper.in .stamp-shadow { animation: stamp-shadow 1.6s linear 0.35s both; }
  .js .stamp-paper.in .shot { animation: thud 0.24s ease-out 0.75s; }
  @keyframes stamp-drop {
    0% { opacity: 0; transform: rotate(-3deg) scale(1.55); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
    6% { opacity: 0.45; }
    25% { opacity: 1; transform: rotate(0deg) scale(0.965); animation-timing-function: ease-out; }
    32% { transform: scale(1.012); animation-timing-function: ease-in-out; }
    40% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1); }
  }
  @keyframes stamp-shadow {
    0% { opacity: 0; transform: translate(22px, 30px) scale(1.5); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
    22% { opacity: 0.55; transform: translate(3px, 4px) scale(1.03); }
    25%, 100% { opacity: 0; transform: translate(0, 0) scale(1); }
  }
  @keyframes thud { 30% { transform: translateY(2px) scale(0.997); } }

  /* Knöpfe und Bilder reagieren leicht */
  .btn { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease; }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(31, 79, 240, 0.6); }
  .crop > .shot, .crop > .stamp-paper { transition: translate 0.5s var(--ease-out); }
  .crop:hover > .shot, .crop:hover > .stamp-paper { translate: 0 -4px; }
}

/* Darstellung: hell und dunkel übereinander, der Schreibtisch dunkelt mit */
.split-text.violet .ticks svg { color: var(--c-violet); }
.theme-crop { position: relative; background: var(--desk-blue); }
.theme-crop::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, #232846 0%, #161a30 100%);
  opacity: 0; transition: opacity 0.7s var(--ease-out);
}
.theme-crop[data-mode="dunkel"]::before { opacity: 1; }
.theme-shots { position: relative; display: grid; }
.theme-shots img { grid-area: 1 / 1; }
.theme-shots .theme-dark { opacity: 0; transition: opacity 0.7s var(--ease-out); }
.theme-crop[data-mode="dunkel"] .theme-dark { opacity: 1; }

.theme-switch {
  display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] {
  background: var(--panel); color: var(--c-violet);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.08);
}
.theme-switch button[data-theme-btn="dunkel"][aria-pressed="true"] { background: #1f2337; color: #fff; box-shadow: none; }
.theme-switch button:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 2px; }
.theme-switch + .ticks { margin-top: 28px; }

/* =====================================================================
   Schrift und Bildflächen
   Schwarze Überschriften mit enger Laufweite, Fließtext hell und luftig: der Kontrast macht die Hierarchie,
   nicht Farbe oder Fett. Die App-Bilder liegen auf einer blauen Fläche mit Verlauf und laufen über den Rand.
   ===================================================================== */
:root {
  --head: #0b0b0d;
  --ink-2: #616167;
  --ink-3: #7a7a80;
}
h1, h2, h3 { color: var(--head); }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.1; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--blue); display: block; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.6; margin-top: 24px; max-width: 640px; }
.hero {
  background: radial-gradient(70% 420px at 50% 0%, rgba(31, 79, 240, 0.075), rgba(31, 79, 240, 0) 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0; margin-bottom: 28px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font-size: 14px; color: var(--ink-2);
}
.eyebrow .dot { margin: 0 8px 0 0; }

h2, .split-text h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.025em; }
.sub { font-size: 18px; line-height: 1.67; margin-top: 16px; }
.section-head .sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.ticks li { font-size: 16px; line-height: 1.6; }
.feature h3, .local h3 { font-size: 18px; letter-spacing: -0.015em; }
.feature p, .local p { line-height: 1.6; }
.closing h2 { color: #fff; }

.btn { height: 44px; border-radius: 14px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 36px; border-radius: 12px; }

/* Bildflächen: Verlauf von hell nach Quittwerk-Blau, das Fenster liegt ganz sichtbar darauf */
.crop {
  --pad: 36px;
  border-radius: 24px; overflow: hidden;
  padding: var(--pad);
  background: linear-gradient(165deg, #f0f3fc 0%, #dbe3f9 50%, #a9b9ee 100%);
}
.crop.green { background: linear-gradient(165deg, #f0f3fc 0%, #dbe3f9 50%, #a9b9ee 100%); }
.crop .shot { border-radius: 12px; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08), 0 24px 56px -16px rgba(20, 36, 110, 0.35); }
.desk { background: linear-gradient(180deg, rgba(31, 79, 240, 0) 0%, #e3e9fb 100%); padding-bottom: 96px; }
.desk .shot { border-radius: 14px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 33px; letter-spacing: -0.03em; }
  .lead { font-size: 17px; }
  .br-wide { display: none; }
  h2, .split-text h2 { font-size: 30px; }
  .sub { font-size: 17px; }
  .crop { --pad: 16px; border-radius: 20px; }
  .desk { padding-bottom: 48px; }
  .desk .wrap { padding-right: 16px; }
  .desk .shot { border-radius: 10px; }
  .desk .shot img { width: 100%; }
  .btn { height: 48px; }
}

/* Hero-Bild: liegt anfangs nach hinten gekippt und richtet sich beim Scrollen auf.
   --p (0 bis 1) setzt das Skript in index.html; ohne Skript oder bei „Bewegung reduzieren“ steht es gerade. */
@media (prefers-reduced-motion: no-preference) {
  .js .desk { --p: 0; --tilt: 30deg; }
  .js .desk .shot {
    transform-origin: 50% 0;
    transform: perspective(1600px) rotateX(calc((1 - var(--p)) * var(--tilt))) scale(calc(0.86 + var(--p) * 0.14));
    will-change: transform;
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .js .desk { --tilt: 18deg; }
}

/* Scroll: Bilder in den Abschnitten kommen leicht gekippt von unten und legen sich flach, wenn sie im Blick sind.
   --sp (0 bis 1) setzt das Skript; das Wasserzeichen im Abschlussband dreht sich dabei langsam mit. */
@media (prefers-reduced-motion: no-preference) {
  .js .crop { --sp: 0; }
  .js .crop > .shot, .js .crop > .stamp-paper {
    transform-origin: 50% 100%;
    transform: perspective(1400px) translateY(calc((1 - var(--sp)) * 48px)) rotateX(calc((1 - var(--sp)) * 14deg)) scale(calc(0.92 + var(--sp) * 0.08));
  }
  .js .closing { --sp: 0; }
  .js .closing-mark { transform: rotate(calc(-30deg + var(--sp) * 18deg)) translateY(calc((1 - var(--sp)) * 60px)); }
}

/* Hero-Video: gleiche Fläche wie das Standbild davor (16:10); das Standbild ist das Poster */
.hero-video { position: relative; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1200; background: var(--panel); }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(16, 18, 28, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0.85; transition: opacity 0.2s, background 0.2s;
}
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle:hover { opacity: 1; background: rgba(16, 18, 28, 0.8); }
.video-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; opacity: 1; }
.hero-video .if-playing, .hero-video.is-playing .if-paused { display: none; }
.hero-video.is-playing .if-playing { display: block; }
.hero-video.is-playing .video-toggle { opacity: 0; }
.hero-video.is-playing:hover .video-toggle, .hero-video.is-playing .video-toggle:focus-visible { opacity: 0.85; }
@media (hover: none) { .hero-video.is-playing .video-toggle { opacity: 0.7; } }
@media (max-width: 640px) {
  .video-toggle { right: 10px; bottom: 10px; width: 34px; height: 34px; }
  .video-toggle svg { width: 15px; height: 15px; }
}
