/* Layout: one column of short sections; the hero pairs the claim with the app as it is, the app's violet glows behind
   the phone. Dark first, like the map; light follows the device. Two text colours, one accent. */
:root {
  --bg: #0d0e11;
  --surface: #16171b;
  --ink: #f3f4f6;
  --muted: #a3a5ae;
  --faint: #868994;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #b07cf5;
  --frame: #26272c;
  --glow: rgb(133 69 230 / 0.32);
  --snow: rgb(255 255 255);
  /* the app's snow scale (sky blue 0.5 cm, blue, indigo, violet, magenta, pink at 100 cm) for the claim */
  --headline: linear-gradient(90deg, #3894ff, #8545e6 55%, #ff529e);
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f6; --surface: #ffffff; --ink: #111216; --muted: #545763; --faint: #676a75;
    --line: rgba(0, 0, 0, 0.08); --line-strong: rgba(0, 0, 0, 0.2); --accent: #6b2fd1; --frame: #1d1e22;
    --glow: rgb(133 69 230 / 0.14); --snow: rgb(118 136 178); --headline: linear-gradient(90deg, #1a6ad8, #8545e6 55%, #c8307a);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f2f6; --surface: #ffffff; --ink: #111216; --muted: #545763; --faint: #676a75;
  --line: rgba(0, 0, 0, 0.08); --line-strong: rgba(0, 0, 0, 0.2); --accent: #6b2fd1; --frame: #1d1e22;
  --glow: rgb(133 69 230 / 0.14); --snow: rgb(118 136 178); --headline: linear-gradient(90deg, #1a6ad8, #8545e6 55%, #c8307a);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)); }
section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.top { padding-block: clamp(1.5rem, 5vw, 3rem) 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; font: 700 1.15rem/1 var(--display); }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 22%; }

/* hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5.5rem);
  background: radial-gradient(ellipse 30rem 36rem at 78% 55%, var(--glow), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; min-width: 0; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
h1 em { font-style: normal; background: var(--headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 30rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.soon {
  display: inline-flex; align-items: center; padding: 0.8rem 1.3rem; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); font: 600 1rem/1 var(--text);
}
a.store { color: inherit; text-decoration: none; }
a.store:hover, a.store:focus-visible { box-shadow: inset 0 0 0 1.5px currentColor; }
.note { font-size: 0.9rem; color: var(--faint); }

/* the app as it is: a phone with a screenshot, light or dark like the device */
.phone {
  width: min(19rem, 100%); margin-inline: auto; padding: 0.55rem; border-radius: 2.9rem; background: var(--frame);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.55);
}
.phone picture { display: block; }
.phone img { width: 100%; height: auto; border-radius: 2.4rem; background: var(--surface); }

/* why */
.why { border-top: 1px solid var(--line); }
.why h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; max-width: 18ch; }
.why p { margin-top: 1.4rem; font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 36rem; }
.why + .what { padding-top: 0; }

/* what: four short blocks, then two phones */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; max-width: 56rem; }
.feature { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.feature h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.feature p { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4rem); margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.shot { display: grid; gap: 1.1rem; justify-items: center; min-width: 0; margin: 0; }
.shot .phone { width: min(16.5rem, 100%); }
.shot figcaption { font-size: 0.95rem; color: var(--faint); text-align: center; }

/* measured, not forecast: every new-snow number looks back; three rows say where each kind of value comes from */
.measured { border-top: 1px solid var(--line); }
.measured h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; max-width: 22ch; }
.measured .intro { margin-top: 0.9rem; color: var(--muted); max-width: 38rem; }
.kinds { margin: 2rem 0 0; max-width: 46rem; border-top: 1px solid var(--line); }
.kinds div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.2rem 1.5rem; align-items: baseline; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.kinds dt { font: 600 1.05rem/1.4 var(--display); }
.kinds dd { margin: 0; color: var(--muted); text-wrap: pretty; }
.kinds small { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: var(--faint); }
.measured .kinds + .intro { margin-top: 1.6rem; }

