/* Grundlegendes Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark Theme Basis */
body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    max-width: 1000px; /* Breiter für das 3-Spalten-Layout */
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo-img {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    background: #1e1e1e; /* Dunkler Hintergrund für das Logo */
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Neues Flexbox-Layout für 3 Spalten */
.layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

/* Seitliche Info-Boxen */
.sidebar {
    background-color: #1e1e1e;
    width: 40%; /* Nimmt jeweils 25% des Platzes ein */
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.sidebar img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Das eigentliche Formular in der Mitte */
main {
    background-color: #1e1e1e;
    width: 50%; /* Schmaler als vorher, nimmt die restlichen 50% ein */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff; /* Reines Weiß für Überschriften im Dark Mode */
}

.slots-info {
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding: 10px;
    background-color: #2c3e50; /* Dunkles Blaugrau */
    border-left: 5px solid #3498db;
    border-radius: 4px;
}

/* Formular-Design Dark Mode */
form {
    display: flex;
    flex-direction: column;
}

label {
    display: block; /* Zwingt das Label in eine eigene, saubere Zeile */
    text-align: left; /* Garantiert, dass der Text strikt linksbündig startet */
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #bbb;
}

input[type="text"] {
    display: block; /* Verhindert inline-Verschiebungen */
    width: 100%; /* Zwingt alle Felder auf exakt die gleiche Breite */
    padding: 10px;
    margin-bottom: 20px;
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    background-color: #333;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.error-msg {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
}

/* =========================================
   Responsive Design / Mobile Ansicht
   ========================================= */
@media (max-width: 900px) {
    .layout-wrapper {
        flex-direction: column;
        align-items: center;
    }

    /* 1. Das Formular (main) in der visuellen Reihenfolge auf Platz 1 zwingen */
    main {
        width: 100%;
        margin-bottom: 20px;
        order: 1; 
    }

    /* 2. Die Info-Boxen auf Platz 2 setzen. 
       Da beide die Klasse .sidebar haben, ordnen sie sich bei gleicher 'order' 
       automatisch nach ihrer HTML-Reihenfolge (erst links, dann rechts) untereinander an. */
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        order: 2;
    }

    h1 {
        font-size: 1.3rem;
    }

    .banner-img {
        height: 150px;
    }
    
    .logo-img {
        width: 60px;
        top: 10px;
        left: 10px;
    }
}