/*
 * gassibeutel.de · Version 2 „Bühne“ – Gestaltung (Tokens in :root, die Bausteine lesen sie mit).
 * Grundlayout funktioniert ohne JavaScript und bei reduzierter Bewegung; die Bühne mit
 * festgehaltener Rolle und Flugbahnen kommt nur mit der Klasse .bewegung am <html>.
 */

@font-face {
    font-family: "Unbounded";
    src: url("/assets/vendor/unbounded@5.3.0/unbounded-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/assets/vendor/figtree@2.0.3/Figtree-wght.woff2") format("woff2-variations");
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --pink: #ff3ea5;
    --pink-studio: #fa5c99;
    --himmel: #92ebff;
    --gelb: #ffe14d;
    --limette: #b8f25a;
    --navy: #16195c;
    --weiss: #ffffff;
    --creme: #fff4fa;
    --rand: 3px;
    --schatten: 7px;
    --schrift-titel: "Unbounded", "Arial Black", system-ui, sans-serif;
    --schrift-text: "Figtree", system-ui, sans-serif;
    --band: 46px;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--creme);
    color: var(--navy);
    font: 400 1.0625rem/1.55 var(--schrift-text);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Was beim Einfliegen seitlich übersteht (Startzustände der Animationen, Sticker, weggewischte Karten),
   darf den Layout-Bereich am Handy nicht verbreitern. overflow-x am body allein reicht dafür nicht,
   weil der Browser es auf das Fenster überträgt. */
main {
    overflow-x: clip;
}

/* nur für Bildschirmleser (z. B. der Name des Logo-Links, der sichtbare Schriftzug ist eine Grafik) */
.nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.formen {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.platzhalter {
    outline: 2px dashed currentColor;
    outline-offset: 4px;
    border-radius: 4px;
    opacity: 0.72;
}

:focus-visible {
    outline: 3px solid var(--gelb);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------- Symbole (Sticker) */

.symbol {
    display: block;
    overflow: visible;
}

.symbol__kontur {
    fill: var(--navy);
    stroke: var(--navy);
    stroke-width: 11;
    stroke-linejoin: round;
}

.symbol__rand {
    fill: var(--weiss);
    stroke: var(--weiss);
    stroke-width: 7;
    stroke-linejoin: round;
}

.symbol__fuellung {
    fill: currentColor;
}

.symbol--funkeln { color: var(--gelb); }
.symbol--blitz { color: var(--himmel); }
.symbol--knochen { color: var(--limette); }
.symbol--herz { color: var(--pink); }

/* ---------------------------------------------------------------- Knöpfe */

.knopf {
    --hoehe: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.95em 1.15em 0.95em 1.5em;
    border: var(--rand) solid var(--navy);
    border-radius: 999px;
    background: var(--gelb);
    color: var(--navy);
    font: 700 0.98rem/1 var(--schrift-titel);
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 calc(6px - var(--hoehe)) 0 var(--navy);
    translate: 0 var(--hoehe);
    transition: box-shadow 0.18s ease, translate 0.18s ease, background-color 0.2s ease;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.knopf::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.75) 48%, transparent 66%);
    translate: -120% 0;
    transition: translate 0.6s ease;
}

.knopf:hover {
    --hoehe: -2px;
}

.knopf:hover::before {
    translate: 120% 0;
}

.knopf:active {
    --hoehe: 4px;
    transition-duration: 0.06s;
}

.knopf__text {
    position: relative;
}

.knopf__pfeil {
    position: relative;
    flex: none;
    width: 2em;
    height: 2em;
    margin: -0.5em -0.35em -0.5em 0;
    border-radius: 50%;
    background: var(--navy);
    transition: rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.knopf__pfeil::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--weiss);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12m-5-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 58% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12m-5-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 58% no-repeat;
}

.knopf__pfeil--raus {
    rotate: -45deg;
}

.knopf:hover .knopf__pfeil {
    rotate: 360deg;
}

.knopf:hover .knopf__pfeil--raus {
    rotate: 0deg;
}

.knopf--haupt {
    background: var(--gelb);
    font-size: 1.05rem;
}

.knopf--neben {
    background: var(--weiss);
    padding-right: 1.5em;
}

.knopf--klein {
    font-size: 0.85rem;
    padding: 0.75em 0.95em 0.75em 1.2em;
    background: var(--pink);
    color: var(--weiss);
}

.knopf--klein .knopf__pfeil {
    background: var(--weiss);
}

.knopf--klein .knopf__pfeil::after {
    background: var(--navy);
}

.knopf--karte {
    align-self: flex-start;
    max-width: 100%;
    margin-top: auto;
    background: var(--weiss);
    white-space: normal;
    line-height: 1.15;
}

/* ---------------------------------------------------------------- Laufband */

.band {
    position: relative;
    z-index: 30;
    height: var(--band);
    overflow: hidden;
    background: var(--navy);
    color: var(--weiss);
}

.band__spur {
    display: flex;
    width: max-content;
    height: 100%;
}

