/* ==========================================================================
   Splash (Content Block dddiy_splash, im Website-Baukasten gepflegt): die
   ganze erste Bildschirmhoehe. Video oder Bild mit Scrim und Koernung,
   davor Plakatschrift (oder Logo), Unterzeile als schraeg geklebtes Band,
   harte Knoepfe mit Versatzschatten, unten der Pfeil zum naechsten Baustein.

   Farben und Schriften aus den Tokens von festival.css (--fest-*), mit
   Fallback fuer Seiten ohne festival.css. Auf Bild/Video immer helle
   Schrift - das Abdunkeln (leicht/mittel/stark) sorgt fuer Kontrast, hell
   wie dunkel. Ohne Medium die Hauptfarbe mit deren Schriftfarbe.
   Bewegung (Koernung, langsamer Zoom, Pfeil) nur ohne prefers-reduced-motion;
   dann steht statt des Videos das Standbild.
   ========================================================================== */

.festival-theme > .frame:has(> * > .splash),
.frame:has(.splash) {
    padding-block: 0 !important;
    width: 100%;
    max-width: none;
}

.splash {
    --splash-ink: #fff;
    --splash-primary: var(--fest-primary, #e3480f);
    --splash-on-primary: var(--fest-on-primary, #fff);
    --splash-secondary: var(--fest-secondary, #f2e14c);
    --splash-on-secondary: var(--fest-on-secondary, #14181f);
    --splash-dark: var(--fest-dunkel, #14181f);
    --splash-display: var(--fest-font-display, var(--brand-font-display, "Anton", "Oswald", "Arial Narrow", sans-serif));
    --splash-scrim: 0.55;
    /* Hoehe der Kopfleiste wie .navbar in festival.css (dort gesetzt, hier nicht sichtbar). */
    --splash-offset: 68px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--splash-offset));
    min-height: calc(100svh - var(--splash-offset));
    padding-block: var(--fest-space-l, 3rem) 6rem;
    color: var(--splash-ink);
    background: var(--splash-dark);
}

@media (min-width: 992px) {
    .splash {
        --splash-offset: 88px;
    }
}

/* festival.css nimmt Abschnitten im Frame den Abstand (padding-block: 0
   !important) - der Splash braucht unten Platz fuer den Pfeil. */
.festival-theme > .frame > section.splash {
    padding-block: var(--fest-space-l, 3rem) 6rem !important;
}

/* Kopfleiste liegt ueber dem Splash: volle Hoehe, oben Platz fuer sie. */
html[data-dd-header="overlay"] .splash {
    min-height: 100vh;
    min-height: 100svh;
}

html[data-dd-header="overlay"] .festival-theme > .frame > section.splash,
html[data-dd-header="overlay"] .splash {
    padding-top: calc(var(--splash-offset) + var(--fest-space-m, 2rem)) !important;
}

.splash--light { --splash-scrim: 0.3; }
.splash--strong { --splash-scrim: 0.78; }

/* Ohne Bild und Video: die Hauptfarbe, ein Schimmer der Zweitfarbe. */
.splash--plain {
    --splash-ink: var(--splash-on-primary);
    background:
        radial-gradient(90% 70% at 85% 10%, color-mix(in srgb, var(--splash-secondary) 55%, transparent), transparent 65%),
        radial-gradient(80% 70% at 0% 100%, rgba(0, 0, 0, 0.3), transparent 70%),
        var(--splash-primary);
}

.splash__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.splash__video,
.splash__still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Standbild: auch Fallback, wenn das Video (noch) nicht laeuft. */
.splash--media .splash__media {
    background: var(--splash-poster, none) center / cover no-repeat;
}

.splash__still {
    background: inherit;
    animation: splash-zoom 24s ease-in-out infinite alternate;
}

/* Scrim: unten und links dunkler - dort steht die Schrift. */
.splash--media .splash__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, calc(var(--splash-scrim) + 0.25)), rgba(0, 0, 0, calc(var(--splash-scrim) * 0.35)) 65%),
        linear-gradient(to right, rgba(0, 0, 0, calc(var(--splash-scrim) * 0.8)), transparent 75%);
}

/* Koernung wie ein kopierter Flyer. */
.splash__grain {
    position: absolute;
    inset: -50%;
    z-index: 1;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    animation: splash-grain 0.9s steps(4) infinite;
}

.splash--plain .splash__grain {
    opacity: 0.22;
}

.splash__inner {
    position: relative;
}

