/**
 * Schwimm-mit-Mobi Booking Theme
 * Einheitliches, eingebettetes Design für alle Buchungsschritte
 */

:root {
    --mobi-red: #e00000;
    --mobi-red-dark: #b80000;
    --mobi-red-soft: #fff0f0;
    --mobi-ink: #1f2a30;
    --mobi-muted: #5a6a72;
    --mobi-white: #ffffff;
    --mobi-border: rgba(31, 42, 48, 0.08);
    --mobi-shadow: 0 10px 32px rgba(31, 42, 48, 0.1);
    --mobi-radius: 1.25rem;
    --mobi-success: #198754;
    --mobi-success-soft: #e8f6ee;
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--mobi-ink);
    background: #f5f5f5;
}

body.iframe-mode {
    min-height: auto;
    background: transparent;
}

h1, h2, h3, h4, h5, .section-title {
    font-family: Outfit, sans-serif;
    color: var(--mobi-ink);
}

/* ── Fortschrittsleiste ── */
.booking-progress {
    background: var(--mobi-white);
    border-bottom: 1px solid var(--mobi-border);
    color: var(--mobi-ink);
    padding: 1rem 0;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(31, 42, 48, 0.04);
}

body.iframe-mode .booking-progress {
    padding: 0.65rem 0;
    margin-bottom: 1rem;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    gap: 0.5rem 1rem;
    padding: 0 1rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(31, 42, 48, 0.1);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef1f3;
    border: 2px solid #dde3e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--mobi-muted);
    transition: all 0.25s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--mobi-red), var(--mobi-red-dark));
    border-color: var(--mobi-red);
    color: white;
    box-shadow: 0 4px 14px rgba(224, 0, 0, 0.25);
    transform: scale(1.08);
}

.step.completed .step-number {
    background: var(--mobi-success);
    border-color: var(--mobi-success);
    color: white;
    font-size: 0;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mobi-muted);
    text-align: center;
    line-height: 1.15;
}

.step.active .step-label {
    color: var(--mobi-red-dark);
    font-weight: 700;
}

.step.completed .step-label {
    color: var(--mobi-ink);
}

/* ── Info-Boxen ── */
.location-info,
.target-group-info {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mobi-border);
    box-shadow: var(--mobi-shadow);
    position: relative;
    overflow: hidden;
}

.location-info::before,
.target-group-info::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mobi-red), var(--mobi-red-dark));
}

.location-info h3,
.target-group-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.location-info i,
.target-group-info i {
    color: var(--mobi-red);
}

/* ── Karten (Zielgruppe, Kurs) ── */
.target-group-card,
.course-card {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--mobi-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--mobi-border);
    border-left: 5px solid var(--mobi-red);
    cursor: pointer;
}

.target-group-card:hover,
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 42, 48, 0.12);
    border-color: rgba(224, 0, 0, 0.18);
}

.course-card {
    position: relative;
    overflow: visible;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.course-card.selected {
    border-left-color: var(--mobi-red-dark);
    background: var(--mobi-red-soft);
}

.course-card.booked {
    border-left-color: #dc3545;
    background: #fff5f5;
    opacity: 0.85;
}

.course-card.available {
    border-left-color: var(--mobi-success);
    background: var(--mobi-success-soft);
}

.target-group-header,
.course-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.target-group-title,
.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mobi-ink);
    margin: 0;
    flex: 1;
}

.target-group-icon {
    font-size: 1.5rem;
    color: var(--mobi-red);
}

.target-group-description,
.course-description {
    color: var(--mobi-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.course-count {
    background: var(--mobi-red-soft);
    color: var(--mobi-red-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-type {
    background: var(--mobi-red-soft);
    color: var(--mobi-red-dark);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.course-info,
.info-item {
    color: var(--mobi-muted);
}

.course-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item i {
    margin-right: 0.5rem;
    color: var(--mobi-red);
    width: 20px;
}

.course-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Monate & Filter ── */
.month-section {
    margin-bottom: 2rem;
}

.month-header {
    background: var(--mobi-white);
    color: var(--mobi-ink);
    padding: 1rem 1.25rem;
    border-radius: var(--mobi-radius);
    margin-bottom: 1.25rem;
    border: 1px solid var(--mobi-border);
    box-shadow: var(--mobi-shadow);
    position: relative;
    overflow: hidden;
}

.month-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mobi-red), var(--mobi-red-dark));
}

.month-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mobi-ink);
}

