@import url("../fonts/fonts.css");

:root {
  --kalk: #F3EFE8;        /* Papier, Grundfläche */
  --kalk-2: #EAE4D9;
  --asphalt: #141516;     /* Schrift, dunkle Flächen */
  --asphalt-2: #1E2022;
  --stein: #77726A;       /* Nebentexte */
  --linie: #D8D1C4;
  --glut: #FF5A24;        /* Akzent – sparsam: Ziel, Aktion, Fortschritt */
  --glut-tief: #D9461A;
  --salbei: #4D5C3A;
  --ok: #2F7A4F;
  --r: 18px;
  --r-s: 10px;
  --schatten: 0 1px 2px rgba(20,21,22,.06), 0 12px 40px -12px rgba(20,21,22,.18);
  --poster-schatten: 0 2px 4px rgba(0,0,0,.08), 0 24px 60px -18px rgba(0,0,0,.35);
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-serif: "Newsreader", Georgia, serif;
  --f-ui: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --rand: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--kalk); color: var(--asphalt);
  font: 400 16px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--glut); color: #fff; }
:focus-visible { outline: 2px solid var(--glut); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.huelle { width: min(100% - 2 * var(--rand), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */
.display { font: 800 clamp(3.4rem, 7.6vw, 8.8rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.h1 { font: 800 clamp(2.6rem, 7vw, 6rem)/1.02 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.h2 { font: 800 clamp(2.1rem, 5vw, 4.2rem)/1.04 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.h3 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.08 var(--f-display); text-transform: uppercase; margin: 0; letter-spacing: .015em; }
.serif { font-family: var(--f-serif); font-weight: 400; }
.kursiv { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.lead { font: italic 400 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--f-serif); margin: 0; max-width: 34ch; }
.label { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stein); }
.km { display: inline-flex; gap: .6em; align-items: center; font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stein); }
.km::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glut); }
.text { max-width: 58ch; color: #3A3C3E; }
.klein { font-size: .86rem; color: var(--stein); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--kalk) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.kopf.gescrollt { border-color: var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; min-height: 28px; }
.logo-svg { height: 26px; width: auto; }
.logo-svg.logo-band { height: 40px; } .fuss .logo-svg.logo-band { height: 46px; }
.logo-svg.logo-ziel { height: 34px; } .fuss .logo-svg.logo-ziel { height: 40px; }
.nav { display: flex; gap: 28px; font-size: .93rem; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--glut); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }
.kopf-aktionen { display: flex; gap: 10px; align-items: center; }
.korb-knopf { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.korb-knopf:hover { background: var(--kalk-2); }
.korb-zahl { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--glut); color: #fff; font: 600 .7rem/19px var(--f-mono); text-align: center; transform: scale(0); transition: transform .35s var(--ease); }
.korb-zahl.an { transform: scale(1); }
.korb-zahl.puls { animation: puls .5s var(--ease); }
@keyframes puls { 50% { transform: scale(1.35); } }
.menue-knopf { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menue-knopf { display: grid; }
  .kopf .huelle { height: 60px; }
  .kopf .knopf-klein { display: none; }
}
.mobil-nav { position: fixed; inset: 60px 0 0; background: var(--kalk); z-index: 49; padding: 32px var(--rand); display: none; flex-direction: column; gap: 6px; }
.mobil-nav.offen { display: flex; animation: einblenden .3s var(--ease); }
.mobil-nav a { font: 800 2.6rem/1.15 var(--f-display); text-transform: uppercase; text-decoration: none; }

.demo-band { background: var(--asphalt); color: #cfcac0; font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-align: center; padding: 8px 16px; }
.demo-band b { color: var(--glut); font-weight: 500; }
.demo-band .kurz { display: none; }
@media (max-width: 700px) { .demo-band .lang { display: none; } .demo-band .kurz { display: inline; } }

/* ---------- Knöpfe ---------- */
/* Ziel-Knopf: Linie läuft beim Hover zum Zielpunkt */
.knopf {
  --bg: var(--asphalt); --fg: var(--kalk);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 12px 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 600 1rem/1 var(--f-ui); letter-spacing: .005em;
  transition: transform .25s var(--ease), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.knopf .ziel { position: relative; width: 52px; height: 34px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 12%, transparent); overflow: hidden; flex: none; }
.knopf .ziel::before { content: ""; position: absolute; left: 10px; top: 50%; height: 2px; width: 10px; background: var(--fg); transform: translateY(-50%); transition: width .45s var(--ease); border-radius: 2px; }
.knopf .ziel::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--glut); transition: transform .45s var(--ease); }
.knopf:hover .ziel::before { width: 26px; }
.knopf:hover .ziel::after { transform: scale(1.3); }
.knopf:active { transform: scale(.97); }
.knopf.glut { --bg: var(--glut); --fg: #fff; }
.knopf.glut .ziel::after { background: var(--asphalt); }
.knopf.hell { --bg: var(--kalk); --fg: var(--asphalt); }
.knopf.rand { --bg: transparent; --fg: var(--asphalt); box-shadow: inset 0 0 0 1.5px var(--asphalt); }
.knopf.voll { width: 100%; justify-content: space-between; }
.knopf[disabled] { opacity: .45; pointer-events: none; }
.knopf-klein { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--asphalt); background: var(--asphalt); color: var(--kalk); text-decoration: none; font-weight: 600; font-size: .92rem; cursor: pointer; }
.textlink { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.textlink:hover { color: var(--glut-tief); }

/* ---------- Poster-Darstellung ---------- */
.poster { position: relative; background: #fff; box-shadow: var(--poster-schatten); aspect-ratio: 3 / 4; }
.poster svg { width: 100%; height: 100%; }
/* Rahmenleiste wie bei Gelato (12 mm): 30×40 → 3,7 %, 45×60 → 2,5 %, 60×80 → 1,9 % der Außenbreite */
@property --rahmen { syntax: "<percentage>"; inherits: true; initial-value: 2.5%; }
/* Leistenbreite bezogen aufs Poster selbst: Padding-% misst die Elternbreite, --k = Elternbreite / Posterbreite (gestalten.html) */
.poster.gerahmt { padding: calc(var(--rahmen, 2.5%) / var(--k, 1)); background: #141414;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.5), inset 1px 0 0 rgba(255,255,255,.05), inset -1px 0 0 rgba(0,0,0,.4),
    0 1px 2px rgba(0,0,0,.25), 0 30px 60px -30px rgba(0,0,0,.5); }
.poster.gerahmt.f-30x40 { --rahmen: 3.7%; } .poster.gerahmt.f-45x60 { --rahmen: 2.5%; } .poster.gerahmt.f-60x80 { --rahmen: 1.9%; }
/* Eiche natur: warmer, eher heller Ton mit feiner, richtungsloser Holzstruktur (wirkt auf allen vier Leisten gleich) */
.poster.gerahmt.eiche { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #CFB08A, #BC9A6F 50%, #C8A87F);
  box-shadow: inset 0 1px 0 rgba(255,245,225,.5), inset 0 -1px 0 rgba(90,60,25,.45), inset 1px 0 0 rgba(255,245,225,.3), inset -1px 0 0 rgba(90,60,25,.35),
    0 1px 2px rgba(60,40,15,.25), 0 30px 60px -30px rgba(60,40,15,.5); }
/* Weiß: lackiertes Holz – braucht Kante und Schatten, sonst verschwindet es auf hellem Grund */
.poster.gerahmt.weiss { background: linear-gradient(160deg, #FFFFFF, #F3F1EC 60%, #FAF9F6);
  box-shadow: 0 0 0 1px rgba(20,21,22,.10), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.10), inset -1px 0 0 rgba(0,0,0,.06),
    0 2px 4px rgba(0,0,0,.10), 0 30px 60px -28px rgba(0,0,0,.45); }
/* Tiefe: die Leiste wirft einen feinen Schatten aufs Papier, darüber das Plexiglas mit leichtem Glanz */
.poster.gerahmt::after { content: ""; position: absolute; pointer-events: none;
  left: var(--rahmen); right: var(--rahmen); top: calc(var(--rahmen) * .75); bottom: calc(var(--rahmen) * .75);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10), inset 0 2px 5px rgba(0,0,0,.22), inset 2px 0 4px rgba(0,0,0,.08);
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.10) 42%, rgba(255,255,255,0) 52%); }
.poster.gerahmt.weiss::after { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 2px 6px rgba(0,0,0,.16), inset 2px 0 4px rgba(0,0,0,.06); }
/* Rahmenwechsel: Leiste wächst um das Poster, ein Lichtreflex wandert übers Glas */
.poster.gerahmt.rahmen-neu { animation: rahmen-ein .7s var(--ease) both; }
.poster.gerahmt.rahmen-neu::after { background-size: 300% 100%; animation: glas-glanz 1.1s .25s var(--ease) both;
  background-image: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 60%); }