.splash .splash__title {
    max-width: 12ch;
    margin: 0 0 var(--fest-space-m, 2rem);
    font-family: var(--splash-display);
    font-weight: 400;
    font-size: clamp(3.25rem, min(1.2rem + 10vw, 14svh), 11rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
    color: inherit;
    overflow-wrap: break-word;
    hyphens: manual;
    text-shadow: 0.045em 0.045em 0 var(--splash-primary);
}

.splash--plain .splash__title {
    text-shadow: 0.045em 0.045em 0 rgba(0, 0, 0, 0.35);
}

.splash__logo {
    margin: 0 0 var(--fest-space-m, 2rem);
}

.splash__logo img {
    display: block;
    width: auto;
    max-width: min(80vw, 560px);
    max-height: 32svh;
    filter: drop-shadow(0 0.4rem 1.2rem rgba(0, 0, 0, 0.45));
}

/* Unterzeile als schraeg geklebtes Band in der Zweitfarbe. */
.splash__tape {
    display: inline-block;
    margin: 0 0 var(--fest-space-l, 3rem);
    padding: 0.45rem 1rem 0.35rem;
    transform: rotate(-2deg);
    background: var(--splash-secondary);
    color: var(--splash-on-secondary);
    font-family: var(--splash-display);
    font-size: var(--fest-step-2, 1.6rem);
    line-height: 1.1;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    box-shadow: 0.35rem 0.35rem 0 rgba(0, 0, 0, 0.55);
}

.splash__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

.splash .splash__btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 3px solid var(--splash-ink);
    border-radius: 0;
    font-family: var(--splash-display);
    font-size: var(--fest-step-1, 1.25rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0.3rem 0.3rem 0 var(--splash-ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.splash .splash__btn--primary {
    border-color: var(--splash-primary);
    background: var(--splash-primary);
    color: var(--splash-on-primary);
}

.splash--plain .splash__btn--primary {
    border-color: var(--splash-ink);
    background: var(--splash-ink);
    color: var(--splash-primary);
    box-shadow: 0.3rem 0.3rem 0 rgba(0, 0, 0, 0.45);
}

.splash .splash__btn--ghost {
    background: transparent;
    color: var(--splash-ink);
}

.splash .splash__btn:hover,
.splash .splash__btn:focus-visible {
    transform: translate(0.15rem, 0.15rem);
    box-shadow: 0.15rem 0.15rem 0 var(--splash-ink);
}

.splash .splash__btn:focus-visible {
    outline: 3px solid var(--splash-secondary);
    outline-offset: 4px;
}

/* Countdown bis zum Beginn: Zahlen in der Plakatschrift, ohne Sekunden -
   es zappelt nichts, auch nicht ohne prefers-reduced-motion. */
.splash__countdown {
    margin-top: var(--fest-space-l, 3rem);
}

.splash .splash__clock {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    font-family: var(--splash-display);
    line-height: 1;
    text-transform: uppercase;
}

.splash__unit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.splash__value {
    font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    font-variant-numeric: tabular-nums;
    text-shadow: 0.05em 0.05em 0 var(--splash-primary);
}

.splash--plain .splash__value {
    text-shadow: 0.05em 0.05em 0 rgba(0, 0, 0, 0.35);
}

.splash__unit-label {
    font-size: var(--fest-step-0, 1rem);
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* "Video abspielen" bei einem Video von YouTube/Vimeo: ein <button>, sieht aus wie die Links. */
.splash .splash__play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.splash__credit {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    max-width: 40ch;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: right;
}

.splash__down {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-left: -1.625rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--splash-ink);
    animation: splash-bob 1.8s ease-in-out infinite;
}

.splash__down:hover,
.splash__down:focus-visible {
    color: var(--splash-ink);
    background: rgba(255, 255, 255, 0.14);
}

.splash__end {
    display: block;
}

/* ==========================================================================
   Stil "Zerfetzt / DIY" (splash--style-torn): ein Zine an der Wand.
   Foto als Fotokopie (Graustufen, harter Kontrast) mit der Hauptfarbe im
   Riso-Druck darueber, Punktraster, leicht verrutschter Zweitfarben-Druck
   an der Schrift, Klebebandstreifen, schiefe Zettel mit gerissenen Kanten
   und unten eine Papierkante, hinter der die Seite weitergeht.
   ========================================================================== */

.splash--style-torn {
    --splash-paper: var(--fest-flaeche, var(--bs-body-bg, #f4efe4));
    --splash-tape: color-mix(in srgb, #efe6cf 82%, transparent);
    padding-bottom: 7.5rem;
}

.festival-theme > .frame > section.splash--style-torn {
    padding-bottom: 7.5rem !important;
}

.splash--style-torn.splash--media .splash__video,
.splash--style-torn.splash--media .splash__still {
    filter: grayscale(1) contrast(1.45) brightness(0.95);
}

/* Riso: die Schwaerzen der Kopie werden zur Hauptfarbe (screen), darueber
   ein Punktraster; der Scrim liegt obenauf. */
.splash--style-torn .splash__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--splash-primary);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.splash--style-torn.splash--media .splash__media::after {
    z-index: 2;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35) 0 1.1px, transparent 1.7px) 0 0 / 6px 6px,
        linear-gradient(to top, rgba(0, 0, 0, calc(var(--splash-scrim) + 0.1)), rgba(0, 0, 0, calc(var(--splash-scrim) * 0.25)) 60%),
        linear-gradient(to right, rgba(0, 0, 0, calc(var(--splash-scrim) * 0.7)), transparent 70%);
}

.splash--style-torn.splash--plain .splash__media::before {
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.22) 0 1.1px, transparent 1.6px) 0 0 / 6px 6px;
    mix-blend-mode: normal;
    opacity: 1;
}

.splash--style-torn .splash__grain {
    z-index: 3;
}

.splash--style-torn .splash__down {
    bottom: clamp(2.5rem, 5vw, 4rem);
    z-index: 3;
}

.splash--style-torn .splash__grain {
    opacity: 0.3;
}

.splash--style-torn .splash__title {
    transform: rotate(-2deg);
    transform-origin: left bottom;
    /* Verrutschter Zweitdruck: Zweitfarbe versetzt, dazu harter Schatten. */
    text-shadow:
        -0.035em -0.02em 0 color-mix(in srgb, var(--splash-secondary) 85%, transparent),
        0.05em 0.05em 0 #000;
}

.splash--style-torn .splash__logo {
    transform: rotate(-2.5deg);
}

/* Unterzeile als gerissener Zettel. */
.splash--style-torn .splash__tape {
    position: relative;
    padding: 0.7rem 1.4rem 0.55rem;
    transform: rotate(1.6deg);
    background: var(--splash-secondary);
    box-shadow: none;
    clip-path: polygon(0% 1%, 7.1% 6.8%, 14.3% 7.9%, 21.4% 3.7%, 28.6% 3.9%, 35.7% 0.7%, 42.9% 0.8%, 50% 2.7%, 57.1% 2.1%, 64.3% 6.6%, 71.4% 1.3%, 78.6% 0.2%, 85.7% 7.6%, 92.9% 4.2%, 100% 1.2%, 98.4% 20%, 99.9% 40%, 98.4% 60%, 97.1% 80%, 100% 93.1%, 92.9% 94.4%, 85.7% 97.9%, 78.6% 97.1%, 71.4% 98.7%, 64.3% 93.8%, 57.1% 95.7%, 50% 93.8%, 42.9% 97.4%, 35.7% 98.2%, 28.6% 93.5%, 21.4% 92.1%, 14.3% 93.2%, 7.1% 93.6%, 0% 93.5%, 2.2% 80%, 0.7% 60%, 1.6% 40%, 1.1% 20%);
}

.splash--style-torn .splash__actions {
    gap: 1.25rem 1.5rem;
    filter: drop-shadow(0.3rem 0.3rem 0 rgba(0, 0, 0, 0.85));
}

/* Knoepfe: ausgerissene Papierstuecke statt Kasten. */
.splash--style-torn .splash__btn {
    border: 0;
    box-shadow: none;
    padding: 1rem 2.2rem 0.9rem;
    clip-path: polygon(0% 0.3%, 10% 0.3%, 20% 2.8%, 30% 2.6%, 40% 6.9%, 50% 9.6%, 60% 4.5%, 70% 9.4%, 80% 9.9%, 90% 9.6%, 100% 3.6%, 99.6% 33.3%, 99.5% 66.7%, 100% 98%, 90% 98%, 80% 93.8%, 70% 91%, 60% 91.6%, 50% 95.2%, 40% 93.5%, 30% 92%, 20% 99.2%, 10% 93.4%, 0% 90.9%, 1.6% 66.7%, 1.5% 33.3%);
}

.splash--style-torn .splash__btn--primary {
    border: 0;
    background: #111;
    color: var(--splash-secondary);
    transform: rotate(-1.5deg);
}

/* Auf der Farbflaeche: schwarzer Zettel bleibt, er steht auf jeder Marke. */
.splash--style-torn .splash__actions {
    filter: drop-shadow(0.3rem 0.3rem 0 var(--splash-primary));
}

.splash--style-torn .splash__btn--ghost {
    background: var(--splash-paper);
    color: var(--fest-ink, #14181f);
    transform: rotate(1.2deg);
}

.splash--style-torn .splash__btn:hover,
.splash--style-torn .splash__btn:focus-visible {
    box-shadow: none;
    transform: rotate(0deg) translate(0.1rem, 0.1rem);
}

/* Klebeband: halb durchsichtig, Enden gezackt. */
.splash__strip {
    position: absolute;
    z-index: 1;
    width: clamp(7rem, 16vw, 13rem);
    height: 2.1rem;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 7px),
        var(--splash-tape);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    clip-path: polygon(3% 0, 97% 0, 100% 18%, 96% 36%, 100% 54%, 96% 72%, 100% 90%, 97% 100%, 3% 100%, 0 82%, 4% 64%, 0 46%, 4% 28%, 0 10%);
    pointer-events: none;
}

.splash__strip--a {
    top: clamp(1.5rem, 6vh, 4rem);
    left: -1.5rem;
    transform: rotate(-24deg);
}

.splash__strip--b {
    right: -1rem;
    bottom: 5.5rem;
    transform: rotate(-8deg);
}

/* Papierkante unten: dahinter geht die Seite weiter (Seitenfarbe), eine
   zweite Kante in der Zweitfarbe blitzt darunter hervor - Collage. */
.splash__edge,
.splash__edge::before {
    position: absolute;
    left: -1%;
    right: -1%;
    bottom: -1px;
    height: clamp(26px, 4vw, 48px);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 12.5 L5.5 19.0 L10.2 16.7 L17.9 7.2 L27.0 6.7 L35.3 7.4 L40.2 14.5 L52.5 8.5 L58.7 18.5 L72.2 17.5 L80.2 25.5 L84.6 23.2 L91.5 8.9 L96.7 12.2 L108.9 9.6 L118.7 18.8 L126.4 17.0 L131.0 7.2 L137.1 19.6 L145.4 12.3 L155.2 15.1 L162.2 21.9 L173.2 10.9 L182.9 16.5 L195.7 20.6 L202.6 25.6 L207.8 14.4 L219.3 9.0 L228.2 6.8 L238.9 21.3 L248.6 23.5 L255.8 19.9 L265.7 17.6 L274.3 22.8 L287.7 15.5 L298.4 7.2 L309.4 18.9 L323.3 22.4 L330.2 13.7 L340.8 6.5 L349.5 9.4 L354.6 7.2 L366.3 8.6 L372.8 13.8 L385.5 7.6 L394.0 17.0 L406.8 22.4 L419.5 11.6 L427.6 13.2 L440.5 25.2 L446.0 9.5 L452.3 10.7 L461.1 17.8 L467.8 6.1 L476.0 13.4 L485.6 25.1 L496.5 16.3 L506.7 19.5 L511.2 24.0 L523.0 23.5 L535.0 13.8 L543.0 8.1 L553.4 7.2 L558.0 10.2 L563.6 12.8 L568.2 6.0 L573.7 8.0 L581.3 6.5 L594.1 18.3 L599.6 11.0 L600 13.28326879056565 L600 40 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 12.5 L5.5 19.0 L10.2 16.7 L17.9 7.2 L27.0 6.7 L35.3 7.4 L40.2 14.5 L52.5 8.5 L58.7 18.5 L72.2 17.5 L80.2 25.5 L84.6 23.2 L91.5 8.9 L96.7 12.2 L108.9 9.6 L118.7 18.8 L126.4 17.0 L131.0 7.2 L137.1 19.6 L145.4 12.3 L155.2 15.1 L162.2 21.9 L173.2 10.9 L182.9 16.5 L195.7 20.6 L202.6 25.6 L207.8 14.4 L219.3 9.0 L228.2 6.8 L238.9 21.3 L248.6 23.5 L255.8 19.9 L265.7 17.6 L274.3 22.8 L287.7 15.5 L298.4 7.2 L309.4 18.9 L323.3 22.4 L330.2 13.7 L340.8 6.5 L349.5 9.4 L354.6 7.2 L366.3 8.6 L372.8 13.8 L385.5 7.6 L394.0 17.0 L406.8 22.4 L419.5 11.6 L427.6 13.2 L440.5 25.2 L446.0 9.5 L452.3 10.7 L461.1 17.8 L467.8 6.1 L476.0 13.4 L485.6 25.1 L496.5 16.3 L506.7 19.5 L511.2 24.0 L523.0 23.5 L535.0 13.8 L543.0 8.1 L553.4 7.2 L558.0 10.2 L563.6 12.8 L568.2 6.0 L573.7 8.0 L581.3 6.5 L594.1 18.3 L599.6 11.0 L600 13.28326879056565 L600 40 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.splash__edge {
    z-index: 2;
    background: var(--bs-body-bg, #fff);
}

.splash__edge::before {
    content: "";
    left: 0;
    right: 0;
    bottom: 8px;
    background: var(--splash-secondary);
    transform: scaleX(-1);
}

/* ==========================================================================
   Stil "Plakat" (splash--style-poster): Rahmen und riesige Schrift auf der
   Hauptfarbe, das Bild als schief gesetzter Ausschnitt rechts (Handy: oben).
   ========================================================================== */

.splash--style-poster {
    --splash-ink: var(--splash-on-primary);
    justify-content: flex-end;
    background: var(--splash-primary);
}

.splash--style-poster .splash__frame {
    position: absolute;
    inset: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 0;
    border: clamp(3px, 0.5vw, 6px) solid var(--splash-ink);
    pointer-events: none;
}

.splash--style-poster .splash__media {
    inset: 10% 5% auto auto;
    z-index: 0;
    width: min(44%, 640px);
    aspect-ratio: 4 / 5;
    max-height: 72%;
    border: clamp(4px, 0.6vw, 8px) solid var(--splash-ink);
    transform: rotate(2.5deg);
    box-shadow: 0.8rem 0.8rem 0 rgba(0, 0, 0, 0.35);
}

.splash--style-poster.splash--plain .splash__media {
    display: none;
}

.splash--style-poster .splash__media::after {
    background: rgba(0, 0, 0, calc(var(--splash-scrim) * 0.4));
}

.splash--style-poster .splash__inner {
    z-index: 1;
}

.splash--style-poster .splash__title {
    max-width: 9ch;
    font-size: clamp(3.5rem, min(1rem + 12vw, 17svh), 13rem);
    line-height: 0.88;
    text-shadow: none;
}

.splash--style-poster .splash__tape {
    transform: none;
    background: var(--splash-ink);
    color: var(--splash-primary);
    box-shadow: none;
}

.splash--style-poster .splash__btn--primary {
    border-color: var(--splash-ink);
    background: var(--splash-ink);
    color: var(--splash-primary);
    box-shadow: 0.3rem 0.3rem 0 rgba(0, 0, 0, 0.4);
}

.splash--style-poster .splash__down {
    bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.splash--style-poster .splash__credit {
    right: 2rem;
    bottom: 1.75rem;
    color: inherit;
    opacity: 0.75;
}

@media (max-width: 767.98px) {
    .splash--style-poster .splash__media {
        inset: 6% 8% auto auto;
        width: 62%;
        max-height: 42%;
    }
}


/* ==========================================================================
   Stil "Mauer" (splash--style-wall): handgezeichnete Wand in der
   Wandfarbe mit Fugen, das Foto (oder Video) in einem treppig
   ausgebrochenen Mauerloch, die Ueberschrift in einer Comic-Sprechblase,
   unten zwei herausgefallene Steine. Die Fugen sind eine Maske (eine
   Kachel, nahtlos), ihre Farbe kommt aus --splash-wall-ink.
   Konturen um ausgeschnittene Formen per drop-shadow am Elternteil - an
   der Form selbst schnitte clip-path sie mit ab.

   Gestaltung je Festival (Content\SiteSplash::wallLook()): Farben als
   Variablen am Abschnitt (--splash-wall, --splash-on-wall,
   --splash-wall-ink, --splash-bubble, --splash-on-bubble, --splash-duo),
   die Varianten als Klassen - Mauerwerk .splash--wall-*, Loch
   .splash--hole-*, Blase .splash--bubble-*, Foto .splash--photo-*. Ohne
   Angaben sieht die Mauer aus wie beim Nuernberg Punk Fest: Ziegel in der
   Hauptfarbe, schwarze Fugen, Foto schwarzweiss, Blase in der Zweitfarbe.
   ========================================================================== */

.splash--style-wall {
    --splash-ink: #fff;
    --splash-wall: var(--splash-primary);
    --splash-on-wall: var(--splash-on-primary);
    --splash-bubble: var(--splash-secondary);
    --splash-on-bubble: var(--splash-on-secondary);
    --splash-duo: var(--splash-secondary);
    --splash-wall-ink: #111;
    --splash-wall-line: 4px;
    --splash-outline:
        drop-shadow(var(--splash-wall-line) 0 0 var(--splash-wall-ink))
        drop-shadow(calc(-1 * var(--splash-wall-line)) 0 0 var(--splash-wall-ink))
        drop-shadow(0 var(--splash-wall-line) 0 var(--splash-wall-ink))
        drop-shadow(0 calc(-1 * var(--splash-wall-line)) 0 var(--splash-wall-ink));
    --splash-hole-shape: polygon(14% 0, 46% 0, 46% 6%, 78% 6%, 78% 0, 92% 0, 92% 14%, 100% 14%, 100% 46%, 94% 46%, 94% 62%, 100% 62%, 100% 86%, 88% 86%, 88% 100%, 60% 100%, 60% 92%, 30% 92%, 30% 100%, 8% 100%, 8% 84%, 0 84%, 0 52%, 5% 52%, 5% 36%, 0 36%, 0 12%, 14% 12%);
    justify-content: stretch;
    text-align: center;
    background: var(--splash-wall);
}

.splash--style-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--splash-wall-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27320%27 height=%27112%27 viewBox=%270 0 320 112%27%3E%3Cpath d=%27M3 5 34 5 66 2 91 7 123 3 157 4 158 28 155 52 123 52 98 52 67 53 31 53 5 51 1 28Z M163 3 194 2 221 4 258 6 287 3 316 4 313 28 314 50 289 54 258 53 222 50 196 53 166 53 162 28Z M-75 61 -43 63 -13 63 11 60 49 61 77 59 75 84 74 108 46 104 13 106 -12 109 -48 109 -77 108 -78 84Z M245 61 277 63 307 63 331 60 369 61 397 59 395 84 394 108 366 104 333 106 308 109 272 109 243 108 242 84Z M86 62 115 59 141 62 175 62 204 62 235 62 237 84 235 108 207 106 176 109 143 109 116 110 84 106 86 84Z%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%275%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") 0 0 / 240px 84px repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27320%27 height=%27112%27 viewBox=%270 0 320 112%27%3E%3Cpath d=%27M3 5 34 5 66 2 91 7 123 3 157 4 158 28 155 52 123 52 98 52 67 53 31 53 5 51 1 28Z M163 3 194 2 221 4 258 6 287 3 316 4 313 28 314 50 289 54 258 53 222 50 196 53 166 53 162 28Z M-75 61 -43 63 -13 63 11 60 49 61 77 59 75 84 74 108 46 104 13 106 -12 109 -48 109 -77 108 -78 84Z M245 61 277 63 307 63 331 60 369 61 397 59 395 84 394 108 366 104 333 106 308 109 272 109 243 108 242 84Z M86 62 115 59 141 62 175 62 204 62 235 62 237 84 235 108 207 106 176 109 143 109 116 110 84 106 86 84Z%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%275%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") 0 0 / 240px 84px repeat;
    pointer-events: none;
}

/* Mauerwerk: andere Kachel (Images/Splash/wall-*.svg), gleiche Strichstaerke. */
.splash--wall-stone::before {
    -webkit-mask: url("../Images/Splash/wall-stone.svg") 0 0 / 270px 180px repeat;
    mask: url("../Images/Splash/wall-stone.svg") 0 0 / 270px 180px repeat;
}

.splash--wall-concrete::before {
    -webkit-mask: url("../Images/Splash/wall-concrete.svg") 0 0 / 384px 240px repeat;
    mask: url("../Images/Splash/wall-concrete.svg") 0 0 / 384px 240px repeat;
}

.splash--wall-wood::before {
    -webkit-mask: url("../Images/Splash/wall-wood.svg") 0 0 / 320px 320px repeat;
    mask: url("../Images/Splash/wall-wood.svg") 0 0 / 320px 320px repeat;
}

.splash--style-wall .splash__hole {
    position: absolute;
    top: 24%;
    left: 50%;
    z-index: -1;
    width: min(78%, 1000px);
    height: 54%;
    transform: translateX(-50%);
    filter: var(--splash-outline);
    pointer-events: none;
}

.splash--style-wall .splash__media {
    clip-path: var(--splash-hole-shape);
    filter: grayscale(1) contrast(1.15);
}

.splash--style-wall .splash__media::after {
    background: rgba(0, 0, 0, calc(var(--splash-scrim) * 0.25));
}

.splash--style-wall .splash__grain {
    opacity: 0.12;
}

.splash--style-wall.splash--plain .splash__hole {
    display: none;
}

/* Foto im Loch: Farbe, oder Duoton - Bild bzw. Video schwarzweiss, darueber
   die Farbe multipliziert (Weiss wird zur Farbe, Schwarz bleibt schwarz).
   Der Filter sitzt dafuer am Bild, nicht am Loch - sonst wuerde die Farbe
   mit entfaerbt. */
.splash--photo-color .splash__media,
.splash--photo-duo-primary .splash__media,
.splash--photo-duo-secondary .splash__media {
    filter: none;
}

.splash--photo-duo-primary .splash__media > :is(.splash__video, .splash__still),
.splash--photo-duo-secondary .splash__media > :is(.splash__video, .splash__still) {
    filter: grayscale(1) contrast(1.3) brightness(1.08);
}

.splash--photo-duo-primary .splash__media::before,
.splash--photo-duo-secondary .splash__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--splash-duo);
    mix-blend-mode: multiply;
}

