/* style.css - Design für die Stadtrallye index.php */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Volle Bildschirmhöhe */
    
    /* --- HINTERGRUND-BILD --- */
    background-image: url('./hintergrund.png'); /* Dein Bildname */
    background-size: cover; /* Bild füllt den ganzen Bildschirm */
    background-position: center; /* Bild zentrieren */
    background-repeat: no-repeat; /* Bild nicht wiederholen */
    background-attachment: fixed; /* Bild scrollt nicht mit (sieht cooler aus) */
    background-color: #333; /* Fallback-Farbe, falls Bild nicht lädt */
}

/* Die schwebende Box für Login und Aufgaben */
.card {
    background: rgba(255, 255, 255, 0.92); /* Weiß mit leichter Transparenz */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Etwas stärkerer Schatten für Tiefe */
    width: 90%;
    max-width: 450px; /* Begrenzung auf großen Bildschirmen */
    box-sizing: border-box; /* Padding zählt nicht zur Breite */
    text-align: center;
}

h2 {
    color: #1a73e8;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Eingabefelder */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px; /* Verhindert Auto-Zoom auf iPhones */
}

/* Basis-Stil für alle Buttons */
.btn-action {
    width: 100% !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 8px !important; /* Hier kommt die Rundung */
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: opacity 0.2s;
}

/* Blau für Prüfen/Login/Upload */
.btn-blue {
    background-color: #1a73e8 !important;
    color: white !important;
}

/* Rot für Überspringen */
.btn-red {
    background-color: #e53935 !important;
    color: white !important;
}

.btn-action:active {
    opacity: 0.8 !important;
}

/* Nachrichten-Boxen (Erfolg/Fehler) */
.msg {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}