@keyframes rahmen-ein { from { --rahmen: 0%; scale: .985; } 60% { scale: 1.008; } to { scale: 1; } }
@keyframes glas-glanz { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .poster.gerahmt.rahmen-neu, .poster.gerahmt.rahmen-neu::after { animation: none; } }

/* Raumszene mit live eingesetztem Poster */
.raum { position: relative; overflow: hidden; border-radius: var(--r); background: var(--kalk-2); }
.raum > img, .raum-innen > img { width: 100%; height: 100%; object-fit: cover; }
.raum .einsatz { position: absolute; display: grid; place-items: center; overflow: hidden; }
.raum .einsatz svg { width: 100%; height: 100%; }

/* Strecken-Zeichenanimation */
.route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.zeichnen .route, .route.zeichnen { animation: zeichne 2.6s var(--ease) forwards; }
@keyframes zeichne { to { stroke-dashoffset: 0; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } }

/* Scroll-Einblendung */
/* translate statt transform: verträgt sich mit Kipp- und Zoom-Effekten auf denselben Elementen */
.auf { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .6s var(--ease); }
.auf.sichtbar { opacity: 1; translate: none; }

/* ---------- Abschnitte ---------- */
section { position: relative; }
.abschnitt { padding: clamp(72px, 11vw, 150px) 0; }
.dunkel { background: var(--asphalt); color: var(--kalk); }
.dunkel .label, .dunkel .km, .dunkel .klein { color: #9C978E; }
.dunkel .text { color: #CFCAC0; }

/* ---------- Karten / Formulare ---------- */
.karte { background: #fff; border-radius: var(--r); box-shadow: var(--schatten); }
.feld { display: grid; gap: 6px; }
.feld > span { font: 500 .78rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stein); }
.eingabe {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--linie);
  background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
/* iOS: Datumsfelder haben eine eigene Mindestbreite und schieben sonst die Seite seitlich */
.feld { min-width: 0; }
input[type="date"].eingabe { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 54px; }
input[type="date"].eingabe::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].eingabe::-webkit-calendar-picker-indicator { opacity: .5; }
html, body { overflow-x: clip; }
textarea.eingabe { height: auto; min-height: 84px; padding: 14px 16px; resize: vertical; }
.eingabe:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 4px rgba(20,21,22,.07); }
.hinweis { font-size: .84rem; color: var(--stein); }