.band__liste {
    display: flex;
    align-items: center;
    flex: none;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.band__liste li {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 22px 0 0;
    font: 700 0.8rem/1 var(--schrift-titel);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.band__liste li::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2c1.6 9.6 8.4 16.4 18 18-9.6 1.6-16.4 8.4-18 18-1.6-9.6-8.4-16.4-18-18C11.6 18.4 18.4 11.6 20 2z' fill='%23ff3ea5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.band__liste li.platzhalter {
    outline-offset: 2px;
    padding-left: 8px;
    margin-right: 22px;
    padding-right: 8px;
}

.band__liste li.platzhalter::after {
    display: none;
}

/* ---------------------------------------------------------------- Kopf */

.kopf {
    position: absolute;
    top: var(--band);
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(16px, 4vw, 56px);
}

/* Domainname als gestanzter Sticker: weißer Rand, Navy-Kontur, harter Versatzschatten */
.marke {
    display: block;
    width: clamp(220px, 30vw, 440px);
    rotate: -3deg;
    transform-origin: 20% 60%;
    text-decoration: none;
}

.marke__bild {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.marke__bild text {
    font: 900 55px var(--schrift-titel);
    letter-spacing: -1px;
    stroke-linejoin: round;
    paint-order: stroke fill;
}

.marke__schatten {
    fill: var(--navy);
    stroke: var(--navy);
    stroke-width: 24px;
}

.marke__kante {
    fill: var(--weiss);
    stroke: var(--weiss);
    stroke-width: 24px;
}

.marke__gassi,
.marke__de {
    fill: var(--navy);
}

.marke__beutel {
    fill: var(--pink);
}

.marke:hover {
    animation: aufkleber 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes aufkleber {
    0% { rotate: -3deg; scale: 1; }
    35% { rotate: 3deg; scale: 1.08; }
    65% { rotate: -5deg; scale: 0.98; }
    100% { rotate: -3deg; scale: 1; }
}

/* ---------------------------------------------------------------- Hero (Studio-Pop, Andres Wahl) */

.hero {
    position: relative;
    min-height: calc(100svh - var(--band));
    overflow: hidden;
    background: var(--pink-studio);
    isolation: isolate;
}

.hero__bild {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bild picture {
    display: contents;
}

.hero__bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 50%;
    scale: 1.06;
}

.hero__inhalt {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - var(--band));
    max-width: min(1000px, 58vw);
    padding: 130px clamp(16px, 6vw, 96px) clamp(56px, 11vh, 120px);
}

.hero__titel {
    margin: 0;
    color: var(--navy);
    font: 800 clamp(2.6rem, 6.1vw, 6.6rem)/0.95 var(--schrift-titel);
    letter-spacing: -0.035em;
}

.hero__zeile {
    display: block;
}

.hero__zeile--zwei {
    color: var(--weiss);
}

.hero__wort {
    display: inline-block;
}

.hero__unter {
    max-width: 36ch;
    margin: 26px 0 0;
    color: var(--navy);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 500;
}

.hero__knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    margin-top: 32px;
}

/* Die 3D-Rolle schwebt im Freiraum zwischen Überschrift und Hund */
.hero__rolle {
    position: absolute;
    z-index: 1;
    left: 47%;
    top: 13%;
    width: clamp(100px, 9vw, 170px);
    aspect-ratio: 1 / 1.75;
}

.anker__ersatz {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 16px rgb(22 25 92 / 0.35));
}

.webgl .anker__ersatz {
    visibility: hidden;
}

/* Das Foto ist nur Ersatz: Mit Bewegung übernimmt die 3D-Rolle mit eigenem Auftritt (v2.js), das Foto kommt nur,
   wenn WebGL fehlt (.ohne-webgl), oder nach ein paar Sekunden ohne JavaScript. Vorher stand es schon da und wurde
   später hart gegen die 3D-Rolle getauscht. */
@media (prefers-reduced-motion: no-preference) {
    .anker__ersatz {
        animation: ersatz-ein 0.5s ease-out 4s backwards;
    }

    .bewegung .anker__ersatz {
        animation: none;
        opacity: 0;
    }

    .bewegung.ohne-webgl .anker__ersatz {
        animation: ersatz-ein 0.5s ease-out;
        opacity: 1;
    }
}

@keyframes ersatz-ein {
    from { opacity: 0; scale: 0.6; }
}

.hero__symbol {
    position: absolute;
    z-index: 3;
    top: 16%;
    left: 38%;
    width: 46px;
}

.hero__weiter {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border: var(--rand) solid var(--navy);
    border-radius: 50%;
}

.hero__weiter span {
    position: absolute;
    left: 50%;
    top: 11px;
    width: 4px;
    height: 12px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--navy);
    animation: weiter 1.6s ease-in-out infinite;
}

@keyframes weiter {
    0%, 100% { translate: 0 0; opacity: 1; }
    60% { translate: 0 12px; opacity: 0.2; }
}

/* ---------------------------------------------------------------- Hero-Auftritt */

/*
 * Läuft ohne JavaScript ab dem ersten Bild und im Compositor, also auch flüssig, während three.js und die 3D-Rolle
 * noch laden. Vorher machte das GSAP erst nach dem Laden der Skripte: Der Text stand schon da, verschwand und flog
 * neu herein. Zeiten und Kurven wie zuvor in GSAP (back.out, elastic.out als linear()); ältere Browser ohne
 * linear() nehmen die cubic-bezier-Zeile davor. Die Rolle hat ihren eigenen Auftritt (v2.js).
 */
.hero__wort--2 { --i: 1; }
.hero__wort--3 { --i: 2; }
.hero__wort--4 { --i: 3; }
.hero__wort--5 { --i: 4; }
.hero__wort--6 { --i: 5; }
.hero__wort--7 { --i: 6; }
.hero__wort--8 { --i: 7; }
.hero__wort--9 { --i: 8; }
.hero__wort--10 { --i: 9; }
.hero__wort--11 { --i: 10; }
.hero__wort--12 { --i: 11; }

.hero__wort--2,
.hero__wort--4,
.hero__wort--6,
.hero__wort--8,
.hero__wort--10,
.hero__wort--12 {
    --dreh: -8deg;
}

@media (prefers-reduced-motion: no-preference) {
    .hero__wort {
        animation: hero-wort 0.7s backwards;
        animation-delay: calc(var(--i, 0) * 0.05s);
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
        animation-timing-function: linear(0, 0.219 5%, 0.417 10.3%, 0.585 15.5%, 0.73 21%, 0.851 26.8%, 0.951 33%, 1.027 39.8%, 1.076 47%, 1.098 55.3%, 1.091 65.5%, 1.006 94%, 1);
    }

    .hero__unter {
        animation: hero-unter 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.45s backwards;
    }

    .hero__knoepfe .knopf {
        animation: hero-knopf 0.6s 0.55s backwards;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
        animation-timing-function: linear(0, 0.228 4.5%, 0.435 9.3%, 0.612 14%, 0.768 19%, 0.899 24.3%, 1.006 29.8%, 1.086 35.5%, 1.142 41.8%, 1.173 48.8%, 1.174 56.8%, 1.139 67%, 1.022 89.8%, 1 99%, 1);
    }

    .hero__knoepfe .knopf:nth-child(2) {
        animation-delay: 0.63s;
    }

    /* Logo klatscht wie ein Aufkleber auf die Seite und wackelt dann alle paar Sekunden kurz (nur das Bild, damit
       der Hover-Wackler am Link es nicht neu startet) */
    .seite-startseite .kopf .marke__bild {
        transform-origin: 20% 60%;
        animation: hero-marke 0.65s 0.05s backwards, marke-wackeln 5.58s 2.5s infinite;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), linear;
        animation-timing-function: linear(0, 0.223 4.3%, 0.43 8.8%, 0.615 13.5%, 0.771 18.3%, 0.904 23.3%, 1.013 28.5%, 1.101 34.3%, 1.16 40.3%, 1.194 47%, 1.199 54.5%, 1.17 63.7%, 1.024 89.5%, 1.001 98.5%, 1), linear;
    }

    .hero__symbol {
        animation: hero-symbol 1s 0.7s backwards, symbol-drehen 9s linear 2s infinite, symbol-pulsen 0.9s cubic-bezier(0.37, 0, 0.63, 1) 2s infinite alternate;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), linear, cubic-bezier(0.37, 0, 0.63, 1);
        animation-timing-function: linear(0, 0.118 1.5%, 0.332 3.8%, 0.679 7.2%, 0.855 9.3%, 0.984 11%, 1.086 12.8%, 1.16 14.5%, 1.208 16.3%, 1.234 18.3%, 1.232 20.5%, 1.194 23.5%, 1.022 32.3%, 0.972 36.3%, 0.951 40.5%, 0.96 46.3%, 1.005 58.5%, 1.008 69.5%, 0.998 91.5%, 1), linear, cubic-bezier(0.37, 0, 0.63, 1);
    }
}

