/* ==========================================================================
   Startseite unter dem Hero: Anleitung mit iPhone, Erfolge, Abschluss.
   Regel der neuen Teile: nichts wird über Deckkraft ein- oder ausgeblendet.
   Elemente schieben, wischen über Masken (overflow/clip-path), skalieren oder zeichnen.
   Die Klasse html.motion setzt ein Inline-Skript im <head>; ohne JavaScript greift
   der Abschnitt „Ohne JavaScript“ ganz unten.
   ========================================================================== */

:root {
    --app-font: ui-rounded, "SF Pro Rounded", "SF Pro Text", -apple-system, system-ui, sans-serif;
    --app-primary: #006684;
    --app-ink: #1b1c1c;
    --app-sub: #6b7176;
    --app-field: #f1f0ee;
}

.mask { display: block; overflow: hidden; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ══════════════ Hero: füllt den ersten Bildschirm, Hinweis nach unten ══════════════ */

.motion #hero {
    min-height: calc(100svh - 62px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 110px;
}

.hero-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}
html:not(.motion) .hero-cue { display: none; }
.hero-cue:hover { color: var(--primary); }
.hero-cue:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.hero-cue__mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
@media (hover: hover) { .hero-cue:hover .hero-cue__mouse { transform: translateY(4px); } }
/* Scrollrad läuft nach unten und schrumpft weg, statt auszublenden */
.hero-cue__mouse i {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--primary);
    transform-origin: 50% 100%;
    animation: cue-wheel 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
/* Auf Touch-Geräten passt keine Maus: dort wippt ein Pfeil */
.hero-cue__arrow { display: none; font-size: 1.8rem; color: var(--primary); animation: cue-bob 1.6s ease-in-out infinite; }
@media (hover: none) {
    .hero-cue__mouse { display: none; }
    .hero-cue__arrow { display: block; }
}
@keyframes cue-bob { 50% { transform: translateY(5px); } }

@keyframes cue-wheel {
    0%   { transform: translateY(0) scaleY(1); }
    55%  { transform: translateY(12px) scaleY(0); }
    56%  { transform: translateY(0) scaleY(0); }
    80%, 100% { transform: translateY(0) scaleY(1); }
}

/* ══════════════ Übergang Hero → Anleitung ══════════════
   ScrollTrigger hält den Hero fest, die Anleitung schiebt sich mit schräger Kante darüber.
   Weiches Scrollen zu Ankern übernimmt index.ts (CSS-Variante stört ScrollTrigger). */
html.motion { scroll-behavior: auto; }
#hero { position: relative; z-index: 1; background: var(--surface); }

.story-edge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    display: grid;
    gap: 5px;
    transform-origin: 0 0;
    pointer-events: none;
}
.story-edge i { display: block; height: 6px; transform-origin: 100% 50%; }
.story-edge i:nth-child(1) { background: var(--Blue); }
.story-edge i:nth-child(2) { background: var(--Purple); }
.story-edge i:nth-child(3) { background: var(--Green); }
html:not(.motion) .story-edge { display: none; }

/* ══════════════ Anleitung ══════════════ */

.story { position: relative; z-index: 2; background: var(--surface-container-low); }

.story-pin {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
}

.story-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

/* Zähler 01 / 06: die Ziffer rollt wie ein Zählwerk */
.story-count {
    display: flex;
    align-items: baseline;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--on-surface);
    font-variant-numeric: tabular-nums;
    margin-bottom: 18px;
}
.story-count__zero { color: var(--outline-variant); }
.story-count__mask { display: inline-block; height: 1em; overflow: hidden; }
.story-count__strip { display: flex; flex-direction: column; }
.story-count__strip span { height: 1em; line-height: 1; }
.story-count__total {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--on-surface-variant);
    margin-left: 12px;
}