/* Chips / Wahlkacheln */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linie); background: #fff; cursor: pointer; font-size: .92rem; font-weight: 500; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--asphalt); }
.chip[aria-pressed="true"] { background: var(--asphalt); color: var(--kalk); border-color: var(--asphalt); }
.farbpunkt { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: transform .2s; }
.farbpunkt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--kalk), 0 0 0 4px var(--asphalt); }
.farbpunkt i { position: absolute; inset: 30%; border-radius: 50%; }

/* Fußzeile */
.fuss { background: var(--asphalt); color: #BDB8AE; padding: 72px 0 36px; font-size: .92rem; }
.fuss .raster { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.fuss h4 { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #7E7A72; margin: 0 0 16px; }
.fuss a { display: block; text-decoration: none; padding: 4px 0; }
.fuss a:hover { color: #fff; }
.fuss .logo-svg { height: 28px; color: var(--kalk); margin-bottom: 18px; }
.fuss .unten { border-top: 1px solid #2C2E30; margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #7E7A72; }
@media (max-width: 760px) { .fuss .raster { grid-template-columns: 1fr 1fr; } .fuss .raster > :first-child { grid-column: 1 / -1; } }

/* Warenkorb-Schublade */
.schublade-hg { position: fixed; inset: 0; background: rgba(20,21,22,.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .35s; }
.schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--kalk); z-index: 81; transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; }
.korb-offen .schublade-hg { opacity: 1; pointer-events: auto; }
.korb-offen .schublade { transform: none; }
.schublade header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--linie); }
.schublade .inhalt { flex: 1; overflow: auto; padding: 8px 24px; }
.schublade footer { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); display: grid; gap: 14px; }
.korb-zeile { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linie); align-items: start; }
.korb-zeile .poster { width: 76px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.korb-zeile b { display: block; font-weight: 600; }
.x-knopf { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.leer { text-align: center; padding: 60px 0; color: var(--stein); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--asphalt); color: var(--kalk); padding: 14px 20px; border-radius: 999px; z-index: 90; font-size: .92rem; transition: transform .45s var(--ease); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.toast.an { transform: translate(-50%, 0); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glut); }

.simuliert { display: inline-flex; align-items: center; gap: 6px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: #FFE7DC; color: #9A3412; padding: 5px 9px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .route { stroke-dashoffset: 0; }
  .auf { opacity: 1; translate: none; }
}

/* ---------- Belohnungssystem (assets/js/ziel.js) ---------- */
.bahn-box { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; }
.bahn-box .label { flex: 1; min-width: 0; color: var(--stein); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bahn-prozent { font: 800 1.05rem/1 var(--f-display); }
/* Fortschrittslinie an der Oberkante der Preisleiste */
.bahn-spur { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; pointer-events: none; }
.bahn-fuell { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--asphalt); transition: width .8s var(--ease); }
.bahn-spur.fertig .bahn-fuell { background: var(--glut); }
.bahn-laeufer { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--glut); box-shadow: 0 0 0 3px rgba(255,90,36,.22); transition: left .8s var(--ease); }
.medaillen { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 5px; border: 1px solid var(--linie); border-radius: 999px; background: #fff; cursor: pointer; }
.medaillen svg { width: 20px; height: 24px; }
.medaillen .m { display: inline-flex; transition: transform .3s; }
.medaillen .m.neu { animation: medaille-pop .7s var(--ease); }
.medaillen .m-zahl { margin-left: auto; font: 500 .74rem/1 var(--f-mono); color: var(--stein); letter-spacing: .08em; }
@keyframes medaille-pop { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
.medaille-toast { position: fixed; left: 50%; top: 84px; z-index: 92; display: flex; gap: 12px; align-items: center; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--asphalt); color: var(--kalk); transform: translate(-50%, -160%); transition: transform .5s var(--ease); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.medaille-toast.an { transform: translate(-50%, 0); }
@media (max-width: 760px) { .medaille-toast { top: calc(env(safe-area-inset-top, 0px) + 76px); padding: 7px 14px 7px 8px; gap: 9px; } .medaille-toast b { font-size: .95rem; } .medaille-toast svg { width: 30px; height: 30px; } }
.medaille-toast small { display: block; font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #9C978E; }
.medaille-toast b { font: 700 1.1rem/1.1 var(--f-display); text-transform: uppercase; }
.medaillen-schicht { position: fixed; inset: 0; z-index: 85; background: rgba(20,21,22,.5); display: grid; place-items: center; padding: 16px; }
.medaillen-karte { width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--kalk); border-radius: 20px; padding: 22px; }
.mk-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mk-zeile { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); opacity: .6; }
.mk-zeile.an { opacity: 1; }
.mk-zeile b { display: block; }
/* Zielband über der Vorschau */
.zielband { position: absolute; inset: 0; pointer-events: none; z-index: 6; display: grid; place-items: center; opacity: 0; }
.zielband.an { animation: ziel-ein 3.2s var(--ease) forwards; }
.zielband .band { position: absolute; left: -10%; right: -10%; top: 50%; height: 34px; margin-top: -17px; background: repeating-linear-gradient(90deg, var(--glut) 0 28px, #fff 28px 56px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transform: scaleX(0); }
.zielband.an .band { animation: band-reissen 3.2s var(--ease) forwards; }
.zielband .ziel-text { position: relative; text-align: center; background: var(--asphalt); color: var(--kalk); padding: 14px 26px 12px; border-radius: 14px; transform: scale(.6); }
.zielband.an .ziel-text { animation: ziel-text 3.2s var(--ease) forwards; }
.zielband .ziel-text span { display: block; font: 800 3.4rem/1 var(--f-display); text-transform: uppercase; color: var(--glut); }
.zielband .ziel-text small { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
@keyframes ziel-ein { 0%, 100% { opacity: 0; } 8%, 85% { opacity: 1; } }
@keyframes band-reissen { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 45% { transform: scaleX(1); clip-path: inset(0 0 0 0); } 70%, 100% { transform: scaleX(1); clip-path: inset(0 50% 0 50%); } }
@keyframes ziel-text { 0%, 30% { transform: scale(.6); opacity: 0; } 42% { transform: scale(1.08); opacity: 1; } 50%, 88% { transform: none; opacity: 1; } 100% { opacity: 0; } }
/* Antippbare Stellen im Poster */
.antippbar [data-feld]:not([data-feld=""]) { cursor: pointer; }
.antippbar [data-feld]:not([data-feld=""]):hover { opacity: .65; }
.antippbar text.leer { animation: einladen 1.6s ease-in-out infinite; }
@keyframes einladen { 50% { opacity: .35; } }
.belohnung { display: none; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--asphalt); color: var(--kalk); gap: 14px; align-items: center; grid-template-columns: auto 1fr; }
.belohnung.an { display: grid; animation: einblenden .5s var(--ease); }
.belohnung b { display: block; font: 700 1.2rem/1.1 var(--f-display); text-transform: uppercase; }
.belohnung p { margin: 4px 0 10px; font-size: .88rem; color: #CFCAC0; }
.belohnung .chip { background: var(--glut); color: #fff; border-color: var(--glut); }
.stolz-fakt { margin-top: 10px; font: italic 1.02rem/1.35 var(--f-serif); color: var(--stein); }
@media (prefers-reduced-motion: reduce) { .zielband.an .band, .zielband.an .ziel-text { animation: none; transform: none; opacity: 1; } .zielband.an { animation: ziel-ein 1.8s linear forwards; } .antippbar text.leer { animation: none; } }
.poster.karte { aspect-ratio: 210 / 148; }

/* ---------- Bewegung (assets/js/bewegung.js) – nur transform/opacity ---------- */
/* Seitenwechsel: weiches Überblenden, Kopfzeile bleibt stehen (Chrome/Edge/Safari, sonst normaler Wechsel) */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
::view-transition-old(root) { animation: seite-aus .22s ease-in both; }
::view-transition-new(root) { animation: seite-ein .42s var(--ease) both; }
@keyframes seite-aus { to { opacity: 0; transform: translateY(-6px); } }
@keyframes seite-ein { from { opacity: 0; transform: translateY(10px); } }

/* Überschriften: Wörter steigen aus einer unsichtbaren Kante auf */
.wort-reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; }
.wort-reveal .w > i { display: inline-block; font-style: inherit; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform .95s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.wort-reveal.los .w > i { transform: none; }

/* Karten kippen zum Zeiger, Lichtreflex folgt */
.tuer, .sport .raum, .design-karte, .option, .weg, .design-mini a { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), opacity .9s var(--ease), translate .9s var(--ease); }
.kippt { transition: transform .12s linear, opacity .9s var(--ease), translate .9s var(--ease); }
.tuer::after, .design-karte::after, .option::after, .weg::after, .design-mini a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 60%); }
.design-karte, .option, .weg, .design-mini a { position: relative; }
.kippt::after { opacity: 1; }
.tuer:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* Magnetische Knöpfe */
.knopf, .knopf-klein, .korb-knopf { transition: transform .25s var(--ease), translate .35s var(--ease), box-shadow .25s, background .2s; }
.magnet { transition: transform .25s var(--ease), translate .08s linear; }

/* Raumszenen: beim Hineinscrollen leicht heranzoomen (scroll-gebunden, ohne JavaScript) */
.raum { container-type: size; }
/* Brennpunkt (--fx/--fy, Anteil im Foto) wird mittig gesetzt, ohne dass ein Rand frei wird – wie object-position, aber exakt */
.raum-innen { --b: max(100cqw, 100cqh * var(--v)); position: absolute; aspect-ratio: var(--v); width: var(--b);
  left: clamp(calc(100cqw - var(--b)), calc(50cqw - var(--fx, .5) * var(--b)), 0px);
  top: clamp(calc(100cqh - var(--b) / var(--v)), calc(50cqh - var(--fy, .5) * var(--b) / var(--v)), 0px); }
.raum-innen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.raum-innen > img.licht { mix-blend-mode: multiply; pointer-events: none; }
@supports (animation-timeline: view()) {
  .raum:not(.gross) .raum-innen { animation: raum-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes raum-zoom { from { transform: scale(1.12); } to { transform: none; } }
  /* Große Schlusslinie zeichnet sich mit dem Scrollen */
  .schluss .route { animation: zeichne linear both !important; animation-timeline: view() !important; animation-range: entry 20% cover 55% !important; }
}

/* Hero: Raum öffnet sich wie ein Vorhang, Chips folgen */
.hero-bild .raum { animation: vorhang 1.2s var(--ease) .15s both; }
@keyframes vorhang { from { clip-path: inset(0 0 100% 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
.ticker button { animation: einblenden .6s var(--ease) both; }
.ticker button:nth-child(1) { animation-delay: .9s; } .ticker button:nth-child(2) { animation-delay: 1s; } .ticker button:nth-child(3) { animation-delay: 1.1s; }
.hero .lead, .hero-knoepfe, .hero-fakten { animation: einblenden .8s var(--ease) both; }
.hero .lead { animation-delay: .45s; } .hero-knoepfe { animation-delay: .6s; } .hero-fakten { animation-delay: .75s; }

/* Laufband mit Strecken */
.laufband { overflow: hidden; border-block: 1px solid var(--linie); padding: 18px 0; background: var(--kalk); }
.laufband .spur { display: flex; width: max-content; animation: laufband 48s linear infinite; }
.laufband:hover .spur { animation-play-state: paused; }
.laufband span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 800 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.laufband span i { width: 10px; height: 10px; border-radius: 50%; background: var(--glut); flex: none; }
.laufband span em { font: italic 400 .6em/1 var(--f-serif); text-transform: none; color: var(--stein); }
@keyframes laufband { to { transform: translateX(-50%); } }

/* Konfigurator: erledigte Etappe springt kurz auf */
.etappe.fertig .nr { animation: haken .55s var(--ease); }
@keyframes haken { 40% { transform: scale(1.3); } }

/* Flug in den Warenkorb */
.flieger { position: fixed; z-index: 95; pointer-events: none; width: 70px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); border-radius: 4px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .wort-reveal .w > i { transform: none; transition: none; }
  .laufband .spur { animation: none; flex-wrap: wrap; width: auto; }
  .tuer, .sport .raum, .design-karte, .option, .weg, .design-mini a { transform: none; }
  .hero-bild .raum { animation: none; }
}

/* Cookie-Einwilligung (nur aktiv, wenn MARKE.pixel gesetzt ist) */
.einwilligung { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; padding: 18px 20px;
  background: var(--asphalt); color: var(--kalk); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-size: .92rem; line-height: 1.5; }
.einwilligung p { margin: 0 0 14px; }
.einwilligung p b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.einwilligung a { color: inherit; text-decoration: underline; }
.einwilligung-knoepfe { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.einwilligung .knopf-klein.zweit { background: transparent; border-color: transparent; color: var(--kalk); box-shadow: inset 0 0 0 1.5px rgba(243,239,232,.5); }
.einwilligung .knopf-klein:not(.zweit) { background: var(--glut); border-color: var(--glut); color: #fff; }

/* Wandansicht: Leiste in der gewählten Farbe über dem Fotorahmen (siehe SHOP.raum) */
.raum-rahmen { position: absolute; background: #151515; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.4), 0 .3em .8em -.3em rgba(0,0,0,.35); }
.raum-rahmen.eiche { background: linear-gradient(160deg, #CFB08A, #BC9A6F 50%, #C8A87F); box-shadow: inset 0 1px 0 rgba(255,245,225,.45), inset 0 -1px 0 rgba(90,60,25,.4), 0 .3em .8em -.3em rgba(60,40,15,.35); }
.raum-rahmen.weiss { background: linear-gradient(160deg, #FFFFFF, #EFECE6); box-shadow: 0 0 0 1px rgba(0,0,0,.08), inset 0 -1px 0 rgba(0,0,0,.08), 0 .3em .8em -.3em rgba(0,0,0,.3); }

/* Strava-Markenrichtlinien: Rücklink heißt wörtlich „View on Strava“, fett und in Strava-Orange */
.strava-ansehen { color: #FC5200; font-weight: 700; text-decoration: underline; }
