/*
 * ═══════════════════════════════════════════════════════════════════════════
 * EAL Infoscreen — CSS
 *
 * Display:  iiyama PROLITE LH5565UHSB-B1 · Portrait · 4K
 * Viewport: 1080 × 1920 px (logisch)
 * Mode:     Dark (OLED/QLED-optimiert, tiefschwarz)
 *
 * Struktur:
 *   1.  CSS Custom Properties
 *   2.  Reset & Base
 *   3.  Layout-Gerüst
 *   4.  Header
 *   5.  Hero: Heutige Tagung
 *   6.  Hero: Carousel (kein Event heute)
 *   7.  Upcoming-Tagungen Grid
 *   8.  Aktuelles + QR
 *   9.  Medien-Block (Instagram / Diashow / Video)
 *   10. Zitat / Motto
 *   11. Akademie-Fakten
 *   12. Newsticker
 *   13. Badges & Utilities
 *   14. Animationen & Keyframes
 *   15. Layout-Switching (State-Klassen)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */
/* jost-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('../../fonts/jost-v18-latin-regular.woff2') format('woff2');
}

/* jost-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 500;
    src: url('../../fonts/jost-v18-latin-500.woff2') format('woff2');
}

:root {
    --is-scale:        1;
    /* Farben */
    --is-bg:           #ffffff;
    --is-bg-card:      #ffffff;
    --is-bg-card-hover:#f2f5fb;
    --is-bg-header:    #ffffff;
    --is-bg-ticker:    #c21b38;
    --is-border:       #d9e0ea;
    --is-border-light: #c8d1dd;
    --is-text:         #1f2a37;
    --is-text-muted:   #5e6b7a;
    --is-text-dim:     #7a8796;
    --is-accent:       #c21b38;
    --is-accent-glow:  rgba(194, 27, 56, 0.3);
    --is-green:        #3fb950;
    --is-blue:         #58a6ff;

    /* Typografie */
    --is-font:         'Jost', sans-serif;
    --is-font-mono:    'Jost', sans-serif;
    --is-fs-base:      clamp(15px, 1.5vw, 20px);
    --is-font-scale:   1.08;

    /* Layout-Höhen (anpassbar je nach Inhaltsstruktur) */
    --is-header-h:     88px;
    --is-ticker-h:     72px;
    --is-hero-h:       340px;   /* Carousel ohne Tagung heute */
    --is-today-h:      420px;   /* Heutige Tagung (Normal) */
    --is-today-lg-h:   500px;   /* Heutige Tagung (Groß) */

    /* Spacing */
    --is-gap:          16px;
    --is-gap-lg:       24px;
    --is-radius:       10px;
    --is-radius-lg:    16px;

    /* Animationen */
    --ticker-duration: 45s;
    --today-color:     #c21b38;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--is-bg);
    color: var(--is-text);
    font-family: var(--is-font);
    font-size: calc(var(--is-fs-base) * var(--is-font-scale));
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    cursor: auto;
}

html {
    margin-top: 0 !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

body {
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    pointer-events: none !important;
}

img, video {
    display: block;
    max-width: 100%;
}

/* Bootstrap-Overrides für Infoscreen */
.carousel-item { transition: transform .7s ease-in-out !important; }
.carousel-control-prev,
.carousel-control-next { display: none !important; }
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity !important;
}
.carousel-fade .carousel-item.active { opacity: 1; }