/* Lochform "Fenster": Rundbogen mit Sprossenkreuz und Fensterbank. */
.splash--hole-window {
    --splash-hole-shape: inset(0 round 50% 50% 0 0 / 34% 34% 0 0);
}

.splash--hole-window .splash__hole {
    width: min(52%, 720px);
}

.splash__sash {
    position: absolute;
    inset: 0;
    --splash-sash: calc(var(--splash-wall-line) * 2.5);
    background:
        linear-gradient(var(--splash-wall-ink), var(--splash-wall-ink)) center / var(--splash-sash) 100% no-repeat,
        linear-gradient(var(--splash-wall-ink), var(--splash-wall-ink)) 0 42% / 100% var(--splash-sash) no-repeat;
    clip-path: var(--splash-hole-shape);
    pointer-events: none;
}

.splash--hole-window .splash__hole::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: calc(-1 * clamp(0.9rem, 2vw, 1.4rem));
    height: clamp(0.9rem, 2vw, 1.4rem);
    background: color-mix(in srgb, var(--splash-wall) 70%, var(--splash-wall-ink));
}

/* Lochform "Bilderrahmen": gerades Bild mit breitem Rahmen, leicht schief
   an die Wand gehaengt. */
.splash--hole-frame {
    --splash-hole-shape: none;
    --splash-frame: clamp(10px, 1.4vw, 20px);
}