.month-subtitle {
    font-size: 0.9rem;
    color: var(--mobi-muted);
    margin: 0.25rem 0 0;
}

@media (max-width: 768px) {
    .month-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

.month-selector,
.filter-section {
    background: var(--mobi-white);
    border-radius: 0.85rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(31, 42, 48, 0.06);
    border: 1px solid var(--mobi-border);
}

.month-selector h6,
.filter-section h6 {
    margin-bottom: 0.65rem;
    color: var(--mobi-ink);
    font-weight: 600;
}

.month-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.month-btn {
    background: #f3f4f5;
    border: 1px solid #dde3e7;
    color: var(--mobi-ink);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.month-btn:hover {
    background: var(--mobi-red-soft);
    border-color: rgba(224, 0, 0, 0.2);
}

.month-btn.active {
    background: var(--mobi-red);
    border-color: var(--mobi-red);
    color: white;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mobi-red);
}

.filter-checkbox label {
    margin: 0;
    font-weight: 500;
    color: var(--mobi-ink);
    cursor: pointer;
}

.filter-stats {
    background: #f3f4f5;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
    color: var(--mobi-muted);
}

/* ── Termine ── */
.appointments-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mobi-border);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.appointments-section h6 {
    color: var(--mobi-red-dark);
    font-weight: 600;
}

.appointment-card {
    background: var(--mobi-white);
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(31, 42, 48, 0.06);
    border: 1px solid var(--mobi-border);
    border-left: 3px solid #cdd5db;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.appointment-card.booked {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.appointment-card.available {
    border-left-color: var(--mobi-success);
    background: var(--mobi-success-soft);
}

.appointment-card.is-selected {
    border-left-color: var(--mobi-red) !important;
    background: var(--mobi-red-soft) !important;
    box-shadow: 0 2px 10px rgba(224, 0, 0, 0.12);
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 42, 48, 0.1);
}

.appointment-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mobi-ink);
}

.appointment-time {
    font-size: 0.88rem;
    color: var(--mobi-muted);
}

.course-booking-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mobi-border);
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.course-booking-section .inline-continue-btn {
    width: auto;
    min-width: 0;
    min-height: 44px;
    flex: 0 1 auto;
}


/* ── Buttons ── */
.btn-primary,
.btn-select,
.btn-submit,
.btn-continue,
.btn-location {
    background: var(--mobi-red) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 999px !important;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-select:hover,
.btn-submit:hover,
.btn-continue:hover,
.btn-location:hover {
    background: var(--mobi-red-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(224, 0, 0, 0.22);
}

.btn-outline-primary {
    border: 2px solid var(--mobi-red) !important;
    color: var(--mobi-red) !important;
    background: white !important;
    border-radius: 999px !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--mobi-red) !important;
    color: white !important;
}

.btn-select {
    padding: 0.65rem 1.25rem;
}

.btn-select.selected {
    background: var(--mobi-red-dark) !important;
}

.btn-waitlist {
    background: #ffc107;
    border: 2px solid #ffc107;
    color: #212529;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    width: 100%;
}

.btn-waitlist:hover {
    background: #e0a800;
    border-color: #e0a800;
}

/* ── Formular (Schritt 4) ── */
.booking-form-container {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 1.5rem;
    box-shadow: var(--mobi-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--mobi-border);
}

.course-summary {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mobi-border);
    box-shadow: var(--mobi-shadow);
    position: relative;
    overflow: hidden;
}

.course-summary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mobi-red), var(--mobi-red-dark));
}

.payment-required-notice {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid #f39c12;
    background: #fff8e8;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 600;
    color: var(--mobi-ink);
}

.required-field::after {
    content: " *";
    color: var(--mobi-red);
}

.form-control {
    border: 1px solid #dde3e7;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--mobi-red);
    box-shadow: 0 0 0 0.2rem rgba(224, 0, 0, 0.12);
}

