/* Resetli – Website
   Farben, Zeichen und Bewegung nach docs/brand.md. Keine Anfragen an Dritte:
   Schrift (Fraunces, OFL 1.1) liegt unter assets/fonts, alles andere ist lokal. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #F7F6FC;
  --surface: #FFFFFF;
  --text: #130F22;
  --muted: #5F5876;
  --line: #DEDDE4;
  /* Violett ist die eine Signalfarbe: als Fläche --brand mit weisser Schrift (--on-brand),
     als Schrift --accent (hell ein dunkleres, dunkel ein helleres Violett, damit es lesbar bleibt). */
  --accent: #6D28D9;
  --accent-soft: #ECE5FF;
  --brand: #7C3AED;
  --on-brand: #FFFFFF;
  --hl-bg: #7C3AED;
  --hl-ink: #FFFFFF;
  --panel-bg: #130F22;
  --panel-text: #F2EFFA;
  --panel-muted: #ABA7B5;

  --grain: url("grain-light.svg");
  --shadow-soft: 0 1px 2px rgb(19 15 34 / .04), 0 14px 34px -16px rgb(124 58 237 / .22);
  --ring-strength: 3;
  --ring: #7C3AED;

  --phone-frame: #130F22;
  --phone-edge: #474453;
  --wall-top: #F8F5FE;
  --wall-mid: #E5D8FB;
  --wall-low: #C8ACF7;
  --wall-ink: #130F22;
  --phone-glow: rgb(124 58 237 / .4);
  --note-shadow: rgb(19 15 34 / .28);
  --note-bg: rgb(255 255 255 / .8);
  --note-edge: rgb(255 255 255 / .7);

  --pill-bg: #130F22;
  --pill-ink: #F7F6FC;
  --pill-accent: #A78BFA;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --gutter: clamp(16px, 4.5vw, 48px);
  --wrap: 1160px;
  --radius-l: 28px;
  --radius-m: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dunkel: fast schwarz mit Violett. Folgt dem System, ausser jemand hat umgeschaltet
   (data-theme, siehe theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0A15;
    --surface: #161225;
    --text: #F2EFFA;
    --muted: #9D95B8;
    --line: #2E2C37;
    --accent: #B79CFF;
    --accent-soft: #1E1640;
    --brand: #7F45F0;
    --on-brand: #FFFFFF;
    --hl-bg: transparent;
    --hl-ink: #B79CFF;
    --panel-bg: #161225;
    --panel-text: #F2EFFA;
    --panel-muted: #9D95B8;

    --grain: url("grain-dark.svg");
    --shadow-soft: 0 1px 2px rgb(0 0 0 / .35), 0 18px 40px -18px rgb(0 0 0 / .7);
    --ring-strength: .9;
    --ring: #A78BFA;

    --phone-frame: #06050A;
    --phone-edge: #3A3843;
    --phone-glow: rgb(167 139 250 / .22);
    --wall-top: #3A315A;
    --wall-mid: #201B33;
    --wall-low: #0C0A15;
    --wall-ink: #F2EFFA;
    --note-bg: rgb(35 31 50 / .82);
    --note-edge: rgb(255 255 255 / .08);
    --note-shadow: rgb(0 0 0 / .45);

    --pill-bg: #7F45F0;
    --pill-ink: #FFFFFF;
    --pill-accent: #FFFFFF;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0C0A15;
  --surface: #161225;
  --text: #F2EFFA;
  --muted: #9D95B8;
  --line: #2E2C37;
  --accent: #B79CFF;
  --accent-soft: #1E1640;
  --brand: #7F45F0;
  --on-brand: #FFFFFF;
  --hl-bg: transparent;
  --hl-ink: #B79CFF;
  --panel-bg: #161225;
  --panel-text: #F2EFFA;
  --panel-muted: #9D95B8;

  --grain: url("grain-dark.svg");
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .35), 0 18px 40px -18px rgb(0 0 0 / .7);
  --ring-strength: .9;
  --ring: #A78BFA;

  --phone-frame: #06050A;
  --phone-edge: #3A3843;
  --phone-glow: rgb(167 139 250 / .22);
  --wall-top: #3A315A;
  --wall-mid: #201B33;
  --wall-low: #0C0A15;
  --wall-ink: #F2EFFA;
  --note-bg: rgb(35 31 50 / .82);
  --note-edge: rgb(255 255 255 / .08);
  --note-shadow: rgb(0 0 0 / .45);

  --pill-bg: #7F45F0;
  --pill-ink: #FFFFFF;
  --pill-accent: #FFFFFF;
}