.splash--hole-frame .splash__hole {
    width: min(66%, 900px);
    border: var(--splash-frame) solid var(--splash-wall-ink);
    background: var(--splash-wall-ink);
    transform: translateX(-50%) rotate(-1.5deg);
    filter: drop-shadow(0.6rem 0.6rem 0 rgba(0, 0, 0, 0.3));
}

.splash--hole-frame .splash__media {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.splash--style-wall .splash__inner {
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--fest-space-m, 2rem);
    /* Die Knoepfe im Loch liegen darunter - nur die Inhalte fangen Klicks. */
    pointer-events: none;
}

.splash--style-wall .splash__inner > * {
    pointer-events: auto;
}

.splash--style-wall .splash__burst {
    position: relative;
    filter: var(--splash-outline);
    transform: rotate(-3deg);
}

.splash--style-wall .splash__title,
.splash--style-wall .splash__logo {
    max-width: none;
    margin: 0;
    padding: clamp(2.2rem, 6vw, 4.5rem) clamp(2.6rem, 8vw, 6rem);
    background: var(--splash-bubble);
    clip-path: polygon(50.0% 0.5%, 59.8% 10.1%, 72.8% 6.5%, 78.2% 18.1%, 90.3% 22.2%, 88.8% 35.3%, 99.5% 44.0%, 89.9% 54.9%, 96.3% 67.6%, 84.4% 73.8%, 82.5% 86.7%, 69.1% 86.4%, 61.9% 98.3%, 50.0% 91.4%, 38.1% 98.3%, 31.2% 85.8%, 17.3% 86.9%, 16.8% 72.9%, 3.7% 67.6%, 7.5% 55.2%, 0.8% 44.0%, 10.4% 35.0%, 9.4% 21.9%, 22.0% 18.4%, 27.2% 6.5%, 40.2% 10.3%);
}

