@import url("./fonts.css");
/**
 * ZUSÄTZLICHE STYLES FÜR DIE ÖFFENTLICHE AUFGUSSPLAN-ANZEIGE
 *
 * Diese Datei enthält CSS-Regeln, die zusätzlich zu Tailwind geladen werden.
 * Sie enthält spezielle Styles für:
 * - TV-freundliche Anzeige
 * - Responsive Design für verschiedene Bildschirmgrößen
 * - Animierte Aufguss-Karten
 * - Timer mit Farbcodierung
 *
 * Als Anfänger solltest du wissen:
 * - Tailwind deckt 90% der Styles ab, dies sind nur Spezialfälle
 * - @media queries machen das Design responsive (verschiedene Bildschirmgrößen)
 * - CSS-Variablen (--variable) werden von Tailwind verwendet
 * - Animationen machen die UI lebendig
 * - Z-index steuert Überlagerungen (höhere Werte = oben)
 */

/* ============================================================================
   VOLLBILD-MODUS FÜR TV-ANZEIGE
   ============================================================================ */

.fullscreen {
    /* Vollbild-Positionierung */
    position: fixed;        /* Fixiert auf dem Bildschirm */
    top: 0;                 /* Oben ansetzen */
    left: 0;                /* Links ansetzen */
    width: 100vw;           /* Vollbild-Breite (Viewport Width) */
    height: 100vh;          /* Vollbild-Höhe (Viewport Height) */

    /* Schwarzer Hintergrund für TV-Modus */
    background: #000;

    /* Ganz oben liegen (über allen anderen Elementen) */
    z-index: 9999;
}

/* ============================================================================
   RESPONSIVE DESIGN - VERSCHIEDENE BILDSCHIRMGRÖßEN
   ============================================================================ */