/* Texte liegen übereinander in einer Zelle; die Maske schneidet beim Rollen ab */
.story-copy {
    list-style: none;
    display: grid;
    overflow: hidden;
    padding-bottom: 4px;
}
.story-copy__item { grid-area: 1 / 1; max-width: 470px; }
.story-copy__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c);
    margin-bottom: 10px;
}
.story-copy__item h2 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 750;
    color: var(--on-surface);
    margin-bottom: 14px;
}
.story-copy__item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--on-surface-variant);
}
.story-copy__item b { color: var(--on-surface); font-weight: 650; }

/* Fortschritt: sechs Segmente in Markenfarben */
.story-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 36px;
    max-width: 470px;
}
.story-rail__seg i {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-container-highest);
    position: relative;
    overflow: hidden;
}
.story-rail__seg i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}
.story-rail__seg span {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--outline);
}

/* Schritte in der Leiste sind Knöpfe: anklicken springt zum Schritt */
.story-foot { margin-top: 36px; max-width: 470px; }
.story-foot .story-rail { margin-top: 0; }
.story-rail__seg {
    appearance: none;
    background: none;
    border: 0;
    padding: 14px 0;
    margin: -14px 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.story-rail__seg i { transition: transform 0.2s ease; transform-origin: 50% 50%; }
.story-rail__seg span { font-size: .8rem; transition: color 0.2s ease; }
.story-rail__seg:hover i, .story-rail__seg:focus-visible i { transform: scaleY(1.7); }
.story-rail__seg:hover span, .story-rail__seg:focus-visible span,
.story-rail__seg.is-current span { color: var(--on-surface); }
.story-rail__seg:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Steuerung: große Knöpfe mit Ziel im Namen */
.story-controls { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.story-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 14px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.story-controls button:active:not(:disabled) { transform: scale(.97); }
.story-controls button:focus-visible, .ctl-skip:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ctl-back {
    border: 2px solid var(--outline-variant);
    background: var(--surface-container-lowest);
    color: var(--on-surface);
}
.ctl-back:hover:not(:disabled) { background: var(--surface-container-low); }
.ctl-back:disabled { color: var(--outline-variant); cursor: default; }
.ctl-next {
    flex: 1;
    min-width: 240px;
    border: 0;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 14px rgba(0, 102, 132, .3);
}
.ctl-next:hover { background: #005470; }
.ctl-skip {
    margin-top: 16px;
    padding: 8px 2px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.ctl-skip:hover { color: var(--primary); }

/* ── Bühne ── */
.story-stage {
    position: relative;
    height: min(700px, calc(100svh - 120px));
    display: grid;
    place-items: center;
    perspective: 1600px;
}

/* Schräges Farbband wie die Striche im Wels-Logo; jede Farbe wischt von unten herein */
.band {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 92%);
    height: 84%;
    translate: -50% -50%;
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
    border-radius: 18px;
}
.band i {
    position: absolute;
    inset: 0;
    background: var(--c);
    clip-path: inset(100% 0 0 0);
}

.phone-shadow {
    position: absolute;
    left: 50%;
    bottom: 3%;
    width: 240px;
    height: 34px;
    margin-left: -120px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent);
}

/* ── iPhone ── */
.phone-scaler {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 620px;
    margin: -310px 0 0 -150px;
    transform: scale(var(--phone-scale, 1));
    perspective: 1400px;
}
.phone-lift { transform-style: preserve-3d; will-change: transform; }
.phone {
    position: relative;
    width: 300px;
    height: 620px;
    border-radius: 56px;
    padding: 4px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #e7e3dc 0%, #b9b4ab 35%, #8e8a83 55%, #d4d0c8 80%, #a29d95 100%);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.18),
        inset 0 0 0 1px rgba(255,255,255,.55),
        0 40px 80px -24px rgba(0, 40, 60, .45),
        0 18px 30px -18px rgba(0,0,0,.35);
    transform-style: preserve-3d;
    will-change: transform;
}
.phone-key {
    position: absolute;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8f8a82, #cfcac2);
}
.phone-key--action { left: -3px; top: 110px; height: 26px; }
.phone-key--up     { left: -3px; top: 156px; height: 46px; }
.phone-key--down   { left: -3px; top: 212px; height: 46px; }
.phone-key--power  { right: -3px; top: 170px; height: 74px; background: linear-gradient(90deg, #cfcac2, #8f8a82); }

.phone-bezel {
    width: 100%;
    height: 100%;
    border-radius: 52px;
    background: #0b0b0c;
    padding: 8px;
    box-sizing: border-box;
}
.screen {
    position: relative;
    width: 276px;
    height: 596px;
    border-radius: 44px;
    overflow: hidden;
    background: #fbfaf8;
    font-family: var(--app-font);
    color: var(--app-ink);
    isolation: isolate;
}
.screen .material-symbols-outlined { font-family: 'Material Symbols Outlined'; }

.island {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 86px;
    height: 25px;
    margin-left: -43px;
    border-radius: 14px;
    background: #000;
    z-index: 30;
}
.sb {
    position: absolute;
    inset: 0 0 auto 0;
    height: 46px;
    padding: 0 24px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    font-size: 14px;
    font-weight: 700;
    font-family: -apple-system, system-ui, sans-serif;
}
.sb.on-dark { color: #fff; }
.sb.on-dark .sb-batt { border-color: rgba(255,255,255,.5); }
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { fill: currentColor; }
.sb-batt {
    width: 22px; height: 11px; border-radius: 3.5px;
    border: 1.2px solid rgba(0,0,0,.4); padding: 1px; box-sizing: border-box;
}
.sb-batt i { display: block; height: 100%; width: 80%; background: currentColor; border-radius: 2px; }

.scr {
    position: absolute;
    inset: 0;
    padding: 54px 16px 16px;
    box-sizing: border-box;
    background: #fbfaf8;
    overflow: hidden;
}

.app-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--app-primary);
}
.app-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-sub);
    margin-bottom: 8px;
}

/* Home */
.scr-home { z-index: 3; }
.home-head { position: relative; padding: 8px 2px 18px; }
.home-w { position: absolute; right: -40px; top: -8px; width: 150px; filter: grayscale(1); opacity: .07; }
.home-title { font-size: 27px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.home-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(0,102,132,.7);
}
.home-cta__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.18);
}
.home-cta b { display: block; font-size: 15px; }
.home-cta small { display: block; font-size: 11.5px; color: rgba(255,255,255,.8); margin-top: 2px; }
.home-cta__chev { margin-left: auto; }
.home-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: .5px solid rgba(190,200,206,.5);
}
.home-steps { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.home-steps span { display: flex; align-items: center; gap: 6px; }
.home-steps i { width: 9px; height: 9px; border-radius: 3px; }
.home-skyline { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 90px; opacity: .12; }
.tabbar {
    position: absolute;
    left: 12px; right: 12px; bottom: 14px;
    height: 54px;
    border-radius: 27px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1), inset 0 0 0 .5px rgba(0,0,0,.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    color: #8a8f93;
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tabbar .material-symbols-outlined { font-size: 21px; }
.tabbar .on { color: var(--app-primary); }

/* Wizard */
.scr-wizard { z-index: 4; padding: 54px 0 0; display: flex; flex-direction: column; }
.wz-head { padding: 4px 16px 0; }
.wz-title { height: 32px; overflow: hidden; margin-top: 6px; }
.wz-title__strip span {
    display: block;
    height: 32px;
    line-height: 32px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.wz-ind { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 12px; }
.wz-ind i { display: block; height: 5px; border-radius: 3px; background: #dcdcde; overflow: hidden; }
.wz-ind b { display: block; height: 100%; background: var(--app-primary); transform: scaleX(0); transform-origin: left; }
.wz-ind span { display: block; margin-top: 6px; font-size: 9px; font-weight: 700; color: #9a9ea2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-ind .done span { color: var(--app-primary); }

.wz-body { flex: 1; overflow: hidden; margin-top: 12px; position: relative; }
.wz-track { display: flex; width: 400%; height: 100%; }
.wz-panel { width: 25%; padding: 2px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }

.dcard {
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: .5px solid rgba(190,200,206,.5);
}
.dcard__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.tile { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.tile .material-symbols-outlined { font-size: 16px; }
.chip { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; color: var(--app-sub); background: var(--app-field); padding: 3px 8px; border-radius: 99px; }

.fl { display: block; font-size: 10.5px; font-weight: 700; color: var(--app-sub); margin: 0 0 5px 2px; }
.field {
    position: relative;
    min-height: 36px;
    padding: 9px 11px;
    box-sizing: border-box;
    border-radius: 11px;
    background: var(--app-field);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    white-space: pre-wrap;
}
.field:last-child { margin-bottom: 0; }
.field--area { min-height: 96px; font-weight: 500; }
.field--search { display: flex; align-items: center; gap: 6px; }
.field--search .material-symbols-outlined { font-size: 17px; color: var(--app-sub); }
.field .ph { position: absolute; left: 11px; top: 9px; color: #a7aaad; font-weight: 500; }
.field .type:not(:empty) ~ .ph { display: none; }
.caret {
    display: inline-block;
    width: 1.5px;
    height: 15px;
    margin-left: 1px;
    vertical-align: -3px;
    background: var(--app-primary);
    transform: scaleY(0);
}

/* Karte */
.map { position: relative; height: 186px; border-radius: 14px; overflow: hidden; background: #eef0e8; }
.map-art { position: absolute; left: 0; top: 0; width: 252px; height: 180px; transform-origin: 101px 70px; }
.xh { position: absolute; background: var(--app-primary); }
.xh--t, .xh--b { left: 100px; width: 2px; height: 60px; }
.xh--l, .xh--r { top: 69px; height: 2px; width: 70px; }
.xh--t { top: 0; } .xh--b { top: 82px; }
.xh--l { left: 0; } .xh--r { left: 113px; }
.map-pin { position: absolute; left: 89px; top: 38px; width: 24px; height: 32px; transform-origin: 50% 100%; transform: scale(0); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.map-pin svg { display: block; width: 100%; height: 100%; }
.map-chip {
    position: absolute; right: 8px; bottom: 8px;
    display: flex; align-items: center; gap: 4px;
    padding: 5px 9px; border-radius: 99px;
    background: #fff; font-size: 10.5px; font-weight: 700; color: var(--app-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.map-chip .material-symbols-outlined { font-size: 13px; }
.hint { margin-top: 8px; font-size: 10.5px; color: var(--app-sub); }

/* Fotos */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }
.slot--photo { background: var(--app-field); }
.slot--photo svg { width: 100%; height: 100%; display: block; clip-path: inset(0 0 100% 0); }
.slot--add {
    border: 1.5px dashed #b8bfc4;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #a4326d;
}
.slot--add .material-symbols-outlined { font-size: 22px; }
.slot-count { height: 13px; overflow: hidden; font-size: 9.5px; font-weight: 700; color: var(--app-sub); }
.slot-count__strip span { display: block; height: 13px; line-height: 13px; text-align: center; }
.slot--empty { background: var(--app-field); }

.vis { position: relative; display: grid; gap: 6px; }
.vis__sel {
    position: absolute; left: 0; right: 0; top: 0; height: calc(50% - 3px);
    border-radius: 12px;
    background: #f2f7dc;
    box-shadow: inset 0 0 0 1.5px #B2C900;
}
.vis__opt { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px; }
.vis__opt > .material-symbols-outlined { font-size: 19px; color: #5f6a00; }
.vis__opt b { display: block; font-size: 12.5px; }
.vis__opt small { display: block; font-size: 10px; color: var(--app-sub); }
.radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b8bfc4; position: relative; }
.radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #6b7a00; transform: scale(var(--on, 0)); }

/* Kontakt */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sum { list-style: none; display: grid; gap: 7px; overflow: hidden; }
.sum li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.sum i { width: 8px; height: 8px; border-radius: 3px; flex: none; }

.wz-foot {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    padding: 10px 14px 22px;
    background: linear-gradient(transparent, #fbfaf8 30%);
}
.wbtn {
    height: 42px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center; gap: 3px;
    font-size: 13.5px; font-weight: 800;
}
.wbtn .material-symbols-outlined { font-size: 17px; }
.wbtn--tint { background: rgba(0,102,132,.12); color: var(--app-primary); }
.wbtn--fill { background: var(--app-primary); color: #fff; }
.wbtn__mask { height: 20px; overflow: hidden; }
.wbtn__strip > span { height: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* Kamera-Sheet */
.cam {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding-top: 54px;
}
.cam-view { position: relative; flex: 1; overflow: hidden; }
.cam-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-frame { position: absolute; inset: 22% 18%; border: 1.5px solid rgba(255,214,10,.9); border-radius: 6px; }
.cam-iris { position: absolute; inset: 0; background: #000; clip-path: circle(0% at 50% 50%); }
.cam-bar { height: 120px; display: grid; place-items: center; }
.cam-shutter { width: 62px; height: 62px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; display: grid; place-items: center; }
.cam-shutter i { width: 50px; height: 50px; border-radius: 50%; background: #fff; }

/* Erfolg */
.scr-success {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 96px 22px 20px;
}
.ok { width: 92px; height: 92px; margin-bottom: 18px; }
.ok-ring, .ok-check { fill: none; stroke: var(--app-primary); stroke-linecap: round; stroke-linejoin: round; }
.ok-ring { stroke-width: 5; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ok-check { stroke-width: 7; }
.ok-title { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.ok-body { font-size: 13.5px; color: var(--app-sub); margin-top: 6px; }
.ok-note { font-size: 11.5px; color: var(--app-sub); margin-top: 12px; line-height: 1.45; }
.ok-ref {
    display: flex;
    margin-top: 14px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--app-field);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.ok-digits { display: flex; }
.ok-digit { display: block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
.ok-strip { display: block; }
.ok-strip span { display: block; height: 1.25em; }
.ok-btn {
    margin-top: auto;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: var(--app-primary);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.ok-link { margin: 12px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--app-primary); }

/* Status */
.scr-status { z-index: 5; box-shadow: -10px 0 24px rgba(0,0,0,.08); }
.st-back { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--app-primary); margin: 0 0 10px -6px; }
.st-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 12px; }
.st-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.st-bars i { display: block; height: 6px; border-radius: 3px; background: #dcdcde; overflow: hidden; }
.st-bars b { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.st-bars span { display: block; margin-top: 6px; font-size: 9.5px; font-weight: 700; color: #8a8f93; }
.st-pill {
    position: relative;
    display: inline-flex;
    margin: 14px 0;
    height: 26px;
    padding: 0 12px;
    border-radius: 99px;
    overflow: hidden;
    background: #dbeef7;
    min-width: 122px;
}
.st-pill__bg { position: absolute; inset: 0; background: var(--c); clip-path: inset(0 100% 0 0); }
.st-pill__bg:first-child { clip-path: none; }
.st-pill__mask { position: relative; height: 26px; overflow: hidden; }
.st-pill__strip span { display: block; height: 26px; line-height: 26px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-card { padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: .5px solid rgba(190,200,206,.5); }
.st-log { list-style: none; display: grid; gap: 10px; overflow: hidden; }
.st-log li { display: flex; gap: 10px; align-items: flex-start; }
.st-log i { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex: none; }
.st-log b { display: block; font-size: 12px; }
.st-log small { display: block; font-size: 10.5px; color: var(--app-sub); }
.st-map { position: relative; margin-top: 12px; height: 80px; border-radius: 14px; overflow: hidden; }
.st-map svg { width: 100%; height: 100%; display: block; }
.st-map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -80%; color: #a4326d; }
.st-map__pin .material-symbols-outlined { font-size: 30px; font-variation-settings: 'FILL' 1; }

/* Mitteilung */
.notif {
    position: absolute;
    top: 8px; left: 8px; right: 8px;
    z-index: 40;
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 22px;
    background: rgba(245,245,247,.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.notif__icon { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.notif__icon svg { width: 24px; }
.notif__text { font-size: 11.5px; line-height: 1.3; }
.notif__text small { display: block; font-size: 9.5px; font-weight: 700; color: var(--app-sub); letter-spacing: .04em; }
.notif__text b { display: block; font-size: 12.5px; }

/* Tipp-Anzeige */
.tap {
    position: absolute;
    left: 0; top: 0;
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px;
    z-index: 50;
    pointer-events: none;
    transform: scale(0);
}
.tap i {
    position: absolute; left: 50%; top: 50%;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: rgba(40, 40, 44, .28);
    box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 12px rgba(0,0,0,.2);
}
.tap svg { position: absolute; inset: 0; overflow: visible; }
.tap-ring { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 0; }

/* Streifen und Masken aus <span> müssen Blöcke sein, sonst greifen Höhe und Transform nicht */
.st-pill__mask, .st-pill__strip, .slot-count, .slot-count__strip, .wbtn__mask, .wbtn__strip { display: block; }

/* Startlage der verdeckten Bildschirme, bevor GSAP übernimmt */
.motion .cam { transform: translateY(101%); }
.motion .scr-status { transform: translateX(101%); }
.motion .scr-wizard { transform: translateX(101%); }
.motion .notif { transform: translateY(-140%); }

/* ══════════════ Erfolge ══════════════ */

.wins { background: var(--surface); overflow: hidden; }
.wins[hidden] { display: none; }
.wins-pin {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vh, 48px);
    padding: 110px 0 96px;
}
.wins-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.wins-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 750; max-width: 13em; }
.wins-title__mark {
    position: relative;
    white-space: nowrap;
    background: linear-gradient(var(--Green), var(--Green)) no-repeat 0 88% / var(--mark, 100%) 32%;
}
.motion .wins-title__mark { --mark: 0%; }
.wins-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.wins-sub { color: var(--on-surface-variant); font-size: 1.05rem; max-width: 22em; }
.wins-nav { display: flex; gap: 10px; }
.wins-nav button {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--outline-variant);
    background: var(--surface-container-lowest);
    color: var(--on-surface);
    display: grid; place-items: center;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.wins-nav button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.wins-nav button:active:not(:disabled) { transform: scale(.94); }
.wins-nav button:disabled { color: var(--outline-variant); cursor: default; }
.wins-nav button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Spur: seitlich wischen oder mit den Pfeilen blättern */
.wins-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(clamp(16px, 3vw, 48px), calc((100vw - 1280px) / 2 + 48px));
    padding: 4px 10vw 14px max(clamp(16px, 3vw, 48px), calc((100vw - 1280px) / 2 + 48px));
    scrollbar-width: thin;
}
.win {
    flex: none;
    display: flex;
    flex-direction: column;
    width: clamp(290px, 34vw, 440px);
    border-radius: 24px;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(190,200,206,.4);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
    scroll-snap-align: start;
    color: inherit;
    text-decoration: none;
}
.win:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.win-art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--surface-container); }
.win-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
@media (hover: hover) { .win:hover .win-art img { transform: scale(1.04); } }
.win-art--empty { display: grid; place-items: center; color: var(--outline); }
.win-art--empty .material-symbols-outlined { font-size: 3rem; }
.win-body { padding: 20px 22px 24px; }
.win-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.win-date { font-size: .85rem; color: var(--on-surface-variant); }
.win-body h3 { font-size: 1.2rem; margin: 10px 0 6px; letter-spacing: -0.01em; color: var(--on-surface); }
.win-body p {
    color: var(--on-surface-variant);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badge-done {
    display: inline-block; padding: 4px 10px; border-radius: 99px;
    background: rgba(178,201,0,.18); color: #3d4600;
    font-size: .75rem; font-weight: 700;
}
.win--more {
    justify-content: center;
    gap: 6px;
    padding: 32px;
    width: clamp(220px, 22vw, 300px);
    color: var(--on-primary);
    background: var(--primary);
    border: 0;
}
.win--more .material-symbols-outlined { font-size: 2.4rem; margin-bottom: 10px; transition: transform .2s ease; }
.win--more b { font-size: 1.3rem; }
.win--more small { color: rgba(255,255,255,.8); font-size: .95rem; }
@media (hover: hover) { .win--more:hover .material-symbols-outlined { transform: translateX(6px); } }

/* ══════════════ Finale ══════════════ */

.finale { background: var(--surface-container-low); padding: clamp(80px, 14vh, 160px) 0; overflow: hidden; }
.finale-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.finale-logo { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.finale-title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 32px; }
.finale-title .mask > span { display: block; }
.finale-accent { color: var(--primary); }
.finale-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════ Responsiv ══════════════ */

@media (max-width: 900px) {
    /* Schmal: Hinweis steht im Fluss unter den Knöpfen statt absolut am Rand,
       sonst überlappt er „Mehr erfahren“, sobald der Hero höher als der Bildschirm ist. */
    .motion #hero { flex-direction: column; justify-content: center; padding-bottom: 32px; }
    .hero-cue { position: static; translate: none; margin-top: 28px; }

    .story-pin { padding: 64px 0 24px; }
    .story-grid { grid-template-columns: 1fr; gap: 8px; }
    .story-stage { order: -1; height: min(440px, 52svh); }
    .story-text { position: relative; z-index: 2; }
    .story-eyebrow, .story-count { display: none; }
    .story-copy__item h2 { font-size: 1.6rem; margin-bottom: 6px; }
    .story-copy__item p { font-size: .95rem; line-height: 1.5; }
    .story-copy__tag { margin-bottom: 4px; }
    .story-foot { margin-top: 14px; max-width: none; }
    .story-rail__seg span { display: none; }
    .story-controls { margin-top: 16px; }
    .story-controls button { min-height: 52px; font-size: 1rem; padding: 0 18px; }
    .ctl-next { min-width: 0; }
    .ctl-skip { margin-top: 8px; }
    .band { width: 70%; height: 96%; }

    .wins-side { align-items: flex-start; }

    .finale-inner { grid-template-columns: 1fr; text-align: center; }
    .finale-logo { max-width: 220px; }
    .finale-actions { justify-content: center; }
}

/* ══════════════ Ohne JavaScript ══════════════
   Alle sechs Texte untereinander, das Handy zeigt den Status-Bildschirm, keine Steuerung. */
html:not(.motion) .story-copy { display: grid; gap: 28px; }
html:not(.motion) .story-copy__item { grid-area: auto; }
html:not(.motion) .story-count,
html:not(.motion) .story-foot,
html:not(.motion) .story-controls,
html:not(.motion) .ctl-skip { display: none; }
html:not(.motion) .story-stage { align-self: start; position: sticky; top: 90px; }
html:not(.motion) .band i:last-child { clip-path: none; }
html:not(.motion) .scr-status { transform: none; }
html:not(.motion) .st-bars b { transform: none; }
html:not(.motion) .cam, html:not(.motion) .notif, html:not(.motion) .tap,
html:not(.motion) .scr-home, html:not(.motion) .scr-wizard, html:not(.motion) .scr-success { display: none; }
@media (max-width: 900px) {
    html:not(.motion) .story-stage { height: 640px; position: relative; top: auto; }
}

/* Bewegung reduzieren: keine Übergänge; die Anleitung springt (src/index.ts) */
@media (prefers-reduced-motion: reduce) {
    .hero-cue__mouse i { animation: none; }
    .hero-cue__arrow { animation: none; }
    .story-edge { display: none; }
}
