/* =========================================
   Ticket-Verkauf · öffentliche Seiten
   ========================================= */

:root {
    --t-bg: #faf7f0;
    --t-card: #ffffff;
    --t-olive: #4a5d4e;
    --t-olive-dark: #38473a;
    --t-gold: #c9a66b;
    --t-gold-dark: #a98447;
    --t-text: #2a2a2a;
    --t-muted: #777;
    --t-border: #e6e1d5;
    --t-success: #2e7d32;
    --t-error: #c0392b;
    --t-warn: #d4860b;
}

* { box-sizing: border-box; }

.tickets-body {
    margin: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(247, 197, 72, 0.10), transparent 50%),
        var(--t-bg);
    color: var(--t-text);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    line-height: 1.55;
}

.tickets-header {
    padding: 18px 24px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.logo-link img { height: 56px; display: block; }

.tickets-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* Test-Modus-Banner */
.test-banner {
    background: repeating-linear-gradient(
        45deg,
        #fff7e0, #fff7e0 12px,
        #ffeaa5 12px, #ffeaa5 24px
    );
    border: 2px dashed #d4860b;
    color: #6b4d12;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.test-banner strong { color: #a06510; }

/* ---------- Event-Hero ---------- */
.event-hero {
    background: linear-gradient(135deg, #2a1a12 0%, #4a1f1a 45%, #7a2a1f 100%);
    color: #fff8e7;
    padding: 32px 28px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(40, 10, 5, 0.22);
}
.event-flag { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.event-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 6px;
    color: #ffd97a;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.event-subtitle { font-style: italic; margin: 0 0 14px; opacity: 0.85; }
.event-meta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    font-size: 0.95rem; margin: 0 0 14px;
}
.event-meta i { color: #ffd97a; margin-right: 5px; }
.event-desc { margin: 0; opacity: 0.92; }
.event-price-box {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(247, 197, 72, 0.35);
    border-radius: 12px;
    flex-wrap: wrap; gap: 12px;
}
.price-label { display: block; font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.price-value { display: block; font-size: 1.7rem; font-weight: 800; color: #ffd97a; font-family: 'Playfair Display', serif; }
.availability {
    background: #2e7d32; color: #fff; padding: 6px 14px;
    border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.availability.low { background: var(--t-warn); }
.availability i { font-size: 0.6rem; vertical-align: middle; margin-right: 4px; }

/* ---------- Steps ---------- */
.steps-box {
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.steps-box h2 {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    color: var(--t-olive-dark);
    font-size: 1.25rem;
}
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li {
    padding-left: 50px; position: relative;
    font-size: 0.95rem;
}
.steps li em { color: var(--t-muted); font-size: 0.85rem; }
.step-num {
    position: absolute; left: 0; top: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--t-gold); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-family: 'Playfair Display', serif;
}

/* ---------- Order Form ---------- */
.order-card {
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.order-card h2 {
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    color: var(--t-olive-dark);
    font-size: 1.35rem;
}
.order-card h2 i { color: var(--t-gold); }
.order-card.sold-out h2 i { color: var(--t-error); }

.field { margin-bottom: 18px; }
.field label {
    display: block; margin-bottom: 6px;
    font-weight: 700; color: var(--t-olive-dark); font-size: 0.92rem;
}
.field input, .field select {
    width: 100%; padding: 12px 14px;
    border: 2px solid #e0dccd;
    border-radius: 8px;
    font-size: 1rem; font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--t-gold); background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}
.hint { color: var(--t-muted); font-size: 0.82rem; margin: 4px 0 0; }

/* Auswahl-Seite: Online vs. Abholung */
.choose-intro { text-align: center; margin: 24px 0 18px; }
.choose-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; color: var(--t-olive-dark);
    margin: 0 0 4px;
}
.choose-en { color: var(--t-muted); font-style: italic; margin: 0; }

.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .choose-grid { grid-template-columns: 1fr; }
}

.choose-card {
    position: relative;
    background: var(--t-card);
    border: 2px solid var(--t-border);
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-decoration: none;
    color: var(--t-text);
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    overflow: hidden;
}
.choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.choose-online:hover  { border-color: var(--t-gold); }
.choose-pickup:hover  { border-color: var(--t-olive); }

.choose-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
}
.choose-online .choose-icon { background: linear-gradient(135deg, #ffd97a, #c9a66b); color: #4a1f1a; }
.choose-pickup .choose-icon { background: linear-gradient(135deg, #a7b896, var(--t-olive)); color: #fff; }

.choose-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; color: var(--t-olive-dark);
    margin: 0 0 2px;
}
.choose-subtitle { color: var(--t-muted); font-style: italic; font-size: 0.92rem; margin: 0 0 16px; }

.choose-points {
    list-style: none; padding: 0; margin: 0 0 18px;
    text-align: left;
    display: flex; flex-direction: column; gap: 7px;
}
.choose-points li {
    display: flex; gap: 8px;
    font-size: 0.9rem; color: #444; line-height: 1.4;
}
.choose-points i { color: var(--t-success); flex-shrink: 0; margin-top: 3px; }

.choose-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    align-self: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.choose-online .choose-cta {
    background: linear-gradient(135deg, var(--t-gold) 0%, var(--t-gold-dark) 100%);
    color: #fff;
}
.choose-pickup .choose-cta {
    background: var(--t-olive); color: #fff;
}
.choose-card:hover .choose-cta i { transform: translateX(3px); }
.choose-cta i { transition: transform 0.15s ease; }

.choose-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.choose-badge-primary {
    background: var(--t-gold);
    color: #2a1a12;
}

/* "Im Ticket enthalten" */
.included-box {
    background: linear-gradient(135deg, #fdfbf3 0%, #f7f0d8 100%);
    border: 2px dashed var(--t-gold);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
}
.included-box h3 {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--t-olive-dark);
    text-align: center;
}
.included-box h3 i { color: var(--t-gold-dark); margin-right: 6px; }

.included-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .included-list { grid-template-columns: 1fr; }
}
.included-list li {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.7);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(201, 166, 107, 0.25);
}
.included-icon {
    font-size: 1.8rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.included-list strong { color: var(--t-olive-dark); font-size: 0.95rem; }
.included-list em { color: var(--t-muted); font-size: 0.82rem; }

/* Info-Box („Bald: Online-Verkauf") */
.info-box-cuban {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3c4 100%);
    border: 1px dashed var(--t-gold);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #6b4d12;
    line-height: 1.5;
}
.info-box-cuban i { color: var(--t-gold-dark); font-size: 1.4rem; flex-shrink: 0; }
.info-box-cuban em { color: #8d6711; }

/* Textarea wie Inputs stylen */
.field textarea {
    width: 100%; padding: 12px 14px;
    border: 2px solid #e0dccd;
    border-radius: 8px;
    font-size: 1rem; font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea:focus {
    outline: none; border-color: var(--t-gold); background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}


.consent {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 16px 0;
    font-size: 0.88rem;
    padding: 12px 14px;
    background: #fafaf2;
    border: 1px solid var(--t-border);
    border-radius: 8px;
}
.consent input { margin-top: 3px; accent-color: var(--t-olive); }
.consent a { color: var(--t-olive); }
.consent em { color: var(--t-muted); }

.cf-turnstile { margin: 14px 0; }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--t-gold) 0%, var(--t-gold-dark) 100%);
    color: #fff; border: none; border-radius: 8px;
    padding: 15px 22px;
    font-size: 1.05rem; font-weight: 800;
    cursor: pointer; font-family: inherit;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(201, 166, 107, 0.4);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 166, 107, 0.55); }
.btn-submit i { margin-right: 4px; }
.btn-submit:disabled,
.btn-submit.is-loading {
    cursor: progress;
    opacity: 0.85;
    transform: none;
}
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
/* Hidden-Attribut muss CSS-display schlagen */
.btn-text[hidden], .btn-loading[hidden] { display: none !important; }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.legal-note {
    color: var(--t-muted); font-size: 0.78rem; margin-top: 12px; line-height: 1.45;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    border: 1px solid;
    display: flex; align-items: center; gap: 10px;
}
.alert-error { background: #fdecea; color: var(--t-error); border-color: #f5c6c0; }
.alert i { font-size: 1.1rem; }

/* ---------- Success / Confirm ---------- */
.success-box {
    text-align: center;
    padding: 28px 20px;
    background: var(--t-card);
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid var(--t-border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.success-icon { font-size: 3.5rem; color: var(--t-success); margin-bottom: 10px; }
.success-box h1 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    color: var(--t-olive-dark);
    font-size: 1.6rem;
}
.success-box h1 .en { color: var(--t-muted); font-size: 1.1rem; font-style: italic; font-weight: 600; }

/* ---------- Verwendungszweck-Box ---------- */
.ref-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3c4 100%);
    border: 2px dashed var(--t-gold);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 22px;
    text-align: center;
}
.ref-label {
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--t-gold-dark); font-weight: 700;
}
.ref-display {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(201, 166, 107, 0.25);
    font-family: 'Courier New', monospace;
    font-size: 1.55rem; font-weight: 800;
    color: var(--t-olive-dark);
    letter-spacing: 1.5px;
}
.copy-btn {
    background: var(--t-gold); color: #fff;
    border: none; border-radius: 6px;
    width: 36px; height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.15s ease;
}
.copy-btn:hover { background: var(--t-gold-dark); transform: scale(1.05); }
.ref-hint {
    margin: 16px 0 0; font-size: 0.88rem; color: #6b4d12;
    background: rgba(255,255,255,0.5); padding: 10px 14px; border-radius: 8px;
}
.ref-hint em { color: #8d6711; }

/* ---------- Pay Grid ---------- */
.pay-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card {
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 20px 22px;
}
.pay-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pay-head i { font-size: 1.6rem; color: var(--t-olive); }
.pay-head h3 {
    margin: 0; font-family: 'Playfair Display', serif;
    font-size: 1.15rem; color: var(--t-olive-dark);
}
.pay-amount {
    font-size: 1.4rem; font-weight: 800; color: var(--t-olive-dark);
    margin: 6px 0 14px;
}
.btn-pay {
    display: inline-flex; align-items: center; gap: 8px;
    background: #003087; color: #fff;
    padding: 12px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 700;
    transition: background 0.2s ease;
}
.btn-pay:hover { background: #00256a; }
.pay-note { font-size: 0.82rem; color: var(--t-muted); margin: 12px 0 0; }
.pay-note.pay-ok    { color: #2e7d32; font-weight: 700; }
.pay-note.pay-err   { color: var(--t-error); font-weight: 700; }
.pay-note.pay-paid  { color: #2e7d32; font-weight: 700; font-size: 0.95rem; }
.paypal-btns { margin: 8px 0 4px; min-height: 50px; }
.sandbox-warn {
    margin: 10px 0 0; font-size: 0.78rem;
    background: #fff7e0; color: #8c6d1f;
    padding: 8px 12px; border-radius: 6px;
    border: 1px solid #ead49e;
}

/* Alternative paypal.me unter dem Smart-Checkout-Button */
.pay-alt {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--t-border);
}
.pay-alt-divider {
    display: block;
    text-align: center;
    color: var(--t-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.btn-pay-alt {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #003087;
    border: 2px solid #003087;
    padding: 9px 16px; border-radius: 8px;
    text-decoration: none; font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-pay-alt:hover { background: #003087; color: #fff; }
.pay-note.small { font-size: 0.78rem; }
.bank-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.9rem; }
.bank-info dt { font-weight: 700; color: var(--t-muted); }
.bank-info dd { margin: 0; }
.mono { font-family: 'Courier New', monospace; }

/* ---------- Info Box ---------- */
.info-box {
    background: var(--t-card);
    border-left: 5px solid var(--t-olive);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.info-box p { margin: 0 0 12px; font-size: 0.92rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box i { color: var(--t-olive); margin-right: 6px; }

/* ---------- Status ---------- */
.status-card {
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.status-card h1 {
    margin: 0 0 4px;
    font-family: 'Playfair Display', serif;
    color: var(--t-olive-dark);
    font-size: 1.5rem;
}
.status-event { color: var(--t-muted); margin: 0 0 18px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    font-weight: 700; font-size: 0.92rem;
    margin-bottom: 18px;
}
.status-reserved  { background: #fff7e0; color: #8c6d1f; }
.status-paid      { background: #e6f4ea; color: var(--t-success); }
.status-cancelled { background: #fdecea; color: var(--t-error); }
.status-expired   { background: #f0f0f0; color: var(--t-muted); }
.status-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: 0.92rem; }
.status-list dt { font-weight: 700; color: var(--t-muted); }
.status-list dd { margin: 0; }

.ticket-numbers { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ticket-numbers li {
    background: #fff9e6; padding: 9px 14px; border-radius: 8px;
    border: 1px solid var(--t-gold);
    font-size: 0.95rem;
}
.ticket-numbers i { color: var(--t-gold); margin-right: 8px; }

/* ---------- Buttons row ---------- */
.actions-row {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}
.btn-secondary, .btn-tertiary, .btn-danger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 8px;
    font-weight: 700; text-decoration: none;
    border: none; cursor: pointer; font-family: inherit;
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn-secondary { background: var(--t-olive); color: #fff; }
.btn-secondary:hover { background: var(--t-olive-dark); }
.btn-tertiary { background: #ececec; color: var(--t-text); }
.btn-tertiary:hover { background: #ddd; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #962d22; }

.footer-note {
    text-align: center; margin-top: 28px; color: var(--t-muted); font-size: 0.88rem;
}
.footer-note a { color: var(--t-olive); }

@media (max-width: 600px) {
    .event-hero { padding: 24px 20px; }
    .event-hero h1 { font-size: 1.55rem; }
    .ref-display { font-size: 1.15rem; padding: 12px 16px; gap: 8px; }
    .order-card, .status-card { padding: 20px; }
    .actions-row .btn-secondary, .actions-row .btn-tertiary, .actions-row .btn-danger { width: 100%; justify-content: center; }
}