/* TABLET UND HANDY (max. 768px Breite) */
@media (max-width: 768px) {
    .container {
        /* Weniger Innenabstand auf kleinen Bildschirmen */
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* TV-AUFLÖSUNG (min. 1920px Breite) */
@media (min-width: 1920px) {
    .container {
        /* Größere maximale Breite für TV-Bildschirme */
        max-width: 1800px;
    }

    .text-3xl {
        /* Größere Schrift für TV-Fernsehen */
        font-size: 3rem;
    }
}

/* ============================================================================
   AUFGUSS-KARTEN STYLING
   ============================================================================ */

/* NORMALE AUFGUSS-KARTE */
.aufguss-card {
    /* Schöner Farbverlauf als Hintergrund */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Weißer Text für guten Kontrast */
    color: white;

    /* Abgerundete Ecken */
    border-radius: 12px;

    /* Innenabstand */
    padding: 1.5rem;

    /* Außenabstand zwischen Karten */
    margin-bottom: 1rem;

    /* Schatten für Tiefe */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* AKTUELL LAUFENDER AUFGUSS - HERVORGEHOBEN */
.aufguss-card.current {
    /* Anderer Farbverlauf (Rosa-Orange) für aktuellen Aufguss */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}


/* ============================================================================
   TIMER STYLING - COUNTDOWN FÜR LAUFENDEN AUFGUSS
   ============================================================================ */

/* GRUNDLAGEN für Timer-Anzeige */
.timer {
    /* Monospace-Schrift für gleiche Ziffernbreite */
    font-family: 'Courier New', monospace;

    /* Große, fette Schrift */
    font-size: 2rem;
    font-weight: bold;

    /* Zentrierte Ausrichtung */
    text-align: center;
}

/* WARNUNG - Unter 5 Minuten verbleibend */
.timer.warning {
    color: #ff6b6b;  /* Hellrot für Warnung */
}

/* GEFAHR - Unter 1 Minute verbleibend */
.timer.danger {
    color: #ff4757;  /* Dunkelrot für Gefahr */

    /* Blinkende Animation für Dringlichkeit */
    animation: blink 1s infinite;
}

/* BLINK-ANIMATION für kritische Zeit */
@keyframes blink {
    0%, 50% {
        opacity: 1;      /* Sichtbar */
    }
    51%, 100% {
        opacity: 0.3;    /* Halbtransparent */
    }
}
/* ============================================================================
   NAECHSTER AUFGUSS (HERVORHEBUNG + POPUP)
   ============================================================================ */

.next-aufguss-row {
    background-color: var(--plan-row-bg-highlight, rgba(255, 255, 255, 0.6));
    outline: none;
}

.next-aufguss-row td,
.next-aufguss-row .plan-list-cell,
.next-aufguss-row .display-mode {
    transform-origin: center;
}

.next-aufguss-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.next-aufguss-overlay.hidden {
    display: none;
}

.next-aufguss-card {
    background: var(--next-aufguss-theme-color, rgba(255, 255, 255, 0.92));
    color: var(--next-aufguss-text-color, #111827);
    border-radius: clamp(24px, 2vw, 72px);
    padding: clamp(1.5rem, 2vw, 4rem) clamp(2rem, 2.6vw, 5rem);
    text-align: center;
    max-width: clamp(720px, 40vw, 1400px);
    width: 90%;
    border: clamp(2px, 0.1vw, 6px) solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 clamp(26px, 2.8vw, 90px) clamp(50px, 3.6vw, 160px) rgba(0, 0, 0, 0.38),
        0 18px 44px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.next-aufguss-header {
    font-size: clamp(1.25rem, 1.6vw, 3.2rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: clamp(0.75rem, 1vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.next-aufguss-title {
    font-size: clamp(2.5rem, 3.2vw, 6rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: clamp(0.5rem, 0.8vw, 1.6rem);
}

.next-aufguss-time {
    font-size: clamp(1.5rem, 2vw, 4rem);
    font-weight: 600;
    color: #2563eb;
    margin-bottom: clamp(0.5rem, 0.8vw, 1.6rem);
}

.next-aufguss-sauna {
    font-size: clamp(1rem, 1.4vw, 3rem);
    font-weight: 600;
    color: #374151;
    margin-bottom: clamp(1rem, 1.6vw, 3rem);
}

.next-aufguss-countdown {
    font-size: clamp(3rem, 3.8vw, 8rem);
    font-weight: 800;
    color: #111827;
    background: rgba(255, 255, 255, 0.8);
    border: clamp(2px, 0.1vw, 6px) solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: clamp(0.75rem, 1vw, 2rem) clamp(2rem, 2.4vw, 5rem);
    display: inline-block;
}

#next-aufguss-overlay > div {
    width: min(92vw, clamp(900px, 70vw, 2600px));
    max-width: none;
    margin: 0 auto;
    max-height: fit-content;
    border-radius: clamp(20px, 1.5vw, 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#next-aufguss-body {
    overflow: auto;
}

#next-aufguss-overlay > div > .flex {
    padding: clamp(1rem, 2vw, 3rem) clamp(1.5rem, 2.5vw, 4rem);
}

#next-aufguss-overlay > div > .flex h3 {
    font-size: clamp(1.5rem, 2.2vw, 8rem);
    line-height: 1.2;
}

#next-aufguss-body {
    padding: clamp(1.5rem, 2.5vw, 4rem);
    overflow: hidden;
}

#next-aufguss-overlay .text-gray-900,
#next-aufguss-overlay .text-gray-800,
#next-aufguss-overlay .text-gray-700,
#next-aufguss-overlay .text-gray-600,
#next-aufguss-overlay .text-gray-500,
#next-aufguss-overlay .text-gray-400 {
    color: var(--next-aufguss-text-color, #111827);
}

#next-aufguss-body .grid > .flex.flex-col.gap-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 16vw, 320px), 1fr));
    gap: clamp(0.8rem, 1.2vw, 2rem);
}

#next-aufguss-body .next-aufguss-people--stacked {
    grid-column: 1 / -1;
}

#next-aufguss-body .grid > .flex.flex-col.gap-3 img.h-40 {
    height: auto !important;
    max-height: clamp(180px, 18vw, 520px) !important;
    width: 100%;
    object-fit: contain;
}

#next-aufguss-body .next-aufguss-people img.h-40 {
    max-height: clamp(150px, 12vw, 420px) !important;
}

#next-aufguss-body .next-aufguss-people .h-40:not(img) {
    min-height: clamp(140px, 11vw, 380px);
}

#next-aufguss-body .text-8xl {
    font-size: clamp(4rem, 6vw, 24rem) !important;
}

#next-aufguss-countdown {
    color: #000000 !important;
    padding: clamp(1.2rem, 1.8vw, 3rem) clamp(2.8rem, 3.2vw, 6rem);
}

#next-aufguss-countdown.is-pulsing {
    animation: next-aufguss-pulse 320ms ease-out;
}