.splash--style-wall .splash__title {
    max-width: 16ch;
    font-size: clamp(2.1rem, min(0.8rem + 5vw, 9svh), 5.5rem);
    line-height: 0.9;
    color: var(--splash-on-bubble);
    text-shadow: none;
}

.splash--style-wall .splash__logo img {
    max-height: 18svh;
    filter: none;
}

/* Blase "Schild": gerades Brett mit vier Schrauben und Versatzschatten. */
.splash--bubble-sign .splash__burst {
    filter: var(--splash-outline) drop-shadow(0.45rem 0.45rem 0 var(--splash-wall-ink));
    transform: rotate(-2deg);
}

.splash--bubble-sign .splash__title,
.splash--bubble-sign .splash__logo {
    --splash-screw: radial-gradient(circle, var(--splash-wall-ink) 0 0.2rem, transparent 0.24rem);
    padding: clamp(1.3rem, 3.5vw, 2.4rem) clamp(1.8rem, 5vw, 3.4rem);
    border-radius: 0.5rem;
    background:
        var(--splash-screw) left 0.35rem top 0.35rem / 0.7rem 0.7rem no-repeat,
        var(--splash-screw) right 0.35rem top 0.35rem / 0.7rem 0.7rem no-repeat,
        var(--splash-screw) left 0.35rem bottom 0.35rem / 0.7rem 0.7rem no-repeat,
        var(--splash-screw) right 0.35rem bottom 0.35rem / 0.7rem 0.7rem no-repeat,
        var(--splash-bubble);
    clip-path: none;
}