html.is-refreshing .is-layout {
    opacity: 0;
    transition: opacity .28s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT-GERÜST
   ═══════════════════════════════════════════════════════════════════════════ */
.is-layout {
    display: flex;
    flex-direction: column;
    width: 1080px;
    height: 1920px;
    overflow: hidden;
    background: var(--is-bg);
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(var(--is-scale));
    transform-origin: top left;
}

.is-header {
    height: var(--is-header-h);
    flex-shrink: 0;
}

.is-main {
    flex: 0 0 auto;
    height: calc(1920px - var(--is-header-h) - var(--is-ticker-h));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.is-ticker {
    height: var(--is-ticker-h);
    min-height: var(--is-ticker-h);
    flex: 0 0 auto;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Sektion-Proportionen */
.is-hero-section   { flex-shrink: 0; }
.is-upcoming-section { flex: 0 0 auto; min-height: 0; overflow: hidden; }
.is-bottom-section { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.is-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--is-gap);
    padding: 0 28px;
    background: var(--is-bg-header);
    border-bottom: 1px solid var(--is-border);
    position: relative;
    z-index: 10;
}

/* Subtiles Gradient-Highlight oben */
.is-header::before {
    content: none;
}

/* Logo */
.is-header-logo {
    display: flex;
    align-items: center;
}
.is-header-logo a,
.is-header-logo img {
    display: block;
    height: 48px;
    width: auto;
}
.is-header-logo img.custom-logo { height: 48px; width: auto; }
.is-logo-img { height: 48px; width: auto; filter: brightness(1.1); }

/* Mitte: Begrüßung + Datum */
.is-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
    text-align: center;
}
.is-greeting {
    font-size: 1.25em;
    font-weight: 500;
    color: var(--is-text);
    letter-spacing: .02em;
    line-height: 1.2;
    margin: 0;
}
.is-date {
    font-size: .92em;
    color: var(--is-text-muted);
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: .03em;
    line-height: 1.15;
}

/* Rechts: Uhr + Wetter */
.is-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
}
.is-header-day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--is-text);
    font-size: .82em;
    font-weight: 500;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.is-clock {
    font-size: 1.95em;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-family: var(--is-font-mono);
    color: var(--is-text);
    letter-spacing: .04em;
    line-height: 1;
    margin: 0;
}
.is-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .95em;
    color: var(--is-text-muted);
}
.is-weather-icon { font-size: 1.2em; }
.is-weather-temp { font-weight: 500; color: var(--is-blue); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. HERO: HEUTIGE TAGUNG
   ═══════════════════════════════════════════════════════════════════════════ */
.is-today {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--is-bg-card);
    overflow: hidden;
    display: grid;
    grid-template-rows: var(--is-hero-h) auto;
    animation: fadeInDown .6s ease;
}

.is-body.has-today .is-hero-section {
    flex: 1 1 auto;
    min-height: 0;
}

.is-body.has-today .is-hero-section .is-today {
    height: 100%;
    grid-template-rows: var(--is-hero-h) minmax(0, 1fr);
}

.is-today-visual {
    position: relative;
    background: var(--is-bg-card) no-repeat center center / cover;
    overflow: hidden;
    border-bottom: 3px solid var(--today-color);
}

.is-today-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, .15) 0%,
        rgba(13, 17, 23, .55) 50%,
        rgba(13, 17, 23, .92) 100%
    );
    z-index: 1;
}

.is-today-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    z-index: 2;
}

.is-today-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

.is-today-main-left {
    min-width: 0;
}

.is-today-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 135px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(0,0,0,.42);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
}

