/**
 * Brandner Booking — Phase 3 (Widget) + Phase 4 (Buchungsseite, Mein-Konto).
 *
 * Slate-Stil, konsistent mit myaccount-orders.css:
 *   - Borders #e2e8f0, Hintergruende #f8fafc/#f1f5f9, Text #0f172a/#475569
 *   - Border-Radius 8-12px
 *   - Subtile Shadows: 0 1px 3px rgba(15,23,42,0.06)
 *   - Akzent-Schwarz #1a1a1a fuer primaere CTAs
 *   - Status-Farben: gruen #16a34a, amber #d97706, rot #dc2626, gray #64748b
 *
 * Verwendet auf:
 *   - Buchungsseite (/auktion-projekt/<slug>/termin-buchen/)
 *   - Mein-Konto > Meine Termine
 *   - Sidebar-Buttons auf Auktionsprojekt-Seiten (Sidebar-CTA)
 *
 * @package Brandner_Custom
 * @since 1.7.0
 */

/* =========================================================================
 * Widget — Container und Block-/Hinweis-Messages
 * ========================================================================= */

.brandner-booking-widget {
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
}

.brandner-booking-widget--blocked {
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    line-height: 1.55;
}

.brandner-booking-widget--blocked.brandner-booking-widget--info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.brandner-booking-widget--blocked p {
    margin: 0 0 0.5rem;
}

.brandner-booking-widget--blocked p:last-child {
    margin: 0;
}

.brandner-booking-widget--blocked a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.brandner-booking-widget__header {
    margin-bottom: 1rem;
}

