/* ========================================
   FULLSCREEN / FOKUS-MODUS
   ======================================== */

/* Fullscreen Mode aktiviert */
body.fullscreen-mode {
    overflow: hidden;
}

/* Alle UI-Elemente ausblenden */
body.fullscreen-mode header,
body.fullscreen-mode nav,
body.fullscreen-mode .footer,
body.fullscreen-mode .week-selector {
    display: none !important;
}

/* Fokus-Modus Button im Fullscreen ausblenden */
body.fullscreen-mode #toggle-fullscreen-dienstplan,
body.fullscreen-mode #toggle-fullscreen-uebersicht {
    display: none !important;
}

/* Container im Fullscreen */
body.fullscreen-mode .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Dienstplan-Container nutzt gesamten Viewport */
body.fullscreen-mode #tab-dienstplan,
body.fullscreen-mode #tab-uebersicht {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-color);
    padding: 60px 20px 20px 20px;
    overflow: auto;
}

/* Top-Bar Control Menu */
.fullscreen-controls {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

body.fullscreen-mode .fullscreen-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.fullscreen-mode .fullscreen-controls:hover {
    opacity: 1;
}

/* Fullscreen controls content */
.fullscreen-controls span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Control Buttons */
.control-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.control-btn-danger {
    background: var(--danger-color);
}

.control-btn-danger:hover {
    background: #c0392b;
}

/* Current Week Display */
#fs-current-week {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 4px 12px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
}

/* Controls Layout */
.fullscreen-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fullscreen-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-control-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
}

/* Exit Button */
.fullscreen-exit-btn {
    width: 100%;
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fullscreen-exit-btn:hover {
    background: #dc2626;
}

/* Navigation Buttons */
.fullscreen-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    flex: 1;
}

.fullscreen-nav-btn:hover {
    background: var(--primary-hover);
}

.fullscreen-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Selects */
.fullscreen-control-row select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

/* Smooth Transitions */
body.fullscreen-mode #tab-dienstplan,
body.fullscreen-mode #tab-uebersicht {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fullscreen Toggle Button */
.fullscreen-toggle-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-toggle-btn:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fullscreen-toggle-btn svg {
    width: 16px;
    height: 16px;
}