.is-today-qr-plate {
    width: 120px;
    height: 120px;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-today-qr-canvas {
    width: 125px;
    height: 125px;
    flex: 0 0 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-today-qr-canvas canvas,
.is-today-qr-canvas img {
    width: 125px !important;
    height: 125px !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.is-today-qr .is-today-qr-label {
    width: 100%;
    font-size: .8em;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    margin: 0 !important;
}

.is-today-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.is-today-title {
    font-size: 2.2em;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    margin-bottom: 6px;
    /* Max 2 Zeilen */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.is-today-subtitle {
    font-size: 1.05em;
    color: rgba(255,255,255,.8);
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.is-today-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: .92em;
    color: rgba(255,255,255,.7);
    margin-bottom: 12px;
}
.is-today-date { font-weight: 500; }
.is-today-day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .78em;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
}

/* Wegweiser + Bus */
.is-today-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.is-today-wegweiser,
.is-today-bus {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .95em;
    color: #fff;
    font-weight: 500;
}

.is-wegweiser-arrow {
    font-size: 1.4em;
    color: var(--today-color);
    font-weight: 500;
    animation: arrowPulse 2s ease-in-out infinite;
}
.is-bus-icon { font-size: 1.2em; }

.is-today-program {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 22px 12px;
    background: var(--is-bg-card);
    border-bottom: 1px solid var(--is-border);
    overflow: hidden;
}

.is-today-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    height: auto;
    min-height: 0;
    padding: 8px 20px 10px;
    align-items: start;
    overflow: hidden;
}

.is-today-program-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.is-today-program {
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    padding: 10px 12px;
    min-height: 0;
    flex: 0 0 auto;
    align-self: start;
    border-bottom: 1px solid var(--is-border);
    width: 100%;
}

.is-today-program-list {
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.is-today-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.is-body.has-today.agenda-followups-fullwidth .is-today-side {
    align-self: start;
}

.is-side-upcoming,
.is-side-aktuelles,
.is-side-mediathek {
    min-height: 0;
    overflow: hidden;
}

.is-side-upcoming .is-section-header,
.is-side-aktuelles .is-section-header,
.is-side-mediathek .is-section-header {
    padding-top: 16px;
    padding-bottom: 4px;
}

.is-side-upcoming-stack {
    display: grid;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.is-side-upcoming-stack-single {
    grid-template-rows: minmax(0, 1fr);
}

.is-side-upcoming-stack-double {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.is-side-upcoming-slot {
    display: flex;
    min-height: 0;
}

.is-side-upcoming-slot .is-tagung-card {
    height: 100%;
}

.is-side-upcoming-carousel .carousel-item,
.is-side-aktuelles-carousel .carousel-item {
    padding-bottom: 0;
}

.is-side-upcoming-carousel .carousel-inner,
.is-side-upcoming-carousel .carousel-item {
    height: 100%;
}

.is-side-upcoming .is-card-img {
    height: 66px;
}

.is-side-upcoming .is-card-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 2px;
}

.is-side-upcoming .is-card-sub {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.is-extra-list-side {
    grid-template-columns: 1fr;
}

.is-today-side .is-extra-list-side {
    grid-template-columns: 1fr;
}

.is-today-side .is-extra-item {
    width: 100%;
}

.is-side-media-player {
    min-height: 0;
    overflow: hidden;
}

.is-today-side .is-media-player-section,
.is-today-side .is-media-player-frame {
    width: 100%;
}

.is-today-program-item {
    min-width: 0;
    display: block;
    padding: 0 2px 6px;
    margin-bottom: 6px;
    width: 100%;
}

.is-today-program-item:last-child {
    margin-bottom: 0;
}

.is-today-program-followups {
    margin-top: 4px;
    padding-left: 0;
    border-left: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.is-today-program-followup {
    min-width: 0;
    width: 100%;
}

.is-today-program-time {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #aebaca;
    background: #dbe4ee;
    color: #223244;
    font-size: .74em;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
    font-variant-numeric: tabular-nums;
}

.is-today-program-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.is-today-program-item-title {
    margin: 0;
    font-size: .93em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--is-text);
}

.is-today-program-desc {
    margin: 2px 0 0;
    font-size: .78em;
    line-height: 1.35;
    color: var(--is-text-muted);
}

.is-today-program-followup-title {
    margin: 0;
    font-size: .93em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--is-text);
}

.is-today-program-followup-desc {
    margin: 1px 0 0;
    font-size: .78em;
    line-height: 1.35;
    color: var(--is-text-muted);
}

.is-today-program-empty {
    margin: 0;
    font-size: .88em;
    color: var(--is-text-muted);
}

.is-body.has-today.agenda-extreme .is-side-aktuelles,
.is-body.has-today.agenda-extreme .is-side-mediathek .is-extra-item:nth-child(n+2) {
    display: none;
}

/* Pulsierender Punkt */
.is-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--is-green);
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(255,255,255,.45);
    animation: pulse 1.3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. HERO: CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */
.is-hero-carousel {
    height: var(--is-hero-h);
    overflow: hidden;
    border-bottom: 0;
}
.is-hero-carousel .carousel-inner,
.is-hero-carousel .carousel-item { height: 100%; }

.is-hero-slide {
    position: relative;
    height: 100%;
    background: var(--is-bg-card) no-repeat center center / cover;
}

.is-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,17,23,.1) 0%,
        rgba(13,17,23,.75) 100%
    );
}

.is-hero-caption {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
}
.is-hero-title {
    font-size: 2em;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.is-hero-subtitle {
    font-size: .95em;
    color: rgba(255,255,255,.8);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.is-hero-date {
    font-size: .88em;
    color: rgba(255,255,255,.65);
}

.is-hero-accent-bar {
    display: none;
}

.is-hero-indicators {
    bottom: 14px !important;
}
.is-hero-indicators button {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.4) !important;
    opacity: 1 !important;
}
.is-hero-indicators .active {
    background: #fff !important;
    width: 40px;
}

.is-hero-progress-track {
    position: relative;
    height: 2px;
    background: #e8eef5;
    overflow: hidden;
}

.is-hero-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--is-accent);
}

