/* Hoofdays: eine Datei für alle Seiten.
   Aufbau: Farben wie in der App; Überschriften in New York wie in der App (iPhone, Safari), sonst Source Serif 4;
   Schriften liegen selbst im Ordner fonts/ (kein Google, kein Tracking);
   Startseite = App-Icon vorn, riesige Bildmarke im Hintergrund, Screenshots in iPhone-Rahmen, Bildseiten im Wechsel. */

/* Ersatz für New York in Chrome, Windows und Android (New York gibt es nur bei Apple) */
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

:root {
  --bg: #F7F1EA;
  --card: #FFFBF7;
  --powder: #F4E4E1;
  --blush: #E9C6C1;
  --rose: #C98F8C;
  --accent: #8E5F5C;
  --sand: #E7D8C4;
  --sand-soft: #EFE5D6;
  --ink: #3A3638;
  --muted: #6E6466;
  --line: #EADFD6;
  --on-ink: #F7F1EA;
  --watermark: #F1E2DC;
  --frame: #2B2728;
  --frame-edge: #4F4749;
  --island: #070606;
  --badge-bg: #000000;
  --badge-fg: #FFFFFF;
  --badge-line: #A6A6A6;
  --shadow-soft: rgba(58, 54, 56, 0.10);
  --shadow-deep: rgba(58, 54, 56, 0.30);
  --shadow: 0 18px 40px rgba(58, 54, 56, 0.14);
  --serif: ui-serif, 'New York', 'Source Serif 4', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1A1B; --card: #2A2627; --powder: #3A3033; --blush: #4D3A3C; --rose: #D9A6A2;
    --accent: #E2B4AF; --sand: #3B342C; --sand-soft: #322C27; --ink: #F3ECE6; --muted: #B9ADA8;
    --line: #3A3436; --on-ink: #2A2627; --watermark: #262122; --frame: #3A3436; --frame-edge: #5E5458;
    --shadow-soft: rgba(0, 0, 0, 0.3); --shadow-deep: rgba(0, 0, 0, 0.65);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1A1B; --card: #2A2627; --powder: #3A3033; --blush: #4D3A3C; --rose: #D9A6A2;
  --accent: #E2B4AF; --sand: #3B342C; --sand-soft: #322C27; --ink: #F3ECE6; --muted: #B9ADA8;
  --line: #3A3436; --on-ink: #2A2627; --watermark: #262122; --frame: #3A3436; --frame-edge: #5E5458;
  --shadow-soft: rgba(0, 0, 0, 0.3); --shadow-deep: rgba(0, 0, 0, 0.65);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }

/* Kopf */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img.logo { display: block; width: auto; height: 30px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Schriftzug als Maske: nimmt immer die Textfarbe an, hell wie dunkel */
.wordmark {
  display: block; height: 30px; aspect-ratio: 628.31 / 92.66; background: var(--ink);
  -webkit-mask: url('img/logo-horizontal.svg') center / contain no-repeat;
  mask: url('img/logo-horizontal.svg') center / contain no-repeat;
}

/* Schriften: eine Leiter für alle Überschriften */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600; line-height: 1.06; margin: 0;
  font-optical-sizing: auto; letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.4vw, 86px); letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.015em; }
h3 { font-size: 23px; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 32em; margin: 0; }
.note { font-size: 14px; color: var(--muted); }
.kicker { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 19px; margin: 0 0 8px; }

/* Kleine Zeile über jeder Überschrift: Bildmarke, Bereich, ggf. Plus */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 15px; font-weight: 600; color: var(--accent);
}
.m { width: 1em; height: 1em; flex: none; fill: currentColor; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}

/* Knöpfe */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; text-decoration: none; font-size: 16px;
}
.button:hover { color: var(--on-ink); opacity: 0.92; }
.button[aria-disabled="true"] { cursor: default; }
.button svg { width: 18px; height: 18px; fill: currentColor; }

