/* ArrowNotes – gemeinsames Stylesheet aller Seiten.

   Farben: monochrom, warm-neutral, definiert über light-dark(). Das System
   entscheidet (color-scheme: light dark), data-theme am <html> erzwingt eine
   Seite. Dadurch steht jede Regel nur einmal da.
   Schrift: Systemstack – lädt nichts nach, wirkt auf Apple-Geräten nativ.
   Layout: fluid über clamp(), Bento-Raster, Container-Queries in den Kacheln.
   Bewegung: scroll-getriebene Reveals als Progressive Enhancement, unter
   prefers-reduced-motion komplett aus. */

/* ---------- Token ---------- */

:root {
  color-scheme: light dark;

  --bg:        light-dark(oklch(98.3% 0.004 85), oklch(14.5% 0.006 70));
  --surface:   light-dark(oklch(100% 0 0),       oklch(19% 0.006 70));
  --surface-2: light-dark(oklch(95.5% 0.006 85), oklch(24% 0.006 70));
  --surface-3: light-dark(oklch(92% 0.007 85),   oklch(29% 0.006 70));
  --border:    light-dark(oklch(89% 0.008 85),   oklch(30% 0.006 70));
  --border-strong: light-dark(oklch(80% 0.01 85), oklch(40% 0.006 70));
  --text:      light-dark(oklch(17% 0.01 70),    oklch(96% 0.004 85));
  --muted:     light-dark(oklch(46% 0.012 70),   oklch(72% 0.01 85));
  --faint:     light-dark(oklch(55% 0.012 70),   oklch(64% 0.01 85));

  /* Knöpfe: Text auf Grund – invertiert */
  --btn-bg: var(--text);
  --btn-fg: var(--bg);

  /* Das Orange-Rot des App-Icons, nur für kleine Akzente */
  --brand: oklch(66% 0.19 38);

  /* Das dunkle Band (Watch) ist im Hellmodus dunkel, im Dunkelmodus hell */
  --band-bg:     light-dark(oklch(16% 0.008 70), oklch(96% 0.005 85));
  --band-fg:     light-dark(oklch(96% 0.004 85), oklch(17% 0.01 70));
  --band-muted:  light-dark(oklch(72% 0.01 85),  oklch(46% 0.012 70));

  --device-bezel: light-dark(oklch(22% 0.006 70), oklch(34% 0.006 70));
  --device-edge:  light-dark(oklch(38% 0.006 70), oklch(50% 0.006 70));

  --shadow-sm: 0 1px 2px light-dark(rgba(20, 16, 10, .06), rgba(0, 0, 0, .4));
  --shadow-md: 0 10px 30px light-dark(rgba(20, 16, 10, .10), rgba(0, 0, 0, .5));
  --shadow-lg: 0 30px 80px -20px light-dark(rgba(20, 16, 10, .35), rgba(0, 0, 0, .7));

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --maxw: 1120px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(14px, 2vw, 24px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 60px;

  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + .4vw, 1.3rem);
  --step-2: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.25rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 4.9rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* Rückfall für Browser ohne light-dark(): feste Werte plus Systemwahl */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #f8f7f4; --surface: #fff; --surface-2: #eeece7; --surface-3: #e5e2dc;
    --border: #dedbd4; --border-strong: #c4c0b7; --text: #1b1916; --muted: #625d55; --faint: #8b857c;
    --band-bg: #1b1916; --band-fg: #f4f3f0; --band-muted: #aaa49b;
    --device-bezel: #26231f; --device-edge: #4a463f;
    --shadow-sm: 0 1px 2px rgba(20, 16, 10, .06);
    --shadow-md: 0 10px 30px rgba(20, 16, 10, .10);
    --shadow-lg: 0 30px 80px -20px rgba(20, 16, 10, .35);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #141311; --surface: #1d1b18; --surface-2: #26231f; --surface-3: #302d28;
      --border: #33302a; --border-strong: #4a463f; --text: #f4f3f0; --muted: #aaa49b; --faint: #7f7a71;
      --band-bg: #f4f3f0; --band-fg: #1b1916; --band-muted: #625d55;
      --device-bezel: #3a3631; --device-edge: #5c574f;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
      --shadow-md: 0 10px 30px rgba(0, 0, 0, .5);
      --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
    }
  }
  :root[data-theme="dark"] {
    --bg: #141311; --surface: #1d1b18; --surface-2: #26231f; --surface-3: #302d28;
    --border: #33302a; --border-strong: #4a463f; --text: #f4f3f0; --muted: #aaa49b; --faint: #7f7a71;
    --band-bg: #f4f3f0; --band-fg: #1b1916; --band-muted: #625d55;
    --device-bezel: #3a3631; --device-edge: #5c574f;
  }
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 .45em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--step-4); letter-spacing: -.035em; line-height: 1.0; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
small { font-size: .85em; }

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

