/* Hör deine Fantasie: eine Bühne, kein Scrollen. hearr-Farben, Schriften lokal (kein Google-Fonts-Request). */
@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/Caprasimo-Regular.6f8f71a967.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-VariableFont_wght.86c73c370e.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #160812;
  --night-soft: #2a0f1e;
  --primary: #ffa3b6;
  --accent: #83140a;
  --cream: #f5f5f9;
  --cream-70: rgba(245, 245, 249, 0.72);
  --cream-50: rgba(245, 245, 249, 0.55);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--night); -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  color: var(--cream);
  font-family: "Outfit", system-ui, sans-serif;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(131, 20, 10, 0.45), transparent 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(255, 163, 182, 0.12), transparent 65%),
    linear-gradient(180deg, var(--night-soft) 0%, var(--night) 55%);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Bühne ---------- */
.stage {
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@supports (height: 100dvh) { .stage { height: 100dvh; } }

.top { padding: 0 var(--gutter); }
.logo { display: block; width: 64px; height: auto; }

.copy {
  width: 100%;
  max-width: 640px;
  padding: clamp(10px, 2.4svh, 28px) var(--gutter) 0;
  text-align: center;
}

/* Schlusswort der Headline in Primary-Rosa, wie die H1 auf app.hearr.me/de/l/hoerprobe */
.copy h1 .rosa { color: var(--primary); }

h1 {
  font-family: "Caprasimo", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, min(11vw, 7.2svh), 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sub {
  margin: clamp(8px, 1.6svh, 16px) auto 0;
  max-width: 30em;
  font-size: clamp(15px, 2.4svh, 19px);
  line-height: 1.4;
  color: var(--cream-70);
  text-wrap: balance;
}
/* A/B-Test Unterzeile: ohne JS v3, sonst die von ab.js gesetzte Variante. Jeder Satz eine eigene Zeile. */
.uz-v1 { display: none; }
html[data-uz="v1"] .uz-v1 { display: inline; }
html[data-uz="v1"] .uz-v3 { display: none; }
.sub .satz { display: block; }

/* ---------- Bildstreifen: füllt den Rest der Höhe ---------- */
.strip {
  --g: 8px;
  flex: 1 1 auto;
  min-height: 132px;
  max-height: 440px;
  width: 100%;
  margin: clamp(12px, 2.4svh, 28px) 0;
  /* Groessen-Container: die Innenbreite rechnet mit der Streifenhoehe (cqh). */
  container-type: size;
  display: flex;
  justify-content: center;
}
/* Sichtbar hoechstens 5 Kacheln + 5 Luecken breit: jede Reihe hat 6 Motive (Periode 6 Kacheln), so ist nie dasselbe Bild
   zweimal gleichzeitig zu sehen, auch nicht als Rand-Anschnitt.
   Kachelbreite = halbe Streifenhoehe (minus Luecke) x 3/4. Ohne cq-Unterstuetzung greift nur die 1240-px-Grenze. */
.strip-inner {
  width: 100%;
  height: 100%;
  max-width: 1240px;
  max-width: min(1240px, calc((100cqh - var(--g)) / 2 * 0.75 * 5 + var(--g) * 5));
  display: flex;
  flex-direction: column;
  gap: var(--g);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.row { flex: 1 1 0; min-height: 0; overflow: hidden; }
.track {
  display: flex;
  gap: var(--g, 8px);
  height: 100%;
  width: max-content;
  animation: lauf 90s linear infinite;
  will-change: transform;
}
.row-b .track { animation-duration: 110s; animation-direction: reverse; }
.track img {
  height: 100%;
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--night-soft);
}
/* -50 % minus halbe Lücke, damit die zweite Hälfte exakt auf der ersten landet */
@keyframes lauf { to { transform: translate3d(calc(-50% - 4px), 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; transform: translate3d(-12%, 0, 0); }
  .row-b .track { transform: translate3d(-30%, 0, 0); }
}

/* ---------- Handlung ---------- */
.act {
  width: 100%;
  max-width: 460px;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Vertrauen: nur wahre Aussagen. Zahl = ausgelieferte Geschichten auf Prod (21.10.2026: 6.676), abgerundet. */
.trust { display: flex; flex-direction: column; align-items: center; gap: 5px; }
/* Sternebewertung mit sichtbarer Quelle (Kundenumfrage), Werte in scripts/build.mjs */
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cream); }
.rating strong { font-weight: 600; }
.stars { width: 80px; height: 16px; flex: none; }
.star-bg { fill: rgba(245, 245, 249, 0.18); }
.star-fg { fill: #f5b82e; }
.count {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 12px;
  font-size: 12px;
  color: var(--cream-70);
}
.points li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.points svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--night);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(255, 163, 182, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.cta:hover { background: #ffb4c4; box-shadow: 0 14px 36px -10px rgba(255, 163, 182, 0.7); }
.cta:active { transform: scale(0.985); }
.cta:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 999px; }

.login { margin-top: 12px; font-size: 14px; color: var(--cream-70); }
.login a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.langs {
  margin-top: clamp(10px, 2svh, 18px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  font-size: 13px;
  color: var(--cream-50);
}
.langs a { text-decoration: none; padding: 2px 0; }
.langs a:hover { color: var(--cream); }
.langs a[aria-current] { color: var(--cream); font-weight: 600; }

.foot {
  margin-top: clamp(10px, 2svh, 18px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  font-size: 12px;
  color: var(--cream-50);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; }
.by { display: inline-flex; align-items: center; gap: 5px; }
.by img { width: 34px; height: auto; opacity: 0.8; position: relative; top: 1px; }

/* Desktop: ruhig zentriert, Streifen läuft über die volle Breite */
@media (min-width: 900px) {
  .logo { width: 84px; }
  .strip { --g: 12px; }
  .track img { border-radius: 18px; }
  @keyframes lauf { to { transform: translate3d(calc(-50% - 6px), 0, 0); } }
}

/* ---------- Unterseiten (Impressum, Sprachwahl) ---------- */
.page .legal {
  max-width: 640px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  line-height: 1.55;
}
.legal h1 { font-size: clamp(34px, 9vw, 52px); margin: 20px 0 6px; }
.legal h2 { font-size: 15px; font-weight: 600; color: var(--primary); margin: 22px 0 4px; }
.legal p { color: var(--cream-70); }
.legal .lead { color: var(--cream-50); font-size: 14px; margin-bottom: 18px; }
.legal .note { margin-top: 22px; font-size: 13px; color: var(--cream-50); }
.legal a[href^="mailto"] { color: var(--primary); }
.legal .langs, .legal .foot { justify-content: flex-start; margin-top: 32px; }
.legal .foot { margin-top: 10px; }
.back { font-size: 14px; color: var(--cream-70); text-decoration: none; }
.back:hover { color: var(--cream); }
.pick { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.pick .langs { justify-content: center; font-size: 16px; gap: 6px 12px; }