@keyframes next-aufguss-pulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

#next-aufguss-body .text-3xl {
    font-size: clamp(1.8rem, 2.6vw, 10.4rem) !important;
    line-height: 1.15;
    margin-bottom: clamp(0.4rem, 0.8vw, 1.8rem);
}

#next-aufguss-body .flex.flex-col.gap-2 {
    gap: clamp(0.35rem, 0.7vw, 1.4rem);
}

#next-aufguss-body .text-lg {
    font-size: clamp(1.1rem, 1.9vw, 7.6rem) !important;
    line-height: 1.15;
}

#next-aufguss-body .text-sm {
    font-size: clamp(0.9rem, 1.6vw, 3rem) !important;
    line-height: 1.15;
}

#next-aufguss-body img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.8);
}

#next-aufguss-body .next-aufguss-info-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: center;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    margin-top: 0.5rem;
}

#next-aufguss-body .next-aufguss-info-label {
    text-align: left;
    white-space: nowrap;
    justify-self: start;
}

#next-aufguss-body .next-aufguss-info-grid > * {
    justify-self: start;
}

#next-aufguss-body .next-aufguss-staerke-icons,
#next-aufguss-body .next-aufguss-staerke-icons .plan-list-staerke-icons {
    display: flex;
    justify-content: flex-start;
}

#next-aufguss-body .next-aufguss-staerke-icons .plan-list-staerke-icons {
    margin: 0;
    justify-content: flex-start;
}

#next-aufguss-body .next-aufguss-staerke-icons .plan-list-staerke-icons {
    width: auto;
    min-height: 0;
    padding: 0;
    gap: 0.4rem;
}

#next-aufguss-body .next-aufguss-staerke-icons .plan-list-staerke-icon {
    width: min(90px, 3rem);
    height: min(90px, 3rem);
    object-fit: cover;
}

#next-aufguss-body .plan-list-staerke-icon {
    width: min(90px, 3rem);
    height: min(90px, 3rem);
    object-fit: cover;
}

#next-aufguss-body img.plan-list-staerke-icon {
    width: min(90px, 3rem);
    height: min(90px, 3rem);
    object-fit: cover;
    flex: 0 0 auto;
    display: block;
}

#next-aufguss-body img.h-72,
#next-aufguss-body img.h-40 {
    height: auto !important;
    max-height: clamp(180px, 14vw, 520px) !important;
    width: 100%;
    object-fit: contain;
}

#next-aufguss-body .h-72:not(img),
#next-aufguss-body .h-40:not(img) {
    min-height: clamp(160px, 12vw, 440px);
}

#next-aufguss-body .gap-6 {
    gap: clamp(1rem, 1.8vw, 3rem) !important;
}

/* Admin-Style fuer Public Popup (gleiche Optik wie Vorschau) */
#next-aufguss-overlay.next-aufguss-admin-style {
    --popup-card-max-width: 2600px;
    --popup-card-radius: clamp(12px, 1.2vw, 48px);
    --popup-card-pad-x: clamp(0.9rem, 1.8vw, 3.6rem);
    --popup-card-pad-y: clamp(0.7rem, 1.4vw, 2.8rem);
    --popup-header-size: clamp(1rem, 1.6vw, 5.6rem);
    --popup-title-size: clamp(1.1rem, 1.9vw, 5.2rem);
    --popup-subtitle-size: clamp(0.95rem, 1.2vw, 4.8rem);
    --popup-meta-size: clamp(0.875rem, 1.1vw, 4.2rem);
    --popup-countdown-size: clamp(2.4rem, 3.8vw, 12rem);
    --popup-countdown-pad-x: clamp(1.1rem, 1.8vw, 3.6rem);
    --popup-countdown-pad-y: clamp(0.45rem, 0.9vw, 1.6rem);
    --popup-image-max: clamp(140px, 3.8vw, 300px);
    --popup-image-max-large: clamp(180px, 4.6vw, 360px);
    --popup-icon-size: clamp(28px, 2.2vw, 120px);
    --popup-gap: clamp(0.35rem, 0.8vw, 1.8rem);
}

@media (min-width: 3840px) {
    #next-aufguss-overlay.next-aufguss-admin-style {
        --popup-card-max-width: 3200px;
        --popup-image-max: 600px;
        --popup-image-max-large: 720px;
    }
}