:root[data-theme="light"] { color-scheme: light; }

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--grain);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand); color: var(--on-brand); }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 50;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Zeichen als Maske: übernimmt jede Farbe aus den Tokens */
.sign-mask {
  display: inline-block;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("resetli.svg") center / contain no-repeat;
  mask: url("resetli.svg") center / contain no-repeat;
}

/* ---------- Kopf ---------- */

.site-header { position: relative; z-index: 5; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand__sign { width: 32px; height: 32px; color: var(--accent); }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 .75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

/* Kopfzeile rechts: Sprache und Hell/Dunkel */
.header-tools { display: inline-flex; align-items: center; gap: .5rem; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .25s ease, rotate .4s var(--ease-out); }
.theme-toggle__sun { opacity: 0; rotate: -60deg; }
.theme-toggle__moon { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 1; rotate: 0deg; }
  :root:not([data-theme="light"]) .theme-toggle__moon { opacity: 0; rotate: 60deg; }
}
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; rotate: 0deg; }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; rotate: 60deg; }

/* ---------- Hero ---------- */

/* Nur seitlich kappen: oben und unten laufen die Ringe als ganze Kreise aus */
.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(20px, 4vw, 56px) clamp(64px, 9vw, 128px);
}

.hero__grid {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
}

@media (min-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}

.hero__copy { position: relative; z-index: 2; }

.hero__name {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text); /* Textfarbe: über den Ringbändern bliebe Akzent unter 4,5:1 */
}
.hero__name::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero__claim {
  display: block;
  font-size: clamp(2.3rem, 1.25rem + 5.4vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.hero__claim em {
  display: block;
  /* Room for the marker: its box is taller than the tight line and would otherwise cut into the
     descenders of the line above. */
  margin-top: .46em;
  font-style: italic;
  font-weight: 430;
  color: var(--hl-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
/* Textmarker: hell Violett hinter weisser Schrift, dunkel helles Violett als Schrift */
.hl {
  padding: .02em .14em .06em;
  margin-inline: -.14em;
  border-radius: .12em;
  background: var(--hl-bg);
  color: var(--hl-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lede {
  max-width: 30ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
}

.hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 44px);
}

.price-tag {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  color: var(--muted);
}
.price-tag strong { color: var(--text); font-weight: 700; }

/* «Bald im App Store»: sieht aus wie der spätere Knopf, ist aber kein Link */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .62rem 1.2rem .62rem .85rem;
  border-radius: 14px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-family: var(--font-ui);
  line-height: 1.12;
  cursor: default;
}
.store-soon__icon { width: 28px; height: 28px; color: var(--pill-accent); }
.store-soon__small { display: block; font-size: .75rem; letter-spacing: .02em; opacity: .85; }
.store-soon__big { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

/* Bühne: das iPhone ist der Punkt, die Ringe breiten sich aus */
.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.phone-wrap {
  --pw: clamp(236px, 68vw, 296px);
  position: relative;
  isolation: isolate;
}

.rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.ring,
.wave {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--ring, var(--accent));
  translate: -50% -50%;
}
/* Verhältnisse wie im Zeichen: innerer Ring kräftiger, äusserer leiser */
.ring--inner {
  width: calc(var(--pw) * 2.9);
  border-width: calc(var(--pw) * .2);
  opacity: calc(.13 * var(--ring-strength));
}
.ring--outer {
  width: calc(var(--pw) * 4.7);
  border-width: calc(var(--pw) * .17);
  opacity: calc(.06 * var(--ring-strength));
}
.wave {
  width: calc(var(--pw) * 4.7);
  border-width: calc(var(--pw) * .05);
  opacity: 0;
  scale: .42;
}

.phone {
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19.2;
  margin: 0;
  padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .17);
  background: linear-gradient(150deg, var(--phone-edge), var(--phone-frame) 22%, var(--phone-frame) 78%, var(--phone-edge));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .08),
    0 60px 100px -50px var(--phone-glow),
    0 20px 40px -22px rgb(0 0 0 / .4);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: var(--phone-edge);
}
.phone::before { right: -3px; top: 26%; height: 13%; }
.phone::after { left: -3px; top: 21%; height: 8%; box-shadow: 0 calc(var(--pw) * .13) 0 var(--phone-edge); }

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow: hidden;
  padding: calc(var(--pw) * .03) calc(var(--pw) * .042) calc(var(--pw) * .085);
  border-radius: calc(var(--pw) * .137);
  background: radial-gradient(130% 78% at 50% 0%, var(--wall-top) 0%, var(--wall-mid) 55%, var(--wall-low) 100%);
  color: var(--wall-ink);
  font-family: var(--font-ui);
}
/* Das Zeichen als leises Hintergrundbild */
.phone__screen::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--pw) * -.42);
  width: calc(var(--pw) * 1.35);
  aspect-ratio: 1;
  translate: -50% 0;
  background: var(--ring, var(--accent));
  opacity: .17;
  -webkit-mask: url("resetli.svg") center / contain no-repeat;
  mask: url("resetli.svg") center / contain no-repeat;
}

