/*
 * Museum-Template für Stage-Specials (scene.template = "museum").
 * Alle Maße in Container-Einheiten (cqw): 100cqw = Breite der Bühne (Kiosk: 2160 px).
 * Vertrag: docs/hoeness-special.md (MUSEUM-01 bis MUSEUM-06).
 */

.stage-special-scene.museum-scene {

    inset: 0;
    display: block;
    container-type: size;
    background: #020202;
    transform: none;
    transition: opacity 900ms ease;
    overflow: hidden;
    z-index: 2;

}

.museum-scene * { box-sizing: border-box; }

/* Die Rotationsanzeige stört im Museum-Layout nur während der Slides. */
#stage.has-museum .stage-rotation-indicator[data-mode="slide"] { opacity: 0; }

/* ---------- Slides ---------- */

.museum-slides { position: absolute; inset: 0; }

.museum-slide.stage-special-slide {

    display: block;
    transform: none;
    transition: opacity 1100ms ease;
    overflow: hidden;

}

.museum-bg { position: absolute; inset: 0; overflow: hidden; }

.museum-bg img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2.6cqw) brightness(.34) saturate(.8);
    transform: scale(1.18);

}

.museum-layout-stats .museum-bg img,
.museum-layout-timeline .museum-bg img { filter: blur(.8cqw) brightness(.24) saturate(.7); }

.museum-photo {

    position: absolute;
    top: 0;
    left: 0;
    width: 100cqw;
    height: 56.25cqw;
    margin: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);

}

.museum-photo img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--museum-focus, 50% 30%);
    transform-origin: calc(50% + var(--museum-pan, 1) * 18%) 40%;

}

.museum-slide.is-active .museum-photo img {

    animation: museum-kenburns var(--museum-dur, 16s) cubic-bezier(.25, .1, .25, 1) both;

}

@keyframes museum-kenburns {

    from { transform: scale(1.02) translate(0, 0); }
    to { transform: scale(1.13) translate(calc(var(--museum-pan, 1) * -1.6%), -1%); }

}

.museum-photo figcaption {

    position: absolute;
    right: 3cqw;
    bottom: 11cqw;
    color: rgba(255, 255, 255, .5);
    font-family: var(--font-body);
    font-size: 1.5cqw;
    letter-spacing: .06em;
    text-transform: uppercase;

}

.museum-shade {

    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020202 0, rgba(2, 2, 2, .94) 30%, rgba(2, 2, 2, .5) 52%, transparent 70%),
        linear-gradient(180deg, rgba(2, 2, 2, .78) 0, transparent 16%);

}