.privacy-policy {
    background: var(--mobi-red-soft);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.privacy-policy h6 {
    color: var(--mobi-red-dark);
    font-weight: 600;
}

.appointment-details {
    background: var(--mobi-success-soft);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 4px solid var(--mobi-success);
}

.appointment-details h5 {
    color: var(--mobi-success);
    font-weight: 600;
}

.appointment-info .info-item i {
    color: var(--mobi-success);
}

.summary-item {
    padding: 1rem;
    background: #f3f4f5;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ── Bestätigung (Schritt 5) ── */
.success-container {
    background: var(--mobi-white);
    color: var(--mobi-ink);
    padding: 2.5rem 0 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--mobi-border);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--mobi-success);
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--mobi-ink);
}

.success-subtitle {
    font-size: 1.05rem;
    color: var(--mobi-muted);
}

.confirmation-card {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 1.5rem;
    box-shadow: var(--mobi-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--mobi-border);
}

.booking-details {
    background: #f8f9fa;
    border-radius: 0.85rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--mobi-border);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--mobi-border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--mobi-ink);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.detail-label i {
    color: var(--mobi-red);
}

.booking-number {
    background: var(--mobi-red-soft);
    border-radius: var(--mobi-radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(224, 0, 0, 0.15);
}

.booking-number h5 {
    color: var(--mobi-red-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.booking-number-wrapper {
    background: var(--mobi-white);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    display: inline-block;
    border: 1px dashed rgba(224, 0, 0, 0.25);
}

.booking-number-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mobi-red-dark);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-button {
    background: var(--mobi-red);
    border: none;
    color: white;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.75rem;
}

.copy-button:hover {
    background: var(--mobi-red-dark);
}

.info-box {
    background: #fff8e8;
    border-left: 4px solid #ffc107;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ── Loading ── */
.loading-container,
.booking-progress-container {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.loading-container.hidden,
.booking-progress-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: min(400px, 100%);
    padding: 2rem;
}

.spinner {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: mobi-spin 1.2s linear infinite;
}

.spinner-ring:nth-child(1) { border-top-color: var(--mobi-red); }
.spinner-ring:nth-child(2) { border-right-color: var(--mobi-muted); animation-delay: 0.2s; }
.spinner-ring:nth-child(3) { border-bottom-color: var(--mobi-red-dark); animation-delay: 0.4s; }

@keyframes mobi-spin {
    to { transform: rotate(360deg); }
}

.loading-progress,
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill,
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mobi-red), var(--mobi-red-dark));
    border-radius: 2px;
}

.progress-fill {
    animation: mobi-progress 2s ease-in-out infinite;
}

@keyframes mobi-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.booking-progress-content {
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    padding: 2rem;
    box-shadow: var(--mobi-shadow);
    max-width: 480px;
    width: 90%;
    border: 1px solid var(--mobi-border);
}

.progress-step.active {
    background: var(--mobi-red-soft);
    border-left: 4px solid var(--mobi-red);
}

.progress-step.completed {
    background: var(--mobi-success-soft);
    border-left: 4px solid var(--mobi-success);
}

.progress-step.active .progress-step-icon {
    background: var(--mobi-red);
    color: white;
}

.progress-step.completed .progress-step-icon {
    background: var(--mobi-success);
    color: white;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .booking-progress {
        padding: 0.75rem 0;
    }

    .progress-steps {
        gap: 0;
        padding: 0 0.5rem;
        justify-content: space-between;
    }

    .progress-steps::before {
        display: none;
    }

    .step {
        flex: 1;
        max-width: 72px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .course-card {
        min-height: auto;
        padding: 1.1rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-outline-primary {
        width: 100%;
        justify-content: center;
    }

    .success-title {
        font-size: 1.65rem;
    }
}

@media (min-width: 1200px) {
    .course-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Landingpage Standortauswahl ── */
.mobi-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem;
}

body.iframe-mode .mobi-page {
    padding: 0.5rem 0.75rem 1rem;
}

.mobi-section-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.mobi-section-head h1 {
    font-family: Outfit, sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: var(--mobi-ink);
    margin: 0 0 0.35rem;
}

.mobi-section-head p {
    margin: 0;
    color: var(--mobi-muted);
    font-size: 0.95rem;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.35rem;
    align-items: stretch;
}

a.location-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    overflow: hidden;
    border: 1px solid var(--mobi-border);
    box-shadow: var(--mobi-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.location-card:hover,
a.location-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 42, 48, 0.12);
    border-color: rgba(224, 0, 0, 0.22);
    outline: none;
}

.location-card-top {
    background: var(--mobi-white);
    padding: 1.35rem 1.4rem;
    position: relative;
    border-bottom: 1px solid var(--mobi-border);
    height: 7.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-card-top::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mobi-red), var(--mobi-red-dark));
}

