/**
 * PHG Event Registration – Frontend-Styles
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.phg-event-form {
    margin: 1.5em 0 2em;
    font-size: 0.95em;
}

/* ── Sektions-Rahmen (farbige Überschriften wie DGS) ─────────────────────── */

.phg-form-section {
    margin-bottom: 1.5em;
}

.phg-form-section__title {
    color: #ff8000;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 0.75em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #ffddb3;
}

/* ── Einzelne Karten (Ereignisse, Begleitperson, Zahlungsart) ────────────── */

.phg-section {
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    padding: 0.9em 1.1em;
    margin-bottom: 0.8em;
    background: #fff;
}

.phg-section--begleitperson {
    border-color: #a0bcd8;
    background: #f0f6fc;
}

.phg-section--event-group {
    border-color: #b0b0b0;
}

.phg-section--zahlungsart {
    border-color: #a0bcd8;
    background: #f0f6fc;
    margin-top: 0;
}

.phg-section__title {
    margin: 0 0 0.6em;
    font-size: 1em;
    font-weight: 600;
}

/* ── Ihre Daten ──────────────────────────────────────────────────────────── */

.phg-ihre-daten {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em 1.5em;
    margin-bottom: 0.5em;
}

.phg-field-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.phg-field-label {
    font-weight: 600;
    white-space: nowrap;
    min-width: 4em;
}

.phg-select {
    padding: 0.3em 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}

.phg-field-input {
    max-width: 200px;
}

.phg-daten-hint {
    font-size: 0.85em;
    color: #888;
    margin: 0 0 0.5em;
    font-style: italic;
}

/* ── Danke-Meldung (Fall 1) ──────────────────────────────────────────────── */

.phg-success-message {
    background: #f0faf0;
    border: 2px solid #7ab87a;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.phg-success-message p {
    margin: 0;
    font-weight: 600;
    color: #2d6a2d;
    flex: 1;
}

/* ── Bereits im Warenkorb (Fall 2) ───────────────────────────────────────── */

.phg-already-in-cart {
    background: #f0f6fc;
    border: 2px solid #a0bcd8;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
}

.phg-already-in-cart > p {
    margin: 0 0 0.5em;
    font-weight: 600;
    color: #2a6496;
}

.phg-edit-hint {
    font-size: 0.9em;
    margin: 0 0 1em !important;
    font-weight: normal !important;
    color: #444 !important;
}

.phg-cart-buttons {
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
}

/* ── Anmelder-Info ───────────────────────────────────────────────────────── */

.phg-anmelder-info {
    margin-bottom: 1.2em;
    padding: 0.7em 1em;
    border-radius: 4px;
    font-size: 0.9em;
}

.phg-anmelder-info--loggedin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    background: #f0f6fc;
    border: 1px solid #a0bcd8;
    margin-top: 0.9em;
    margin-bottom: 0.4em;
}

.phg-anmelder-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9em;
}

.phg-anmelder-table th {
    text-align: left;
    font-weight: 600;
    color: #555;
    padding: 0.15em 0.8em 0.15em 0;
    white-space: nowrap;
    width: 5em;
}

.phg-anmelder-table td {
    padding: 0.15em 0;
    color: #222;
}

.phg-anmelder-incomplete {
    margin: 0.5em 0 0;
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

.phg-anmelder-info--guest {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #555;
    margin-top: 0.9em;
    margin-bottom: 0.4em;
}

/* ── Begleitperson ───────────────────────────────────────────────────────── */

.phg-begleit-intro {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 0.6em;
}

#phg_begleitperson_name {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.phg-begleitperson-event {
    margin-top: 0.5em;
    padding-top: 0.5em;
    border-top: 1px dotted #ccc;
}

/* ── Festival-Anmeldung ──────────────────────────────────────────────────── */

.phg-festival-anmeldung {
    padding: 0.5em 0;
}

.phg-festival-anmeldung .phg-label span {
    font-weight: 600;
}

/* ── Helfen Sie mit! ─────────────────────────────────────────────────────── */