.brandner-booking-widget__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.brandner-booking-widget__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.brandner-booking-widget__loading,
.brandner-booking-widget__empty {
    padding: 1.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

/* -------------------------------------------------------------------------
 * Datums-Tabs
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.brandner-booking-widget__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.7rem 0.5rem 0.55rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
    text-align: center;
    font-family: inherit;
}

.brandner-booking-widget__date:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.brandner-booking-widget__date:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.brandner-booking-widget__date--active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.brandner-booking-widget__date--has-booking {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px #16a34a inset;
}

.brandner-booking-widget__date--has-booking.brandner-booking-widget__date--active {
    background: #166534;
    border-color: #166534;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}

.brandner-booking-widget__date--full {
    background: #f8fafc;
    color: #94a3b8;
}

.brandner-booking-widget__date--full .brandner-booking-widget__date-summary {
    color: #b91c1c;
}

.brandner-booking-widget__date-weekday {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.brandner-booking-widget__date-day {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.brandner-booking-widget__date-month {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
}

.brandner-booking-widget__date-summary {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
    line-height: 1.2;
}

.brandner-booking-widget__date--active .brandner-booking-widget__date-summary {
    color: rgba(255, 255, 255, 0.92);
}

/* -------------------------------------------------------------------------
 * Slot-Liste
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
    margin: 0 0 0.75rem;
}

.brandner-booking-widget__slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
    font-family: inherit;
}

.brandner-booking-widget__slot:hover:not(.is-disabled):not(.is-mine) {
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.brandner-booking-widget__slot:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.brandner-booking-widget__slot-time {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.brandner-booking-widget__slot-state {
    font-size: 0.78rem;
    font-weight: 500;
    color: #16a34a;
}

.brandner-booking-widget__slot.is-full,
.brandner-booking-widget__slot.is-disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.brandner-booking-widget__slot.is-full .brandner-booking-widget__slot-time,
.brandner-booking-widget__slot.is-disabled .brandner-booking-widget__slot-time {
    color: #94a3b8;
}

.brandner-booking-widget__slot.is-full .brandner-booking-widget__slot-state {
    color: #b91c1c;
}

.brandner-booking-widget__slot.is-past .brandner-booking-widget__slot-state {
    color: #94a3b8;
}

.brandner-booking-widget__slot.is-mine {
    background: #ecfdf5;
    border-color: #16a34a;
    box-shadow: 0 0 0 1px #16a34a inset;
    cursor: default;
}

.brandner-booking-widget__slot.is-mine .brandner-booking-widget__slot-state {
    color: #166534;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Confirmation-Card (nach erfolgreicher Buchung oder bei vorhandener Buchung)
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__confirmed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.brandner-booking-widget__confirmed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.16);
}

.brandner-booking-widget__confirmed-heading {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #064e3b;
    letter-spacing: -0.01em;
}

.brandner-booking-widget__confirmed-details {
    width: 100%;
    max-width: 420px;
    margin: 0.4rem 0 0;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    text-align: left;
}

.brandner-booking-widget__confirmed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #ecfdf5;
}

.brandner-booking-widget__confirmed-row:last-child {
    border-bottom: 0;
}

.brandner-booking-widget__confirmed-row-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #047857;
}

.brandner-booking-widget__confirmed-row-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.brandner-booking-widget__confirmed-subline {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    max-width: 480px;
}

.brandner-booking-widget__confirmed-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .brandner-booking-widget__confirmed-card {
        padding: 1.5rem 1rem;
    }
    .brandner-booking-widget__confirmed-heading {
        font-size: 1.2rem;
    }
}

/* -------------------------------------------------------------------------
 * Pending-Card (Bestaetigungs-Schritt vor dem eigentlichen Buchungs-POST)
 *
 * Erbt das Layout der Confirmed-Card, verwendet aber ein neutrales Slate-Blau-
 * Schema statt Gruen — der Termin ist eben noch NICHT bestaetigt.
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__pending-card {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-color: #bae6fd;
}

.brandner-booking-widget__pending-card .brandner-booking-widget__confirmed-heading {
    color: #0c4a6e;
}

.brandner-booking-widget__pending-card .brandner-booking-widget__confirmed-details {
    border-color: #bae6fd;
}

.brandner-booking-widget__pending-card .brandner-booking-widget__confirmed-row {
    border-bottom-color: #e0f2fe;
}

.brandner-booking-widget__pending-card .brandner-booking-widget__confirmed-row-label {
    color: #0369a1;
}

.brandner-booking-widget__pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #0ea5e9;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.16);
}

.brandner-booking-widget__pending-intro {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    max-width: 460px;
}

/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
 * Bestehende eigene Buchung (Banner oben im Widget)
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__existing {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #ecfdf5;
    border: 1px solid #16a34a;
    border-radius: 10px;
    color: #064e3b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.brandner-booking-widget__existing strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
}

.brandner-booking-widget__existing-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    font-family: inherit;
}

.brandner-booking-widget__btn:hover,
.brandner-booking-widget__btn:focus {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.brandner-booking-widget__btn--secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.brandner-booking-widget__btn--secondary:hover,
.brandner-booking-widget__btn--secondary:focus {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.brandner-booking-widget__btn--primary {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    box-shadow:
        0 6px 14px rgba(22, 163, 74, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.brandner-booking-widget__btn--primary:hover,
.brandner-booking-widget__btn--primary:focus {
    background: linear-gradient(135deg, #14532d 0%, #15803d 55%, #16a34a 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 8px 18px rgba(22, 163, 74, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brandner-booking-widget__btn--danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fecaca;
}

.brandner-booking-widget__btn--danger:hover,
.brandner-booking-widget__btn--danger:focus {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.brandner-booking-widget__btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * Status-Banner (success / error)
 * ------------------------------------------------------------------------- */

.brandner-booking-widget__status {
    margin-top: 0.5rem;
    min-height: 1px;
}

.brandner-booking-widget__status-msg {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.brandner-booking-widget__status-msg--success {
    background: #ecfdf5;
    color: #064e3b;
    border: 1px solid #a7f3d0;
}

.brandner-booking-widget__status-msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================================================================
 * Mein-Konto > Meine Termine
 * ========================================================================= */

.brandner-myappointments-wrap {
    color: #0f172a;
}

.brandner-myappointments-wrap > p {
    margin: 0 0 1rem;
    color: #475569;
}

.brandner-myappointments {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .brandner-myappointments {
        grid-template-columns: repeat(2, 1fr);
    }
}

.brandner-myappointments__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brandner-myappointments__item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.brandner-myappointments__item.is-past {
    opacity: 0.78;
}

.brandner-myappointments__date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-family: inherit;
}

.brandner-myappointments__item.is-today .brandner-myappointments__date-block {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.brandner-myappointments__date-weekday {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.brandner-myappointments__item.is-today .brandner-myappointments__date-weekday {
    color: rgba(255, 255, 255, 0.85);
}

.brandner-myappointments__date-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
    margin: 0.1rem 0 0.05rem;
}

.brandner-myappointments__item.is-today .brandner-myappointments__date-day {
    color: #ffffff;
}

.brandner-myappointments__date-month {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
}

.brandner-myappointments__item.is-today .brandner-myappointments__date-month {
    color: rgba(255, 255, 255, 0.85);
}

.brandner-myappointments__main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.brandner-myappointments__top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brandner-myappointments__project {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    min-width: 0;
    word-break: break-word;
}

.brandner-myappointments__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brandner-myappointments__badge--type-besichtigung {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.brandner-myappointments__badge--type-abholung {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.brandner-myappointments__badge--upcoming {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.brandner-myappointments__badge--today {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.brandner-myappointments__badge--past {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

.brandner-myappointments__time {
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a;
}

.brandner-myappointments__hint {
    font-size: 0.82rem;
    color: #64748b;
}

.brandner-myappointments__hint--warn {
    color: #b45309;
}

.brandner-myappointments__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.brandner-myappointments__empty {
    padding: 2rem 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
}

/* =========================================================================
 * Mein-Konto > „Termin buchen"-Sektion (buchbare Projekte als Cards)
 * ========================================================================= */

.brandner-bookable-projects {
    margin: 0 0 1.5rem;
    padding: 0;
}

.brandner-bookable-projects__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.brandner-bookable-projects__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.brandner-bookable-projects__item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brandner-bookable-projects__item:hover {
    border-color: #cbd5e1;
}

.brandner-bookable-projects__item.is-open {
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.brandner-bookable-projects__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.brandner-bookable-projects__head:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: -2px;
}

.brandner-bookable-projects__name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.brandner-bookable-projects__types {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.brandner-bookable-projects__type-pill {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brandner-bookable-projects__type-pill--besichtigung {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.brandner-bookable-projects__type-pill--abholung {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.brandner-bookable-projects__chevron {
    width: 18px;
    height: 18px;
    color: #64748b;
    transition: transform 0.18s ease;
    flex: 0 0 auto;
}

.brandner-bookable-projects__item.is-open .brandner-bookable-projects__chevron {
    transform: rotate(180deg);
    color: #0f172a;
}

.brandner-bookable-projects__body {
    display: none;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.brandner-bookable-projects__item.is-open .brandner-bookable-projects__body {
    display: block;
}

.brandner-bookable-projects__body-section {
    margin-top: 1rem;
}

.brandner-bookable-projects__body-section:first-child {
    margin-top: 0;
}

.brandner-bookable-projects__body-section h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

/* =========================================================================
 * Phase 4: Buchungs-Page (vollseitig)
 * ========================================================================= */

.brandner-booking-page {
    padding: 1.5rem 1rem 4rem;
    min-height: 60vh;
    background: #f8fafc;
}

.brandner-booking-page__inner {
    max-width: 960px;
    margin: 0 auto;
}

.brandner-booking-page__nav {
    margin-bottom: 1rem;
}

.brandner-booking-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: border-color 0.12s ease, color 0.12s ease;
}

.brandner-booking-page__back:hover,
.brandner-booking-page__back:focus {
    border-color: #0f172a;
    color: #0f172a;
}

/* Hero --------------------------------------------------------------- */

.brandner-booking-page__hero {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    color: #ffffff;
    overflow: hidden;
}

.brandner-booking-page__hero.has-image {
    padding: 3rem 1.5rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brandner-booking-page__hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.brandner-booking-page__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.78);
}

.brandner-booking-page__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brandner-booking-page__phase {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.brandner-booking-page__phase::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* Tabs --------------------------------------------------------------- */

.brandner-booking-page__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.brandner-booking-page__tab {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #475569;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.brandner-booking-page__tab:hover:not(.is-active) {
    background: #f8fafc;
    color: #0f172a;
}

.brandner-booking-page__tab:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.brandner-booking-page__tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.brandner-booking-page__tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #0f172a;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.brandner-booking-page__tab[data-tab="besichtigung"] .brandner-booking-page__tab-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.brandner-booking-page__tab[data-tab="abholung"] .brandner-booking-page__tab-icon {
    background: #fef3c7;
    color: #92400e;
}

.brandner-booking-page__tab.is-active .brandner-booking-page__tab-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.brandner-booking-page__tab-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.brandner-booking-page__tab.is-active .brandner-booking-page__tab-label {
    color: #ffffff;
}

.brandner-booking-page__tab-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brandner-booking-page__tab.is-open .brandner-booking-page__tab-status {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.brandner-booking-page__tab.is-open .brandner-booking-page__tab-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.brandner-booking-page__tab.is-active .brandner-booking-page__tab-status {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.92);
}

.brandner-booking-page__tab.is-active.is-open .brandner-booking-page__tab-status::before {
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

@media (max-width: 520px) {
    .brandner-booking-page__tabs {
        grid-template-columns: 1fr;
    }
    .brandner-booking-page__tab {
        grid-template-columns: auto 1fr auto;
    }
}

/* Sections ----------------------------------------------------------- */

.brandner-booking-page__sections {
    position: relative;
}

.brandner-booking-page__section {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.brandner-booking-page__section.is-active {
    display: block;
}

.brandner-booking-page__section.is-closed {
    background: #f8fafc;
}

.brandner-booking-page__section-body {
    padding: 1.25rem;
}

/* Notes -------------------------------------------------------------- */

.brandner-booking-page__notes {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

.brandner-booking-page__notes h3 {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.brandner-booking-page__notes ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.brandner-booking-page__notes li {
    padding-left: 1.2rem;
    position: relative;
}

.brandner-booking-page__notes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
}

.brandner-booking-page__notes strong {
    color: #0f172a;
    font-weight: 600;
}

.brandner-booking-page__notes a {
    color: #0f172a;
    font-weight: 500;
}

/* Empty / Mode-Mismatch ------------------------------------------------- */

.brandner-booking-page__empty {
    margin-top: 1rem;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #475569;
    line-height: 1.55;
    text-align: center;
}

.brandner-booking-page__empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

.brandner-booking-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.55rem 1rem;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.brandner-booking-page__btn:hover,
.brandner-booking-page__btn:focus {
    background: #1e293b;
    color: #ffffff !important;
}

/* =========================================================================
 * Mein-Konto > Bestellungen — Termin-Buchen-Aktion pro Order
 * ========================================================================= */

.woocommerce-orders-table .brandner-booking-book,
a.button.brandner-booking-book {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.woocommerce-orders-table .brandner-booking-book:hover,
.woocommerce-orders-table .brandner-booking-book:focus,
a.button.brandner-booking-book:hover,
a.button.brandner-booking-book:focus {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    border-color: #15803d !important;
}

.woocommerce-orders-table .brandner-booking-done,
a.button.brandner-booking-done {
    background: #ecfdf5 !important;
    color: #166534 !important;
    border-color: #a7f3d0 !important;
    font-weight: 600 !important;
}

.woocommerce-orders-table .brandner-booking-done::before,
a.button.brandner-booking-done::before {
    content: '\2713\00a0';
    font-weight: 700;
    margin-right: 0.15em;
}

.woocommerce-orders-table .brandner-booking-done:hover,
.woocommerce-orders-table .brandner-booking-done:focus,
a.button.brandner-booking-done:hover,
a.button.brandner-booking-done:focus {
    background: #d1fae5 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

/* Hinweis: Die Styles fuer den Sidebar-Buchungs-CTA der Auktionsprojekt-Seite
 * liegen in project-page.css (.sidebar-booking-cta / .sidebar-booking-btn) —
 * booking-widget.css wird auf der Taxonomie-Seite nicht geladen. */