.phone__island {
  flex: none;
  width: 33%;
  height: calc(var(--pw) * .095);
  border-radius: 999px;
  background: #000;
}

.phone__battery {
  position: absolute;
  top: calc(var(--pw) * .062);
  right: calc(var(--pw) * .085);
  width: calc(var(--pw) * .078);
  height: calc(var(--pw) * .038);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: .75;
}
.phone__battery::before {
  content: "";
  position: absolute;
  inset: 1.5px 30% 1.5px 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.phone__date {
  margin: calc(var(--pw) * .085) 0 0;
  font-size: max(11px, calc(var(--pw) * .052));
  font-weight: 600;
  opacity: .78;
}

.phone__clock {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(var(--pw) * .255);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.phone__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--pw) * .026);
  width: 100%;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.phone__bar {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pw) * .028);
  width: 36%;
  height: 4px;
  translate: -50% 0;
  border-radius: 4px;
  background: currentColor;
  opacity: .45;
}

/* Mitteilung (Sperrbildschirm) */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title when"
    "icon text  text";
  column-gap: calc(var(--pw) * .034);
  row-gap: 1px;
  align-items: start;
  padding: calc(var(--pw) * .036) calc(var(--pw) * .042);
  border-radius: calc(var(--pw) * .072);
  background: var(--note-bg);
  box-shadow: inset 0 0 0 1px var(--note-edge), 0 6px 18px -10px var(--note-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  font-size: max(11.5px, calc(var(--pw) * .047));
  line-height: 1.3;
  text-align: left;
  transition: transform .55s var(--ease-out), opacity .45s ease, scale .55s var(--ease-out);
}
.note.is-entering { opacity: 0; transform: translateY(-14px); scale: .96; }
.note.is-leaving { opacity: 0; scale: .94; }

.app-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--pw) * .118);
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--brand);
  color: var(--on-brand);
}
.app-icon::after {
  content: "";
  width: 74%;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("resetli.svg") center / contain no-repeat;
  mask: url("resetli.svg") center / contain no-repeat;
}
.note .app-icon { grid-area: icon; align-self: center; }
.note__title { grid-area: title; font-weight: 700; }
.note__when { grid-area: when; opacity: .62; font-size: .88em; white-space: nowrap; }
.note__text { grid-area: text; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 36px;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 600 .8125rem/1 var(--font-ui);
  cursor: pointer;
}
.motion-toggle:hover { color: var(--text); }
.motion-toggle::before {
  content: "";
  width: 9px;
  height: 10px;
  border-inline: 3px solid currentColor;
}
.motion-toggle[data-state="paused"]::before {
  width: 0;
  height: 0;
  border-inline: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(64px, 10vw, 132px); }