@media (min-width: 2560px) {
    #next-aufguss-overlay.next-aufguss-admin-style {
        --popup-image-max: 225px;
        --popup-image-max-large: 270px;
    }
}

@media (min-width: 7680px) {
    #next-aufguss-overlay.next-aufguss-admin-style {
        --popup-card-max-width: 3800px;
        --popup-image-max: 600px;
        --popup-image-max-large: 720px;
        --popup-icon-size: 240px;
        --popup-header-size: clamp(1.4rem, 2.4vw, 8rem);
        --popup-title-size: clamp(1.6rem, 3.2vw, 7.6rem);
        --popup-subtitle-size: clamp(1.25rem, 2.4vw, 6.4rem);
        --popup-meta-size: clamp(1.05rem, 1.8vw, 5.2rem);
        --popup-countdown-size: clamp(4rem, 6.6vw, 22rem);
    }
}

#next-aufguss-overlay.next-aufguss-admin-style > div {
    width: min(94vw, var(--popup-card-max-width));
    max-width: none;
    max-height: 92vh;
    margin-left: clamp(0.75rem, 2vw, 4rem);
    margin-right: clamp(0.75rem, 2vw, 4rem);
    border-radius: var(--popup-card-radius);
}

#next-aufguss-overlay.next-aufguss-admin-style > div > .flex {
    padding: clamp(0.5rem, 1vw, 1.6rem) clamp(0.75rem, 1.4vw, 2.6rem);
}