@keyframes hero-wort {
    from { translate: 0 110%; rotate: var(--dreh, 8deg); opacity: 0; }
}

@keyframes hero-unter {
    from { translate: 0 24px; opacity: 0; }
}

@keyframes hero-knopf {
    from { scale: 0.4; opacity: 0; }
}

@keyframes hero-marke {
    from { scale: 1.9; rotate: -18deg; opacity: 0; }
}

@keyframes marke-wackeln {
    0% {
        rotate: 0deg;
        scale: 1;
        animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1);
    }
    3.226% {
        rotate: 6deg;
        scale: 1.06;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
        animation-timing-function: linear(0, 0.223 1.3%, 0.751 4%, 0.968 5.3%, 1.119 6.3%, 1.245 7.2%, 1.344 8.3%, 1.414 9.3%, 1.457 10.3%, 1.473 11.3%, 1.466 12.3%, 1.429 13.5%, 1.354 15%, 1.155 18%, 1.011 20.3%, 0.924 22%, 0.865 23.8%, 0.836 25.5%, 0.835 27.3%, 0.865 29.5%, 1.01 36%, 1.05 39%, 1.059 42%, 1.032 46.5%, 0.987 52.8%, 0.98 58%, 1.007 70.5%, 0.999 91.5%, 1);
    }
    19.355%,
    100% {
        rotate: 0deg;
        scale: 1;
    }
}

@keyframes hero-symbol {
    from { scale: 0; rotate: -180deg; }
}

@keyframes symbol-drehen {
    to { rotate: 360deg; }
}

@keyframes symbol-pulsen {
    from { scale: 1; }
    to { scale: 1.25; }
}

/* ---------------------------------------------------------------- Welle */

.welle {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: clamp(40px, 7vw, 110px);
    margin-top: calc(-1 * clamp(40px, 7vw, 110px) + 1px);
    fill: var(--himmel);
}

/* ---------------------------------------------------------------- Bühne (Grundlayout ohne Bewegung) */

.buehne {
    position: relative;
    background:
        radial-gradient(60% 55% at 50% 52%, #ffffff 0%, rgb(255 255 255 / 0) 70%),
        linear-gradient(180deg, var(--himmel) 0%, #c9f4ff 55%, #ffd1ea 100%);
}

.buehne__pin {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 56px clamp(16px, 6vw, 96px) 96px;
}

.buehne__titel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15em 0.4em;
    margin: 0;
    font: 800 clamp(2rem, 5.6vw, 5.4rem)/1 var(--schrift-titel);
    letter-spacing: -0.035em;
    text-align: center;
}

.buehne__wort {
    display: inline-block;
}

.buehne__mitte {
    display: none;
}

.merkmal {
    max-width: 420px;
    padding: 20px 24px 22px;
    border: var(--rand) solid var(--navy);
    border-radius: 26px;
    background: var(--gelb);
    box-shadow: var(--schatten) var(--schatten) 0 var(--navy);
}

.merkmal--2 {
    background: var(--limette);
}

.merkmal--3 {
    background: var(--weiss);
}

.merkmal__nr {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--weiss);
    font: 800 0.75rem/1 var(--schrift-titel);
}

.merkmal__titel {
    margin: 12px 0 8px;
    font: 800 clamp(1.35rem, 2vw, 1.75rem)/1.05 var(--schrift-titel);
    letter-spacing: -0.02em;
}

.merkmal p {
    margin: 0;
}

.flug {
    display: none;
}

.buehne__set {
    margin: 12px 0 0;
    border: 4px solid var(--navy);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 12px 12px 0 var(--navy);
}

.buehne__set img {
    width: 100%;
}

/* Das Set setzt sich aus den drei Freistellern zusammen */
.buehne__set {
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.set-bau {
    position: relative;
    aspect-ratio: 16 / 10;
}

.set-bau img {
    position: absolute;
    width: auto;
    filter: drop-shadow(0 22px 18px rgb(22 25 92 / 0.32));
}

.set-bau__sockel {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;
    height: 28%;
    border: var(--rand) solid var(--navy);
    border-radius: 22px;
    background: linear-gradient(180deg, #c8f6ff 0 26%, var(--himmel) 26% 100%);
    box-shadow: 10px 10px 0 var(--navy);
}

.buehne__set .set-bau__packung {
    left: 19%;
    bottom: 21%;
    width: 62%;
    height: auto;
}

.buehne__set .set-bau__rolle {
    left: 8%;
    bottom: 9%;
    height: 66%;
}

.buehne__set .set-bau__spender {
    right: 9%;
    bottom: 8%;
    height: 52%;
}

/* ---------------------------------------------------------------- Bühne mit Bewegung */

.bewegung .buehne__pin {
    display: block;
    height: 100svh;
    padding: 0;
    overflow: hidden;
}

.bewegung .buehne__titel {
    position: absolute;
    top: clamp(54px, 9vh, 110px);
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 16px;
}

.bewegung .buehne__wort {
    opacity: 0.16;
}

.bewegung .buehne__mitte {
    display: block;
    position: absolute;
    left: 50%;
    top: 57%;
    width: clamp(150px, 17vw, 290px);
    aspect-ratio: 1 / 1.75;
    translate: -50% -50%;
}

.bewegung .merkmal {
    position: absolute;
    z-index: 11;
    width: min(340px, 34vw);
    opacity: 0;
}

.bewegung .merkmal--1 { left: 7vw; top: 38%; }
.bewegung .merkmal--2 { right: 7vw; top: 33%; }
.bewegung .merkmal--3 { left: 12vw; bottom: 9%; }

/* kein z-index: Die Symbole sollen abwechselnd vor (11) und hinter (1) der 3D-Rolle (10) kreisen */
.bewegung .flug {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bewegung .flug .symbol {
    position: absolute;
    left: 50%;
    top: 57%;
    width: 56px;
    margin: -28px 0 0 -28px;
    opacity: 0;
}

.bewegung .flug .symbol--knochen {
    width: 74px;
    margin: -37px 0 0 -37px;
}

.bewegung .flug .symbol--klein {
    width: 34px;
    margin: -17px 0 0 -17px;
}

.buehne__knopf {
    justify-self: start;
}

.bewegung .buehne__knopf {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: clamp(28px, 6vh, 64px);
    translate: -50% var(--hoehe);
    opacity: 0;
    visibility: hidden;
}

.bewegung .buehne__set {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 58%;
    width: min(760px, 84vw);
    margin: 0;
    translate: -50% -50%;
    opacity: 0;
}

/* ---------------------------------------------------------------- Top 3 */

.top3 {
    position: relative;
    z-index: 12;
    padding: clamp(72px, 13vh, 150px) clamp(16px, 6vw, 96px) clamp(90px, 14vh, 160px);
    background: var(--gelb);
}

.top3__karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 34px);
    margin-top: clamp(40px, 6vh, 70px);
    perspective: 1400px;
}

.karte {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
    padding: 26px 26px 28px;
    border: var(--rand) solid var(--navy);
    border-radius: 30px;
    background: var(--pink);
    box-shadow: 10px 10px 0 var(--navy);
    transform-style: preserve-3d;
    will-change: transform;
}


.karte__rang {
    font: 800 clamp(3.6rem, 6vw, 5.6rem)/0.9 var(--schrift-titel);
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--navy);
}

