/* ==========================================================================
   MODUL: RESERVIERUNG
   ========================================================================== */
.module-reservierung {
    background-color: var(--text-dark); /* Tiefschwarz */
    color: var(--text-light);
}

.module-reservierung-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.module-reservierung-header h3 {
    color: var(--color-2); /* Goldgelb */
}

.module-reservierung-flex-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.05); /* Leichter Kontrast zum schwarzen HG */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(200, 161, 83, 0.2); /* Dezent goldener Rand */
}

/* Linke Spalte (Auswahl) */
.module-reservierung-selection {
    flex: 1;
    min-width: 300px;
}

/* Rechte Spalte (Checkout) */
.module-reservierung-checkout {
    flex: 1;
    min-width: 320px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 60px;
}

.module-reservierung-checkout h4 {
    color: var(--color-2);
    margin-bottom: 20px;
}

/* Formular-Elemente */
.res-form-group {
    margin-bottom: 25px;
}

.res-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-2);
}

.res-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.res-input {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-family: var(--font-text);
    font-size: 18px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.res-input:focus {
    border-color: var(--color-2);
}

.res-input option {
    background-color: #ffffff; /* Weißer Hintergrund in der ausgeklappten Liste */
    color: #333333; /* Dunkelgraue Schrift */
}

.res-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buttons */
.res-btn-primary,
.res-btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 16px;
    font-family: var(--font-text);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.res-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-2);
    color: var(--color-2);
    margin-top: 10px;
}

.res-btn-secondary:hover:not(:disabled) {
    background-color: var(--color-2);
    color: var(--color-1);
}

.res-btn-primary {
    background-color: var(--color-2);
    color: var(--color-1);
    margin-top: 10px;
}

.res-btn-primary:hover:not(:disabled) {
    background-color: var(--color-4);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(200, 161, 83, 0.5);
}

.res-btn-primary:disabled,
.res-btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Cart / Liste */
.res-cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    min-height: 80px;
}

.res-cart-list li {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 18px;
}

.res-cart-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    background: transparent !important;
    padding: 0 !important;
}

.res-remove-item {
    color: var(--color-3); /* Weinrot */
    cursor: pointer;
    font-weight: bold;
}

.res-cart-total {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.res-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.res-success { background-color: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; color: #2ecc71; }
.res-error { background-color: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #e74c3c; }

/* Responsive */
@media screen and (max-width: 991px) {
    .module-reservierung-flex-container { flex-direction: column; padding: 20px; gap: 40px; }
    
    /* NEU: Hebt die harte Mindestbreite auf, wenn die Spalten untereinanderstehen */
    .module-reservierung-selection { min-width: 0; width: 100%; }
    .module-reservierung-checkout { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-left: 0; padding-top: 40px; min-width: 0; width: 100%; }
    
    .res-form-row { flex-direction: column; gap: 0; }
    .res-form-row input { margin-bottom: 15px; }
}

@media screen and (max-width: 480px) {
    .module-reservierung-flex-container { padding: 15px; }
    .res-form-group label { font-size: 18px; }
    .res-input { font-size: 16px; padding: 12px; }
    .res-btn-primary, .res-btn-secondary { font-size: 18px; padding: 14px; }
    .res-cart-list li { font-size: 16px; padding: 10px 12px; }
    
    /* Schützt lange Texte (z.B. "Gesamt: 0/12 Personen") vor dem Herausragen */
    .res-cart-total { font-size: 18px; text-align: left; }
}

/* NEU: Sicherheits-Breakpoint für extrem schmale Geräte (z.B. alte iPhones/kleine Screens unter 360px) */
@media screen and (max-width: 360px) {
    .module-reservierung-flex-container { padding: 10px; }
    .res-input { padding: 10px; font-size: 15px; }
    .res-btn-primary, .res-btn-secondary { font-size: 16px; padding: 12px; }
}