/* ===== GLOBAL ===== */
body {
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    color: #0F172A;
}

/* ===== CONTAINER ===== */
.calendar-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background: #F8FAFC;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: slide-up 0.6s ease-out;
}

.calenderWidth {
    width: 80%;
    margin: 0 auto;
}

/* ===== HEADER ===== */
h2 {
    text-align: center;
    color: #0F172A;
    font-size: 32px;
    margin-bottom: 25px;
}

/* ===== CONTROLS ===== */
#calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
button {
    background: #ff6f3c;
    border: none;
    color: #1E293B;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

/* ===== TABLE ===== */
table.calendar {
    width: 100%;
    height: 500px;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: auto;

}

/* ===== TABLE CELLS ===== */
table.calendar th,
table.calendar td {
    border: 1px solid #E2E8F0;
    text-align: center;
    padding: 12px;
    vertical-align: top;
    position: relative;
    min-height: 100px;
    background: #a5a5a5;
    border-radius: 12px;
    transition: all 0.2s ease;
}

/* ===== HEADER CELLS ===== */
table.calendar th {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: bold;
}

/* ===== HOVER EFFECT ===== */
table.calendar td:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* ===== HIGHLIGHT (LESSONS) ===== */
table.calendar td.column-highlight {
    background: #2563EB;
    color: #FFFFFF;
    font-weight: bold;
}

table.calendar td.column-highlight:hover {
    background-color: #EA580C;
}

/* ===== HOLIDAYS ===== */
.holiday {
    background-color: #DC2626  !important;
    color: #fff;
    font-weight: bold;
}

/* ===== HOLIDAY INFO (zentriert in der Zelle) ===== */
.holiday .holiday-info {
    font-size: 0.75em;

    /* Zentrierung */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Padding innen */
    padding: 4px 6px;

    /* Hintergrund & Text */
    background: #F1F5F9;
    color: #0F172A;
    border-radius: 6px;

    /* Automatische Breite, damit es nicht über die Zelle hinaus geht */
    width: auto;
    max-width: 90%;

    /* Keine feste Margin, nur zentriert */
    margin: 4px auto;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #FFFFFF;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    border-radius: 12px;
}

.close {
    float: right;
    font-size: 26px;
    cursor: pointer;
}

/* ===== THEORY TABLE ===== */
#theory-schedule {
    width: 90%;
    margin:  auto;
    padding: 20px;
    border-radius: 16px;
    background: #F8FAFC;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

#theory-schedule h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* ===== LIST ===== */
#theory-list {
    list-style: none;
    padding: 0;
}

#theory-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-left: 4px solid #ff6f3c;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.15s;
}

#theory-list li:hover {
    transform: translateX(4px);
}

.lesson-number {
    font-weight: bold;
}

.lesson-name {
    color: #2563EB;
    font-style: italic;
}

.lesson-date {
    color: #1E293B;
    font-size: 1em;
    font-weight: 500;
}

/* Moderne Scrollbar */
#theory-list::-webkit-scrollbar {
    width: 8px;
}

#theory-list::-webkit-scrollbar-track {
    background: transparent;
}

#theory-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#2563EB,#ff6f3c);
    border-radius: 10px;
}

#theory-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,#1d4ed8,#ea580c);
}
/* Desktop Scroll für Theorie-Liste */
@media (min-width: 769px) {

    #theory-list {
        max-height: 500px;
        overflow-y: auto;
        padding-right: 6px;
    }

}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .calenderWidth {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }

    button {
        width: 30%;
        font-size: 16px;
    }

    table.calendar th,
    table.calendar td {
        min-height: 80px;
        font-size: 14px;
    }

    #theory-schedule {
        width: 90%;
    }
}

@media (max-width: 480px) {
    table.calendar th,
    table.calendar td {
        min-height: 60px;
        font-size: 12px;
    }

    button {
        width: 45%;
    }
}
/* 
p {
    color: #0F172A;
} */

/* VIDEO-BANNER STYLING */
.video-banner {
    position: relative;
    width: 100%;
    height: 500px; /* Höhe kann angepasst werden */
    overflow: hidden;
    border-radius: 12px;
}

/* Video */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video wird zugeschnitten, aber immer gefüllt */
    z-index: 1;
}

/* Overlay halbtransparent für bessere Lesbarkeit */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* dunkler Overlay, Text wird sichtbar */
    z-index: 2;
}

/* Text-Box */
.video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #ffffff;
    text-align: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.5); /* halbtransparent, dunkel */
    border-radius: 12px;
    max-width: 90%;
    opacity: 0; /* für Animation */
    animation: fadeInUp 1s forwards; /* Animation beim Laden */
}

/* Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Textzeilen animieren nacheinander */
.video-text p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpText 0.8s forwards;
}

.video-text p:nth-child(2) { animation-delay: 0.3s; }
.video-text p:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUpText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.video-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.video-text p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #E2E8F0;
}



@media (max-width: 768px) {
    .video-banner { height: 350px; padding: 5px; }
    .video-text h1 { font-size: 28px; }
    .video-text p { font-size: 14px; }
}

@media (max-width: 480px) {
    .video-banner { height: auto; min-height: 250px; padding: 5px; }
    .video-text { max-height: 80vh;  width: 70%; overflow-y: auto; }
    .video-text h1 { font-size: 22px; }
    .video-text p { font-size: 12px; }
    
}



/* ========================= */


