/* Container und Nachrichten */
.ctr-form-container {
    /* max-width und margin: auto entfernt, damit der Container die volle Breite einnimmt */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
}

.ctr-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ctr-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.ctr-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Basis-Styling für Formular-Elemente */
#ctr-reservation-form input,
#ctr-reservation-form select,
#ctr-reservation-form button {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#ctr-reservation-form button {
    background-color: #c7a17a; /* Standard WordPress Blau, kannst du anpassen */
    color: white;
    cursor: pointer;
    border: none;
}

#ctr-reservation-form button:hover {
    background-color: #a67646;
}


/* --- KORREKTUR für Horizontales Formular (und Standard-Formular im Block) --- */

/* Wir verwenden jetzt ein Grid-Layout, da es flexibler für die Breitenverteilung ist */
.ctr-form-horizontal {
    display: grid;
    /* Erstellt ein flexibles Grid mit automatisch angepassten Spalten */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: center;
}

/* Für das Standard-Formular, das mehrzeilig sein soll */
.ctr-form-standard {
    display: grid;
    /* Zwei Spalten für Desktop, wird bei kleinerem Bildschirm einspaltig */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Styling für beide Formulare, damit der Button und das Uhrzeit-Feld die volle Breite nehmen, wenn sie in einer neuen Zeile sind */
#ctr-reservation-form select[name="reservation_time"],
#ctr-reservation-form button {
    /* Nimmt die volle Breite der Grid-Zelle ein */
    width: 100%;
}

/* Responsivität für kleinere Bildschirme */
@media (max-width: 992px) {
    /* Alle Elemente im horizontalen Formular werden untereinander gestapelt */
    .ctr-form-horizontal {
        grid-template-columns: 1fr;
    }
}