/* App-Store-Knopf im typischen Look (schwarz, Apple-Logo, zwei Zeilen) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 12px;
  background: var(--badge-bg); color: var(--badge-fg);
  box-shadow: inset 0 0 0 1px var(--badge-line);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: default; user-select: none;
}
.store-badge svg { width: 26px; height: 32px; fill: currentColor; flex: none; }
.sb-text { display: grid; line-height: 1; gap: 3px; }
.sb-text small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.sb-text b { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- iPhone-Rahmen ---------- */
.device {
  --w: 290px;
  container-type: inline-size;
  position: relative; margin: 0;
  width: var(--w); max-width: 100%;
}
.phone {
  position: relative; padding: 3.4cqw; border-radius: 15.6cqw;
  background: var(--frame);
  box-shadow:
    inset 0 0 0 0.45cqw var(--frame-edge),
    0 2px 6px var(--shadow-soft),
    0 30px 60px -20px var(--shadow-deep);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 828 / 1800; object-fit: cover;
  border-radius: 12.2cqw; background: var(--card);
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 1; top: 5.7cqw; left: 50%;
  width: 26.5cqw; height: 7.8cqw; transform: translateX(-50%);
  border-radius: 999px; background: var(--island);
}
.phone::after { /* Seitentaste rechts */
  content: ""; position: absolute; right: -0.8cqw; top: 25%;
  width: 1cqw; height: 10%; border-radius: 0 0.8cqw 0.8cqw 0; background: var(--frame);
}
.device::before { /* Lautstärke links */
  content: ""; position: absolute; left: -0.8cqw; top: 19%;
  width: 1cqw; height: 4%; border-radius: 0.8cqw 0 0 0.8cqw; background: var(--frame);
  box-shadow: 0 9cqw 0 var(--frame), 0 22cqw 0 var(--frame);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: 24px 88px; }
.hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1180px, 130vw); height: auto; aspect-ratio: 1;
  right: -16%; top: 50%; transform: translateY(-46%);
  fill: var(--watermark);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.app-id { display: flex; align-items: center; gap: 18px; }
