/* Handschrift – Website im Designsystem v1.2 „Mac-Schreibtisch“ (DESIGNSYSTEM.md, 12.10.2026).
   Alle Werte kommen aus tokens.css. Warmes Papier als Schreibtisch, Mac-Fenster als Baustein,
   Graphit + eine Akzentfarbe (Kobalt), dunkle Bühne für Material.
   Schriften OFL und selbst gehostet (Lizenzen in assets/), keine externen Anfragen. */

@font-face { font-family: "Inter"; src: url("assets/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/Inter-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--size-18)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.stage :focus-visible { box-shadow: 0 0 0 3px var(--stage-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); text-decoration: none; transition: top var(--dur-1) var(--ease); }
.skip:focus { top: 44px; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 900px; }
.sec { padding: clamp(80px, 11vw, 144px) 0; }
.sec-tight { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- Typografie ---------- */
h1 .ln { display: block; }
h1, h2, h3 { font-family: var(--font-sans); color: var(--ink); margin: 0; letter-spacing: var(--track-display); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; margin-bottom: var(--space-6); }
h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, var(--size-60)); line-height: 1.04; margin-bottom: var(--space-12); }
h3 { font-weight: 800; font-size: var(--size-24); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
/* Serif-Akzent: höchstens zweimal pro Seite (Einstieg + Ablauf) */
h1 em, h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; line-height: 0; }
p { margin: 0 0 var(--space-4); }
p, li { max-width: 68ch; }
.lead { font-size: var(--size-20); line-height: 1.5; color: var(--ink-2); max-width: 30ch; margin-bottom: 0; }
.muted { color: var(--ink-2); }
.small, .fine { font-size: var(--size-14); }
.fine { color: var(--ink-2); }
/* Kicker: ruhige Sans, keine Versalien, keine Mono (v1.2) */
.kicker { font-size: var(--size-16); font-weight: 600; color: var(--ink-2); margin: 0 0 var(--space-3); letter-spacing: -0.005em; }
code { font: 500 .88em/1.4 var(--font-mono); background: var(--surface-2); padding: .15em .45em; border-radius: var(--radius-tag); }

/* ---------- Menüleiste ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(var(--glass-blur)); backdrop-filter: saturate(160%) blur(var(--glass-blur));
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.top-in { display: flex; align-items: center; gap: var(--space-6); height: 40px; padding: 0 var(--space-4); }
.app { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--size-14); color: var(--ink); text-decoration: none; }
.app img { width: 18px; height: 18px; border-radius: 4px; }
.top-nav { display: flex; gap: var(--space-6); }
.top-nav a { color: var(--ink); opacity: .78; text-decoration: none; font-size: var(--size-14); padding: 4px 0; }
.top-nav a:hover { opacity: 1; }
.top .btn-sm { margin-left: auto; }
.top .wordmark { margin-right: auto; }

.wordmark { display: inline-flex; align-items: baseline; gap: 3px; text-decoration: none; color: var(--ink); line-height: 1; }
.wm-name { font-family: var(--font-accent); font-style: italic; font-size: 26px; letter-spacing: -0.005em; }
.wm-tld { font-family: var(--font-sans); font-weight: 600; font-size: var(--size-12); letter-spacing: .02em; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: 0 var(--space-6);
  font: 600 var(--size-16)/1 var(--font-sans);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform var(--dur-1) var(--ease), filter var(--dur-1) var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); border-radius: var(--radius-pill); }
.btn-2 { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.btn-2:hover { filter: none; background: #fff; }
.btn-sm { min-height: 28px; padding: 0 var(--space-3); font-size: 13px; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------- Mac-Fenster (Grundbaustein) ---------- */
.win { background: var(--surface); border-radius: var(--radius-win); box-shadow: var(--shadow-win); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: var(--space-3); height: var(--win-bar); padding: 0 var(--space-3); border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.win-title { font-size: var(--size-12); font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: var(--space-6) var(--space-6) var(--space-8); }
.win-lg .win-body { padding: clamp(24px, 4vw, 48px); }
.win-term { background: var(--term); }
.win-term .win-bar { border-color: #2C2D31; }
.win-term .dots i { background: var(--dot-dark); }
.win-term .win-title { color: var(--stage-ink-2); }
.win-term h3 { color: var(--stage-ink); }
.win-term p { color: var(--stage-ink-2); }
.term { margin: 0; padding: var(--space-4) var(--space-4) var(--space-6); font: 400 13px/1.7 var(--font-mono); color: #D6D8DD; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .dim { color: #7D818A; }
.term .ok { color: #8FD3A4; }

/* ---------- Einstieg: Schreibtisch ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.desk { position: relative; height: 560px; }
.desk .win { position: absolute; }
.desk-finder { left: 0; top: 0; width: 82%; z-index: 1; }
.desk-term { left: 6%; top: 330px; width: 70%; z-index: 2; }
.desk-player { right: 0; top: 70px; width: 34%; z-index: 3; }
.finder-grid { list-style: none; margin: 0; padding: var(--space-3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.finder-grid li { font: 400 10px/1.3 var(--font-mono); color: var(--ink-2); text-align: center; max-width: none; min-width: 0; }
.finder-grid img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.finder-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-grid .hit img { box-shadow: 0 0 0 3px var(--accent); }
.finder-grid .hit span { color: var(--accent); font-weight: 600; }

/* ---------- Markenzeichen: Vorher/Nachher-Wisch (im Player-Fenster) ---------- */
.wipe { margin: 0; }
.wipe-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1C1D20; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .92); pointer-events: none; }
.wipe-knob {
  position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.wipe-knob::before, .wipe-knob::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border: solid var(--graphite); border-width: 0 0 2px 2px; }
.wipe-knob::before { left: 9px; transform: rotate(45deg); }
.wipe-knob::after { right: 9px; transform: rotate(-135deg); }
.wipe-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.wipe-frame:has(.wipe-range:focus-visible) .wipe-knob { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px #fff; }

/* ---------- Pain: große Sätze ---------- */
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.pains li { max-width: none; border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-12); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-2); }
.pains strong { color: var(--ink); font-weight: 800; }

/* ---------- Ablauf: drei Fenster ---------- */
.wins-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.wins-3 > li { max-width: none; }
.wins-3 p { margin: 0; color: var(--ink-2); font-size: 17px; }
.wins-3 .win-term p { color: var(--stage-ink-2); }

/* ---------- Beweis (Bühne) ---------- */
.stage { background: var(--stage); color: var(--stage-ink); }
.stage h2, .stage h3 { color: var(--stage-ink); }
.stage .kicker, .stage .fine, .stage p { color: var(--stage-ink-2); }
.stage a { color: var(--stage-ink); }
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.proof-term { margin: var(--space-6) 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); }
.proof-term .term { white-space: pre; overflow-x: auto; overflow-wrap: normal; scrollbar-color: #4A4D53 transparent; scrollbar-width: thin; }
.reels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.phone { margin: 0; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #1C1D20; border-radius: var(--radius-media); box-shadow: 0 0 0 8px #1D1E21, 0 30px 80px rgba(0, 0, 0, .6); }
.reels .phone:nth-child(2) { transform: translateY(40px); }
.phone figcaption { margin-top: var(--space-4); font-size: var(--size-12); color: var(--stage-ink-2); text-align: center; }

/* ---------- Formulare ---------- */
.signup { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.field-label { font-size: var(--size-14); font-weight: 600; color: var(--ink); }
.field-row { display: flex; gap: var(--space-3); }
.signup input[type=email] {
  flex: 1; min-width: 0; min-height: 50px; font: inherit; font-size: var(--size-16); color: var(--ink);
  background: #fff; border: 1px solid #CFC8BC; border-radius: var(--radius-input); padding: 0 var(--space-4);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.signup input[type=email]::placeholder { color: #75706A; }
.signup input[type=email]:focus-visible { border-color: var(--accent); box-shadow: var(--focus-ring); border-radius: var(--radius-input); }
.signup input[aria-invalid=true] { border-color: var(--error); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--size-14); color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent input:focus-visible { box-shadow: var(--focus-ring); border-radius: 4px; }
.form-msg { min-height: 1.5em; margin: 0; font-size: var(--size-14); font-weight: 600; color: var(--ink); }
.form-msg.is-error { color: var(--error); }
.win-lg h2 { font-size: clamp(30px, 3.6vw, var(--size-44)); margin-bottom: var(--space-4); }

/* ---------- Preis ---------- */
.price { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.amount { font-weight: 800; font-size: clamp(60px, 9vw, var(--size-84)); line-height: 1; letter-spacing: -0.045em; }
.was { font-size: var(--size-20); color: var(--ink-2); }
.price-note { margin: var(--space-2) 0 var(--space-6); }

/* Häkchen/Kreuz als SVG-Masken, Farbe nur als Status */
.checks, .crosses { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.checks li, .crosses li { position: relative; padding-left: 32px; }
.checks li::before, .crosses li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  -webkit-mask: var(--m) center / 12px 12px no-repeat; mask: var(--m) center / 12px 12px no-repeat;
}
.checks li::before { background: var(--ok); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background: var(--error); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.checks li::after, .crosses li::after { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; opacity: .12; }
.checks li::after { background: var(--ok); }
.crosses li::after { background: var(--error); }

/* ---------- Für wen: zwei Spalten ohne Karten ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.fit > div { border-top: 1px solid var(--line); padding-top: var(--space-8); }
.fit ul { margin-bottom: 0; color: var(--ink-2); }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(32px, 3.6vw, var(--size-44)); margin-bottom: var(--space-4); }
.todo { background: #F6E3A6; color: #4A3A0A; border-radius: 6px; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Halftone-Porträt: Linien bauen sich beim Einscrollen auf; Hover/Fokus zeigt das Foto */
.halftone { position: relative; margin: 0; background: var(--surface); outline: none; }
.halftone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.halftone .ht-photo { opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.halftone .ht-lines { transition: opacity var(--dur-3) var(--ease); }
.halftone:hover .ht-photo, .halftone:focus-visible .ht-photo { opacity: 1; }
.halftone:hover .ht-lines, .halftone:focus-visible .ht-lines { opacity: 0; }
.halftone:focus-visible { box-shadow: inset var(--focus-ring); }

/* ---------- FAQ: Liste mit Linien ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: var(--space-6) 44px var(--space-6) 0;
  font-weight: 600; font-size: var(--size-20); line-height: 1.35; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  font: 400 var(--size-18)/1 var(--font-sans); color: var(--ink-2); background: var(--surface-2);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { box-shadow: none; outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--ink-2); margin: calc(-1 * var(--space-2)) 0 var(--space-6); }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--space-12) 0 var(--space-16); color: var(--ink-2); font-size: var(--size-14); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4) var(--space-8); }
.foot-in p { margin: 0; }
.foot-in p:last-child { margin-left: auto; }
.foot a:not(.wordmark) { color: var(--ink-2); }

/* ---------- Rechtsseiten und Danke ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: var(--space-16) var(--space-6); }
.legal h1 { font-size: clamp(40px, 6vw, var(--size-60)); }
.legal h2 { font-size: var(--size-24); margin: var(--space-12) 0 var(--space-3); }
.legal .lead { max-width: 40ch; }
.legal .meta { font-size: var(--size-14); color: var(--ink-2); }

/* ---------- Einblenden beim Scrollen (dezent, einmalig) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .reels .phone:nth-child(2)[data-reveal] { transform: translateY(52px); }
  .js .reels .phone:nth-child(2)[data-reveal].is-in { transform: translateY(40px); }
  .js [data-reveal] .halftone .ht-lines { clip-path: inset(0 0 100% 0); }
  .js [data-reveal].is-in .halftone .ht-lines { clip-path: inset(0 0 0 0); transition: clip-path 1400ms steps(40, end) 150ms, opacity var(--dur-3) var(--ease); }
  /* Fenster im Einstieg legen sich kurz nacheinander auf den Schreibtisch */
  .js .desk .win { animation: drop var(--dur-3) var(--ease) both; }
  .js .desk-term { animation-delay: 120ms; }
  .js .desk-player { animation-delay: 240ms; }
  @keyframes drop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lead { max-width: 40ch; }
  .desk { max-width: 640px; height: 600px; }
}
@media (max-width: 960px) {
  .top-nav { display: none; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .wins-3 { grid-template-columns: minmax(0, 1fr); }
  .reels { max-width: 520px; }
}
@media (max-width: 720px) {
  .wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .desk { height: 520px; }
  .desk-finder { width: 100%; }
  .desk-term { left: 0; top: 330px; width: 88%; }
  .desk-player { top: 120px; width: 36%; }
  .finder-grid { gap: 6px; padding: var(--space-2); }
  .pains, .fit { grid-template-columns: minmax(0, 1fr); }
  .pains li { padding: var(--space-6) 0 var(--space-8); }
  .field-row { flex-direction: column; }
  .ctas .btn, .field-row .btn { width: 100%; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-win { max-width: 240px; }
  .reels .phone:nth-child(2), .js .reels .phone:nth-child(2)[data-reveal].is-in { transform: translateY(24px); }
  .foot-in p:last-child { margin-left: 0; }
  .term { font-size: 12px; padding: var(--space-3) var(--space-3) var(--space-4); }
}