#next-aufguss-overlay.next-aufguss-admin-style > div > .flex h3 {
    font-size: var(--popup-header-size);
    line-height: 1.15;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body {
    padding: clamp(0.9rem, 1.6vw, 3.2rem);
    overflow: auto;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .text-8xl {
    font-size: var(--popup-countdown-size) !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-countdown {
    padding: var(--popup-countdown-pad-y) var(--popup-countdown-pad-x);
    border-width: clamp(1px, 0.05vw, 5px);
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .text-3xl {
    font-size: var(--popup-title-size) !important;
    line-height: 1.1 !important;
    margin-bottom: clamp(0.25rem, 0.6vw, 1.2rem) !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .flex.flex-col.gap-2 {
    gap: var(--popup-gap);
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .text-lg {
    font-size: var(--popup-subtitle-size) !important;
    line-height: 1.2 !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .text-sm {
    font-size: var(--popup-meta-size) !important;
    line-height: 1.2 !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .next-aufguss-info-label {
    font-size: var(--popup-meta-size);
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .next-aufguss-info-grid {
    column-gap: clamp(0.7rem, 1.2vw, 2.6rem);
    row-gap: clamp(0.55rem, 0.9vw, 2rem);
    margin-top: clamp(0.3rem, 0.7vw, 1.4rem);
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .plan-list-staerke-icon,
#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .next-aufguss-staerke-icons .plan-list-staerke-icon {
    width: var(--popup-icon-size);
    height: var(--popup-icon-size);
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body img.h-72 {
    height: auto !important;
    max-height: var(--popup-image-max-large) !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body img.h-40 {
    height: auto !important;
    max-height: var(--popup-image-max) !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .gap-6 {
    gap: clamp(0.75rem, 1.2vw, 2.6rem) !important;
}

#next-aufguss-overlay.next-aufguss-admin-style #next-aufguss-body .relative.z-10.flex.flex-col.gap-6 {
    gap: clamp(1rem, 1.8vw, 3.6rem) !important;
    min-height: auto !important;
}

@media (max-width: 2200px) {
    #next-aufguss-overlay.next-aufguss-admin-style {
        --popup-image-max: clamp(120px, 3vw, 240px);
        --popup-image-max-large: clamp(160px, 3.6vw, 320px);
    }
}

/* ============================================================================
   PLAN-WERBUNG (POPUP)
   ============================================================================ */

.plan-ad-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate3d(var(--plan-ad-enter-x, 110%), var(--plan-ad-enter-y, 0), 0);
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.plan-ad-wrap.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.85);
}

.global-ad-wrap {
    z-index: 70;
}

.plan-ad-wrap.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.plan-ad-wrap.is-exiting {
    opacity: 0;
    transform: translate3d(var(--plan-ad-exit-x, 110%), var(--plan-ad-exit-y, 0), 0);
}

.plan-ad-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
}

.plan-ad-wrap.is-fullscreen .plan-ad-media {
    padding: 0;
}

.plan-ad-asset {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.plan-ad-wrap.is-fullscreen .plan-ad-asset {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.plan-table-wrap {
    position: relative;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-top: 80px;
}

.kiosk-view .plan-table-wrap {
    height: 100vh;
    max-height: 100vh;
}

.kiosk-view .plan-table-wrap {
    border: 0;
}

.kiosk-view .plan-table-wrap {
    padding: 0 clamp(1rem, 2vw, 5rem) 0;
    box-sizing: border-box;
}

.plan-view-with-clock {
    position: relative;
    --plan-clock-min-width: var(--plan-clock-width, 168px);
    --plan-banner-aspect: 1.375;
    --plan-clock-display-width: min(
        max(var(--plan-clock-min-width), 12vw),
        calc((100vh - var(--plan-header-height, 96px)) * var(--plan-banner-aspect))
    );
}

.plan-view-with-clock .plan-clock-stack {
    position: fixed;
    top: 0;
    right: clamp(1rem, 2vw, 5rem);
    z-index: 50;
    width: var(--plan-clock-display-width, var(--plan-clock-width, 220px));
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100vh;
    height: 100dvh;
}

.plan-view-with-clock .plan-clock {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--plan-accent-color, #ffffff);
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-bottom-width: clamp(1px, 0.05vw, 5px);
    border-radius: 0;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    height: var(--plan-header-height, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.plan-view-with-clock .plan-clock-time {
    font-size: calc(var(--plan-header-height, 96px) * 0.42);
    font-weight: 800;
    line-height: 1;
    color: var(--plan-text-color, #111827);
}

.plan-view-with-clock .plan-clock-date {
    margin-top: 0.2rem;
    font-size: calc(var(--plan-header-height, 96px) * 0.18);
    color: var(--plan-text-color, #111827);
}

.plan-view-with-clock .plan-clock-banner {
    width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    margin-top: auto;
    margin-bottom: auto;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #111827;
    position: relative;
    z-index: 1;
}

@media (orientation: portrait) {
    .plan-view-with-clock .plan-clock-banner {
        max-height: 1080px;
        height: min(1080px, calc(100vh - var(--plan-header-height, 96px)));
    }
}

@media (orientation: landscape) {
    .plan-view-with-clock .plan-clock-banner {
        max-height: none;
        height: calc(100vh - var(--plan-header-height, 96px));
        margin-top: 0;
        margin-bottom: 0;
    }
    .plan-view-with-clock .plan-clock-banner img,
    .plan-view-with-clock .plan-clock-banner video {
        width: 100%;
        height: 100%;
    }
}

.plan-view-with-clock .plan-clock-banner img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

.plan-view-with-clock .plan-clock-banner video {
    width: 100%;
    object-fit: cover;
}

.plan-view-with-clock .plan-clock-banner-text {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: pre-wrap;
}

.plan-view-with-clock .plan-table-wrap {
    padding: 0 calc(var(--plan-clock-display-width, var(--plan-clock-width, 220px)) + var(--plan-clock-gap, 24px) + clamp(1rem, 2vw, 5rem)) 0 clamp(1rem, 2vw, 5rem);
    box-sizing: border-box;
}

.plan-view-with-clock .plan-list-body {
    padding-top: 0;
    box-sizing: border-box;
}

.kiosk-view {
    --plan-header-height: clamp(96px, 6vw, 340px);
}

.kiosk-view .plan-list-head {
    position: fixed;
    top: 0;
    left: clamp(1rem, 2vw, 5rem);
    right: clamp(1rem, 2vw, 5rem);
    z-index: 30;
    height: var(--plan-header-height);
}

.plan-view-with-clock .plan-list-head {
    right: calc(var(--plan-clock-display-width, var(--plan-clock-width, 220px)) + var(--plan-clock-gap, 24px) + clamp(1rem, 2vw, 5rem));
    left: clamp(1rem, 2vw, 5rem);
}

.kiosk-view .plan-list-body {
    padding-top: var(--plan-header-height);
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .plan-view-with-clock .plan-clock-stack {
        position: fixed;
        right: 0.75rem;
        width: min(90vw, 320px);
    }

    .plan-view-with-clock .plan-table-wrap {
        padding: 0 1rem 0;
    }
}

.kiosk-view .plan-list-head .plan-list-cell {
    font-size: clamp(1rem, 1.6vw, 5.6rem);
    letter-spacing: 0.12em;
}

.plan-table-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.plan-table-head th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--plan-accent-color, #ffffff);
}

.plan-list {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    background: transparent;
}

.plan-list-head,
.plan-list-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr 2fr 2fr 1.6fr;
    column-gap: clamp(0.5rem, 1vw, 2.2rem);
}

.plan-list-head {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--plan-accent-color, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    border-bottom-width: clamp(1px, 0.05vw, 2px);
}

.plan-row {
    background: var(--plan-row-bg, rgba(255, 255, 255, 0.35));
}

.plan-list-head .plan-list-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-list-row {
    background: var(--plan-row-bg, rgba(255, 255, 255, 0.35));
    border-bottom: 1px solid #e5e7eb;
    border-bottom-width: clamp(1px, 0.05vw, 2px);
    scroll-margin-top: clamp(80px, 4vw, 200px);
}

.plan-list-row.next-aufguss-row {
    background: var(--plan-row-bg-highlight, rgba(255, 255, 255, 0.5));
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18), 0 2px 6px rgba(17, 24, 39, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-width: clamp(1px, 0.05vw, 2px);
    transform: translateY(-1px);
}

.plan-list-cell {
    padding: 1rem 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1rem;
    color: var(--plan-text-color, #111827);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-list-body .plan-list-cell {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.35;
}

.kiosk-view .plan-list-body .plan-list-cell {
    font-size: clamp(0.875rem, 1.1vw, 4.2rem);
}

.plan-list-row .plan-list-cell:first-child {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--plan-text-color, #111827);
}

.plan-list-staerke-icons {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: min(100%, clamp(10rem, 10vw, 18rem));
    min-height: 2.75rem;
    margin: 0 auto;
    padding: 0.35rem 0;
}

.plan-list-staerke-icon {
    width: min(90px, clamp(2.5rem, 5vw, 5rem));
    height: min(90px, clamp(2.5rem, 5vw, 5rem));
    border-radius: 9999px;
    object-fit: contain;
    flex: 0 1 auto;
}

.kiosk-view .plan-list-row .plan-list-cell,
.kiosk-view .plan-list-body .plan-list-cell,
.kiosk-view .plan-list-row .text-sm,
.kiosk-view .plan-list-time,
.kiosk-view .plan-list-people,
.kiosk-view .plan-list-people .text-sm,
.kiosk-view .plan-media-stack,
.kiosk-view .plan-media-stack span,
.kiosk-view .plan-media-stack .text-sm,
.kiosk-view .plan-strength-badge,
.kiosk-view .plan-temp-badge {
    font-weight: 700 !important;
}

.kiosk-view .plan-list-cell.text-sm {
    font-size: clamp(0.875rem, 1.1vw, 4.2rem);
}

.kiosk-view .plan-list-cell.text-lg {
    font-size: clamp(1.1rem, 1.9vw, 5.2rem);
}

.kiosk-view .plan-list-row .text-sm {
    font-size: clamp(0.875rem, 1.1vw, 4.2rem);
}

.kiosk-view td.text-sm {
    font-size: clamp(0.875rem, 1.1vw, 4.2rem);
}

.kiosk-view td.text-lg {
    font-size: clamp(1.1rem, 1.9vw, 5.2rem);
}

.plan-media-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1.8rem);
}

.kiosk-view .plan-media-stack .text-sm {
    font-size: clamp(0.875rem, 1.1vw, 4.2rem);
}

.plan-list-people {
    display: flex;
    justify-content: center;
    width: 100%;
}

.plan-list-people-wrap {
    flex-wrap: nowrap;
    overflow: visible;
}

.kiosk-view .plan-list-people-wrap {
    gap: clamp(0.6rem, 1.2vw, 3.6rem);
}

.plan-list-people-wrap.has-multiple .h-10,
.plan-list-people-wrap.has-multiple .w-10 {
    width: 2.25rem;
    height: 2.25rem;
}

.plan-list-people-wrap.has-multiple .text-sm {
    font-size: 0.8rem;
    line-height: 1.25;
}

.plan-list-people-wrap.has-multiple .mt-2 {
    margin-top: 0.35rem;
}

.kiosk-view .plan-list-people-wrap.has-multiple .h-10,
.kiosk-view .plan-list-people-wrap.has-multiple .w-10 {
    width: clamp(32px, 3.1vw, 240px) !important;
    height: clamp(32px, 3.1vw, 240px) !important;
}

.kiosk-view .plan-list-people-wrap.has-multiple .text-sm {
    font-size: clamp(0.8rem, 1vw, 3.8rem);
    line-height: 1.25;
}

.kiosk-view .plan-list-people-wrap.has-multiple .mt-2 {
    margin-top: clamp(0.35rem, 0.8vw, 1.6rem) !important;
}

.kiosk-view .plan-list-people .h-10,
.kiosk-view .plan-list-people .w-10 {
    width: clamp(38px, 3.8vw, 300px) !important;
    height: clamp(38px, 3.8vw, 300px) !important;
}

.kiosk-view .plan-list-people .text-sm {
    font-size: clamp(0.9rem, 1.2vw, 4.6rem);
}

.kiosk-view .plan-list-people .mt-2 {
    margin-top: clamp(0.5rem, 1vw, 2rem) !important;
}

.plan-list-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: clamp(0.35rem, 0.8vw, 1.6rem);
}

.plan-strength-badge {
    font-size: clamp(0.75rem, 1.1vw, 4.2rem) !important;
    line-height: 1.2;
    padding: clamp(0.2rem, 0.6vw, 1.1rem) clamp(0.45rem, 1vw, 2.2rem) !important;
    border-width: clamp(1px, 0.05vw, 5px);
}

.plan-temp-badge {
    background: var(--plan-accent-color, #2563eb);
    border: 1px solid #e5e7eb;
    border-color: #e5e7eb;
    color: var(--plan-text-color, #111827) !important;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.1vw, 4.2rem) !important;
    line-height: 1.2;
    padding: clamp(0.15rem, 0.5vw, 0.95rem) clamp(0.35rem, 0.9vw, 1.8rem) !important;
    border-width: clamp(1px, 0.05vw, 5px);
}

.plan-color-scope {
    --plan-text-color: #111827;
    --plan-row-bg: rgba(255, 255, 255, 0.35);
    --plan-row-bg-highlight: rgba(255, 255, 255, 0.5);
}

.plan-color-scope .text-gray-900 {
    color: var(--plan-text-color, #111827) !important;
}

.kiosk-view .plan-list-cell {
    font-size: clamp(0.95rem, 1.2vw, 4.8rem);
    padding: clamp(0.75rem, 1vw, 4.2rem) clamp(0.75rem, 1.2vw, 4.8rem);
}

.kiosk-view .plan-list-row .plan-list-cell:first-child {
    font-size: clamp(1.1rem, 1.9vw, 5.2rem);
}

.kiosk-view .plan-media-stack img {
    width: clamp(38px, 3.8vw, 300px);
    height: clamp(38px, 3.8vw, 300px);
}

.kiosk-view .plan-list-row img {
    width: clamp(38px, 3.8vw, 300px);
    height: clamp(38px, 3.8vw, 300px);
}

.kiosk-view .plan-strength-badge {
    font-size: clamp(0.75rem, 1.1vw, 4.2rem);
    padding: clamp(0.2rem, 0.6vw, 1.4rem) clamp(0.45rem, 1vw, 2.8rem);
    line-height: 1;
}

.kiosk-view .plan-temp-badge {
    font-size: clamp(0.75rem, 1.1vw, 4.2rem);
    padding: clamp(0.15rem, 0.5vw, 1.1rem) clamp(0.35rem, 0.9vw, 2.4rem);
    line-height: 1;
}

.plan-media-stack .plan-temp-badge {
    top: 15% !important;
    right: -30% !important;
    transform: translate(50%, -50%);
}

.plan-list-row:focus,
.plan-list-row:focus-visible,
.next-aufguss-row:focus,
.next-aufguss-row:focus-visible {
    outline: none;
    box-shadow: none;
}

.screen-lock {
    position: fixed;
    inset: 0;
    background: #0f172a;
    color: #f8fafc;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    text-align: center;
    padding: 2rem;
}

.screen-lock__title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

.screen-lock__subtitle {
    margin-top: 0.75rem;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    color: #cbd5f5;
}

@media (max-width: 1000px) {
    .plan-view-with-clock .plan-clock-stack {
        display: none;
    }

    .plan-view-with-clock .plan-table-wrap {
        padding: 0 1rem 0;
    }

    .plan-view-with-clock .plan-list-head {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .screen-lock {
        display: flex;
    }
}
