/* Allgemeine Neon-Design Variablen */
:root {
    --color-bg-dark: #0f0f1a;
    --color-bg-deep: #05050b;
    --color-neon-cyan: #00F0FF;
    --color-volt-yellow: #FBFC41;
    --color-accent-pink: #FF0077;
    --color-text-light: #e0e0e0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-light);
    font-family: 'Inter', sans-serif;
    padding-top: 20px;
    padding-bottom: 50px;
    line-height: 1.6;
}

h3 {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    font-weight: 800;
}

/* Container und Layout */
.schedule-container {
    background-color: var(--color-bg-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.debug-box {
    background-color: #440000;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid red;
    font-family: monospace;
}

/* Akkordeon (Bootstrap Override) */
.accordion-item {
    background-color: var(--color-bg-dark);
    border: 1px solid #1a1a33;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-header {
    border-radius: 8px 8px 0 0;
}

.accordion-button {
    background-color: #1a1a33;
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 1.2rem;
    border: none !important;
    box-shadow: none !important;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    color: var(--color-neon-cyan);
    background-color: #1a1a33;
    border-bottom: 1px solid var(--color-neon-cyan);
}

.accordion-button:focus {
    outline: 2px solid var(--color-neon-cyan);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.5) !important;
}

.accordion-body {
    padding: 0 !important;
}

/* Zeitlinien-Layout */
.time-slot-row {
    display: flex;
    border-bottom: 1px dashed #2a2a44;
}

.time-slot-row:last-child {
    border-bottom: none;
}

.time-col-vertical {
    flex-basis: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-align: center;
    background-color: #1a1a33;
    border-right: 1px solid #2a2a44;
    font-size: 0.8rem;
    line-height: 1.2;
}

.time-display span {
    display: block;
    font-weight: 600;
    color: var(--color-volt-yellow);
}

.time-display span:nth-child(2) {
    font-size: 0.7rem;
    color: #888;
}

.content-col-vertical {
    flex-grow: 1;
    padding: 0; 
}

/* Event Boxen */
.event-box {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    margin: 5px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.event-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

.event-segment-left, .event-segment-right {
    flex-basis: 80px;
    flex-shrink: 0;
    height: 100px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d0d15;
}

.event-segment-middle {
    flex-grow: 1;
    padding: 10px;
    text-align: left;
    min-height: 100px;
}

/* Platzhalter (Freie Zeit) */
.placeholder-slot-free {
    background-color: #151525;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    margin: 5px;
}

.placeholder-image {
    width: 350px;
    height: 100px;
    opacity: 0.3;
}

/* Live & Status Indikatoren */
.live-indicator {
    display: inline-block;
    background-color: var(--color-accent-pink);
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0); }
}

.event-planned {
    background: linear-gradient(135deg, #181830, #252540);
    border: 2px solid var(--color-neon-cyan);
}

.event-warning {
    background: linear-gradient(135deg, #20150a, #402a15);
    border: 2px solid var(--color-volt-yellow);
}

/* Aktuelle Zelle */
.current-cell .event-box {
    box-shadow: 0 0 20px var(--color-volt-yellow) !important;
    border: 3px solid var(--color-volt-yellow) !important;
    transform: scale(1.02);
    transition: all 0.5s ease-in-out;
}

.current-cell .placeholder-slot-free {
    background-color: #202010;
    border: 2px dashed var(--color-volt-yellow);
}

/* Modal Styling */
.modal-content {
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-neon-cyan);
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.modal-header {
    border-bottom: 1px solid var(--color-neon-cyan);
}

.modal-title {
    color: var(--color-neon-cyan);
}

.modal-body b {
    color: var(--color-volt-yellow);
}

.modal-flyer-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--color-accent-pink);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-footer {
    border-top: 1px solid #1a1a33;
}

.btn-close {
    background-color: var(--color-text-light);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .time-col-vertical {
        flex-basis: 90px;
        font-size: 0.7rem;
    }
    
    .time-display span:nth-child(2) {
        display: none; /* 'bis' ausblenden auf kleinen Screens */
    }

    .event-box {
        flex-direction: column;
        height: auto;
    }

    .event-segment-left, .event-segment-right {
        flex-basis: auto;
        height: 60px;
        width: 100%;
        display: none; /* DJ-Bild und Flyer-Thumb auf Mobile ausblenden */
    }

    .event-segment-middle {
        padding: 8px;
        text-align: center;
        width: 100%;
    }
    
    .event-box:hover {
        transform: none;
    }
}