.is-hero-progress-run {
    animation-name: heroProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. UPCOMING TAGUNGEN GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.is-upcoming-section {
    padding: 0 20px 4px;
    display: flex;
    flex-direction: column;
}

.is-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0 2px;
    flex-shrink: 0;
}
.is-section-title-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}
.is-section-title {
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--is-text-muted);
}

.is-countdown-pill {
    background: var(--is-accent);
    color: #fff;
    font-size: .78em;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Grid: 3 Spalten */
.is-tagungen-grid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.is-upcoming-carousel {
    flex: 0 0 auto;
    min-height: 0;
}

.is-upcoming-carousel .carousel-inner,
.is-upcoming-carousel .carousel-item {
    height: 100%;
}

.is-upcoming-carousel .carousel-item {
    padding-bottom: 2px;
}

.is-upcoming-slide-frame {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.is-upcoming-grid-row > [class*="col-"] {
    display: flex;
}

.is-upcoming-grid-row {
    min-height: 0;
    margin-bottom: 0;
}

.is-upcoming-grid-row .is-tagung-card {
    height: 100%;
}

/* Tagungskarte */
.is-tagung-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--is-bg-card);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    overflow: hidden;
    position: relative;
    transition: border-color .3s ease;
}

.is-tagung-card-placeholder {
    visibility: hidden;
    pointer-events: none;
}