.location-card-icon {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    background: var(--mobi-red-soft);
    color: var(--mobi-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-left: 0.35rem;
}

.location-card-top h3 {
    font-family: Outfit, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    display: flex;
    align-items: center;
}

.location-card-body {
    padding: 1.25rem 1.4rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-meta {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
    flex: 1;
}

.location-meta div {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--mobi-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.location-meta i {
    color: var(--mobi-red);
    margin-top: 0.15rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.location-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--mobi-red);
    margin-top: auto;
}

a.location-card:hover .location-cta i {
    transform: translateX(4px);
}

.location-cta i {
    transition: transform 0.2s ease;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--mobi-white);
    border-radius: var(--mobi-radius);
    border: 1px dashed rgba(31, 42, 48, 0.15);
    color: var(--mobi-muted);
}

.mobi-page-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

body.iframe-mode .mobi-page-footer,
body.iframe-mode .logo-wrap {
    display: none;
}

.mobi-page-footer a {
    color: #666;
    text-decoration: none;
}

.mobi-page-footer a:hover {
    color: var(--mobi-red);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.logo-wrap img {
    width: 140px;
    height: auto;
    opacity: 0.85;
}

/* ── Buchungsflow: Shell, Zurück, Responsive ── */
.booking-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem 1.75rem;
    width: 100%;
}

body.iframe-mode .booking-shell {
    padding: 0 0.75rem 1.25rem;
}

.booking-section-head {
    margin-bottom: 1.25rem;
}

.booking-back-nav {
    margin-bottom: 1rem;
}

.booking-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mobi-ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--mobi-white);
    border: 1px solid var(--mobi-border);
    box-shadow: 0 2px 8px rgba(31, 42, 48, 0.05);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.booking-back-link:hover,
.booking-back-link:focus-visible {
    color: var(--mobi-red);
    border-color: rgba(224, 0, 0, 0.25);
    box-shadow: 0 4px 14px rgba(224, 0, 0, 0.1);
    outline: none;
}

.booking-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mobi-border);
}

.booking-step-actions .booking-back-link {
    flex-shrink: 0;
}

.btn-outline-secondary {
    border: 1px solid var(--mobi-border) !important;
    color: var(--mobi-ink) !important;
    background: var(--mobi-white) !important;
    border-radius: 999px !important;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    min-height: 44px;
}

.btn-outline-secondary:hover {
    border-color: rgba(224, 0, 0, 0.25) !important;
    color: var(--mobi-red) !important;
    background: var(--mobi-red-soft) !important;
}

/* Sticky Weiter-Leiste Schritt 3 (Mobile) */
.booking-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 1rem;
    padding: 0.75rem 0 0.5rem;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, #f5f5f5 35%);
}

body.iframe-mode .booking-sticky-actions {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 35%);
}

.inline-continue-btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 999px !important;
}

@media (min-width: 769px) {
    .booking-step-actions {
        justify-content: space-between;
    }

    .booking-step-actions .btn-submit {
        margin-left: auto;
    }
}

@media (min-width: 769px) {
    .inline-continue-btn {
        width: auto;
        min-width: 10rem;
    }

    .booking-sticky-actions {
        position: static;
        background: none;
        padding: 0;
    }
}

/* Tablet: 2 Spalten */
@media (min-width: 769px) and (max-width: 1199px) {
    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .booking-form-submit-inline {
        display: none;
    }

    .booking-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .mobi-section-head h1,
    .booking-section-head h1 {
        font-size: 1.3rem;
    }

    .target-group-card,
    .course-card,
    .booking-form-container,
    .confirmation-card {
        padding: 1.1rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .month-buttons {
        gap: 0.4rem;
    }

    .month-btn {
        flex: 1 1 calc(50% - 0.4rem);
        text-align: center;
        min-width: 0;
    }

    .booking-step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-step-actions .booking-back-link,
    .booking-step-actions .btn,
    .booking-step-actions .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .course-info {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.55rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .location-card-top {
        height: auto;
        min-height: 6.5rem;
        padding: 1.1rem;
    }

    .location-card-top h3 {
        font-size: 1.05rem;
    }
}

@media (min-width: 1200px) {
    .booking-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
