
/* Neue CSS-Klassen für ausgelagerte Inline-Styles aus index.php */
.button-sichern {
    padding: 10px 20px;
    background: #764ba2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.button-laden {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.select-backup {
    padding: 8px;
    border-radius: 5px;
}
.margin-20 {
    margin: 20px 0;
}
.inline-block {
    display: inline-block;
}

.backupForm {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: 0px 15px;
}
.margin-right-10 {
    margin-right: 10px;
}
.success-msg {
    margin: 10px 0;
    color: green;
    font-weight: bold;
}
.info-msg {
    margin: 10px 0;
    color: blue;
    font-weight: bold;
}
.table-header-row {
    background: rgba(102, 126, 234, 0.1);
    color: #4c1d95;
}
.table-empty-row {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
.btn-small {
    padding: 3px 8px;
    font-size: 11px;
    margin-right: 5px;
}
.btn-danger {
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.form-inline {
    display: inline;
}
.cancel-btn {
    background: #6b7280;
    margin-right: 10px;
}
.text-right {
    text-align: right;
    margin-top: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            padding: 30px;
            text-align: center;
            color: white;
            margin-bottom: 10px;
        }
        
        .header h1 {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 15px;
        }
        
        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px 30px;
            background: #f8fafc;
        }
        
        .card {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            text-align: center;
            border-left: 5px solid;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }
        
        .card.unterricht { border-left-color: #10b981; }
        .card.kein-unterricht { border-left-color: #f59e0b; }
        .card.gesamt { border-left-color: #8b5cf6; }
        .card.durchschnitt { border-left-color: #ef4444; }
        
        .card h3 {
            font-size: 0.9rem;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }
        
        .card .value {
            font-size: 2rem;
            font-weight: 700;
            color: #1f2937;
        }
        
        .controls {
            padding: 20px 30px;
            background: white;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .search-box, .filter-select {
            padding: 12px 15px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }
        
        .search-box:focus, .filter-select:focus {
            outline: none;
            border-color: #4facfe;
        }
        
        .btn {
            padding: 12px 20px;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: transform 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn:hover {
            transform: translateY(-2px);
        }
        
        .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }
        
        .table-container {
            overflow-x: auto;
            padding: 30px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        td {
            padding: 12px;
            border-bottom: 1px solid #f3f4f6;
            font-size: 0.9rem;
            vertical-align: middle;
        }
        
        tr:hover {
            background: #f8fafc;
        }
        
        .weekend-row {
            background: #fef3c7;
            color: #92400e;
            font-style: italic;
        }
        
        .special-day {
            background: #dbeafe;
            color: #1e40af;
            font-weight: 500;
        }
        
        .time-cell {
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }
        
        .unterricht-time {
            color: #10b981;
            background: #d1fae5;
            padding: 4px 8px;
            border-radius: 5px;
        }
        
        .kein-unterricht-time {
            color: #f59e0b;
            background: #fef3c7;
            padding: 4px 8px;
            border-radius: 5px;
        }
        
        .day-number {
            background: #4facfe;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.8rem;
        }
        
        .bemerkung {
            max-width: 200px;
            word-wrap: break-word;
            font-style: italic;
            color: #6b7280;
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        
        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: black;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #374151;
        }
        
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 14px;
        }
        
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #4facfe;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        @media (max-width: 768px) {
            .summary-cards {
                grid-template-columns: 1fr;
            }
            
            .controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box, .filter-select, .btn {
                width: 100%;
            }
            
            th, td {
                padding: 8px 6px;
                font-size: 0.8rem;
            }
            
            .bemerkung {
                max-width: 150px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
        }