/* Kleines Bild oben */
.is-card-img {
    height: 80px;
    background: var(--is-border) no-repeat center center / cover;
    flex-shrink: 0;
    position: relative;
}
.is-card-badge-online,
.is-card-badge-full {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: .7em;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
}
.is-card-badge-online { background: #1f6feb; color: #fff; }
.is-card-badge-full   { background: #c21b38; color: #fff; }

/* Card Body */
.is-card-body {
    padding: 10px 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Farbbalken links */
.is-card-accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 3px;
    width: auto;
    background: var(--card-color, var(--is-accent));
    border-radius: 0;
}

.is-card-thema {
    font-size: .72em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
    display: block;
}

.is-card-title {
    font-size: .93em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--is-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
    margin-bottom: 4px;
}

.is-card-sub {
    font-size: .78em;
    color: var(--is-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.is-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 6px;
}
.is-card-date {
    font-size: .76em;
    color: var(--is-text-muted);
    font-weight: 500;
    line-height: 1.2;
}
.is-card-nr {
    font-size: .7em;
    color: var(--is-text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. AKTUELLES + QR-CODE
   ═══════════════════════════════════════════════════════════════════════════ */
.is-upcoming-header,
.is-aktuelles-header {
    align-items: center;
    justify-content: flex-start;
}

.is-page-count {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: var(--is-text-muted);
    white-space: nowrap;
    text-transform: inherit;
    letter-spacing: inherit;
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    gap: 0;
    line-height: 1;
}

.is-page-progress-track {
    position: relative;
    height: 2px;
    background: #e8eef5;
    border-radius: 999px;
    width: 100%;
    overflow: hidden;
    margin: 1px 0 8px;
}

.is-page-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--is-accent);
}

.is-page-progress-run {
    animation-name: heroProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.is-upcoming-grid,
.is-aktuelles-grid {
    align-content: start;
}

.is-upcoming-grid > .col,
.is-aktuelles-grid > .col { display: flex; min-width: 0; }

.is-upcoming-grid-row,
.is-aktuelles-grid-row {
    margin-bottom: 0.75rem;
}

.is-upcoming-grid-row:last-child,
.is-aktuelles-grid-row:last-child {
    margin-bottom: 0;
}

.is-upcoming-carousel .carousel-item,
.is-aktuelles-carousel .carousel-item {
    padding-bottom: 0;
}

.is-bottom-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--is-gap);
    padding: 0 20px 8px;
    flex-shrink: 0;
    padding-top: 4px;
    align-items: start;
}

.is-media-row {
    padding: 12px 20px 12px;
    flex-shrink: 0;
}

.is-aktuelles-col {
    overflow: hidden;
    align-self: start;
}

/* Titel über Aktuelles */
.is-aktuelles-col .is-section-title {
    margin-bottom: 8px;
}

.is-aktuelles-carousel { overflow: hidden; }

.is-aktuelles-carousel,
.is-aktuelles-carousel .carousel-inner,
.is-aktuelles-carousel .carousel-item {
    min-height: 0;
    height: auto;
}

.is-aktuelles-item {
    display: grid !important;
    grid-template-columns: 130px 1fr auto;
    gap: 14px;
    align-items: start;
    background: var(--is-bg-card);
    border-radius: var(--is-radius);
    border: 1px solid var(--is-border);
    padding: 12px 14px 10px;
    min-height: 0;
    height: 100%;
}

.is-ak-img {
    width: 130px;
    height: 100%;
    min-height: 80px;
    max-height: 130px;
    background: var(--is-border) no-repeat center center / cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.is-ak-body {
    min-width: 0;
    overflow: hidden;
}
.is-ak-type {
    display: inline-block;
    font-size: .72em;
    font-weight: 500;
    color: var(--is-accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}
.is-ak-title {
    font-size: .97em;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.is-ak-excerpt {
    font-size: .82em;
    color: var(--is-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}
.is-ak-date {
    font-size: .76em;
    color: var(--is-text-dim);
    margin-top: 0;
    margin-bottom: 0 !important;
}

/* QR-Code */
.is-ak-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.is-qr-canvas {
    width: 90px;
    height: 90px;
}
.is-qr-canvas canvas,
.is-qr-canvas img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 6px;
}
.is-qr-label {
    font-size: .68em;
    color: var(--is-text-dim);
    text-align: center;
    white-space: nowrap;
    margin: 0 !important;
}

/* Aktuelles-Indicators */
.is-ak-indicators {
    position: static !important;
    display: none;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}
.is-ak-indicators button {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--is-border-light) !important;
    opacity: 1 !important;
    border: none;
}
.is-ak-indicators .active { background: var(--is-accent) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. MEDIEN-BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */
.is-media-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.is-media-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.is-extra-stream {
    border: 0;
    background: transparent;
    padding: 0;
}

.is-extra-title {
    margin: 0 0 8px;
    font-size: 1em;
    font-weight: 600;
    color: var(--is-text);
}

.is-extra-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.is-extra-item {
    height: 100%;
}

.is-extra-thumb {
    position: relative;
    background-size: cover;
    background-position: center;
}

.is-extra-play {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.is-extra-play svg {
    width: 25%;
    height: auto;
    display: block;
}

.is-extra-body {
    min-width: 0;
}

.is-extra-type {
    margin: 0 0 2px;
    font-size: .7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--is-accent);
}

.is-extra-text {
    margin-bottom: 6px;
}

.is-extra-qr-wrap {
    align-items: center;
}

.is-extra-qr {
    width: 90px;
    height: 90px;
}

.is-extra-qr canvas,
.is-extra-qr img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 6px;
}

.is-extra-qr-label {
    color: var(--is-text-dim);
    margin: 0 !important;
}

.is-media-player-section {
    width: 50%;
    min-width: 0;
}

.is-media-lower {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    align-items: stretch;
}

.is-media-lower.has-images {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.is-media-lower .is-media-player-section {
    width: auto;
}

.is-media-lower > * {
    min-width: 0;
}

.is-media-player-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--is-radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--is-border);
}

.is-media-player-mixed {
    position: relative;
}

.is-media-player-mixed .is-media-player-video,
.is-media-player-mixed .is-media-player-yt-host {
    position: absolute;
    inset: 0;
}

.is-media-player-yt-host {
    background: #000;
}

.is-media-player-hidden {
    display: none !important;
}

.is-media-player-video,
.is-media-player-yt {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
    background: #000;
}

.is-images-module {
    min-width: 0;
}

.is-images-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--is-radius);
    border: 1px solid var(--is-border);
    background: #000;
    overflow: hidden;
}

.is-images-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .85s ease;
    pointer-events: none;
}

.is-images-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.is-images-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.is-images-module-side .is-section-header {
    padding-top: 16px;
    padding-bottom: 4px;
}

.is-today-side .is-images-module {
    width: 100%;
}

/* Instagram-Grid */
.is-instagram-grid { display: flex; flex-direction: column; height: 100%; }

.is-ig-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1em;
}
.is-ig-icon { font-size: 1.1em; }