/* Blase "Zettel": Papier mit Knick und zwei Streifen Klebeband. */
.splash--bubble-note .splash__burst {
    filter: drop-shadow(0.35rem 0.5rem 0 rgba(0, 0, 0, 0.35));
    transform: rotate(-2.5deg);
}

.splash--bubble-note .splash__title,
.splash--bubble-note .splash__logo {
    padding: clamp(1.6rem, 4vw, 3rem) clamp(1.8rem, 5vw, 3.6rem);
    clip-path: polygon(0 1%, 100% 0, 99% 97%, 92% 99%, 84% 97%, 71% 100%, 58% 97%, 44% 99%, 30% 97%, 16% 100%, 6% 97%, 1% 99%);
}

.splash--bubble-note .splash__burst::before,
.splash--bubble-note .splash__burst::after {
    content: "";
    position: absolute;
    top: -0.9rem;
    z-index: 1;
    width: clamp(4.5rem, 10vw, 7rem);
    height: 1.9rem;
    background: rgba(239, 230, 207, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.splash--bubble-note .splash__burst::before {
    left: -1.2rem;
    transform: rotate(-32deg);
}

.splash--bubble-note .splash__burst::after {
    right: -1.2rem;
    transform: rotate(28deg);
}

/* Ohne Blase: die Schrift direkt auf der Wand, Versatzschatten in der Blasenfarbe. */
.splash--bubble-none .splash__burst {
    filter: none;
}

.splash--bubble-none .splash__title,
.splash--bubble-none .splash__logo {
    padding: 0;
    background: none;
    clip-path: none;
}

.splash--style-wall.splash--bubble-none .splash__title {
    max-width: 14ch;
    font-size: clamp(2.6rem, min(1rem + 6vw, 11svh), 7rem);
    color: var(--splash-on-wall);
    /* Rand in der Wandfarbe - die Fugen laufen nicht durch die Buchstaben. */
    -webkit-text-stroke: 0.14em var(--splash-wall);
    paint-order: stroke fill;
    text-shadow: 0.07em 0.07em 0 var(--splash-bubble);
}

.splash--style-wall .splash__tape {
    margin: 0;
    transform: rotate(1.5deg);
    background: #fff;
    color: #111;
    border: 3px solid var(--splash-wall-ink);
    box-shadow: 0.25rem 0.25rem 0 var(--splash-wall-ink);
}

.splash--style-wall .splash__actions {
    justify-content: center;
}

.splash--style-wall .splash__btn {
    border: 3px solid var(--splash-wall-ink);
    border-radius: 0.4rem;
    box-shadow: 0.3rem 0.3rem 0 var(--splash-wall-ink);
}

.splash--style-wall .splash__btn--primary {
    background: var(--splash-bubble);
    color: var(--splash-on-bubble);
}

.splash--style-wall .splash__btn--ghost {
    background: #fff;
    color: #111;
}

.splash--style-wall .splash__btn:hover,
.splash--style-wall .splash__btn:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 0.45rem 0.45rem 0 var(--splash-wall-ink);
}

/* Herausgefallene Steine: Wandfarbe, dicke Kontur, Kratzer als Linien. */
.splash--style-wall .splash__loose {
    position: absolute;
    bottom: clamp(2.5rem, 7vh, 4.5rem);
    z-index: 0;
    width: clamp(110px, 16vw, 230px);
    aspect-ratio: 230 / 90;
    border: var(--splash-wall-line) solid var(--splash-wall-ink);
    border-radius: 0.6rem;
    background:
        repeating-linear-gradient(100deg, transparent 0 18px, rgba(0, 0, 0, 0.35) 18px 20px, transparent 20px 34px),
        var(--splash-wall);
    box-shadow: inset 0 -0.6rem 0 rgba(0, 0, 0, 0.25), 0.4rem 0.4rem 0 var(--splash-wall-ink);
    pointer-events: none;
}

.splash--style-wall .splash__loose--a {
    left: 6%;
    transform: rotate(-14deg);
}

.splash--style-wall .splash__loose--b {
    right: 6%;
    transform: rotate(11deg);
}

/* Bruchstein: runde Brocken; Holz: ein loses Brett; Beton: Bruchstuecke. */
.splash--wall-stone .splash__loose {
    width: clamp(80px, 10vw, 150px);
    aspect-ratio: 4 / 3;
    border-radius: 46% 38% 42% 50% / 50% 44% 52% 40%;
}

.splash--wall-wood .splash__loose {
    width: clamp(140px, 20vw, 300px);
    aspect-ratio: 300 / 54;
    border-radius: 0.3rem;
    background:
        repeating-linear-gradient(2deg, transparent 0 9px, rgba(0, 0, 0, 0.3) 9px 11px),
        var(--splash-wall);
}

.splash--wall-concrete .splash__loose {
    width: clamp(80px, 11vw, 160px);
    aspect-ratio: 5 / 4;
    border: 0;
    border-radius: 0;
    background: var(--splash-wall-ink);
    box-shadow: none;
    clip-path: polygon(8% 30%, 40% 0, 78% 12%, 100% 54%, 82% 100%, 30% 92%, 0 70%);
}

.splash--style-wall .splash__credit {
    color: #fff;
    background: var(--splash-wall-ink);
    padding: 0.1rem 0.4rem;
}

/* Video im Loch (JavaScript/Frontend/SplashVideo.js): unten rechts
   Anhalten/Abspielen und "Vergroessern" (Dialog mit Ton, VideoModal.js). */
.splash__hole-actions {
    position: absolute;
    right: 13%;
    bottom: 10%;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.splash--hole-window .splash__hole-actions,
.splash--hole-frame .splash__hole-actions {
    right: 1rem;
    bottom: 1rem;
}

.splash .splash__hole-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border: 3px solid #111;
    border-radius: 0.4rem;
    background: #fff;
    color: #111;
    font-family: var(--splash-display);
    font-size: 1.1rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0.25rem 0.25rem 0 var(--splash-wall-ink);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.splash .splash__hole-btn--icon {
    padding: 0.45rem;
}

/* Anhalten erst mit JavaScript - ohne laeuft auch nichts. */
.splash .splash__hole-btn[hidden] {
    display: none;
}

.splash .splash__hole-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
}

.splash .splash__hole-btn:hover,
.splash .splash__hole-btn:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 0.4rem 0.4rem 0 var(--splash-wall-ink);
}

