/* css/style.css - TEIL 1 (Portal-UI & Layout) */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #f4f7f6; 
    color: #333; 
    padding: 20px; 
    line-height: 1.5;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.card { 
    background: white; 
    border: 1px solid #e1e8ed; 
    border-radius: 6px; 
    padding: 20px; 
    margin-bottom: 20px; 
}

.btn { 
    display: inline-block; 
    background: #3498db; 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn:hover { 
    background: #2980b9; 
}

.btn-danger { 
    background: #e74c3c; 
}

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

/* Kachel-Listenfix: Entfernt Aufzählungspunkte der Fächer */
.fachbereich-liste {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.fachbereich-liste li {
    margin-bottom: 15px;
    font-size: 18px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
}

.fachbereich-liste a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
}

.fachbereich-liste a:hover {
    text-decoration: underline;
    color: #3498db;
}
/* css/style.css - TEIL 2 (Modals & Drucksteuerung) */

/* Versteckt das Support-Fenster standardmäßig auf dem Bildschirm */
.support-modal {
    display: none; 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dunkelt den Hintergrund ab */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Die zentrierte Inhaltsbox des Support-Fensters */
.support-modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    text-align: left;
}

/* Standardmäßige Verhaltensweisen für Spezial-Klassen im Browser */
.only-print { display: none; }
.loesungs-seite { display: none !important; }

/* 🖨️ DIE DRUCK-MATRIX */
@media print {
    body { background: white; color: black; padding: 0; }
    .container { box-shadow: none; padding: 0; max-width: 100%; }
    
    /* Verberge alle digitalen Bedienelemente auf dem Papier */
    .btn, .btn-support, .support-trigger-container, header, form button, .no-print, .admin-nav, form input[type="submit"] { 
        display: none !important; 
    }
    
    /* Zeige strukturierte Freilinien für handschriftliche Schülereingaben */
    .only-print { display: block !important; margin-top: 20px; }
    
    /* Schiebt das Lehrer-Lösungsblatt beim Ausdrucken sauber auf Seite 2 */
    .loesungs-seite { 
        display: block !important; 
        page-break-before: always !important; 
        border-top: 2px dashed #000 !important; 
        margin-top: 2cm !important; 
        padding-top: 1cm !important; 
    }
}