.is-ig-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    flex: 1;
}
/* Bei 3–4 Posts: 2×2 Grid; bei 1 Post: Vollbild */
.is-ig-posts:has(> :nth-child(3)) { grid-template-columns: repeat(2, 1fr); }
.is-ig-posts:has(> :only-child)   { grid-template-columns: 1fr; }

.is-ig-item {
    position: relative;
    border-radius: var(--is-radius);
    overflow: hidden;
    background: var(--is-bg-card);
    aspect-ratio: 1;
}
.is-ig-img {
    width: 100%;
    height: 100%;
    background: no-repeat center center / cover;
    transition: transform .5s ease;
}
.is-ig-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    color: rgba(255,255,255,.85);
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Diashow */
.is-slideshow-carousel { height: 100%; border-radius: var(--is-radius); overflow: hidden; }
.is-slideshow-carousel .carousel-inner,
.is-slideshow-carousel .carousel-item { height: 100%; }
.is-slideshow-item {
    height: 100%;
    background: no-repeat center center / cover;
}

/* Video */
.is-video-wrap {
    border-radius: var(--is-radius);
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.is-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. ZITAT / MOTTO
   ═══════════════════════════════════════════════════════════════════════════ */
.is-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    background: var(--is-bg-card);
    border-left: 4px solid var(--is-accent);
    border-radius: 0 var(--is-radius) var(--is-radius) 0;
    flex: 1;
    min-height: 0;
}

.is-quote-text {
    font-size: 1.05em;
    font-style: italic;
    line-height: 1.55;
    color: var(--is-text);
    quotes: '\201E' '\201C';
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.is-quote-text::before { content: open-quote; color: var(--is-accent); font-size: 1.5em; line-height: 0; vertical-align: -.3em; margin-right: 2px; }
.is-quote-text::after  { content: close-quote; color: var(--is-accent); font-size: 1.5em; line-height: 0; vertical-align: -.3em; margin-left: 2px; }

.is-quote-author {
    margin-top: 12px;
    font-size: .85em;
    color: var(--is-text-muted);
    font-style: normal;
}
.is-quote-author::before { content: '— '; }

.is-quote-compact {
    padding: 12px 16px;
    margin-top: 8px;
    flex: 0;
}
.is-quote-compact .is-quote-text { -webkit-line-clamp: 3; line-clamp: 3; font-size: .9em; }

/* ═══════════════════════════════════════════════════════════════════════════
   11. AKADEMIE-FAKTEN (automatischer Fallback)
   ═══════════════════════════════════════════════════════════════════════════ */
.is-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--is-bg-card);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    height: 100%;
    justify-content: center;
}

.is-fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .5s ease;
    background: transparent;
}
.is-fact-item.is-fact-active {
    opacity: 1;
    background: rgba(255,255,255,.03);
}

.is-fact-number {
    font-size: 2.8em;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--is-text);
    line-height: 1;
}
.is-fact-plus {
    font-size: .6em;
    vertical-align: super;
    color: var(--is-accent);
}
.is-fact-label {
    font-size: .82em;
    color: var(--is-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. NEWSTICKER
   ═══════════════════════════════════════════════════════════════════════════ */
.is-ticker {
    display: flex;
    align-items: stretch;
    height: var(--is-ticker-h);
    min-height: var(--is-ticker-h);
    width: 100%;
    align-self: stretch;
    background: var(--is-bg-ticker);
    color: #fff;
    overflow: hidden;
    gap: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    padding: 0;
}

.is-ticker-label {
    flex-shrink: 0;
    padding: 0 18px;
    font-size: .82em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    background: rgba(0,0,0,.25);
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
}

.is-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: var(--is-ticker-h);
    min-height: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 12px;
}
/* Fade-out Kante links */
.is-ticker-track-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(to right, var(--is-bg-ticker), transparent);
    z-index: 2;
}

.is-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    animation: tickerScroll var(--ticker-duration, 45s) linear infinite;
    will-change: transform;
}

.is-ticker-track[data-speed="fast"] { --ticker-duration: 24s; }
.is-ticker-track[data-speed="medium"] { --ticker-duration: 38s; }
.is-ticker-track[data-speed="slow"] { --ticker-duration: 54s; }

