/* ==========================================================================
   ABSCHNITT-SPRÜNGE (html.snap-mode): jeder Bereich füllt den Bildschirm
   ========================================================================== */
.snap-mode {
    --nav-h: 72px;
    --page-h: calc(100vh - var(--nav-h));
}

@supports (height: 100svh) {
    .snap-mode { --page-h: calc(100svh - var(--nav-h)); }
}

@media (max-width: 768px) {
    .snap-mode { --nav-h: 64px; }
}

/* Am Handy steuert js/abschnitte.js das senkrechte Scrollen komplett selbst.
   Der Browser darf nur noch waagerecht wischen und mit zwei Fingern zoomen –
   sonst übernimmt er (v. a. Safari) manchmal das Scrollen und die Sprünge
   funktionieren nicht mehr. */
html.snap-mode,
html.snap-mode body {
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-y: none;
}

/* Bereiche mindestens so hoch wie der sichtbare Bildschirm, Inhalt mittig */
.snap-mode #aktuelles,
.snap-mode #rueckblick,
.snap-mode #mitsingen,
.snap-mode #geschichte-teaser,
.snap-mode #kanal {
    min-height: var(--page-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.snap-mode #aktuelles[hidden] {
    display: none !important;
}

.snap-mode #aktuelles {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.snap-mode .aktuelles-flyer,
.snap-mode .pcl-flyer-btn img {
    max-height: calc(var(--page-h) - 6rem);
    width: auto;
    max-width: 100%;
}

.snap-mode #rueckblick.rb-ready {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.snap-mode #rueckblick .rb-grid {
    grid-auto-rows: clamp(130px, calc((var(--page-h) - 20rem) / 2), 260px);
}

.snap-mode #mitsingen,
.snap-mode #kanal {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.snap-mode #geschichte-teaser {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Video: am Computer bildschirmfüllend */
.snap-mode #video-section {
    height: var(--page-h);
    background: #1a1a1a;
    display: flex;
    align-items: center;
}

.snap-mode #video-section .video-wrapper {
    height: 100%;
}

.snap-mode #video-section .hero-video {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

/* Verschwommener Hintergrund aus dem Video – nur wo freie Fläche ist (Handy) */
.video-ambient {
    display: none;
}

/* Handy: Video im 4:3-Format mittig, dahinter dasselbe Video verschwommen */
@media (max-width: 768px) {
    .snap-mode #video-section {
        position: relative;
        overflow: hidden;
    }

    .snap-mode .video-ambient {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: scale(1.35);
        filter: blur(28px) saturate(1.25) brightness(0.8);
        pointer-events: none;
    }

    .snap-mode #video-section .video-wrapper {
        position: relative;
        z-index: 1;
        height: auto;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .snap-mode #video-section .hero-video {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .snap-mode #rueckblick .rb-grid {
        grid-auto-rows: 40vw;
    }

    .snap-mode .aktuelles-flyer,
    .snap-mode .pcl-flyer-btn img {
        max-height: 52svh;
    }
}

/* ---- Punkte rechts (nur am Computer) ----------------------------------- */
.snap-dots {
    position: fixed;
    right: 1.4rem;
    top: 50%;
    z-index: 90;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    transform: translateY(-50%);
}

@media (min-width: 901px) and (hover: hover) {
    .snap-dots { display: flex; }
}

.snap-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.22);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.snap-dot:hover {
    transform: scale(1.3);
}

.snap-dot.is-active {
    background: #1a1a1a;
    transform: scale(1.3);
}

.snap-dots.on-dark .snap-dot { background: rgba(244, 242, 238, 0.3); }
.snap-dots.on-dark .snap-dot.is-active { background: #f4f2ee; }