.museum-layout-stats .museum-shade,
.museum-layout-timeline .museum-shade { background: radial-gradient(circle at 70% 55%, rgba(220, 5, 45, .16), transparent 55%), linear-gradient(0deg, #020202 0, rgba(2, 2, 2, .5) 40%, rgba(2, 2, 2, .6) 100%); }

.museum-layout-quote .museum-photo { filter: brightness(.55) saturate(.85); }

/* Riesige Jahreszahl */

.museum-ghost {

    position: absolute;
    right: 2cqw;
    top: 31cqw;
    color: transparent;
    -webkit-text-stroke: .22cqw rgba(255, 255, 255, .3);
    font-family: var(--font-display);
    font-size: 27cqw;
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.01em;
    text-shadow: 0 0 6cqw rgba(220, 5, 45, .35);
    pointer-events: none;

}

.museum-slide.is-active .museum-ghost { animation: museum-ghost 1600ms cubic-bezier(.2, .7, .2, 1) both; }

@keyframes museum-ghost {

    from { opacity: 0; transform: translateX(6cqw); }
    to { opacity: 1; transform: none; }

}

/* Text */

.museum-copy {

    position: absolute;
    left: 6cqw;
    right: 6cqw;
    bottom: 25cqw;
    z-index: 3;

}

.museum-kicker {

    display: flex;
    align-items: center;
    gap: 1.4cqw;
    margin: 0 0 1.6cqw;
    color: #ff1745;
    font-family: var(--font-display);
    font-size: 1.75cqw;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;

}

.museum-kicker i { width: 5cqw; height: .25cqw; background: #dc052d; }
.museum-kicker:empty { display: none; }

.museum-copy h2 {

    max-width: 88cqw;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 9.6cqw;
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.005em;
    text-transform: uppercase;
    text-shadow: 0 0 5cqw rgba(0, 0, 0, .8), 0 0 10cqw rgba(220, 5, 45, .3);

}

.museum-subtitle {

    max-width: 80cqw;
    margin: 2cqw 0 0;
    color: rgba(255, 255, 255, .92);
    font-family: var(--font-body);
    font-size: 2.7cqw;
    font-weight: 800;
    line-height: 1.15;

}

.museum-body {

    max-width: 74cqw;
    margin: 1.4cqw 0 0;
    color: rgba(255, 255, 255, .78);
    font-family: var(--font-body);
    font-size: 2cqw;
    font-weight: 600;
    line-height: 1.32;

}

.museum-facts {

    position: absolute;
    left: 6cqw;
    right: 6cqw;
    bottom: 17.5cqw;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2cqw;

}

.museum-facts span {

    padding-top: 1cqw;
    border-top: .18cqw solid rgba(255, 255, 255, .55);
    color: rgba(255, 255, 255, .86);
    font-family: var(--font-display);
    font-size: 1.55cqw;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;

}

/* Eintrittsanimation: Text steigt gestaffelt auf */

.museum-slide.is-active .museum-copy > *,
.museum-slide.is-active .museum-facts span,
.museum-slide.is-active .museum-stat,
.museum-slide.is-active .museum-timeline-list li,
.museum-slide.is-active .museum-quote {

    animation: museum-rise 1000ms cubic-bezier(.2, .7, .2, 1) both;

}

.museum-slide.is-active .museum-copy > :nth-child(1) { animation-delay: 350ms; }
.museum-slide.is-active .museum-copy > :nth-child(2) { animation-delay: 500ms; }
.museum-slide.is-active .museum-copy > :nth-child(3) { animation-delay: 700ms; }
.museum-slide.is-active .museum-copy > :nth-child(4) { animation-delay: 900ms; }
.museum-slide.is-active .museum-facts span:nth-child(1) { animation-delay: 1100ms; }
.museum-slide.is-active .museum-facts span:nth-child(2) { animation-delay: 1250ms; }
.museum-slide.is-active .museum-facts span:nth-child(3) { animation-delay: 1400ms; }
.museum-slide.is-active .museum-stat:nth-child(1) { animation-delay: 600ms; }
.museum-slide.is-active .museum-stat:nth-child(2) { animation-delay: 900ms; }
.museum-slide.is-active .museum-stat:nth-child(3) { animation-delay: 1200ms; }
.museum-slide.is-active .museum-timeline-list li:nth-child(1) { animation-delay: 600ms; }
.museum-slide.is-active .museum-timeline-list li:nth-child(2) { animation-delay: 900ms; }
.museum-slide.is-active .museum-timeline-list li:nth-child(3) { animation-delay: 1200ms; }
.museum-slide.is-active .museum-quote { animation-delay: 500ms; }

@keyframes museum-rise {

    from { opacity: 0; transform: translateY(3cqw); }
    to { opacity: 1; transform: none; }

}

/* ---------- Layout: Zahlen und Zeitleiste (ohne scharfes Foto) ---------- */

.museum-layout-stats .museum-copy,
.museum-layout-timeline .museum-copy { top: 15cqw; bottom: auto; }

.museum-layout-stats .museum-copy h2,
.museum-layout-timeline .museum-copy h2 { font-size: 7.4cqw; }

.museum-stats {

    position: absolute;
    left: 6cqw;
    right: 6cqw;
    top: 52cqw;
    bottom: 26cqw;
    z-index: 3;
    display: grid;
    align-content: center;
    gap: 2cqw;

}

.museum-stat {

    display: grid;
    grid-template-columns: 1fr;
    gap: .4cqw;
    padding-bottom: 2cqw;
    border-bottom: .15cqw solid rgba(255, 255, 255, .18);

}

.museum-stat:last-child { border-bottom: 0; }

.museum-stat small {

    color: rgba(255, 255, 255, .66);
    font-family: var(--font-display);
    font-size: 1.7cqw;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;

}

.museum-stat strong {

    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: .9;
    text-shadow: 0 0 6cqw rgba(220, 5, 45, .35);

}

.museum-stat strong { font-size: 11cqw; }
.museum-stats[data-count="1"] .museum-stat strong { font-size: 18cqw; }
.museum-stats[data-count="3"] { top: 40cqw; gap: 1.2cqw; }
.museum-stats[data-count="3"] .museum-stat { padding-bottom: 1.2cqw; }
.museum-stats[data-count="3"] .museum-stat strong { font-size: 8.6cqw; }
.museum-layout-stats:has(.museum-stats[data-count="3"]) .museum-body { display: none; }
.museum-layout-stats:has(.museum-stats[data-count="3"]) .museum-copy h2 { font-size: 6.2cqw; }
.museum-stat:last-child strong { color: #ff1745; }

.museum-stat span {

    color: rgba(255, 255, 255, .75);
    font-family: var(--font-body);
    font-size: 2.3cqw;
    font-weight: 700;

}

.museum-timeline-list {

    position: absolute;
    left: 8cqw;
    right: 6cqw;
    top: 50cqw;
    bottom: 26cqw;
    z-index: 3;
    margin: 0;
    padding: 0 0 0 5cqw;
    list-style: none;
    display: grid;
    align-content: center;
    gap: 4cqw;
    border-left: .4cqw solid #dc052d;

}

.museum-timeline-list li { position: relative; display: grid; gap: .6cqw; }

.museum-timeline-list li::before {

    content: "";
    position: absolute;
    left: -6.2cqw;
    top: 2.2cqw;
    width: 2.2cqw;
    height: 2.2cqw;
    border-radius: 50%;
    background: #020202;
    border: .4cqw solid #ff1745;
    box-shadow: 0 0 2cqw rgba(220, 5, 45, .8);

}

.museum-timeline-list strong {

    color: #fff;
    font-family: var(--font-display);
    font-size: 9cqw;
    font-weight: 900;
    line-height: .9;

}

.museum-timeline-list span {

    color: rgba(255, 255, 255, .82);
    font-family: var(--font-body);
    font-size: 2.7cqw;
    font-weight: 700;

}

/* ---------- Layout: Zitat ---------- */

.museum-layout-quote .museum-copy { top: auto; bottom: 72cqw; }
.museum-layout-quote .museum-copy h2 { font-size: 3cqw; letter-spacing: .2em; color: rgba(255, 255, 255, .75); text-shadow: 0 0 2cqw #000; }
.museum-layout-quote .museum-subtitle { display: none; }

.museum-quote {

    position: absolute;
    left: 6cqw;
    right: 6cqw;
    bottom: 26cqw;
    z-index: 3;
    margin: 0;

}

.museum-quote-mark {

    display: block;
    height: 12cqw;
    margin-bottom: .6cqw;
    color: #dc052d;
    font-family: var(--font-display);
    font-size: 18cqw;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 0 4cqw rgba(220, 5, 45, .55);

}

.museum-quote p {

    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 6.3cqw;
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow: 0 0 5cqw rgba(0, 0, 0, .85);

}

.museum-quote footer {

    margin-top: 2.4cqw;
    color: #ff1745;
    font-family: var(--font-display);
    font-size: 1.7cqw;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;

}

.museum-layout-quote .museum-facts { display: none; }
.museum-layout-quote .museum-ghost { display: none; }

/* ---------- Kopfzeile ---------- */

.museum-header {

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 2cqw;
    padding: 3cqw 5cqw;
    background: linear-gradient(180deg, rgba(2, 2, 2, .85), transparent);

}

.museum-header img { width: 6.4cqw; height: auto; filter: drop-shadow(0 0 1.4cqw rgba(220, 5, 45, .6)); }

.museum-title { display: grid; gap: .5cqw; font-family: var(--font-display); text-transform: uppercase; }
.museum-title strong { color: #fff; font-size: 2.5cqw; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.museum-title span { color: #ff1745; font-size: 1.5cqw; font-weight: 800; letter-spacing: .2em; }

.museum-chapter-now {

    margin-left: auto;
    text-align: right;
    font-family: var(--font-display);
    text-transform: uppercase;

}

.museum-chapter-now small { display: block; color: rgba(255, 255, 255, .6); font-size: 1.4cqw; font-weight: 800; letter-spacing: .22em; }
.museum-chapter-now strong { display: block; margin-top: .5cqw; color: #fff; font-size: 2.6cqw; font-weight: 900; letter-spacing: .08em; }

/* ---------- Zeitleiste ---------- */

.museum-timeline {

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    gap: 1.4cqw;
    padding: 2.4cqw 5cqw 3.4cqw;
    background: linear-gradient(0deg, #020202 40%, transparent);

}

.museum-chapter { flex-basis: 0; min-width: 0; opacity: .5; transition: opacity 700ms ease; }
.museum-chapter.is-current { opacity: 1; }

.museum-chapter-label {

    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1cqw;
    margin-bottom: 1.1cqw;
    font-family: var(--font-display);
    text-transform: uppercase;
    white-space: nowrap;

}

.museum-chapter-label strong { color: #fff; font-size: 1.45cqw; font-weight: 900; letter-spacing: .1em; }
.museum-chapter-label span { display: none; color: rgba(255, 255, 255, .7); font-size: 1.5cqw; font-weight: 700; letter-spacing: .08em; }
.museum-chapter-label span { display: none !important; }

.museum-bars { display: flex; gap: .35cqw; }

.museum-bar {

    position: relative;
    flex: 1;
    height: .75cqw;
    overflow: hidden;
    background: rgba(255, 255, 255, .22);

}

.museum-bar i { position: absolute; inset: 0; width: 0; background: #ff1745; }
.museum-bar.is-past i { width: 100%; background: rgba(255, 255, 255, .85); }
.museum-bar.is-current i { animation: museum-fill linear both; box-shadow: 0 0 1.4cqw #ff1745; }

@keyframes museum-fill { from { width: 0; } to { width: 100%; } }

/* ---------- Qualitätsanhebung QS-20 (docs/special-quality-standard.md): größere Schrift, Einschlag, Funken ---------- */

.museum-kicker { font-size: 2.1cqw; }
.museum-subtitle { font-size: 3cqw; }
.museum-body { font-size: 2.5cqw; }
.museum-facts span { font-size: 1.9cqw; }
.museum-stat small { font-size: 1.9cqw; }
.museum-quote footer { font-size: 2cqw; }
.museum-photo figcaption { font-size: 1.5cqw; color: rgba(255, 255, 255, .72); }

/* Die Schlagzeile schlägt ein: aus größerer Form, kurz unscharf, dann scharf. */
.museum-scene .museum-slide.is-active .museum-copy > h2 { animation: museum-slam 640ms cubic-bezier(.15, .9, .2, 1) 300ms both; }

@keyframes museum-slam {

    from { opacity: 0; transform: translateX(-2.4cqw) scale(1.14); filter: blur(.7cqw); }
    55% { opacity: 1; filter: blur(0); }
    to { opacity: 1; transform: none; filter: none; }

}

/* Glut: Funken steigen ruhig über allen Slides auf (eine Dauerbewegung, nur transform). */
.museum-slides::after {

    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 200%;
    z-index: 6;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 9% 20%, rgba(255, 150, 60, .9) 0 .28cqw, transparent .7cqw),
        radial-gradient(circle at 27% 64%, rgba(255, 90, 40, .85) 0 .36cqw, transparent .8cqw),
        radial-gradient(circle at 46% 34%, rgba(255, 210, 120, .8) 0 .2cqw, transparent .55cqw),
        radial-gradient(circle at 63% 86%, rgba(255, 120, 50, .85) 0 .32cqw, transparent .75cqw),
        radial-gradient(circle at 78% 14%, rgba(255, 180, 90, .85) 0 .24cqw, transparent .6cqw),
        radial-gradient(circle at 91% 52%, rgba(255, 80, 60, .85) 0 .38cqw, transparent .85cqw),
        radial-gradient(circle at 17% 92%, rgba(255, 110, 50, .8) 0 .3cqw, transparent .7cqw),
        radial-gradient(circle at 55% 52%, rgba(255, 230, 160, .75) 0 .18cqw, transparent .5cqw);
    background-size: 100% 50%;
    background-repeat: repeat-y;
    mix-blend-mode: screen;
    opacity: .7;
    animation: qs-bd-rise 14s linear infinite;

}

@media (prefers-reduced-motion: reduce) {

    .museum-scene *, .museum-scene *::before, .museum-scene *::after { animation: none !important; transition: none !important; }
    .museum-slides::after { display: none; }
    .museum-bar.is-current i { width: 100%; }

}