.is-ticker-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1.05;
    font-size: 2.2em;
    font-weight: 400;
    padding: 0 8px;
}
.is-ticker-link { color: #fff; }
.is-ticker-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 38px;
    flex: 0 0 38px;
    margin: 0 16px;
    color: transparent;
    font-size: 0;
    width: auto;
    font-size: .78em;
    opacity: .95;
}

.is-ticker-sep::before {
    content: '';
    line-height: 1.1;
    display: block;
    width: 38px;
    height: 38px;
    background: no-repeat center center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.62 127.62'%3E%3Cpath fill='%23fff' d='M59.62 60.99s-22.38.27-37.79-12.28C9.51 38.68 1.36 23.88 0 0h17.46s1.63 17.64 8.19 27.97c7.09 11.19 17.46 13.92 17.46 13.92V0h16.51v60.99Z'/%3E%3Cpath fill='%23fff' d='M68 60.99s22.38.27 37.79-12.28c12.31-10.02 20.46-24.83 21.83-48.71h-17.46s-1.64 17.64-8.19 27.97c-7.1 11.19-17.47 13.92-17.47 13.92V0H68v60.99Z'/%3E%3Cpath fill='%23fff' d='M59.62 66.63s-22.38-.27-37.79 12.28C9.51 88.94 1.36 103.74 0 127.62h17.46s1.63-17.64 8.19-27.97c7.09-11.19 17.46-13.92 17.46-13.92v41.89h16.51V66.63Z'/%3E%3Cpath fill='%23fff' d='M68 66.63s22.38-.27 37.79 12.28c12.31 10.02 20.46 24.83 21.83 48.71h-17.46s-1.64-17.64-8.19-27.97c-7.1-11.19-17.47-13.92-17.47-13.92v41.89H68V66.63Z'/%3E%3C/svg%3E");
}

.is-today-qr-label span {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. BADGES & UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.is-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75em;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
}

.is-badge-today {
    background: rgba(63, 185, 80, .18);
    border: 1px solid var(--is-green);
    color: var(--is-green);
}
.is-badge-online {
    background: rgba(31, 111, 235, .18);
    border: 1px solid var(--is-blue);
    color: var(--is-blue);
}

html.is-refreshing .is-layout {
    opacity: 0;
    transition: opacity .28s ease;
}

/* Keine Trennlinien zwischen Sektionen */

/* ═══════════════════════════════════════════════════════════════════════════
   14. ANIMATIONEN & KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ticker-Scroll */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pulsierender Punkt (live indicator) */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, .6); }
    50%       { box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
}

/* Wegweiser-Pfeil-Animation */
@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50%       { transform: translateX(5px); opacity: .7; }
}

/* Karten einblenden */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* Glow-Flicker für Fakten-Übergang */
@keyframes factFadeIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Sanftes Hintergrund-Shimmer auf Header */
@keyframes shimmer {
    0%, 100% { opacity: .3; }
    50%       { opacity: .6; }
}
.is-header::before {
    animation: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. LAYOUT-SWITCHING (State-Klassen auf body/.is-body)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Zustand: Tagung läuft heute (groß) ─────────────────────────────────── */
.is-body.has-today.today-large .is-hero-section .is-today {
    height: var(--is-hero-h);
}

/* Bei großer Tagung: Tagungen-Grid kompakter (2 Reihen maximal) */
.is-body.has-today.today-large .is-tagungen-grid {
    max-height: none;
}

/* ── Zustand: Kein Ticker → mehr Platz für Inhalt ───────────────────────── */
.is-body:not(.has-ticker) .is-ticker { display: none; }
.is-body:not(.has-ticker) .is-main   { height: calc(1920px - var(--is-header-h)); }

/* ── Zustand: Kein Medium → Aktuelles breiter ───────────────────────────── */
.is-body:not(.has-media) .is-bottom-section {
    grid-template-columns: 1fr;
}
.is-body:not(.has-media) .is-aktuelles-item {
    grid-template-columns: 160px 1fr auto;
}
.is-body:not(.has-media) .is-ak-img {
    width: 160px;
    min-height: 110px;
    max-height: 160px;
}

/* ── Zustand: Kein Aktuelles ────────────────────────────────────────────── */
.is-body:not(.has-aktuelles) .is-aktuelles-col { display: none; }
.is-body:not(.has-aktuelles) .is-bottom-section { grid-template-columns: 1fr; }

