/* Soll ich telemarken? – statisches Stylesheet ohne externe Abhängigkeiten.
   Aufbau: Vollbild-Foto mit der Frage; beim Scrollen erscheint "Ja!" mit einer
   gezogenen Spur darunter. Danach eine ruhige weiße Seite mit drei Angeboten. */

/* Schriften lokal: woff2-Dateien in /fonts ablegen (siehe README).
   Fehlen sie, greift die Systemschrift. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #12222b;
  --muted: #5b6b74;
  --rule: #dbe3e8;
  --glacier: #1d6c92;   /* abgeleitet vom Blau der alten Seite */
  --snow: #ffffff;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --wide: 72rem;
  --p: 0;  /* Scrollfortschritt der Startszene, 0 bis 1 (per Skript) */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--glacier); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Startszene ---------- */
.intro { position: relative; height: 100vh; height: 100svh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--snow);
  background: #7d9db0;
}
.photo {
  position: absolute;
  inset: 0;
  background: url("hero-bg.jpg") center 60% / cover no-repeat;
  transform: scale(calc(1.1 - var(--p) * 0.1));
  transform-origin: 50% 65%;
  will-change: transform;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 42, 0.45) 0%, rgba(10, 30, 42, 0.12) 55%, rgba(10, 30, 42, 0.3) 100%);
}

.title {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-content: start;
  margin: 0 auto;
  max-width: var(--wide);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 18vh 0;
  padding-block: 18svh 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(0, 20, 30, 0.25);
}
/* Frage und Antwort liegen in derselben Zelle: die Frage rückt beim Scrollen
   klein nach oben, das "Ja!" erscheint an ihrer Stelle. */
.question, .answer { grid-area: 1 / 1; }
.question {
  --r: 0;
  align-self: start;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  text-wrap: balance;
  transform-origin: left bottom;
}
.answer {
  --r: 1;
  position: relative;
  justify-self: start;
  align-self: start;
  padding-right: 0.08em;
  font-size: clamp(7rem, min(30vw, 30vh), 16rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
/*.answer-text { display: block; }*/
.track {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 105%;
  height: 0.2em;
  overflow: visible;
}
.track path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--snow);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cue svg { width: 28px; height: 28px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Scrollszene aktiv (Skript gesetzt, keine reduzierte Bewegung) */
.fx .intro { height: 260vh; height: 260svh; }
.fx .question, .fx .answer { --r: clamp(0, calc((var(--p) - 0.15) / 0.5), 1); }
.fx .question {
  transform: translateY(calc(var(--r) * -100% - var(--r) * 0.15em)) scale(calc(1 - var(--r) * 0.6));
}
.fx .answer-text, .fx .track {
  clip-path: inset(-0.3em calc((1 - var(--r)) * 105%) -0.4em -0.1em);
}
.fx .answer-text { transform: translateY(calc((1 - var(--r)) * 0.1em)); }
.fx .cue { opacity: clamp(0, calc(1 - var(--p) * 8), 1); }
/* ohne Skript stehen Frage und Antwort untereinander */
html:not(.fx) .answer { grid-area: 2 / 1; margin-top: 0.05em; }

/* ---------- Inhalt ---------- */
.content { padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 8vw, 5rem); }
.lede {
  max-width: 30ch;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 3rem);
}
.offer { border-top: 2px solid var(--ink); padding-top: 1.25rem; display: flex; flex-direction: column; }
.kind {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.offer p { margin: 0 0 1rem; color: var(--muted); }
.offer .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.offer .more::after { content: " →"; }
.offer .more:hover { text-decoration: underline; }

/* ---------- Unterseiten ---------- */
.bar { border-bottom: 1px solid var(--rule); }
.bar .wrap { padding-block: 1.1rem; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.prose { max-width: var(--measure); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.prose h1 {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.prose h4 { margin: 1.25rem 0 0.25rem; font-size: 1rem; font-weight: 600; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .caps { font-size: 0.875rem; }
.prose a { overflow-wrap: anywhere; }
.prose .source { margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 52rem) {
  .offers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue svg { animation: none; }
}
