/* ============================================================
   GFGH Kundenportal – Story-Startseite
   Markenwerte wie im Portal-Theme (themes/gfgh/styles.css)
   ============================================================ */

:root {
    --navy:        #101828;
    --navy-light:  #1D2939;
    --orange:      #F5741B;
    --orange-dark: #D45E0B;
    --orange-soft: #FCEEE0;
    --bg:          #F5F6F8;
    --surface:     #FFFFFF;
    --text:        #101828;
    --muted:       #475467;
    --line:        #E4E7EC;
    --danger:      #D92D20;
    --success:     #10B981;

    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:    'Barlow', system-ui, sans-serif;

    --topbar-h: 64px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    margin: 0;
}

a { color: inherit; }

.accent { color: var(--orange); }

.eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-dark);
    margin: 0 0 12px;
}
.eyebrow--light { color: var(--orange); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: .8em;
    font-weight: 600;
    background: var(--orange-soft);
    color: var(--orange-dark);
    white-space: nowrap;
}
.tag--offer { background: #D1FAE5; color: #065F46; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }

.btn--ghost { background: transparent; color: inherit; }
.btn--ghost:hover { color: var(--orange); }

.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }

/* ---------- Fortschritt & Topbar ---------- */

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 60;
}
.progress__bar {
    height: 100%;
    width: 100%;
    background: var(--orange);
    transform-origin: left;
    transform: scaleX(0);
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--topbar-h);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 max(16px, calc((100vw - 1200px) / 2));
    color: #fff;
    transition: background-color .3s, color .3s, box-shadow .3s;
}
.topbar--scrolled {
    background: rgba(16,24,40,.92);
    backdrop-filter: blur(8px);
}
.topbar--solid {
    background: rgba(255,255,255,.96);
    color: var(--navy);
    box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16,24,40,.06);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}