.phg-helfen-intro {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 0.6em;
}

/* ── Event-Header ────────────────────────────────────────────────────────── */

.phg-event-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4em 0.8em;
    margin-bottom: 0.5em;
}

.phg-event-date {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.phg-event-label {
    font-weight: 600;
}

.phg-price-badge {
    color: #ff8000;
    font-weight: 600;
    white-space: nowrap;
}

.phg-event-meta {
    font-size: 0.82em;
    color: #888;
}

/* ── Zwischensumme pro Event ─────────────────────────────────────────────── */

.phg-event-subtotal {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
    border-top: 1px dotted #ddd;
    padding-top: 0.4em;
}

.phg-subtotal-amount {
    font-weight: 600;
    color: #ff8000;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */

.phg-label {
    display: flex;
    align-items: flex-start;
    gap: 0.45em;
    cursor: pointer;
    margin-bottom: 0.3em;
    line-height: 1.4;
}

.phg-label--inline {
    display: inline-flex;
    margin-right: 1.2em;
}

.phg-attend-label {
    font-style: italic;
}

/* ── Suboptions (initial ausgeblendet, via JS gesteuert) ─────────────────── */

.phg-suboptions {
    display: none;
    margin-top: 0.7em;
    margin-left: 1.4em;
    padding: 0.7em 0.9em;
    background: #f7f7f7;
    border-left: 3px solid #ff8000;
    border-radius: 0 4px 4px 0;
}

/* ── Sub-Events ──────────────────────────────────────────────────────────── */

.phg-sub-event {
    margin-bottom: 0.4em;
    padding-bottom: 0.4em;
    border-bottom: 1px dotted #ddd;
}

.phg-sub-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.phg-sub-date {
    font-size: 0.85em;
    color: #777;
    margin-right: 0.2em;
}

/* ── Radio-Gruppen ───────────────────────────────────────────────────────── */

.phg-radio-group {
    border: none;
    padding: 0;
    margin: 0.5em 0;
}

.phg-radio-group legend {
    font-weight: 600;
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

/* ── Gesamtbetrag / Preiszusammenfassung ─────────────────────────────────── */

.phg-price-summary {
    background: #f0f6fc;
    border: 1px solid #a0bcd8;
    border-radius: 5px;
    padding: 0.9em 1.1em;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
}

#phg-price-list {
    list-style: none;
    margin: 0 0 0.6em;
    padding: 0;
}

#phg-price-list li {
    padding: 0.2em 0;
    border-bottom: 1px dotted #ccc;
}

#phg-price-list li:last-child {
    border-bottom: none;
}

.phg-price-list--empty {
    color: #888;
}

.phg-price-total {
    font-size: 1.05em;
    margin-top: 0.5em;
}

#phg-price-total {
    font-size: 1.1em;
    color: #ff8000;
    font-weight: 700;
}

/* ── Zahlungsart ─────────────────────────────────────────────────────────── */

.phg-section--zahlungsart .phg-label {
    margin-bottom: 0.5em;
}

/* ── Pflichtfeld-Hinweis ─────────────────────────────────────────────────── */

.phg-event-form .phg-required-note {
    font-size: 0.82em;
    color: #888;
    margin-top: 0.5em;
}

/* ── Warenkorb-Zusammenfassung ───────────────────────────────────────────── */

.phg-cart-summary {
    display: block;
    margin-top: 0.4em;
    line-height: 1.7;
    font-size: 0.9em;
}

/* ── Bestelldetails (Admin / E-Mail) ─────────────────────────────────────── */

.phg-order-details {
    margin: 0.5em 0 0;
    font-size: 0.88em;
}

.phg-order-details dt {
    font-weight: 600;
    margin-top: 0.3em;
}

.phg-order-details dd {
    margin-left: 1em;
    color: #444;
}

/* ── Responsiv ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .phg-event-header {
        flex-direction: column;
        gap: 0.2em;
    }
    .phg-label--inline {
        display: flex;
        margin-right: 0;
    }
    .phg-ihre-daten {
        flex-direction: column;
    }
}

