.stream-container {
    max-width: 1200px;
    margin: auto;
}

.countdown-container {
    display: flex;
    gap: min(4%, 2rem);
    text-align: center;
    margin: auto;
    justify-content: center;
    text-transform: uppercase;
    font-family: "Open Sans";
}

/* Countdown cells = self-contained white cards with shadow (do NOT rely on the theme's
   .shadow/.rounded-3 classes — those don't reach the RevSlider context). */
.countdown-container .cell {
    width: 22%;
    max-width: 110px;
    aspect-ratio: 8/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7em;
    container-type: inline-size;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.countdown-container .val {
    font-size: 80cqi;
    flex: 1;
    line-height: 1em !important;
    font-weight: 300;
    color: #1a1a1a;
}

.countdown-container .label {
    font-size: 20cqi;
    color: #777;
}

@media (max-width: 440px) {
    .countdown-container { width: 100%; }
}

.ers-tv-countdown-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   RevSlider homepage hero ([erstv_hero]) — POSITIONING MODEL:
   .ers-hero is the relative box, children are absolutely positioned.
   Logo pinned to the top, countdown placed below it. Own .ers-hero*
   classes, kept separate from the single Beitragsseite (.ers-tv-live*).
   ============================================================ */
/* CANVAS model (RS7-proof): the RS7 design grid for this slider is 800x450 (16:9). Instead
   of aspect-ratio (which yields 0 height when the RS7 layer reports auto/zero width and makes
   the countdown collapse to the top), we lock the box height to a 16:9 canvas via a padding
   pseudo-element. Width is fluid; RS7 scales the whole layer uniformly, so with every child
   positioned in PERCENT the layout renders identically at every breakpoint. */
.ers-hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;          /* = RS7 grid width */
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
}
.ers-hero::before {            /* canvas height lock: 450/800 = 56.25% -> guaranteed 16:9 box */
    content: "";
    display: block;
    padding-top: 56.25%;
}
.ers-hero__logo {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 460px;
    text-align: center;
}
.ers-hero__logo img {
    width: 100%;
    height: auto;
    display: block;
}
.ers-hero__cd {
    position: absolute;
    /* Percentage of the locked canvas -> always below the logo, scales 1:1 with the RS7 layer.
       ~56% of the 450px design height = ~252px, well clear of the logo. Tune this % if needed. */
    top: 56%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    display: block;
}
/* Countdown markup ships hidden for the homepage scroll-reveal animation; inside the
   RevSlider layer that reveal JS never fires -> force it fully visible. */
.ers-hero .scroll-fade-bottom-up,
.ers-hero .visibility-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.ers-hero .countdown-container,
.ers-hero .countdown-container .cell {
    overflow: visible !important;
}
.ers-hero .countdown-container .cell {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}
.ers-hero #countdown-container .val   { color: #1a1a1a !important; font-weight: 300 !important; }
.ers-hero #countdown-container .label { color: #777 !important; }

/* Mobile: the large card shadow gets clipped by the carousel/slide bounds -> use a small,
   tight shadow so nothing is cut off. */
@media (max-width: 768px) {
    .ers-hero .countdown-container .cell {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    }
}

/* ---- RevSlider homepage hero block: TV logo + countdown (Image #8) ----
   Self-contained single layer. RevSlider styles its layers with high specificity, so the
   countdown cards override with !important and keep their shadow from being clipped. ---- */
.ers-cd-hero {
    display: block;
    text-decoration: none;
    color: inherit;
}
.ers-cd-hero__logo {
    display: block;
    text-align: center;
    margin: 0 auto clamp(2.5rem, 7vw, 5rem); /* more space -> countdown sits lower */
}
.ers-cd-hero__logo img {
    display: inline-block;
    width: 72%;
    max-width: 480px;       /* bigger logo */
    height: auto;
}
.ers-cd-hero__cd { display: block; }

/* The countdown ships hidden for the homepage scroll-reveal animation, but inside the
   RevSlider layer that reveal JS never fires -> it stays faded. Force it fully visible. */
.ers-cd-hero,
.ers-cd-hero .scroll-fade-bottom-up,
.ers-cd-hero .visibility-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.ers-cd-hero .countdown-container,
.ers-cd-hero .countdown-container .cell,
.ers-tv-countdown-link .countdown-container,
.ers-tv-countdown-link .countdown-container .cell { overflow: visible !important; }

.ers-cd-hero .countdown-container .cell,
.ers-tv-countdown-link .countdown-container .cell {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}
/* ID + class specificity so the dark number colour beats RevSlider's layer text colour */
.ers-cd-hero #countdown-container .val,
.ers-tv-countdown-link #countdown-container .val   { color: #1a1a1a !important; font-weight: 300 !important; }
.ers-cd-hero #countdown-container .label,
.ers-tv-countdown-link #countdown-container .label { color: #777 !important; }

/* ---- ERS TV single "Beitragsseite" (live page rebuild) ---- */
.ers-tv-live {
    padding: clamp(2rem, 6vw, 6rem) 1.25rem;
}
.ers-tv-live__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.ers-tv-live__title {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    font-size: clamp(2.5rem, 7vw, 6rem);
    margin: 0 0 clamp(1rem, 3vw, 2rem);
}
.ers-tv-live__text {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.6rem);
    line-height: 1.5;
    color: #333;
    max-width: 900px;
    margin: 0 auto clamp(2.5rem, 7vw, 5rem);
}
/* ---- Beitragsseite: SEPARATE countdown styling (Image #7), independently tunable ---- */
.ers-tv-live__countdown .countdown-container {
    gap: clamp(1rem, 3vw, 2rem);
}
.ers-tv-live__countdown .countdown-container .cell {
    max-width: 130px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}
.ers-tv-live__countdown .countdown-container .val   { color: #111; font-weight: 300; }
.ers-tv-live__countdown .countdown-container .label { color: #777; }

/* the countdown markup ships hidden for the homepage scroll-reveal animation;
   on the live page that JS isn't guaranteed, so force it visible here. */
.ers-tv-live .visibility-hidden,
.ers-tv-live .scroll-fade-bottom-up {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.ers-tv-live__countdown { margin-top: clamp(1rem, 4vw, 3rem); }

.animate-pulsate {
    width: 0.8em;
    height: 0.8em;
    border-radius: 100%;
    background: red;
    animation: pulsation 2s infinite;
}

@keyframes pulsation {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}
