@font-face { font-family: "Bricolage Grotesque"; src: url(/schrift/bricolage.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: eine ruhige Spalte links, rechts der Lichtspalt aus den Bildern. Farben aus profile/nacht.json. */
:root {
  --hg: #14161a;
  --hg-erhoben: #1d2027;
  --rand: #2a2e37;
  --text: #e6e8ec;
  --leise: #8a90a0;
  --akzent: #7dd3fc;
  --auf-akzent: #0e1013;
  --licht-hell: #c4eafd;
  --licht-weiss: #eef4f8;
  --schrift: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --spalt-platz: clamp(40px, 11vw, 150px);
  color-scheme: dark;
}
body {
  background: var(--hg); color: var(--text); font-family: var(--schrift); font-size: 18px; line-height: 1.55; overflow-wrap: break-word;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.spalt { --auf: 0;
  --rand-r: calc(clamp(10px, 5vw, 72px) + env(safe-area-inset-right, 0px));
  --frei: calc(max(16px, env(safe-area-inset-right, 0px), (100vw - 900px) / 2) + var(--spalt-platz) - 20px);
  --weit: min(12vw, var(--frei));
  --links: calc(var(--rand-r) + 3px + var(--auf) * max(0px, var(--weit) - var(--rand-r) - 3px));
  --rechts: calc(var(--rand-r) * (1 - var(--auf)));
  position: fixed; top: 0; bottom: 0; right: var(--rechts); width: calc(var(--links) - var(--rechts));
  background: linear-gradient(90deg, var(--akzent) 0, var(--akzent) 3px, var(--licht-hell) 3px, var(--licht-weiss) 70%);
  box-shadow: 0 0 16px 5px rgba(125, 211, 252, .5), 0 0 70px 26px rgba(125, 211, 252, .2); pointer-events: none; z-index: 4; }

/* Die kleine Marke oben: erscheint, sobald die grosse weggescrollt ist. Eigene Leiste statt mitschrumpfender
   Marke, damit beim Scrollen nichts springt. Der Lichtspalt laeuft ueber sie hinweg. */
.leiste { position: fixed; top: 0; left: 0; right: 0; z-index: 3; background: var(--hg); border-bottom: 1px solid var(--rand);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  transform: translateY(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.leiste.da { transform: none; visibility: visible; transition: transform .2s ease; }
.leiste div { max-width: 900px; margin: 0 auto; padding-right: var(--spalt-platz); box-sizing: border-box;
  font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.02em; color: var(--akzent); }
@media (prefers-reduced-motion: reduce) { .leiste, .leiste.da { transition: none; } }

.seite { max-width: 900px; margin: 0 auto; padding-right: var(--spalt-platz); padding-block: 40px 28px; display: grid; gap: 48px; box-sizing: border-box; }
.marke { font-weight: 800; font-size: clamp(38px, 7vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--akzent); margin: 0; }

.slider { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.bahn { container-type: inline-size; display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bahn::-webkit-scrollbar { display: none; }
.tag { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.spruch { margin: 0; font-weight: 800; font-size: clamp(32px, 5.6vw, 54px); font-size: clamp(20px, 13cqi, min(54px, max(32px, 5.6vw))); line-height: 1.08; letter-spacing: -.015em; overflow-wrap: break-word; }
.spruch span { display: block; text-wrap: balance; }
.text { margin: 0; max-width: 62ch; color: var(--text); }

.preis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.betrag { margin: 0; font-weight: 800; font-size: clamp(28px, 4.6vw, 44px); font-size: clamp(18px, 11.3cqi, min(44px, max(28px, 4.6vw))); line-height: 1.1; letter-spacing: -.015em; color: var(--akzent); text-wrap: balance; }
.preis ul { margin: 0; padding-left: 1.1em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.preis .klein { margin: 0; font-size: 15px; color: var(--leise); }

.steuerung { display: flex; align-items: center; gap: 14px; }
.pfeil { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--hg-erhoben); color: var(--text); border: 1px solid var(--rand); cursor: pointer; font-size: 28px; line-height: 1; }
.pfeil:disabled { opacity: .35; cursor: default; }
.punkte { display: flex; flex: 0 1 auto; min-width: 0; }
.punkte button { flex: 0 1 24px; width: 24px; min-width: 0; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.punkte button::before { content: ""; width: min(9px, 75%); aspect-ratio: 1; border-radius: 50%; background: var(--rand); }
.punkte button[aria-current="true"]::before { background: var(--akzent); }

.counter { container-type: inline-size; display: grid; gap: 12px; }
.counter h2 { margin: 0; font-size: 17px; font-weight: 500; color: var(--leise); }
.zeit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); max-width: 620px; margin: 0; }
.zeit div { display: grid; gap: 2px; }
.zeit dd { order: -1; margin: 0; font-weight: 800; font-size: clamp(33px, 10.5vw, 72px); font-size: clamp(18px, 13cqi, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.zeit dt { font-size: clamp(11px, 6cqi, 15px); color: var(--leise); }
.zeit .kurz { display: none; }
@container (max-width: 470px) { .zeit .lang { display: none; } .zeit .kurz { display: inline; } }

footer { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--leise); border-top: 1px solid var(--rand); padding-top: 16px; }
footer a { color: inherit; }
.hersteller { flex-basis: 100%; }
.firma { white-space: nowrap; }
.spalt { --auf: 0.352; }