.brand__mark {
    align-self: center;
    width: 26px;
    height: 5px;
    border-radius: 3px;
    background: var(--orange);
}
.brand__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .04em;
}
.brand__sub {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

.topbar__actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero / Prolog ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--topbar-h) + 32px) 16px 96px;
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% 30%, rgba(245,116,27,.18), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(29,41,57,.9), transparent 70%),
        var(--navy);
    overflow: hidden;
}
.hero__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
}
.hero__title {
    font-size: clamp(44px, 7vw, 88px);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__title .accent { display: block; }
.hero__lead {
    max-width: 560px;
    margin: 0 0 32px;
    font-size: clamp(18px, 2vw, 21px);
    color: rgba(255,255,255,.78);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Getränkekiste von oben: 4 × 5 Flaschen, die nach und nach verschwinden */
.crate {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 22px;
    width: min(340px, 80vw);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: linear-gradient(160deg, #2A3A50, var(--navy-light));
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.35);
}
.crate__slot {
    position: relative;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    box-shadow: inset 0 3px 6px rgba(0,0,0,.35);
}
.crate__bottle {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFB27A 0 12%, var(--orange) 13% 46%, var(--orange-dark) 47% 62%, #7A3606 63%);
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.crate__slot--empty .crate__bottle { transform: scale(.2) translateY(-30%); opacity: 0; }

.crate__caption {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}
.crate__caption span { color: var(--orange); font-weight: 800; }

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Story: Kapitel + Bühne ---------- */

.story {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
}

.story__steps { grid-column: 1; grid-row: 1; padding: 10vh 0 30vh; }

.step {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: .28;
    transition: opacity .5s var(--ease);
}
.step.is-active { opacity: 1; }
.step h2 {
    font-size: clamp(34px, 4vw, 52px);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.step p { margin: 0 0 16px; color: var(--muted); max-width: 480px; }
.step em { font-style: normal; font-weight: 600; color: var(--text); }

.live-date {
    padding: 14px 18px;
    border-left: 4px solid var(--orange);
    border-radius: 0 10px 10px 0;
    background: var(--orange-soft);
    color: var(--text) !important;
}

.story__stage {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Portal-Fenster: feste Designgröße, wird per JS (--fit) in die Bühne skaliert */
.window {
    width: 520px;
    height: 500px;
    flex-shrink: 0;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 30px 70px rgba(16,24,40,.16);
    overflow: hidden;
    transform: scale(var(--fit, 1));
    font-size: 15px;
    line-height: 1.4;
}
.window__bar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--navy);
    color: #fff;
}
.window__brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.window__brand::before {
    content: "";
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: var(--orange);
}
.window__title {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}

.window__body { position: relative; height: calc(100% - 52px); }

.scene {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.scene b { display: block; font-weight: 700; color: var(--text); }
.scene small { display: block; font-size: 13px; color: var(--muted); }

.scene__note {
    margin: auto 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    text-align: center;
}

/* Szene 1 – Bestand */
.stock {
    display: grid;
    grid-template-columns: 120px 1fr 48px;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.stock__bar {
    height: 14px;
    border-radius: 999px;
    background: #F2F4F7;
    overflow: hidden;
}
.stock__bar i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: var(--success);
    transition: width 1.4s var(--ease), background-color 1.4s;
}
.scene.is-active .stock__bar i { width: calc(var(--level) * 100%); background: var(--danger); }
.scene.is-active .stock--ok .stock__bar i { background: var(--success); }
.stock__val { text-align: right; font-size: 13px; color: var(--muted); }

/* Szene 2 – Suche */
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border: 2px solid var(--orange);
    border-radius: 10px;
    font-weight: 600;
}
.search__icon {
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--muted);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2.5px;
    right: -6px;
    bottom: -3px;
    background: var(--muted);
    transform: rotate(45deg);
}
.search__caret { width: 2px; height: 20px; margin-left: -8px; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.chip--on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--tag { border-style: dashed; }

.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.results li, .fav, .line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.results li > span:nth-child(2), .fav > span:nth-child(2), .line > span:first-child { flex: 1; min-width: 0; }

.results li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.scene.is-active .results li { opacity: 1; transform: none; }
.scene.is-active .results li:nth-child(1) { transition-delay: .9s; }
.scene.is-active .results li:nth-child(2) { transition-delay: 1.05s; }
.scene.is-active .results li:nth-child(3) { transition-delay: 1.2s; }

.thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #F2F4F7;
    position: relative;
}
.thumb::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 12px;
    height: 26px;
    margin-left: -6px;
    border-radius: 5px 5px 3px 3px;
    background: var(--c, var(--orange));
}
.thumb--amber { --c: #D97706; }
.thumb--gold  { --c: #EAB308; }
.thumb--dark  { --c: #78350F; }
.thumb--blue  { --c: #0EA5E9; }
.thumb--red   { --c: #B42318; }

/* Szene 3 – Favoriten */
.heart {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: #D0D5DD;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.4.7-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.4.7-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: background-color .3s;
}
.scene.is-active .heart { background: var(--orange); animation: pop .5s var(--ease) both; }
.scene.is-active .fav:nth-child(1) .heart { animation-delay: .4s;  transition-delay: .4s; }
.scene.is-active .fav:nth-child(2) .heart { animation-delay: .8s;  transition-delay: .8s; }
.scene.is-active .fav:nth-child(3) .heart { animation-delay: 1.2s; transition-delay: 1.2s; }
.scene.is-active .fav:nth-child(4) .heart { animation-delay: 1.6s; transition-delay: 1.6s; }
@keyframes pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Szene 4 – Warenkorb */
.line { padding: 8px 12px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #F2F4F7;
    font-style: normal;
    font-weight: 700;
    color: var(--muted);
}
.qty output {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cart__sum {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}
.fake-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.fake-btn--sm { align-self: flex-end; margin-top: 6px; }

.confirm {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 100vmax rgba(16,24,40,.35), 0 20px 40px rgba(16,24,40,.25);
    opacity: 0;
    transform: translate(-50%, -40%) scale(.96);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.scene.is-active .confirm { opacity: 1; transform: translate(-50%, -50%); transition-delay: 2.2s; }

/* Szene 5 – Kalender */
.cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal__month {
    grid-column: 1 / -1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cal__head {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}
.cal__day {
    aspect-ratio: 1.15;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background: #F9FAFB;
    border: 1px solid var(--line);
}
.cal__day--off { background: transparent; border-color: transparent; color: #98A2B3; text-decoration: line-through; text-decoration-color: #D0D5DD; }
.cal__day--today { border: 2px solid var(--navy); color: var(--navy); text-decoration: none; }
.cal__day--first { background: var(--orange); border-color: var(--orange); color: #fff; }
.scene.is-active .cal__day--first { animation: pulse 1.8s .6s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,116,27,.55); }
    70%  { box-shadow: 0 0 0 12px rgba(245,116,27,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,116,27,0); }
}
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; font-size: 13px; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot--today { border: 2px solid var(--navy); }
.dot--first { background: var(--orange); }
.dot--off   { background: #EAECF0; }

/* Szene 6 – Status */
.order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.order b { display: inline; }
.badge {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid;
    transition: background-color .3s, color .3s, border-color .3s;
}
/* Farben wie die Status-Badges im Portal (shop.css) */
.badge[data-k="0"] { background: #DBEAFE; color: #1D4ED8; border-color: #BFDBFE; }
.badge[data-k="1"] { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.badge[data-k="2"] { background: #EDE9FE; color: #5B21B6; border-color: #DDD6FE; }
.badge[data-k="3"] { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }

.track {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.track::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--line);
}
.track::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 3px;
    height: calc((100% - 20px) * var(--k, 0) / 3);
    background: var(--orange);
    transition: height .6s var(--ease);
}
.track__step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: #98A2B3;
    transition: color .3s;
}
.track__dot {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--line);
    transition: background-color .3s, border-color .3s;
}
.track__step.is-done { color: var(--text); }
.track__step.is-done .track__dot { background: var(--orange); border-color: var(--orange); }

.road {
    position: relative;
    margin-top: auto;
    height: 46px;
    border-bottom: 3px dashed #D0D5DD;
}
.truck {
    position: absolute;
    bottom: 4px;
    left: calc((100% - 64px) * var(--k, 0) / 3);
    width: 64px;
    height: 36px;
    transition: left .8s var(--ease);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 36'%3E%3Crect x='1' y='4' width='38' height='22' rx='3' fill='%23F5741B'/%3E%3Cpath d='M41 10h11l8 9v7H41z' fill='%23101828'/%3E%3Cpath d='M45 13h6l5 6H45z' fill='%23B9E6FE'/%3E%3Ccircle cx='13' cy='29' r='5' fill='%23101828'/%3E%3Ccircle cx='13' cy='29' r='2' fill='%23fff'/%3E%3Ccircle cx='50' cy='29' r='5' fill='%23101828'/%3E%3Ccircle cx='50' cy='29' r='2' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Epilog ---------- */

.epilog {
    padding: 120px 16px 96px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(800px 420px at 50% 0%, rgba(245,116,27,.16), transparent 65%),
        var(--navy);
}
.epilog__title {
    font-size: clamp(38px, 6vw, 72px);
    text-transform: uppercase;
    margin-bottom: 72px;
}

.howto {
    list-style: none;
    max-width: 1100px;
    margin: 0 auto 64px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}
.howto li {
    padding: 28px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
}
.howto__num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: var(--orange);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
}
.howto h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 8px; }
.howto p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }

.epilog__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.epilog__note { margin: 28px 0 0; font-size: 14px; color: rgba(255,255,255,.55); }

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px max(16px, calc((100vw - 1200px) / 2));
    background: #0B111D;
    color: rgba(255,255,255,.55);
    font-size: 14px;
}
.footer__links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Tablet & Mobil ---------- */

@media (max-width: 960px) {
    body { font-size: 17px; }

    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { order: -1; }
    .crate { width: min(220px, 56vw); padding: 14px; gap: 8px; }

    /* Bühne oben fixieren, Kapitel laufen darunter durch */
    .story { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
    .story__stage {
        grid-column: 1;
        grid-row: 1;
        top: var(--topbar-h);
        height: 46vh;
        height: 46svh;
        z-index: 2;
        background: linear-gradient(var(--bg) 88%, rgba(245,246,248,0));
        padding: 8px 0 16px;
    }
    .story__steps { grid-row: 2; padding: 0 0 40vh; }
    .step { min-height: 62vh; justify-content: flex-start; padding-top: 2vh; }
    .step h2 { margin-bottom: 14px; }

    .howto { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .topbar__register { display: none; }
    .brand__sub { display: none; }
    .hero__cta .btn, .epilog__cta .btn { flex: 1 1 100%; }
    .epilog { padding-top: 88px; }
    .epilog__title { margin-bottom: 48px; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}
