/* Basis & Variablen */
:root {
    --bg: #f0f4f8;
    --card: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #059669;
    --error: #dc2626;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Logo – Logo groß, Überschrift dezent darunter */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.beta-logout-wrap {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}
.beta-logout {
    color: var(--text-muted);
    text-decoration: none;
}
.beta-logout:hover {
    color: var(--primary);
    text-decoration: underline;
}

.site-logo-link {
    display: block;
    margin-bottom: 0.75rem;
    text-align: center;
}

.site-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo-large {
    max-width: 320px;
    max-height: 140px;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-reservierung {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-email-hinweis {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Meldungen */
.message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message-actions {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-back {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-back:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.bestelluebersicht-box {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    text-align: left;
}
.bestelluebersicht-titel {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #065f46;
}
.bestelluebersicht-hinweis {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #047857;
}
.bestelluebersicht-tabelle {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.bestelluebersicht-tabelle th {
    text-align: left;
    padding: 0.4rem 0.75rem 0.4rem 0;
    color: #065f46;
    font-weight: 600;
    vertical-align: top;
}
.bestelluebersicht-tabelle td {
    padding: 0.4rem 0;
    border-bottom: 1px solid #d1fae5;
}
.bestelluebersicht-konto {
    margin: 0;
    font-size: 0.9rem;
    white-space: pre-wrap;
    font-family: inherit;
}
.bestelluebersicht-actions {
    margin-top: 1.25rem;
}
.bestelluebersicht-bezahlung-hinweis {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.95rem;
}
.success-bezahlung-hinweis {
    margin: 0.75rem 0;
    padding: 0.6rem 0.9rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.9rem;
}

@media print {
    body * {
        visibility: hidden;
    }
    .message-success,
    .message-success * {
        visibility: visible;
    }
    .message-success {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        background: #fff;
        color: #1e293b;
        border: none;
        box-shadow: none;
    }
    .bestelluebersicht-actions {
        display: none;
    }
    .bestelluebersicht-box {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    .bestelluebersicht-tabelle th,
    .bestelluebersicht-titel {
        color: #1e293b;
    }
    .bestelluebersicht-hinweis {
        color: #64748b;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

/* Link-Button im gleichen Stil wie Absenden-Button (z. B. bei Hüpfburg-Auswahl) */
.btn-primary-link {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary-link:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-primary-link:active {
    transform: scale(0.99);
}

.huepfburg-actions {
    margin: 0.75rem 0 0;
}

/* Formular */
form {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

fieldset {
    border: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

fieldset:last-of-type {
    margin-bottom: 0;
}

legend {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
}

.hidden {
    display: none !important;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.radio-label input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
}

/* Veranstaltungen Mehrfachauswahl & Gesamtsumme */
.veranstaltungen-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin: 0;
}

/* Saalplan – Tafel A–E mit einzeln anklickbaren Plätzen (Mehrfachauswahl pro Tafel) */
.saalplan-fieldset .field-hint {
    margin-bottom: 1rem;
}

.saalplan-uebersicht-zeile {
    margin: 0 0 1rem;
}

.saalplan-ohne-veranstaltung-hinweis {
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #92400e;
}
.saalplan-ohne-veranstaltung-hinweis.hidden {
    display: none;
}

.saalplan-inhalt-wrapper {
    position: relative;
}

.saalplan-sperre-ohne-veranstaltung {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
}
.saalplan-sperre-ohne-veranstaltung.hidden {
    display: none;
}

.saalplan-inhalt-wrapper.saalplan-deaktiviert {
    opacity: 0.85;
}

.saalplan-tafel-open-cb:disabled ~ .saalplan-tafel-kopf {
    cursor: not-allowed;
    opacity: 0.8;
}

.versand-zeile.hidden {
    display: none;
}

/* Summenblock unten (vor Absenden-Button) */
.gesamt-summe-unten {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Reservierungs-Countdown (15 Min) – sticky oben, damit immer sichtbar */
.reservierung-countdown-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #065f46;
    color: #ecfdf5;
    border: 2px solid #047857;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.reservierung-countdown-wrap.sticky-countdown {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0;
}
.reservierung-countdown-label {
    font-size: 0.95rem;
    font-weight: 500;
}
.reservierung-countdown-zeit {
    font-variant-numeric: tabular-nums;
    min-width: 3.5ch;
    font-size: 1.35rem;
    font-weight: 700;
}
.reservierung-countdown-hint {
    font-size: 0.8rem;
    opacity: 0.9;
}
.reservierung-countdown-wrap.hidden {
    display: none !important;
}

.abholung-bezahlart-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.abholung-bezahlart-wrap.hidden {
    display: none !important;
}
.abholung-bezahlart-intro {
    margin: 0 0 0.5rem;
    font-weight: 500;
    color: var(--text);
}
.ueberweisung-felder-wrap {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.ueberweisung-felder-wrap.hidden {
    display: none !important;
}
.ueberweisung-intro {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.ueberweisung-daten-static {
    margin: 0;
    font-size: 0.95rem;
}
.ueberweisung-daten-zeile {
    margin: 0.35rem 0;
    word-break: break-all;
}
.versand-hinweis {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #92400e;
}
.versand-hinweis.hidden {
    display: none;
}

.saalplan {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.saalplan-tafel-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
}

.saalplan-tafel-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    transition: background 0.2s;
}

.saalplan-tafel-kopf:hover {
    background: #eff6ff;
}

.saalplan-tafel-kopf .saalplan-tafel-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.saalplan-tafel-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.saalplan-tafel-toggle {
    margin-left: auto;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.saalplan-tafel-kopf[aria-expanded="true"] .saalplan-tafel-toggle {
    transform: rotate(-135deg);
}

.saalplan-plaetze-grid-wrap {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
}

/* Bühne: vertikales Kästchen links vor den Plätzen, bündig mit oberem und unterem Platz */
.saalplan-buehne-vor-1-zeile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.saalplan-buehne-klein {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.25rem;
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    border-radius: 4px;
    border: 1px solid #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    min-height: 0;
    font: inherit;
    cursor: pointer;
}
.saalplan-buehne-klein:hover {
    filter: brightness(1.1);
}
.saalplan-buehne-klein:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.saalplan-buehne-klein .saalplan-buehne-text {
    font-size: 0.6rem;
    font-weight: 700;
    color: #e5e7eb;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.saalplan-buehne-grafik {
    display: inline-block;
    width: 0.65rem;
    height: 0.9rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath fill='%239ca3af' d='M0 6h32v2H0z'/%3E%3Cpath fill='%23774106' d='M0 8v4l4-2v-2H0zm28 0v2l4 2V8h-4z'/%3E%3Cpath fill='%23d1d5db' d='M2 8h28v8H2z'/%3E%3Cpath fill='%239ca3af' d='M4 10h4v4H4zm10 0h4v4h-4zm10 0h4v4h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
    transform: rotate(-90deg);
}

/* Tafel aufklappen: Checkbox (versteckt) + Label; Inhalt ein-/ausblenden per CSS */
.saalplan-tafel-open-cb {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.saalplan-tafel-block .saalplan-plaetze-grid-wrap {
    display: none;
}

.saalplan-tafel-block .saalplan-tafel-open-cb:checked ~ .saalplan-plaetze-grid-wrap {
    display: flex;
}

.saalplan-tafel-block .saalplan-tafel-open-cb:checked ~ .saalplan-tafel-kopf .saalplan-tafel-toggle {
    transform: rotate(-135deg);
}

.saalplan-plaetze-grid-wrap[hidden],
.saalplan-plaetze-grid-wrap.hidden {
    display: none !important;
}

/* Platz-Grid: --pro-seite Spalten (z. B. 8 für Tafel A), 2 Zeilen = „pro Seite“ */
.saalplan-plaetze-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(var(--pro-seite, 8), 1fr);
    gap: 0.4rem;
}

.saalplan-platz {
    display: block;
    cursor: pointer;
    margin: 0;
}

.saalplan-platz-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.saalplan-platz-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.saalplan-platz:hover .saalplan-platz-inner {
    border-color: var(--primary);
    background: #f8fafc;
}

/* Gewählte Plätze: gelb beim Anklicken – per :has() am Checkbox-Zustand (Verkaufsportal) */
.saalplan-platz:has(.saalplan-platz-input:checked:not(:disabled)) .saalplan-platz-inner,
.saalplan-platz:has(.saalplan-platz-input:checked:not(:disabled)):hover .saalplan-platz-inner,
.saalplan-platz.selected .saalplan-platz-inner,
.saalplan-platz.selected:hover .saalplan-platz-inner {
    border-color: #ca8a04;
    background: #fef08a;
    color: #854d0e;
}

/* Belegte Plätze (vom Admin markiert): rot, nicht anklickbar */
.saalplan-platz.belegt {
    cursor: not-allowed;
}

.saalplan-platz.belegt .saalplan-platz-inner {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.saalplan-platz-belegt-label {
    display: block;
    font-size: 0.65rem;
    font-weight: normal;
    margin-top: 0.1rem;
}

/* Summenaufstellung */
.gesamt-summe-block {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.gesamt-summe-zeile {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--text);
}

.gesamt-summe-zeile:last-of-type {
    margin-bottom: 0;
}

.gesamt-summe {
    margin: 0.75rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid #bfdbfe;
    font-size: 1.05rem;
}

.gesamt-summe strong {
    color: var(--primary);
}

/* Versandadresse (bei „Versand per Post“) */
.versand-adresse-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.versand-adresse-intro {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.date-fieldset .date-range-wrap .form-row,
.date-fieldset .date-single-wrap {
    margin-top: 0.5rem;
}

.delivery-notice {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

.delivery-notice-text {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.delivery-address-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.delivery-address-intro {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mietdauer-hinweis {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mietdauer-hinweis a {
    color: var(--primary);
    text-decoration: none;
}

.mietdauer-hinweis a:hover {
    text-decoration: underline;
}

.field-hint {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Responsive: Mobile */
@media (max-width: 600px) {
    .saalplan-platz-inner {
        min-height: 2rem;
        font-size: 0.8rem;
    }

    .saalplan-tafel-block {
        padding: 0.75rem;
    }

    body {
        padding: 1rem 0.75rem;
    }

    .container {
        padding: 0 0.25rem;
    }

    header {
        margin-bottom: 1.5rem;
    }

    .site-logo {
        max-height: 80px;
    }

    header h1 {
        font-size: 1rem;
    }

    .subtitle,
    .info-reservierung {
        font-size: 0.9rem;
    }

    form {
        padding: 1.25rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    legend {
        font-size: 0.95rem;
    }

    input,
    select {
        padding: 0.75rem;
        font-size: 16px; /* verhindert Zoom auf iOS beim Fokus */
        min-height: 44px;
    }

    button[type="submit"] {
        padding: 1rem 1.25rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .message {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .firmen-kontakt {
        margin-top: 1.75rem;
        padding: 1.25rem 1rem;
    }

    .firmen-kontakt-titel {
        font-size: 0.95rem;
    }

    .firmen-adresse,
    .firmen-tel,
    .firmen-email {
        font-size: 0.9rem;
    }

    .firmen-tel a,
    .firmen-email a {
        display: inline-block;
        padding: 0.25em 0;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tablet: etwas mehr Platz für Überschrift */
@media (min-width: 601px) and (max-width: 900px) {
    header h1 {
        font-size: 1.2rem;
    }
}

label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

input::placeholder {
    color: var(--text-muted);
}

.error-msg {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.25rem;
    min-height: 1.2em;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: var(--error);
}

/* Honeypot: für Bots sichtbar, für Menschen versteckt */
.honeypot-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* Mensch-Verifizierung (vor ggf. Captcha) */
.human-verify {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.human-verify-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.human-verify-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.recaptcha-wrap {
    margin-top: 0.5rem;
}

.recaptcha-wrap .error-msg {
    display: block;
    margin-top: 0.35rem;
}

.submit-hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

button[type="submit"] {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    background: var(--primary-hover);
}

button[type="submit"]:active {
    transform: scale(0.99);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Firmenkontakt Footer */
.firmen-kontakt {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.firmen-kontakt-titel {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.firmen-name {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.firmen-vorsitzender,
.firmen-adresse,
.firmen-tel,
.firmen-email {
    margin: 0 0 0.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.firmen-tel a,
.firmen-email a {
    color: var(--primary);
    text-decoration: none;
}

.firmen-tel a:hover,
.firmen-email a:hover {
    text-decoration: underline;
}

/* Bühnenfoto-Popup */
.buehne-foto-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.buehne-foto-popup[hidden] {
    display: none !important;
}
.buehne-foto-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.buehne-foto-popup-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}
.buehne-foto-popup-close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buehne-foto-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
}
.buehne-foto-popup-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Erfolgs-Popup nach Reservierung */
.success-popup {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.success-popup[hidden] {
    display: none !important;
}
.success-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.success-popup-inner {
    position: relative;
    max-width: 28rem;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem 1.5rem 1.5rem;
}
.success-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
.success-popup-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
}
.success-popup-content p {
    margin: 0 0 0.75rem;
}
.success-popup-content p:last-child {
    margin-bottom: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