.app-icon {
  width: 104px; height: 104px; border-radius: 23.5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 14px 30px -10px var(--shadow-deep), 0 2px 6px var(--shadow-soft);
}
.app-id .name { display: grid; gap: 6px; }
.app-id .wordmark { height: 34px; }
.app-id .note { font-size: 15px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero-visual .device { grid-area: 1 / 1; }
.hero-visual .front { --w: 318px; transform: translateX(-16%) rotate(-4deg); z-index: 2; }
.hero-visual .back { --w: 280px; transform: translate(34%, -7%) rotate(6deg); z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .front { animation: rise-front 0.9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-visual .back { animation: rise-back 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise-front { from { transform: translate(-16%, 28px) rotate(-1deg); } }
  @keyframes rise-back { from { transform: translate(26%, 30px) rotate(1deg); } }
}

/* Leiste mit den vier Versprechen */
.facts { border-block: 1px solid var(--line); }
.facts ul {
  list-style: none; margin-block: 0; padding-block: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  font-weight: 500; font-size: 16px;
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts .m { color: var(--rose); }

/* ---------- Funktionen: Bild und Text im Wechsel ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center; padding-block: 72px;
}
.feature .text { min-width: 0; max-width: 31em; }
.feature .text > p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.feature.flip .text { order: 2; justify-self: start; }
.feature:not(.flip) .text { justify-self: end; }

.stage { position: relative; display: grid; place-items: center; padding-block: 8px; min-width: 0; }
.stage::before {
  content: ""; position: absolute; inset: 13% 0; border-radius: 48px;
  background: var(--tint, var(--powder));
}
.stage.sand { --tint: var(--sand-soft); }
.stage .device { transform: rotate(-3deg); transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.flip .stage .device { transform: rotate(3deg); }
.stage:hover .device { transform: rotate(0deg) translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .stage .device { transition: none; } }

.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 17px; height: 17px;
  background: var(--rose);
  -webkit-mask: url('img/mark-rose.svg') center / contain no-repeat;
  mask: url('img/mark-rose.svg') center / contain no-repeat;
}
.say {
  padding: 1px 8px; border-radius: 8px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Band mit vier kleinen Telefonen ---------- */
.band { background: var(--card); padding-block: 88px 104px; }
.band-head { display: grid; gap: 14px; max-width: 34em; margin-bottom: 56px; }
.band-head p { margin: 0; color: var(--muted); font-size: 18px; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.quad article { display: grid; gap: 14px; min-width: 0; }
.quad article:nth-child(even) { margin-top: 56px; }
.quad .device { --w: 100%; max-width: 236px; justify-self: center; }
.quad h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.quad p { margin: 0; color: var(--muted); font-size: 16px; }

/* Karten und Raster */
.card { background: var(--card); border-radius: 28px; padding: 26px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

section.block { padding-block: 88px; }
.block-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 34em; }
.block-head p { margin: 0; color: var(--muted); font-size: 18px; }

/* Versprechen: dunkle Fläche mit großer Bildmarke */
.promise {
  position: relative; overflow: clip; border-radius: 40px;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  display: grid; gap: 18px;
}
.promise .big {
  position: relative; z-index: 1; margin: 0; max-width: 17em;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.promise .small { position: relative; z-index: 1; margin: 0; max-width: 36em; font-size: 16px; opacity: 0.8; }
.promise a { color: inherit; }
.promise .m-bg {
  position: absolute; right: -40px; bottom: -90px; width: 360px; height: 360px;
  fill: var(--accent); opacity: 0.22;
}

/* Preise */
.price-card { display: grid; align-content: start; gap: 6px; padding: 32px; }
.price-card h3 { font-size: 26px; }
.price-card .big { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 2px 0 0; line-height: 1.1; }
.price-card ul { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 8px; }
.price-card li { position: relative; padding-left: 26px; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 15px; height: 15px; background: var(--rose);
  -webkit-mask: url('img/mark-rose.svg') center / contain no-repeat;
  mask: url('img/mark-rose.svg') center / contain no-repeat;
}
.price-card .note { margin: 0; font-size: 15px; }
.price-card.plus { background: var(--powder); }
.price-card.plus li::before { background: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.plan { background: var(--card); border-radius: 20px; padding: 16px; display: grid; gap: 2px; }
.plan strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.plan span { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Häufige Fragen */
details { background: var(--card); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; }
summary {
  cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--muted); }

/* Rechtstexte und Hilfe */
.legal { padding-block: 24px 64px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 18px; }
.legal h2 { font-size: 27px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.draft { background: var(--blush); border-radius: 20px; padding: 14px 18px; margin: 0 0 24px; font-weight: 600; }
.placeholder { background: var(--sand); border-radius: 6px; padding: 0 5px; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding-block: 36px 52px; font-size: 15px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 10px; }
footer a { color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.foot .wordmark { height: 26px; background: var(--muted); }

/* Mittel: Telefone im Band zu zweit */
@media (max-width: 980px) {
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .quad article:nth-child(even) { margin-top: 40px; }
}

/* Schmal: alles untereinander, Text immer vor dem Bild */
@media (max-width: 820px) {
  .top nav { display: none; }
  .hero { padding-block: 8px 56px; }
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { min-height: 0; padding-block: 12px 8px; }
  .hero-visual .front { --w: 236px; }
  .hero-visual .back { --w: 200px; }
  .hero-mark { width: 150vw; right: -55%; top: auto; bottom: -12%; transform: none; }
  .app-icon { width: 84px; height: 84px; border-radius: 19px; }
  .app-id .wordmark { height: 28px; }
  .feature { padding-block: 56px; }
  .feature .text, .feature.flip .text, .feature:not(.flip) .text { order: 0; justify-self: start; }
  .stage .device { --w: 250px; }
  .facts ul { justify-content: flex-start; }
  .grid2, .plans { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: 64px 72px; }
  section.block { padding-block: 64px; }
}

@media (max-width: 380px) {
  .quad { gap: 28px 14px; }
  .hero-visual .front { --w: 210px; }
  .hero-visual .back { --w: 178px; }
}
