/* static/style.css */

/* Grundlegendes Layout - Garantiert dunkelgrau & scrollbar */
html, body {
    background-color: #121214 !important; /* Fixiert den dunkelgrauen Hintergrund global */
    color: #e5e5e7;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    /* Ermöglicht normales Scrollen, wenn der Inhalt länger als der Bildschirm ist */
    overflow-y: auto !important; 
    overflow-x: hidden;
}

/* Kiosk-Kopfzeile */
.kiosk-header {
    background-color: #1a1a1f; 
    padding: 18px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d4af37; /* Goldene Kante */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.kiosk-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #d4af37; /* Gold */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kiosk-title span {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 300;
    margin-left: 10px;
    text-transform: none;
}

/* Hauptbereich auf der Startseite */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Zentrale Scan-Karte */
.scan-card {
    background-color: #1a1a1f; 
    padding: 45px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 550px;
    width: 100%;
}

.scan-card h2 {
    font-size: 1.9rem;
    margin: 0 0 10px 0;
    color: #d4af37;
    letter-spacing: 1px;
}

.scan-card p {
    color: #a0a0aa;
    font-size: 1.05rem;
    margin: 0 0 35px 0;
}

/* Scanner-Rahmen */
#scanner-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    border: 3px solid #d4af37; 
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35); 
}

/* Roter Laser */
.scan-line {
    width: 100%;
    height: 4px;
    background: #ff3333;
    position: absolute;
    box-shadow: 0 0 12px #ff3333, 0 0 4px #ff3333;
    z-index: 10;
    animation: scanAnimation 2.2s infinite linear;
    pointer-events: none;
}

@keyframes scanAnimation {
    0% { top: 5%; }
    50% { top: 95%; }
    100% { top: 5%; }
}

#result-display {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.15rem;
    background-color: #121214;
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: #ffffff;
}

/* Premium-Gold Buttons */
.btn {
    background: linear-gradient(135deg, #d4af37 0%, #aa8020 100%);
    color: #121214; 
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #e5c158 0%, #c59b27 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(135deg, #c0392b 0%, #962d22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #d9534f 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

/* Container für Dashboard */
.dashboard-container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 95%;
}

/* Zeilen für Stundenplan */
.timetable-row {
    background: #1a1a1f;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.timetable-row:hover {
    background: #22222b;
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateX(4px);
}

.time-slot {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    width: 220px;
    flex-shrink: 0;
}

.subject-slot {
    font-size: 1.35rem;
    color: #d4af37; 
    font-weight: 600;
    flex-grow: 1;
}

.hidden { display: none !important; }