.section__title {
  display: flex;
  align-items: flex-start;
  gap: .42em;
  margin-bottom: clamp(28px, 4.5vw, 52px);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.35rem);
}
.section__title::before {
  content: "";
  flex: none;
  width: .6em;
  height: .6em;
  margin-top: .16em;
  background: var(--accent);
  -webkit-mask: url("resetli.svg") center / contain no-repeat;
  mask: url("resetli.svg") center / contain no-repeat;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* So geht's */
.steps {
  display: grid;
  gap: clamp(32px, 4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.step__title { margin-bottom: .6rem; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.7rem); }
.step p { margin: 0; color: var(--muted); }

/* Tageslinie */
.day {
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.day__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .55rem;
  margin: 0 0 .45rem;
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 700;
}
.day__label + .day__row + .day__label { margin-top: 1.1rem; }
.day__label::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.day__label--ring::before { background: transparent; box-shadow: inset 0 0 0 2.5px var(--accent); }
.day__label span { font-weight: 500; color: var(--muted); }

.day__row {
  display: block;
  width: 100%;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
}
.day__night { fill: var(--line); }
.day__hatch line { stroke: var(--muted); stroke-width: 1.2; opacity: .3; }
.day__window { fill: var(--accent-soft); }
.day__dot {
  --dot-scale: 1;
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--dot-scale));
}
.day__dot--ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2.25; }
@media (max-width: 559px) {
  .day__dot { --dot-scale: .62; }
}

.day__axis {
  position: relative;
  height: 1.5rem;
  margin-top: .55rem;
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.day__tick { position: absolute; top: 0; white-space: nowrap; translate: -50% 0; }
.day__tick--0 { left: 0; translate: none; }
.day__tick--8 { left: 33.333%; }
.day__tick--20 { left: 83.333%; }
.day__tick--24 { right: 0; translate: none; }
@media (max-width: 479px) {
  .day__tick--0, .day__tick--24 { display: none; }
}
.day__caption {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}

/* Beispiel-Pings: Mitteilungen über den Tag */
.pings {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ping {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ping__time {
  position: relative;
  padding-top: 1.15rem;
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.ping__card {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out);
}
.ping__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .5rem;
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 700;
  color: var(--muted);
}
.ping__meta .app-icon { width: 28px; }
.ping__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem);
  font-weight: 470;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}

@media (hover: hover) {
  .ping__card:hover { transform: translateY(-4px); }
}

/* Ab 1000 px: Wäscheleine, die Karten hängen über und unter der Zeitlinie */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1000px) {
    .pings {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      grid-template-rows: auto 4rem auto;
      column-gap: 18px;
      row-gap: 0;
    }
    .pings::before {
      content: "";
      grid-row: 2;
      grid-column: 1 / -1;
      align-self: center;
      height: 2px;
      background: linear-gradient(to right, transparent, var(--line) 5%, var(--line) 95%, transparent);
    }
    .ping {
      grid-row: 1 / span 3;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    .ping:nth-child(1) { grid-column: 1; }
    .ping:nth-child(2) { grid-column: 2; }
    .ping:nth-child(3) { grid-column: 3; }
    .ping:nth-child(4) { grid-column: 4; }
    .ping:nth-child(5) { grid-column: 5; }
    .ping__time {
      grid-row: 2;
      align-self: center;
      justify-self: center;
      z-index: 1;
      padding: .3rem .75rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--bg);
    }
    .ping__time::before {
      content: "";
      position: absolute;
      left: 50%;
      width: 2px;
      height: 1.05rem;
      translate: -50% 0;
      background: var(--line);
    }
    .ping:nth-child(odd) .ping__time::before { bottom: 100%; }
    .ping:nth-child(even) .ping__time::before { top: 100%; }
    .ping:nth-child(odd) .ping__card { grid-row: 1; align-self: end; }
    .ping:nth-child(even) .ping__card { grid-row: 3; align-self: start; }
  }
}

