/* ==============================================
   styles_sendeplan.css
   Erforderliche Styles für den Sendeplan
   ============================================== */

/* 1. GLOBALE VARIABLEN (Farben und Schriftarten) */
:root {
    /* Farbpalette */
    --brand-red: #FF2B44; /* Hauptakzentfarbe */
    --brand-dark: #333333; /* Dunkler Text/Hintergrund */
    --bg-white: #FFFFFF;
    --bg-light: #f4f4f4; /* Hellgrauer Hintergrund */
    --color-day-highlight: #FFF0F2; /* Hintergrund für den aktuellen Tag */
    
    /* Event-Status Farben */
    --event-planned-bg: #E3F2FD; /* Hellblau */
    --event-planned-border: #90CAF9;
    --event-warning-bg: #FFFDE7; /* Hellgelb (Verschoben/Abgesagt) */
    --event-warning-border: #FFD54F;
    --event-default-bg: #FFFFFF;
    --event-default-border: #E0E0E0;

    /* Schriftarten (Anpassung an Ihre Hauptseite) */
    --font-primary: Arial, sans-serif;
}

/* 2. LAYOUT UND AKKORDEON-STRUKTUR */
.schedule-container {
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-button {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-dark);
    background-color: var(--bg-light);
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-red);
    background-color: var(--bg-white);
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

/* 3. ZEITPLAN-ZEILEN (.time-slot-row) */
.time-slot-row {
    display: flex;
    border-bottom: 1px solid #eeeeee;
    min-height: 120px; /* DIES IST DIE BESTIMMENDE HÖHE FÜR ALLE INHALTE */
}

/* Zeitspalte */
.time-col-vertical {
    flex-shrink: 0;
    width: 100px;
    padding: 10px 5px;
    background-color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #eeeeee;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: #777777;
}

.time-display span:nth-child(2) {
    font-weight: normal;
    font-size: 0.7rem;
    color: #BBBBBB;
}

/* Event/Inhalt Spalte */
.content-col-vertical {
    flex-grow: 1;
    padding: 0;
    display: flex;
    align-items: stretch; 
    justify-content: center;
}

/* 4. EVENT-BOXEN (.event-box) */
.event-box {
    cursor: pointer;
    border-radius: 0; 
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    margin: 0;
    border: 1px solid;
    width: 100%;
    height: 100%; /* NIMMT DIE VOLLE HÖHE DER .time-slot-row EIN */
}

.event-box:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.005);
}

/* Status-Farben */
.event-planned {
    background-color: var(--event-planned-bg);
    border-color: var(--event-planned-border);
}

.event-warning {
    background-color: var(--event-warning-bg);
    border-color: var(--event-warning-border);
}

.event-default {
    background-color: var(--event-default-bg);
    border-color: var(--event-default-border);
}

/* 5. EVENT SEGMENTS */

/* Linkes Segment (DJ Bild) */
.event-segment-left {
    flex-shrink: 0;
    width: 80px;
    height: 100%;
    overflow: hidden;
}
.dj-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mittleres Segment (Titel, Beschreibung, Moderator) */
.event-segment-middle {
    padding: 10px 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Rechtes Segment (Flyer Thumbnail) */
.event-segment-right {
    flex-shrink: 0;
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.02);
}
.event-flyer-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 6. LIVE / FREE SLOTS */
.live-indicator {
    background-color: var(--brand-red);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 43, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 43, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 43, 68, 0); }
}

/* --- KORRIGIERTE REGELN FÜR NICHT-BOXFÜLLENDEN PLACEHOLDER --- */
.placeholder-slot-free {
    width: 100%;
    height: 100%; /* Behält die Boxhöhe bei */
    display: flex;
    flex-direction: column; /* Erlaubt die vertikale Stapelung von Text und Bild */
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    padding: 10px; /* Fügt inneren Abstand hinzu, damit das Bild nicht am Rand klebt */
    overflow: hidden;
}
.placeholder-slot-free .placeholder-image {
    /* Setzt das Bild auf eine feste, kleinere Größe und zentriert es */
    width: 200px; 
    height: 80px; 
    opacity: 0.5;
    object-fit: contain; /* Stellt sicher, dass das Bild in die 80x80px passt */
    margin: 5px 0; /* Abstand über/unter dem Bild */
    border-radius: 0;
}
/* ----------------------------------------------------------------- */

/* 7. AKTUELLES SEGMENT (LIVE) */
.current-cell {
    background-color: var(--color-day-highlight);
}
.current-cell .time-col-vertical {
    color: var(--brand-red);
    background-color: #FFFFFF;
    border-left: 2px solid var(--brand-red);
}

/* 8. DEBUG BOX */
.debug-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: monospace;
    color: #856404;
}
.debug-box h4 {
    font-size: 1.1rem;
    color: #856404;
}
.debug-box pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.75rem;
    color: #856404;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fcf8e3;
    padding: 10px;
    border-radius: 4px;
}

/* 9. MODAL STYLES */
.modal-flyer-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
}
.modal-body b {
    color: var(--brand-red);
}