.karte__name {
    margin: 0;
    font: 800 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--schrift-titel);
    letter-spacing: -0.02em;
}

.karte__kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.karte__etikett {
    padding: 8px 12px;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: var(--weiss);
    font: 700 0.78rem/1.1 var(--schrift-titel);
    rotate: 4deg;
    box-shadow: 3px 3px 0 var(--navy);
    text-align: center;
}

.karte__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.karte__chips li {
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--weiss);
    font: 600 0.82rem/1.2 var(--schrift-text);
}

.karte__satz {
    margin: 0 0 6px;
}


/* ---------------------------------------------------------------- Abschnitte allgemein */

.abschnitt__titel {
    margin: 0;
    font: 800 clamp(2rem, 5vw, 4.4rem)/1 var(--schrift-titel);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.abschnitt__unter {
    max-width: 48ch;
    margin: 18px 0 0;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.springen {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--weiss);
    font-weight: 700;
}

.springen:focus {
    top: 12px;
}

.abschnitt,
.zubehoer,
.amazon,
.ratgeber,
.fragen,
.faktenberg,
.autor {
    position: relative;
    z-index: 12;
    padding: clamp(72px, 12vh, 140px) clamp(16px, 6vw, 96px);
}

/* Bausteine: nur der Rahmen um Finder und Rechner (Gestaltung in /assets/css/bausteine.css) */
.abschnitt--finder {
    background: var(--navy);
}

.abschnitt--rechner {
    background:
        radial-gradient(70% 60% at 80% 20%, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 70%),
        var(--himmel);
}

/* Karten in Bonbonfarben (Top 3, Zubehör) */
.karte[data-farbe="pink"] { background: var(--pink); }
.karte[data-farbe="himmel"] { background: var(--himmel); }
.karte[data-farbe="limette"] { background: var(--limette); }
.karte[data-farbe="gelb"] { background: var(--gelb); }

/* ---------------------------------------------------------------- Zubehör */

.zubehoer {
    overflow: clip;
    background: linear-gradient(180deg, #fff1f8 0%, #ffd9ec 100%);
}

.zubehoer__kopf {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px 56px;
    align-items: center;
}

.zubehoer__titel,
.zubehoer__kopf .abschnitt__unter {
    grid-column: 1;
}

.zubehoer__foto {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    border: 4px solid var(--navy);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 12px 12px 0 var(--navy);
    rotate: 2.5deg;
}

.zubehoer__foto img {
    width: 100%;
}

/* Große Bildschirme: Das Foto wuchs mit der Fensterbreite (bei 2560 px fast 700 px hoch), die Überschrift
   hatte ihre Höchstgröße längst erreicht, daneben blieb viel Leerraum. Ab hier geht es nicht mehr in die Breite. */
.zubehoer__kopf,
.zubehoer__karten {
    max-width: 1320px;
    margin-inline: auto;
}

@media (min-width: 901px) {
    .zubehoer__foto {
        justify-self: end;
        width: 100%;
        max-width: 560px;
    }
}

/* die Leine, an der die Karten hängen */
.zubehoer__leine {
    height: 70px;
    margin: 64px -8vw 0;
    border-bottom: 7px solid var(--navy);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.zubehoer__karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 38px);
    margin-top: -18px;
}

.karte--anhaenger {
    position: relative;
    min-height: 0;
    padding-top: 34px;
    transform-origin: 50% -26px;
}

.karte--anhaenger:nth-child(2) {
    margin-top: 34px;
}

.karte__oese {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    border: 6px solid var(--navy);
    border-radius: 50%;
}

.karte--anhaenger .karte__etikett {
    align-self: flex-start;
}

/* ---------------------------------------------------------------- Mythen-Check (Baustein, Gestaltung in bausteine.css) */

/* Gelb wie in der von Andre abgenommenen Demo der Bausteine, mit hellem und pinkem Schimmer. Der Baustein
   ist für hellen Grund gestaltet (ohne data-grund="dunkel"): Navy-Schrift, weiße Sticker, Navy-Konturen. */
.abschnitt--mythen {
    background:
        radial-gradient(55% 45% at 12% 10%, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 70%),
        radial-gradient(50% 40% at 92% 90%, rgb(255 62 165 / 0.22) 0%, rgb(255 62 165 / 0) 70%),
        var(--gelb);
    color: var(--navy);
}

/* „Noch eine Runde“ wäre gelb wie alle Baustein-Knöpfe: auf Gelb in Pink (Navy auf Pink 4,9 : 1) */
.abschnitt--mythen .mythen__nochmal {
    background: var(--pink);
}

/* ---------------------------------------------------------------- Gassibeutel auf Amazon */

.amazon {
    background: var(--creme);
}

.amazon__kopf {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.regal__knoepfe {
    display: flex;
    flex: none;
    gap: 12px;
}

.regal__knoepfe[hidden] {
    display: none;
}

.regal-knopf {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: var(--rand) solid var(--navy);
    border-radius: 50%;
    background: var(--gelb);
    box-shadow: 5px 5px 0 var(--navy);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, opacity 0.25s;
}

.regal-knopf .knopf__pfeil {
    margin: 0;
}

.regal-knopf--zurueck .knopf__pfeil {
    rotate: 180deg;
}

.regal-knopf:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--navy);
}

.regal-knopf:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--navy);
}

.regal-knopf:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    box-shadow: 5px 5px 0 var(--navy);
}

.regal-knopf:focus-visible {
    outline: 4px solid var(--pink);
    outline-offset: 4px;
}

/* Regal läuft bis an die Bildschirmränder, die erste Karte steht bündig mit der Überschrift */
.regal {
    --abstand: clamp(16px, 6vw, 96px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(232px, 21vw, 290px);
    gap: clamp(18px, 2vw, 28px);
    margin: clamp(32px, 5vh, 52px) calc(-1 * var(--abstand)) 0;
    padding: 14px var(--abstand) 30px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--abstand);
    scrollbar-width: none;
}

.regal::-webkit-scrollbar {
    display: none;
}

.produkt {
    scroll-snap-align: start;
}