.splash .splash__hole-btn:focus-visible {
    outline: 3px solid var(--splash-bubble);
    outline-offset: 3px;
}

.splash__hole-btn [data-when] {
    display: none;
}

.splash__hole:not(.is-playing) .splash__hole-btn [data-when="paused"],
.splash__hole.is-playing .splash__hole-btn [data-when="playing"] {
    display: inline;
}

@media (max-width: 767.98px) {
    .splash--style-wall {
        --splash-wall-line: 3px;
    }

    .splash--style-wall::before {
        -webkit-mask-size: 160px 56px;
        mask-size: 160px 56px;
    }

    .splash--wall-stone::before {
        -webkit-mask-size: 180px 120px;
        mask-size: 180px 120px;
    }

    .splash--wall-concrete::before {
        -webkit-mask-size: 256px 160px;
        mask-size: 256px 160px;
    }

    .splash--wall-wood::before {
        -webkit-mask-size: 220px 220px;
        mask-size: 220px 220px;
    }

    .splash--style-wall .splash__hole {
        top: 30%;
        width: 92%;
        height: 40%;
    }

    .splash--hole-window .splash__hole {
        width: 74%;
    }

    .splash--hole-frame .splash__hole {
        width: 84%;
        height: 36%;
    }

    .splash--style-wall .splash__loose {
        display: none;
    }

    .splash .splash__hole-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
    }

    .splash__hole-actions {
        right: 10%;
        bottom: 11%;
    }
}

/* Handy: Schrift unten, Daumenreichweite. */
@media (max-width: 575.98px) {
    .splash {
        justify-content: flex-end;
    }

    .splash__credit {
        display: none;
    }
}

@keyframes splash-grain {
    25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -4%); }
    75% { transform: translate(-1%, 3%); }
}

@keyframes splash-zoom {
    to { transform: scale(1.08); }
}

@keyframes splash-bob {
    50% { transform: translateY(0.4rem); }
}

@media (prefers-reduced-motion: reduce) {
    .splash__video {
        display: none;
    }

    /* Im Mauerloch erst auf Klick (SplashVideo.js), dann laeuft es. */
    .splash__hole.is-playing .splash__video {
        display: block;
    }

    .splash__grain,
    .splash__still,
    .splash__down {
        animation: none;
    }
}