/* Was fehlt, mit Absicht */
.absent {
  margin-inline: clamp(8px, 2vw, 28px);
  border-radius: clamp(28px, 5vw, 56px);
  /* invertierte Fläche: hell schwarz, dunkel eine Stufe heller als der Grund */
  --text: var(--panel-text);
  --muted: var(--panel-muted);
  --accent: var(--brand);
  background: var(--panel-bg);
  color: var(--text);
}
.absent__list {
  display: grid;
  gap: .08em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1rem + 6.2vw, 6.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.absent__list li:nth-child(even) {
  padding-left: clamp(0px, 9vw, 180px);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.cross { position: relative; white-space: nowrap; }
.cross::after {
  content: "";
  position: absolute;
  left: -.05em;
  right: -.05em;
  top: 54%;
  height: .085em;
  border-radius: 1em;
  background: var(--brand);
  transform: rotate(-4deg);
  transform-origin: left center;
  transition: transform .8s var(--ease-out);
}
.absent__list li:nth-child(2) .cross::after { transition-delay: .12s; }
.absent__list li:nth-child(3) .cross::after { transition-delay: .24s; }
.absent__list li:nth-child(4) .cross::after { transition-delay: .36s; }

.absent__note {
  max-width: 34ch;
  margin: clamp(32px, 5vw, 56px) 0 0 auto;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  line-height: 1.45;
}

/* Privat + Preis */
.duo {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}
@media (min-width: 860px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.card__lead {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
.card p:last-child { margin-bottom: 0; }
.card__text { color: var(--muted); }

.privacy__art { width: 120px; height: 120px; margin: -8px 0 18px -10px; color: var(--accent); }
.privacy__phone { fill: var(--accent-soft); stroke: var(--text); stroke-width: 2.5; }
.privacy__island { fill: var(--text); }
.privacy__wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.price__big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .9rem;
  margin: .2rem 0 1.4rem;
}
.price__num {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 3rem + 7vw, 8.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -0.055em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.price__unit {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.price .store-soon { align-self: flex-start; margin-top: 1.6rem; }

/* Für Kurse und Praxen */
.share__grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .share__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); }
}
.share__intro { max-width: 52ch; color: var(--muted); }

.forward {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.forward__title {
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.forward__text {
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
  font-weight: 420;
  line-height: 1.42;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.forward__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.forward__status { font-family: var(--font-ui); font-size: .9375rem; font-weight: 600; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 .9375rem/1 var(--font-ui);
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.btn:hover { background: color-mix(in oklab, var(--brand) 86%, var(--text)); }
.btn:active { transform: scale(.97); }
.btn--quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.btn--quiet:hover { background: var(--surface); }
.btn__icon { width: 16px; height: 16px; }

.qr {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  text-align: center;
}
.qr__slot {
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  aspect-ratio: 1;
  border: 2px dashed color-mix(in oklab, var(--muted) 60%, transparent);
  border-radius: 30px;
  background: var(--surface);
}
.qr__slot svg { width: 82%; height: 82%; }
.qr__finder { fill: none; stroke: var(--muted); stroke-width: 6; opacity: .28; }
.qr__finder-dot { fill: var(--muted); opacity: .28; }
.qr__sign { color: var(--accent); }
.qr figcaption {
  max-width: 24ch;
  text-wrap: balance;
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
}

/* FAQ */
.faq__wrap { max-width: 880px; }
.faq__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.faq__head .section__title { margin-bottom: 0; }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem);
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 44% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 44% no-repeat,
    var(--accent-soft);
  transition: transform .35s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item summary:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: .16em; text-underline-offset: .18em; }
.faq__answer { max-width: 62ch; padding: 0 0 1.6rem; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer a { overflow-wrap: anywhere; }

/* ---------- Fuss ---------- */

.site-footer {
  margin-top: clamp(32px, 6vw, 72px);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: .9375rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.site-footer__brand .sign-mask { width: 26px; height: 26px; color: var(--accent); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); }

/* ---------- Rechtliche Seiten ---------- */

.legal { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 9vw, 112px); }
.legal__inner { max-width: 70ch; }
.back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 600;
}
.back::before { content: "\2190"; }
.legal h1 { margin-bottom: .6rem; font-size: clamp(2.3rem, 1.5rem + 3.5vw, 4rem); }
.legal__meta { margin-bottom: 2.4rem; font-family: var(--font-ui); font-size: .9375rem; color: var(--muted); }
.legal__lead {
  margin-bottom: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  font-size: 1.125rem;
}
.legal h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.legal h3 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal li { margin-bottom: .45rem; }
.legal address { margin-bottom: 1em; font-style: normal; }
.legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.2rem; margin: 0 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal dd { margin-bottom: .6rem; }
}

/* Platzhalter, die vor der Veröffentlichung ersetzt werden müssen */
.todo {
  padding: .05em .4em;
  border-radius: 6px;
  outline: 1.5px dashed var(--accent);
  outline-offset: -1.5px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .92em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Bewegung (nur ohne «Bewegung reduzieren») ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__name,
  .hero__claim,
  .hero__lede,
  .hero__buy { animation: rise .9s var(--ease-out) both; }
  .hero__claim { animation-delay: .07s; }
  .hero__lede { animation-delay: .18s; }
  .hero__buy { animation-delay: .3s; }
  .phone-wrap { animation: rise-phone 1.2s var(--ease-out) .12s both; }

  /* Welle pro Ping: wächst aus dem Punkt und verblasst, 2,4 s ease-out */
  .wave { animation: wave 2.4s var(--ease-out) forwards; }

  .phone__clock.is-tick { animation: tick .5s ease; }

  /* Tageslinie: Punkte erscheinen in der Reihenfolge des Tages */
  .day__dot {
    transition: transform .55s var(--ease-out), opacity .35s ease;
    transition-delay: calc(var(--i, 0) * 26ms);
  }
  .js .day:not(.is-in) .day__dot { opacity: 0; transform: scale(0); }

  .ping { transition: opacity .7s ease, translate .8s var(--ease-out); }
  .js .pings-section:not(.is-in) .ping { opacity: 0; translate: 0 22px; }
  .ping:nth-child(2) { transition-delay: .08s; }
  .ping:nth-child(3) { transition-delay: .16s; }
  .ping:nth-child(4) { transition-delay: .24s; }
  .ping:nth-child(5) { transition-delay: .32s; }

  .js .absent:not(.is-in) .cross::after { transform: rotate(-4deg) scaleX(0); }

  /* Ringe bleiben im iPhone: zwei Wellen beim Hineinscrollen, dann Ruhe */
  .privacy.is-in .privacy__wave { animation: inside 2.4s var(--ease-out) .2s 2 both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-phone {
  from { opacity: 0; transform: translateY(36px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes wave {
  0% { scale: .42; opacity: calc(.4 * var(--ring-strength)); }
  100% { scale: 1; opacity: 0; }
}
@keyframes tick {
  0% { opacity: .25; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes inside {
  0% { transform: scale(.3); opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}

@media print {
  .rings, .motion-toggle, .lang, .theme-toggle, .skip { display: none !important; }
  .js .day__dot, .js .ping { opacity: 1 !important; transform: none !important; translate: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Geteiltes Paket (/p/) ---------- */

.paket__card {
  margin-block: 1.6rem 1.8rem;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.paket__card h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.paket__takt { margin: 0 0 1.2rem; font-family: var(--font-ui); font-size: .9375rem; font-weight: 600; color: var(--muted); }
.paket__saetze { margin: 0; padding-left: 1.4em; display: grid; gap: .55rem; }
.paket__saetze li::marker { font-family: var(--font-ui); font-weight: 700; color: var(--muted); }
.paket__hint { color: var(--muted); font-size: .9375rem; }