.produkt__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 12px 12px 18px;
    border: var(--rand) solid var(--navy);
    border-radius: 26px;
    background: var(--pink);
    box-shadow: var(--schatten) var(--schatten) 0 var(--navy);
    color: var(--navy);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.produkt[data-farbe="himmel"] .produkt__link { background: var(--himmel); }
.produkt[data-farbe="gelb"] .produkt__link { background: var(--gelb); }
.produkt[data-farbe="limette"] .produkt__link { background: var(--limette); }

.produkt__link:hover {
    transform: translate(-3px, -6px) rotate(-1.2deg);
    box-shadow: 11px 13px 0 var(--navy);
}

.produkt__link:focus-visible {
    outline: 4px solid var(--navy);
    outline-offset: 4px;
}

.produkt__bild {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin-bottom: 8px;
    padding: 14px;
    border: var(--rand) solid var(--navy);
    border-radius: 18px;
    background: var(--weiss);
    overflow: hidden;
}

.produkt__bild picture {
    display: contents;
}

.produkt__bild img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.produkt__link:hover .produkt__bild img {
    scale: 1.07;
}

.produkt__anbieter {
    padding-inline: 6px;
    font: 800 1.15rem/1.15 var(--schrift-titel);
}

.produkt__stueck {
    margin-bottom: 12px;
    padding-inline: 6px;
    font-weight: 600;
    line-height: 1.35;
}

.produkt .knopf {
    margin: auto 0 0 4px;
}

.produkt__link:hover .knopf__pfeil {
    rotate: 360deg;
}

/* ---------------------------------------------------------------- Ratgeber */

.ratgeber {
    background: linear-gradient(180deg, var(--himmel) 0%, #d4f6ff 100%);
}

.ratgeber__karten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 36px);
    margin-top: clamp(36px, 5vh, 56px);
    perspective: 1600px;
}

.tipp {
    display: grid;
    grid-template-rows: auto 1fr;
    border: var(--rand) solid var(--navy);
    border-radius: 28px;
    overflow: hidden;
    background: var(--weiss);
    box-shadow: 9px 9px 0 var(--navy);
}

.tipp__bild {
    aspect-ratio: 3 / 2;
    background: var(--pink);
}

.tipp[data-farbe="himmel"] .tipp__bild { background: #c9f4ff; }
.tipp[data-farbe="gelb"] .tipp__bild { background: #fff1a8; }
.tipp[data-farbe="limette"] .tipp__bild { background: #dcf9ad; }
.tipp[data-farbe="pink"] .tipp__bild { background: #ffc4e3; }

.tipp__bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tipp__bild .platzhalter-bild {
    height: 100%;
    aspect-ratio: auto;
    border-width: 0 0 3px;
    border-radius: 0;
}

.tipp__text {
    padding: 22px 24px 24px;
}

.tipp__titel {
    margin: 0 0 12px;
    font: 800 clamp(1.25rem, 1.9vw, 1.6rem)/1.1 var(--schrift-titel);
    letter-spacing: -0.02em;
}

.tipp__kurz {
    margin: 0;
}

.tipp__kurz strong {
    font-family: var(--schrift-titel);
    font-weight: 800;
}

.tipp__mehr {
    margin-top: 16px;
}

.tipp__mehr summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 16px;
    border: var(--rand) solid var(--navy);
    border-radius: 999px;
    background: var(--gelb);
    font: 700 0.9rem/1 var(--schrift-titel);
    list-style: none;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--navy);
}

.tipp__mehr summary::-webkit-details-marker {
    display: none;
}

.tipp__mehr summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--navy);
    color: var(--weiss);
    transition: rotate 0.3s ease;
}

.tipp__mehr[open] summary::after {
    rotate: 45deg;
}

.tipp__mehr-text p {
    margin: 14px 0 0;
}

/* ---------------------------------------------------------------- Häufige Fragen */

.fragen {
    background: var(--gelb);
}

.fragen__liste {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin-top: clamp(36px, 5vh, 56px);
}

.frage {
    border: var(--rand) solid var(--navy);
    border-radius: 22px;
    background: var(--weiss);
    box-shadow: 6px 6px 0 var(--navy);
    overflow: hidden;
}

.frage summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 18px 24px;
    list-style: none;
    cursor: pointer;
}

.frage summary::-webkit-details-marker {
    display: none;
}

.frage__titel {
    margin: 0;
    font: 800 clamp(1rem, 1.5vw, 1.2rem)/1.25 var(--schrift-titel);
    letter-spacing: -0.01em;
}

.frage__zeichen {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink);
    transition: rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.frage__zeichen::before,
.frage__zeichen::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 4px;
    margin: -2px 0 0 -8px;
    border-radius: 2px;
    background: var(--weiss);
}

.frage__zeichen::after {
    rotate: 90deg;
}

.frage[open] .frage__zeichen {
    rotate: 135deg;
    background: var(--navy);
}

.frage__antwort {
    padding: 0 24px 20px;
}

.frage__antwort p {
    margin: 0 0 10px;
}

/* ---------------------------------------------------------------- Quellenverweise im Text */

sup.verweis {
    font-size: 0.62em;
    line-height: 0;
    vertical-align: 0.55em;
}

.quellen-verweis {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 1.6em;
    height: 1.6em;
    margin-left: 0.18em;
    padding: 0 0.42em 0 0.32em;
    border-radius: 999px;
    background: var(--navy);
    color: var(--weiss);
    font: 700 1em/1 var(--schrift-titel);
    text-decoration: none;
    transition: background-color 0.2s ease, scale 0.2s ease;
}

.quellen-verweis:hover,
.quellen-verweis.gerade-hier {
    background: var(--pink);
    scale: 1.15;
}