.overline {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 58ch; }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: .4em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

.store-link { display: inline-block; line-height: 0; border-radius: 8px; }
.store-link img { height: 50px; width: auto; }
.store-link-lg img { height: 60px; }
.site-footer .store-link img { height: 40px; }
.badge-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-light { display: none; }
  :root:not([data-theme="light"]) .badge-dark { display: block; }
}
:root[data-theme="dark"] .badge-light { display: none; }
:root[data-theme="dark"] .badge-dark { display: block; }
:root[data-theme="light"] .badge-light { display: block; }
:root[data-theme="light"] .badge-dark { display: none; }

/* Screenshots in Hell und Dunkel: dieselbe Logik */
.shot-light, .shot-dark { display: contents; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: contents; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: contents; }
:root[data-theme="light"] .shot-light { display: contents; }
:root[data-theme="light"] .shot-dark { display: none; }

/* ---------- Kopfleiste ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -.01em; text-decoration: none; color: var(--text);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; border-radius: 999px;
  color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }

.controls { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav + .controls { margin-inline-start: 0; }

.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; border-radius: 999px;
  color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.ctl:hover { background: var(--surface-2); }
.ctl-menu { display: none; }

/* Popover-Menüs: fest unter der Kopfleiste am rechten Rand */
.menu, .sheet {
  position: fixed; inset: auto;
  margin: 0; padding: 6px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.menu {
  top: calc(var(--header-h) + env(safe-area-inset-top) + 6px);
  right: var(--gutter);
  min-width: 180px;
  display: none;
}
.menu:popover-open, .menu.is-open { display: grid; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 12px;
  border: 0; border-radius: 9px; background: none;
  color: var(--text); font: inherit; text-decoration: none; text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu [aria-current="true"]::after, .menu [aria-checked="true"]::after {
  content: ""; margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

.sheet {
  top: max(8px, env(safe-area-inset-top));
  left: 8px; right: 8px;
  padding: 10px 14px 18px;
  border-radius: 22px;
  display: none;
}
.sheet:popover-open, .sheet.is-open { display: block; }
.sheet::backdrop { background: color-mix(in oklab, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.sheet-nav { display: grid; margin: 8px 0 12px; }
.sheet-nav a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.sheet-nav a[aria-current="page"] { color: var(--muted); }
.sheet-title { margin: 14px 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-row a, .sheet-row button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
  color: var(--text); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.sheet-row [aria-current="true"], .sheet-row [aria-checked="true"] { border-color: var(--text); background: var(--surface); }

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

section { padding-block: var(--section); }

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

.hero { padding-top: clamp(48px, 8vw, 104px); padding-bottom: 0; text-align: center; overflow: clip; }
.hero .wrap { max-width: 820px; }
.hero h1 { margin-inline: auto; }
.hero .lead { margin-inline: auto; margin-top: .6em; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; color: var(--faint); font-size: .9rem; }

.hero-devices {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.5vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-inline: var(--gutter);
  /* Der Boden schneidet die Geräte etwas ab – das erdet den Hero */
  max-height: clamp(360px, 52vw, 620px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.device-main { --w: clamp(240px, 30vw, 320px); }
.device-side { --w: clamp(140px, 19vw, 240px); opacity: .92; }
.device-left  { transform: translateY(56px) rotate(-3deg); }
.device-right { transform: translateY(56px) rotate(3deg); }

/* ---------- Geräterahmen ---------- */

.device {
  width: var(--w, 280px);
  padding: calc(var(--w, 280px) * .028);
  background: var(--device-bezel);
  border-radius: calc(var(--w, 280px) * .155);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), var(--shadow-lg);
  flex: none;
}
.device img {
  width: 100%;
  aspect-ratio: 331 / 720;
  object-fit: cover;
  border-radius: calc(var(--w, 280px) * .128);
  background: #000;
}
.watch {
  --w: 180px;
  width: var(--w);
  padding: calc(var(--w) * .07);
  background: var(--device-bezel);
  border-radius: calc(var(--w) * .28);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), var(--shadow-md);
}
.watch img { width: 100%; aspect-ratio: 416 / 496; object-fit: cover; border-radius: calc(var(--w) * .22); background: #000; }

/* ---------- Kennzahlen-Leiste ---------- */

.facts-strip { padding-block: 0; }
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.facts li {
  display: grid; gap: 2px; padding: 22px 8px; text-align: center;
  border-inline-start: 1px solid var(--border);
}
.facts li:first-child { border-inline-start: 0; }
.facts strong { font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: .85rem; color: var(--muted); }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  grid-auto-flow: dense;
  gap: var(--gap);
}
.tile {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  grid-column: span 2;
  transition: translate .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { translate: 0 -2px; box-shadow: var(--shadow-md); }
.tile.lg { grid-column: span 4; grid-row: span 2; }
.tile-text { padding: clamp(20px, 2.4vw, 32px); }
.tile-text p { color: var(--muted); }
.tile-text ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.tile-text li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.tile-text li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.tile-media { position: relative; height: var(--media-h, 210px); }
.tile-media .device { position: absolute; left: 50%; top: 0; translate: -50%; --w: 190px; }
.tile-icon { position: absolute; top: 22px; right: 22px; color: var(--muted); }
.tile.sm .tile-text { padding-right: 64px; }

/* Große Kachel: Text links, Gerät rechts angeschnitten */
@media (min-width: 601px) {
  .tile.lg { grid-template-columns: 1fr 1fr; align-items: start; }
  .tile.lg .tile-text { padding-right: 0; }
  .tile.lg .tile-media { height: 100%; min-height: 420px; }
  .tile.lg .tile-media .device { --w: clamp(220px, 23vw, 300px); top: 56px; }
}

/* ---------- Feature-Stories ---------- */

.stories { padding-top: 0; }
.story {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 88px);
}
.story + .story { border-top: 1px solid var(--border); }
.story.flip .story-text { order: 2; }
.story-text p { color: var(--muted); max-width: 52ch; }
.story-media { display: flex; justify-content: center; }
.story-media .device { --w: clamp(240px, 26vw, 300px); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3Cpath d='M6 10.5l2.6 2.6L14.5 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3Cpath d='M6 10.5l2.6 2.6L14.5 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Watch-Band ---------- */

.band {
  background: var(--band-bg); color: var(--band-fg);
  --muted: var(--band-muted);
  --device-bezel: light-dark(oklch(30% 0.006 70), oklch(24% 0.006 70));
  --device-edge: light-dark(oklch(45% 0.006 70), oklch(40% 0.006 70));
  border-radius: var(--radius-lg);
  margin-inline: max(8px, env(safe-area-inset-left));
  padding-inline: 0;
}
.band .wrap { text-align: center; }
.band .section-head { margin-inline: auto; }
.band .lead { margin-inline: auto; }
.watch-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  justify-items: center;
}
.watch-row li { display: grid; gap: 14px; justify-items: center; }
.watch-row span { font-size: .9rem; color: var(--muted); }
.watch-row .watch { --w: clamp(140px, 18vw, 180px); }

/* ---------- Auszeichnungen-Teaser ---------- */

.awards-teaser-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 64px);
}
.awards-teaser-inner p { color: var(--muted); margin-bottom: 22px; }
.badge-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.badge-row li {
  aspect-ratio: 1; display: grid; place-items: center; padding: 14%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.badge-row li:hover { transform: translateY(-3px) rotate(-2deg); }
.badge-row li:nth-child(even):hover { transform: translateY(-3px) rotate(2deg); }

/* ---------- Vertrauen ---------- */

.trust { padding-top: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.trust-item {
  padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.trust-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); margin-bottom: 18px; }
.trust-item h3 { font-size: var(--step-1); margin-bottom: .3em; }
.trust-item p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ-Teaser & Akkordeon ---------- */

.faq-teaser { padding-top: 0; }
.faq-teaser-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-teaser-grid p { color: var(--muted); margin-bottom: 22px; }

details.qa {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
details.qa:last-child { border-bottom: 1px solid var(--border); }
details.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 10px 0;
  cursor: pointer; font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em;
  list-style: none;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2);
  -webkit-mask: none; mask: none;
  position: relative;
  transition: transform .3s var(--ease);
}
details.qa summary::after {
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat,
    var(--surface-2);
}
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { margin: 0 0 14px; color: var(--muted); max-width: 64ch; }
details.qa summary:hover { color: var(--muted); }

/* ---------- Abschluss ---------- */

.cta { text-align: center; }
.cta .wrap { max-width: 640px; }
.cta-icon { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 22px; box-shadow: var(--shadow-md); }
.cta .lead { margin: 0 auto 28px; }
.cta-note { margin-top: 16px; color: var(--faint); font-size: .85rem; }

/* ---------- Dokumentseiten (Handbuch, FAQ, Recht, Auszeichnungen) ---------- */

.doc-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.doc-hero .wrap { max-width: 820px; }
.doc-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }

.doc { padding-top: clamp(28px, 4vw, 56px); }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.toc summary {
  cursor: pointer; list-style: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 6px 0; margin-bottom: 4px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc li a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px;
  color: var(--muted); font-size: .92rem; text-decoration: none;
  border-left: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.toc li a:hover { color: var(--text); }
.toc li a.is-active { color: var(--text); border-left-color: var(--text); font-weight: 600; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; padding-top: .2em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: var(--step-1); }
.prose h4 { margin-top: 1.4em; font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--faint); }
.prose .updated { color: var(--faint); font-size: .9rem; }
.prose small { color: var(--muted); }
.prose h2 small { font-size: .55em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: .3em; }

/* Auszeichnungen */
.award-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 1rem; }
.award {
  display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 22px 16px 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.award img { width: 104px; height: 104px; }
.award h3 { font-size: 1rem; margin: 6px 0 0; letter-spacing: 0; }
.award p { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.page-awards .prose { max-width: none; }
.page-awards .prose > p { max-width: 70ch; }

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(40px, 6vw, 72px) calc(28px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(24px, 4vw, 48px); }
.footer-brand > img { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px; }
.footer-brand p { max-width: 30ch; margin-bottom: 18px; }
.footer-brand strong { color: var(--text); }
.footer-title { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer [aria-current="true"] { color: var(--text); }
.footer-legal { margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--faint); }

/* ---------- Bewegung ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal both linear;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .ctl-menu { display: inline-flex; }
  .ctl-label { display: none; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.lg { grid-column: span 2; }
  .tile.md, .tile.sm { grid-column: span 1; }
  .tile.lg { grid-row: auto; }

  .story, .story.flip { grid-template-columns: 1fr; text-align: center; }
  .story.flip .story-text { order: 0; }
  .story-text p { margin-inline: auto; }
  .checks { justify-items: start; max-width: 46ch; margin-inline: auto; text-align: left; }

  .awards-teaser-inner, .faq-teaser-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(4) { border-inline-start: 0; border-top: 1px solid var(--border); }
  .facts li:nth-child(5) { border-top: 1px solid var(--border); }
  .facts li:nth-child(n+4) { grid-column: span 1; }

  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-aside { position: static; }
  .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; }
  .toc summary { padding: 8px 0; margin: 0; display: flex; align-items: center; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 1.1rem; letter-spacing: 0; }
  .toc[open] summary::after { content: "–"; }
  .toc[open] summary { margin-bottom: 8px; }
  .toc ol { border: 0; columns: 2; column-gap: 24px; }
  .toc li a { padding-left: 0; border: 0; }
  .toc li a.is-active { font-weight: 500; }
}

/* ---------- Telefon ---------- */

@media (max-width: 600px) {
  :root { --section: clamp(56px, 14vw, 80px); }
  .hero { padding-top: 40px; }
  .hero-devices { max-height: 330px; gap: 10px; margin-top: 36px; }
  .device-side { display: none; }
  .device-main { --w: min(66vw, 260px); }
  .hero-actions { gap: 12px; }
  .store-link img { height: 48px; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 16px 6px; border-top: 1px solid var(--border); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(odd) { border-inline-start: 0; }
  .facts li:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .facts li:last-child { grid-column: span 2; border-inline-start: 0; }
  .facts strong { font-size: 1.2rem; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile.lg, .tile.md, .tile.sm { grid-column: span 1; }
  .tile-media { --media-h: 200px; }
  .tile.sm .tile-text { padding-right: 24px; padding-top: 68px; }

  .story-media .device { --w: min(64vw, 260px); }
  .watch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .watch-row .watch { --w: min(38vw, 150px); }
  .band { margin-inline: 0; border-radius: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .award { padding: 16px 10px 14px; }
  .award img { width: 80px; height: 80px; }
  details.qa summary { font-size: 1.05rem; min-height: 52px; }
}