/* every resort with its station, for people who search for one */
.resorts { border-top: 1px solid var(--line); }
.resorts h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; }
.resorts .intro { margin-top: 0.9rem; color: var(--muted); max-width: 38rem; }
.states { margin-top: 2rem; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1rem;
  cursor: pointer; list-style: none; font: 600 1.05rem/1.3 var(--display); border-radius: 6px;
}
summary::-webkit-details-marker { display: none; }
summary .count { font: 500 0.9rem/1 var(--text); color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
summary i { font-style: normal; display: inline-block; width: 1.2rem; text-align: right; margin-left: 0.6rem; color: var(--muted); }
summary i::after { content: "+"; }
details[open] summary i::after { content: "–"; }
details ul { margin: 0 0 1.4rem; padding: 0; list-style: none; columns: 16rem auto; column-gap: 2.5rem; font-size: 0.95rem; }
details li { break-inside: avoid; padding-block: 0.2rem; }
details li small { display: block; font-size: 0.8rem; color: var(--faint); }

footer { border-top: 1px solid var(--line); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; color: var(--faint); }
footer .wrap { display: grid; gap: 1.2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
footer nav a { color: var(--muted); text-decoration: none; border-radius: 4px; padding-block: 0.2rem; }
footer nav a:hover { color: var(--ink); }
footer p { max-width: 46rem; }
footer .sources { color: var(--muted); }

@media (max-width: 760px) {
  .hero { background: radial-gradient(ellipse 22rem 26rem at 50% 82%, var(--glow), transparent 70%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .phone { width: min(16rem, 78%); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}
@media (max-width: 460px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .kinds div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .phone { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { transform: translateY(1.2rem); opacity: 0.4; } to { transform: none; opacity: 1; } }
}

/* Impressum, Datenschutz, 404: eine Spalte Text, Name oben führt zur Startseite */
a.brand { display: inline-flex; text-decoration: none; border-radius: 6px; }
/* rechts neben dem Namen der Wechsel zur anderen Sprache (Deutsch / English) */
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top .lang { font-size: 0.9rem; color: var(--muted); text-decoration: none; border-radius: 4px; padding-block: 0.4rem; }
.top .lang:hover { color: var(--ink); }
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3.5rem, 9vw, 6rem); }
.legal .wrap > * { max-width: 40rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2.6rem; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6rem; }
.legal p, .legal ul, .legal address { margin-top: 0.8rem; color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.4rem; }
.legal address { font-style: normal; color: var(--ink); }
.legal strong { font-weight: 600; color: var(--ink); }
.legal a { color: var(--accent); text-underline-offset: 0.15em; }
.legal .stand { margin-top: 0.9rem; font-size: 0.9rem; color: var(--faint); }

/* Schneefall im oberen Bereich: drei Ebenen gekachelter Flocken hinter Text und Handy, bewegt nur über transform
   (läuft auf der Grafikkarte, ohne Skript). Schneit beim Öffnen etwa 12 s, blendet dann aus und hält an. */
.hero { position: relative; isolation: isolate; }
.snow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: var(--snow);
  animation: snow-in 2s ease-out both, snow-out 3s ease-in 12s forwards;
}
.snow i { position: absolute; left: 0; right: 0; bottom: 0; will-change: transform; animation: fall linear 1 both; }
.snow i:nth-child(1) { top: -520px; --drop: 520px; background-size: 260px 260px; opacity: 0.4; animation-duration: 29s;
  background-image: radial-gradient(circle at 94px 50px, currentColor 0 1.2px, transparent 1.9px), radial-gradient(circle at 113px 178px, currentColor 0 1.2px, transparent 1.9px), radial-gradient(circle at 24px 30px, currentColor 0 1.2px, transparent 1.9px); }
.snow i:nth-child(2) { top: -680px; --drop: 680px; background-size: 340px 340px; opacity: 0.55; animation-duration: 26s;
  background-image: radial-gradient(circle at 286px 60px, currentColor 0 1.7px, transparent 2.6px), radial-gradient(circle at 199px 310px, currentColor 0 1.7px, transparent 2.6px); }
.snow i:nth-child(3) { top: -840px; --drop: 840px; background-size: 420px 420px; opacity: 0.75; animation-duration: 22s;
  background-image: radial-gradient(circle at 41px 271px, currentColor 0 2.3px, transparent 3.4px), radial-gradient(circle at 121px 31px, currentColor 0 2.3px, transparent 3.4px); }
@keyframes fall {
  25% { transform: translate3d(6px, calc(var(--drop) * 0.25), 0); }
  50% { transform: translate3d(0, calc(var(--drop) * 0.5), 0); }
  75% { transform: translate3d(-6px, calc(var(--drop) * 0.75), 0); }
  to { transform: translate3d(0, var(--drop), 0); }
}
@keyframes snow-in { from { opacity: 0; } }
@keyframes snow-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }
@media print { .snow { display: none; } }