.verweis-beutel {
    width: 0.85em;
    height: 0.95em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 0 80 108'%3E%3Cpath d='M38 8C33 2 24 4 26 12c1 5 7 8 14 10C28 30 14 46 14 66c0 26 18 38 36 38s36-12 36-38c0-20-14-36-26-44 7-2 13-5 14-10 2-8-7-10-12-4-4 5-8 8-12 8s-8-3-12-8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 0 80 108'%3E%3Cpath d='M38 8C33 2 24 4 26 12c1 5 7 8 14 10C28 30 14 46 14 66c0 26 18 38 36 38s36-12 36-38c0-20-14-36-26-44 7-2 13-5 14-10 2-8-7-10-12-4-4 5-8 8-12 8s-8-3-12-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- Faktenberg */

.faktenberg {
    background:
        radial-gradient(60% 50% at 50% 100%, rgb(184 242 90 / 0.55) 0%, rgb(184 242 90 / 0) 70%),
        linear-gradient(180deg, #ffd9ec 0%, var(--creme) 100%);
    text-align: center;
}

.faktenberg .abschnitt__unter {
    margin-left: auto;
    margin-right: auto;
}

.berg {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.beutel {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 0.25rem 1rem;
    align-items: start;
    margin: 0 0 1.5rem;
    scroll-margin: 7rem;
}

.beutel-knopf {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 4.2rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.beutel-form {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(4px 5px 0 var(--navy));
}

.beutel-form__rand {
    fill: var(--navy);
    stroke: var(--navy);
    stroke-width: 9px;
    stroke-linejoin: round;
}

.beutel-form__fuellung {
    fill: var(--pink);
}

.beutel[data-farbe="himmel"] .beutel-form__fuellung { fill: var(--himmel); }
.beutel[data-farbe="gelb"] .beutel-form__fuellung { fill: var(--gelb); }
.beutel[data-farbe="limette"] .beutel-form__fuellung { fill: var(--limette); }

/* Foto-Beutel (Runde 3): echter Schatten statt Sticker-Kontur, Nummer als weißer Knopf */
.beutel-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
    filter: drop-shadow(0 6px 5px rgb(22 25 92 / 0.38));
}

.beutel--foto .beutel-nummer {
    display: grid;
    place-items: center;
    width: 1.95em;
    height: 1.95em;
    border: var(--rand) solid var(--navy);
    border-radius: 50%;
    background: var(--weiss);
    font-size: 0.95rem;
}

.beutel-nummer {
    position: relative;
    margin-top: 1.5rem;
    color: var(--navy);
    font: 800 1.1rem/1 var(--schrift-titel);
}

.blase {
    margin: 0;
    padding: 1rem 1.15rem 1.1rem;
    border: var(--rand) solid var(--navy);
    border-radius: 20px;
    background: var(--weiss);
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.blase p,
.blase ul {
    margin: 0 0 0.6em;
}

.blase ul {
    padding-left: 1.1em;
}

.blase-nummer {
    color: #555a8a;
    font: 700 0.8rem/1.2 var(--schrift-titel);
}

.blase-auszug {
    margin: 0 0 0.6em;
    font-weight: 600;
}

.blase-herkunft,
.blase-host {
    color: #555a8a;
}

.blase-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.blase-links a,
.blase-zurueck a {
    font-weight: 700;
}

.blase-zurueck {
    margin-bottom: 0;
}

.blase-zu {
    display: none;
}

.beutel:target .blase {
    outline: 3px solid var(--pink);
}

@media (scripting: none) {
    .blase {
        display: block;
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        overflow: visible;
    }

    .beutel-knopf {
        pointer-events: none;
    }
}

/* Mit JavaScript und Popover-API: der Berg */
@media (scripting: enabled) {
    @supports selector(:popover-open) {
        .berg {
            display: flex;
            flex-wrap: wrap-reverse;
            justify-content: center;
            align-items: flex-end;
            max-width: 46rem;
            padding: 0 1rem 1.6rem;
            position: relative;
        }

        .berg::before {
            content: "";
            position: absolute;
            left: -1.5rem;
            right: -1.5rem;
            bottom: 0;
            height: 5rem;
            border: var(--rand) solid var(--navy);
            border-radius: 50% 50% 0 0 / 100% 100% 0 0;
            background: var(--limette);
            box-shadow: 0 8px 0 var(--navy);
        }

        .beutel {
            display: block;
            position: relative;
            margin: -0.7rem -0.1rem;
        }

        .beutel-knopf {
            width: 4.8rem;
            height: 6.3rem;
            transition: translate 0.2s ease, scale 0.2s ease;
        }

        .beutel-nummer {
            margin-top: 2.4rem;
            font-size: 1.35rem;
        }

        .beutel:nth-child(3n + 1) .beutel-knopf { rotate: -8deg; }
        .beutel:nth-child(3n + 2) .beutel-knopf { rotate: 6deg; }
        .beutel:nth-child(3n) .beutel-knopf { rotate: -2deg; }

        .beutel-knopf:hover,
        .beutel-knopf:focus-visible,
        .beutel-knopf[aria-expanded="true"] {
            translate: 0 -0.45rem;
            scale: 1.08;
        }

        .blase {
            width: min(22rem, 100vw - 2rem);
            max-height: min(28rem, 70vh);
            overflow: auto;
            box-shadow: var(--schatten) var(--schatten) 0 var(--navy);
        }

        .blase-zu {
            display: grid;
            place-items: center;
            position: absolute;
            top: 0.35rem;
            right: 0.35rem;
            width: 2.75rem;
            height: 2.75rem;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: var(--navy);
            font-size: 1.5rem;
            line-height: 1;
            cursor: pointer;
        }

        .blase-zu:hover {
            background: var(--himmel);
        }

        .blase-nummer {
            padding-right: 2.5rem;
        }

        @media (max-width: 40rem) {
            .beutel-knopf {
                width: 3.9rem;
                height: 5.1rem;
            }

            .beutel-nummer {
                margin-top: 1.9rem;
                font-size: 1.1rem;
            }

            .blase {
                inset: auto 0 0 0;
                width: 100%;
                max-width: none;
                max-height: 70vh;
                border-radius: 20px 20px 0 0;
                padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
            }
        }

        @media (min-width: 40.01rem) {
            @supports (position-area: top) {
                .blase.am-anker {
                    inset: auto;
                    position-area: top;
                    position-try-fallbacks: flip-block, flip-inline;
                    margin: 0 0 0.6rem;
                }
            }

            .blase.per-skript {
                inset: auto;
                margin: 0;
            }
        }
    }
}

/* ---------------------------------------------------------------- Autor */

.autor {
    background: var(--creme);
}

.autor__innen {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    max-width: 1040px;
}

.autor__innen--ohne-foto {
    grid-template-columns: minmax(0, 1fr);
}

.autor__text p {
    max-width: 52ch;
    margin: 18px 0 0;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

/* ---------------------------------------------------------------- Platzhalter (Bild folgt) */

.platzhalter-bild {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    padding: 16px;
    border: 3px dashed var(--navy);
    border-radius: 22px;
    background: repeating-linear-gradient(45deg, rgb(22 25 92 / 0.05) 0 12px, rgb(22 25 92 / 0) 12px 24px);
    color: #555a8a;
    font-weight: 600;
    text-align: center;
}

.platzhalter-bild--rund {
    aspect-ratio: 1;
    border-radius: 50%;
}

/* ---------------------------------------------------------------- Rechtstexte (Impressum, Datenschutz) */

/* „Abreißrolle“ (Andres Wahl): Kopf mit Riesentitel und Stickern, die Rolle wickelt beim Lesen einen
   Beutelstreifen neben den Abschnitten ab, die Abschnitte sind Beutel mit Perforation dazwischen. */

.seite-impressum,
.seite-datenschutz {
    background: var(--creme);
}

.recht {
    --lesebreite: 46rem;
    position: relative;
    overflow-x: clip;
}

/* Kopf */
.recht__kopf {
    position: relative;
    padding: clamp(150px, 20vh, 200px) clamp(16px, 6vw, 96px) clamp(56px, 8vh, 90px);
    background:
        radial-gradient(60% 70% at 85% 30%, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 70%),
        var(--himmel);
    border-bottom: var(--rand) solid var(--navy);
}

.recht__titel {
    position: relative;
    z-index: 2;
    max-width: 14ch;
    margin: 0;
    font: 900 clamp(2.8rem, 8vw, 6.6rem)/0.95 var(--schrift-titel);
    letter-spacing: -0.045em;
    text-shadow: 6px 6px 0 var(--weiss);
}

.recht__deko {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.recht__symbol {
    position: absolute;
    width: clamp(44px, 5vw, 72px);
}

.recht__symbol--1 { top: 22%; left: 52%; }
.recht__symbol--2 { top: 62%; left: 44%; width: clamp(36px, 4vw, 56px); }
.recht__symbol--3 { top: 30%; right: 6%; }
.recht__symbol--4 { bottom: 14%; right: 26%; }

/* Abroller: Die Rolle liegt quer auf der Kante unter dem Kopf, aus ihr hängt der Beutelstreifen, der beim Lesen
   länger wird (v2.js setzt --abgerollt). Rolle und Streifen sind ein Element und überschneiden den Kopf nicht. */
.recht__abroller {
    position: absolute;
    top: -34px;
    right: clamp(16px, 4vw, 48px);
    z-index: 3;
    width: 124px;
    height: 52px;
    pointer-events: none;
}

/* das Foto zeigt eine stehende Rolle: um 90° gedreht liegt sie quer (der Schatten ist vorab mitgedreht) */
.recht__rolle {
    position: absolute;
    top: calc(50% - 62px);
    left: calc(50% - 25px);
    width: 50px;
    height: 124px;
    max-width: none;
    rotate: 90deg;
    filter: drop-shadow(6px -5px 0 rgb(22 25 92 / 0.9));
}

/* Inhalt: Sprungmarken und Abschnitte */
.recht__koerper {
    position: relative;
    padding: clamp(36px, 6vh, 64px) clamp(16px, 6vw, 96px) clamp(72px, 10vh, 120px);
}

.recht__inhalt {
    max-width: var(--lesebreite);
    margin: 0 auto clamp(32px, 5vh, 52px);
}

.recht__liste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recht__sprung {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    border: var(--rand) solid var(--navy);
    border-radius: 999px;
    background: var(--weiss);
    box-shadow: 3px 3px 0 var(--navy);
    color: var(--navy);
    font: 700 0.85rem/1.15 var(--schrift-titel);
    text-decoration: none;
    transition: translate 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.recht__sprung:hover,
.recht__sprung[aria-current="true"] {
    translate: -2px -2px;
    box-shadow: 5px 5px 0 var(--navy);
    background: var(--gelb);
}

.recht__sprung:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
}

.recht__nr {
    display: inline-grid;
    flex: none;
    place-items: center;
    min-width: 2.1em;
    height: 2.1em;
    padding: 0 0.3em;
    border-radius: 999px;
    background: var(--navy);
    color: var(--weiss);
    font: 800 0.72rem/1 var(--schrift-titel);
    letter-spacing: 0.02em;
}

.recht__teile {
    position: relative;
    z-index: 1;
    max-width: var(--lesebreite);
    margin: 0 auto;
}

.recht__vorn {
    margin-bottom: 28px;
}

.recht__teil {
    position: relative;
    margin: 0 0 46px;
    padding: clamp(22px, 3.5vw, 36px) clamp(20px, 4vw, 40px);
    border: var(--rand) solid var(--navy);
    border-radius: 24px;
    background: var(--weiss);
    box-shadow: 8px 8px 0 var(--navy);
    scroll-margin-top: 24px;
}

/* zwischen zwei Beuteln die Perforation zum Abreißen */
.recht__teil + .recht__teil::before {
    content: "";
    position: absolute;
    top: -27px;
    left: 8%;
    right: 8%;
    border-top: 3px dashed var(--navy);
    opacity: 0.55;
}

.recht__teiltitel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 0.7em;
    font: 800 clamp(1.2rem, 2.2vw, 1.55rem)/1.15 var(--schrift-titel);
    letter-spacing: -0.02em;
    scroll-margin-top: 24px;
}

.recht__teiltitel .recht__nr {
    border: 2px solid var(--navy);
    background: var(--pink);
    box-shadow: 2px 2px 0 var(--navy);
    color: var(--navy);
    font-size: 0.8rem;
}

.recht__teil h3 {
    margin: 1.4em 0 0.4em;
    font: 800 1.08rem/1.2 var(--schrift-titel);
}

.recht__teil p,
.recht__teil li {
    max-width: 68ch;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.recht__teil a {
    color: var(--navy);
    text-decoration-color: var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.recht__teil > :last-child {
    margin-bottom: 0;
}

.recht__zurueck {
    margin: 56px 0 0;
}

/* Desktop: Der Streifen läuft rechts neben den Abschnitten mit nach unten */
@media (min-width: 1100px) {
    .recht__abroller {
        top: -42px;
        right: max(24px, calc((100% - var(--lesebreite)) / 2 - 215px));
        bottom: clamp(72px, 10vh, 120px);
        width: 150px;
        height: auto;
    }

    .recht__rolle {
        top: calc(42px - 75px);
        left: calc(50% - 31px);
        width: 62px;
        height: 150px;
    }

    /* der Streifen kommt unter der Rolle hervor (deren Mitte), so breit wie der bedruckte Teil */
    .recht__abroller::before {
        content: "";
        position: absolute;
        top: 42px;
        left: 16px;
        right: 16px;
        z-index: -1;
        height: var(--abgerollt, calc(100% - 42px));
        max-height: calc(100% - 42px);
        border: var(--rand) solid var(--navy);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        background:
            repeating-linear-gradient(180deg, rgb(22 25 92 / 0) 0 168px, rgb(22 25 92 / 0.5) 168px 171px, rgb(22 25 92 / 0) 171px 180px),
            linear-gradient(90deg, rgb(255 255 255 / 0.35), rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / 0.25)),
            var(--pink);
        box-shadow: 8px 8px 0 var(--navy);
    }
}

@media (max-width: 760px) {
    /* lange Titel wie „Datenschutz“ passen auch bei 320 px in eine Zeile */
    .recht__titel {
        font-size: 10.5vw;
    }

    /* am Handy nur Herz und Rolle, damit kein Sticker in den Titel ragt */
    .recht__symbol--1,
    .recht__symbol--2,
    .recht__symbol--4 {
        display: none;
    }

    /* Sprungmarken als wischbare Reihe statt einer langen Liste vor dem Text */
    .recht__liste {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * clamp(16px, 6vw, 96px));
        padding: 4px clamp(16px, 6vw, 96px) 8px;
        scrollbar-width: none;
    }

    .recht__liste::-webkit-scrollbar {
        display: none;
    }

    .recht__sprung {
        white-space: nowrap;
    }

    .recht__teil {
        box-shadow: 5px 5px 0 var(--navy);
    }
}

/* ---------------------------------------------------------------- Nach oben */

/* „Sticker mit Ring“ (Andres Wahl): Der gelbe Ring zeigt, wie weit gelesen ist. */
.hoch {
    --fortschritt: 0;
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 70;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: var(--navy);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease, scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), translate 0.25s ease;
}

/* erst nach dem Scrollen da (v2.js setzt .sichtbar); ohne JavaScript immer */
@media (scripting: enabled) {
    .hoch:not(.sichtbar) {
        opacity: 0;
        scale: 0.3;
        rotate: -120deg;
        visibility: hidden;
        transition: opacity 0.25s ease, scale 0.25s ease, rotate 0.25s ease, visibility 0s 0.25s;
    }
}

.hoch:focus-visible {
    outline: 4px solid var(--navy);
    outline-offset: 4px;
}

.hoch__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    rotate: -90deg;
}

.hoch__spur {
    fill: var(--pink);
    stroke: var(--navy);
    stroke-width: 3;
    filter: drop-shadow(4px 4px 0 var(--navy));
}

.hoch__fortschritt {
    fill: none;
    stroke: var(--gelb);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--fortschritt) * 100);
    transform: scale(0.82);
    transform-origin: 50% 50%;
}

.hoch__pfeil {
    position: relative;
    width: 28px;
    height: 28px;
    background: var(--navy);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%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 19V5m-6 6 6-6 6 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) {
    .hoch:hover {
        translate: 0 -4px;
    }

    .bewegung .hoch:hover .hoch__pfeil {
        animation: hoch-hopsen 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }
}

.hoch:active {
    translate: 0 2px;
}

@keyframes hoch-hopsen {
    0%, 100% { translate: 0 0; }
    40% { translate: 0 -6px; }
}

/* Handy: etwas kleiner */
@media (max-width: 900px) {
    .hoch {
        right: 14px;
        width: 58px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hoch,
    .hoch:not(.sichtbar),
    .recht__sprung {
        transition: none;
    }

    .hoch,
    .hoch__pfeil {
        animation: none !important;
    }

    .hoch:not(.sichtbar) {
        scale: 1;
        rotate: 0deg;
    }
}

/* ---------------------------------------------------------------- Fuß, Leiste, 3D */

.fuss {
    position: relative;
    z-index: 12;
    padding: 36px clamp(16px, 6vw, 96px);
    background: var(--navy);
    color: var(--weiss);
    font-size: 0.9rem;
}

.fuss p {
    margin: 0;
}

.fuss__innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
}

/* derselbe Sticker-Schriftzug wie im Kopf; auf Nachtblau mit pinkem Versatzschatten statt Navy */
.fuss__marke {
    display: block;
    flex: none;
    width: clamp(190px, 18vw, 270px);
    margin-right: 8px;
    rotate: -3deg;
    transform-origin: 20% 60%;
}

.fuss__marke .marke__schatten {
    fill: var(--pink);
    stroke: var(--pink);
}

.fuss__marke:hover {
    animation: aufkleber 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fuss__marke:focus-visible {
    outline: 3px solid var(--gelb);
    outline-offset: 6px;
    border-radius: 8px;
}

.fuss__links {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fuss a {
    color: var(--weiss);
    font-weight: 700;
}

.fuss__anbieter {
    color: #c9cbef;
}

/* Handy: unten Platz für den Nach-oben-Knopf, damit er keinen Text im Fuß verdeckt */
@media (max-width: 900px) {
    .fuss {
        padding-bottom: 96px;
    }
}

.rolle3d {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rolle3d:not(.aktiv) {
    visibility: hidden;
}

/* ---------------------------------------------------------------- Handy */

@media (max-width: 900px) {
    .top3__karten,
    .zubehoer__karten,
    .ratgeber__karten {
        grid-template-columns: 1fr;
    }

    .regal {
        grid-auto-columns: min(66vw, 270px);
    }

    .regal__knoepfe {
        display: none;
    }

    .zubehoer__kopf,
    .autor__innen {
        grid-template-columns: 1fr;
    }

    .zubehoer__foto {
        grid-column: 1;
        grid-row: auto;
        rotate: 0deg;
    }

    .zubehoer__leine {
        display: none;
    }

    .zubehoer__karten {
        margin-top: 56px;
        gap: 56px;
    }

    .karte--anhaenger:nth-child(2) {
        margin-top: 0;
    }

    .autor__foto {
        max-width: 220px;
    }

    .karte {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --band: 40px;
        --schatten: 5px;
    }

    .kopf {
        padding: 14px 16px;
    }

    .hero__inhalt {
        padding: 120px 16px 104px;
    }

    .hero__titel {
        font-size: clamp(2.35rem, 11.4vw, 3.6rem);
    }

    .hero__knoepfe .knopf--neben {
        display: none;
    }

    /* Handy: Überschrift oben im pinken Freiraum des Hochformats, darunter Hund und Rolle,
       Unterzeile und Knöpfe folgen unter dem Bild */
    .hero {
        display: grid;
        grid-template-columns: 100%;
        min-height: 0;
    }

    .hero__inhalt {
        display: contents;
    }

    .hero__bild {
        position: relative;
        inset: auto;
        z-index: 0;
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    .hero__bild img {
        height: auto;
        aspect-ratio: 9 / 16;
        object-fit: cover;
        object-position: 50% 100%;
        scale: 1;
    }

    .hero__titel {
        grid-row: 1;
        grid-column: 1;
        z-index: 2;
        align-self: start;
        padding: 74px 16px 0;
    }

    .hero__unter {
        grid-row: 3;
        margin: 0;
        padding: 22px 16px 0;
    }

    .hero__knoepfe {
        grid-row: 4;
        margin: 0;
        padding: 22px 16px 96px;
    }

    .hero__rolle {
        left: 8px;
        top: calc(92vw + 30px);
        width: 16vw;
    }

    .hero__symbol {
        top: 60px;
        left: auto;
        right: 22px;
        width: 32px;
    }

    .hero__weiter {
        display: none;
    }

    .bewegung .buehne__titel {
        top: 64px;
        font-size: clamp(1.7rem, 8.4vw, 2.6rem);
    }

    .bewegung .buehne__mitte {
        top: 44%;
        width: 30vw;
    }

    .bewegung .merkmal {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 96px;
        width: auto;
    }

    .bewegung .flug .symbol {
        top: 44%;
    }

    .bewegung .buehne__set {
        top: 46%;
    }

    .bewegung .buehne__knopf {
        bottom: 84px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .knopf,
    .knopf::before,
    .knopf__pfeil {
        transition: none;
    }

    .hero__weiter span,
    .marke:hover,
    .fuss__marke:hover {
        animation: none;
    }
}

.verweis-gruppe {
    white-space: nowrap;
}
