/* ── Stepper ─────────────────────────────────────────────────────── */
.membership-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
}
.membership-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #c49000, #e8b400, #f5d060, #e8b400, #c49000);
    z-index: 0;
}
.membership-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: background .25s;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.membership-step.active   .step-dot { background: #003398; }
.membership-step.done     .step-dot { background: #059669; }
.membership-step.done,
.membership-step.active   { cursor: pointer; }
.membership-step.active   .step-dot::after { content: ''; }
.step-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
}
.membership-step.active .step-label { color: #003398; font-weight: 700; }

/* ── Formular-Schritte ───────────────────────────────────────────── */
.form-step { display: none; animation: fadeIn .25s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d23;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e8b400;
    display: inline-block;
}

/* ── Mitgliedstyp-Cards ──────────────────────────────────────────── */
.membership-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.type-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #fff;
}
.type-card:hover { border-color: #003398; box-shadow: 0 4px 14px rgba(0,51,152,.1); }
.type-card:has(.type-radio:checked) {
    border-color: #003398;
    background: #eff6ff;
    box-shadow: 0 4px 14px rgba(0,51,152,.15);
}
.type-icon  { font-size: 28px; }
.type-name  { font-weight: 700; color: #1a1d23; font-size: 14px; width: 100%; overflow-wrap: break-word; hyphens: auto; }
.type-price { font-size: 18px; font-weight: 700; color: #003398; }
.type-sub   { font-size: 11px; color: #9ca3af; }
.type-sub--highlight {
    background: #e8b400;
    color: #1a1d23;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Sport-Pills ─────────────────────────────────────────────────── */
.sport-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.sport-pill {
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
    color: #374151;
    white-space: nowrap;
}
.sport-pill:hover { border-color: #003398; color: #003398; }
.sport-pill:has(.sport-radio:checked) {
    background: #003398;
    border-color: #003398;
    color: #fff;
    font-weight: 700;
}

/* ── Formular-Felder ─────────────────────────────────────────────── */
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.form-group label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.form-control {
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
}
.form-control:focus { outline: none; border-color: #003398; box-shadow: 0 0 0 3px rgba(0,51,152,.1); }
.form-control.is-invalid { border-color: #dc2626; }
.invalid-feedback { font-size: 12px; color: #dc2626; margin-top: 3px; display: none; }
.form-control.is-invalid + .invalid-feedback { display: block; }

/* ── Familienmitglieder ──────────────────────────────────────────── */
.family-member-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.family-member-title { font-size: 14px; color: #374151; }

/* ── SEPA ────────────────────────────────────────────────────────── */
.iban-input { font-family: 'Courier New', monospace; font-size: 15px; letter-spacing: .15em; }

.consent-box { margin: 20px 0; }
.consent-box .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    margin-bottom: 0;
}
.consent-box .form-check-label {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    cursor: pointer;
    margin-top: 1px;
}
.consent-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #003398;
}
.consent-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.consent-inline-link i {
    color: #003398;
}
.consent-inline-link:hover,
.consent-inline-link:focus {
    color: #003398;
}
.legal-consent-trigger {
    border: 2px solid #003398;
    background: #eff6ff;
    color: #003398;
    font-weight: 700;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
}
.legal-consent-trigger:hover,
.legal-consent-trigger:focus {
    background: #003398;
    color: #fff;
    border-color: #003398;
    box-shadow: 0 0 0 3px rgba(0, 51, 152, .18);
}

/* ── Stylische Custom-Checkbox ───────────────────────────────────── */
.consent-box .form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    float: none;
    margin-left: 0;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #c9d3e3;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.consent-box .form-check-input[type="checkbox"]:checked {
    background-color: #003398;
    border-color: #003398;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.4 7.4a1 1 0 0 1-1.4 0L4.3 10.5a1 1 0 1 1 1.4-1.4l3 3 6.6-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.consent-box .form-check-input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 152, .2);
}
.consent-box .form-check-input[type="checkbox"]:hover:not(:checked) {
    border-color: #003398;
}
.consent-box .form-check-input[type="checkbox"].check-pop {
    animation: checkboxPop .28s cubic-bezier(.2,.9,.2,1);
}
@keyframes checkboxPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.consent-box .form-check-input[type="checkbox"].is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .15);
}

.sepa-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #003398;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.65;
}
.sepa-info-box strong { display: block; margin-bottom: 4px; font-size: 13px; }

/* ── Navigation ──────────────────────────────────────────────────── */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.btn {
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary  { background: linear-gradient(135deg,#003398,#0044cc); color: #fff; box-shadow: 0 4px 14px rgba(0,51,152,.3); }
.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-success  { background: linear-gradient(135deg,#065f46,#059669); color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.25); }
.btn-outline-primary { background: #fff; border: 2px solid #003398; color: #003398; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ── Nachrichtenboxen ────────────────────────────────────────────── */
.com-memberships-message { max-width: 540px; margin: 40px auto; text-align: center; }
.membership-msg {
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.membership-msg-logo {
    width: 76px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
}
.membership-msg--success { background: #003398; border: 1px solid #003398; }
.membership-msg--success h2,.membership-msg--info h2,
.membership-msg--success p { color: #fff; }
.membership-msg--info    { background: #003398; border: 1px solid #bfdbfe; }
.membership-msg--error   { background: #fef2f2; border: 1px solid #fecaca; }
.membership-msg--error h2 { color: #000; }
.msg-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.membership-msg--success .msg-icon,
.membership-msg--info .msg-icon { color: #fff !important; }
.membership-msg h2 { font-weight: 700; margin: 0 0 10px; }
.membership-msg p  { color: #fff; line-height: 1.7; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .membership-type-grid { grid-template-columns: repeat(2, 1fr); }
    .membership-stepper::before { display: none; }
    .step-label { font-size: 9px; }
    .form-row { flex-direction: column; }
}

.com-trainings-form {
    font-family: inherit;
}

.com-trainings-form label,
.com-trainings-form .form-label,
.com-trainings-form .control-label {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0 !important;
}

.com-trainings-form .form-control,
.com-trainings-form .form-select {
    font-family: inherit;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 14px;
}

.com-trainings-form .form-control:focus,
.com-trainings-form .form-select:focus {
    border-color: #003398;
    box-shadow: 0 0 0 3px rgba(0, 51, 152, .1);
}

.com-memberships-page .venue-guide__panel {
    border-radius: 24px;
}

.com-memberships-form-shell {
    background: linear-gradient(180deg, rgba(0, 51, 152, 0.05), rgba(0, 51, 152, 0.015));
    border: 1px solid rgba(0, 51, 152, .08);
    box-shadow: 0 24px 60px rgba(7, 36, 78, .12);
}

.com-memberships-form-shell {
    padding: clamp(1.25rem, 2vw, 2rem);
}

.com-memberships-form-shell .venue-guide__location-head {
    margin-bottom: .85rem;
}

.com-memberships-form-shell .venue-guide__panel-title {
    margin-top: .25rem;
}

.com-memberships-form-intro {
    background: linear-gradient(135deg, rgba(0, 51, 152, .1), rgba(255, 255, 255, .94));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 18px;
    color: #244269;
    margin: 0 0 1.5rem;
    padding: .95rem 1rem;
}

.membership-stepper {
    background: linear-gradient(180deg, rgba(0, 51, 152, .06), rgba(255, 255, 255, .92));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 22px;
    margin-bottom: 1.75rem;
    padding: 1rem .85rem .65rem;
}

.membership-stepper::before {
    left: 12%;
    right: 12%;
    top: 2.1rem;
}

.form-step {
    background: linear-gradient(180deg, rgba(0, 51, 152, .035), rgba(255, 255, 255, .96));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(7, 36, 78, .08);
    padding: clamp(1rem, 2vw, 1.65rem);
}

.form-step + .form-step {
    margin-top: 1.5rem;
}

.step-title {
    border-bottom: 0;
    color: #17345d;
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.membership-type-grid,
.sport-pills-grid {
    margin-bottom: 0;
}

.type-card,
.sport-pill,
.family-member-card,
.sepa-info-box,
.consent-box {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.type-card:hover,
.sport-pill:hover {
    transform: translateY(-1px);
}

.sepa-info-box {
    border-left-width: 5px;
    border-radius: 18px;
}

.consent-box {
    background: linear-gradient(180deg, rgba(0, 51, 152, .05), rgba(255, 255, 255, .95));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 18px;
    padding: 1rem;
}

.membership-review-card {
    background: linear-gradient(180deg, rgba(0, 51, 152, .05), rgba(255, 255, 255, .96));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 18px;
    padding: 1rem;
}

.membership-review-head {
    margin-bottom: 1rem;
}

.membership-review-title {
    color: #17345d;
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.membership-review-text {
    color: #4b647f;
    font-size: .95rem;
}

.membership-review-grid {
    display: grid;
    gap: .75rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.membership-review-row {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 14px;
    padding: .75rem .85rem;
}

.membership-review-row dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #5b6f87;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.membership-review-edit {
    color: #003398;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.membership-review-edit:hover,
.membership-review-edit:focus {
    text-decoration: underline;
}

.membership-review-row dd {
    color: #17345d;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.membership-review-family-list {
    display: grid;
    gap: .65rem;
}

.membership-review-family-card {
    display: grid;
    gap: .75rem;
    grid-template-columns: auto 1fr;
    align-items: start;
    background: linear-gradient(180deg, rgba(0, 51, 152, .04), rgba(255, 255, 255, .95));
    border: 1px solid rgba(0, 51, 152, .1);
    border-radius: 12px;
    padding: .75rem .85rem;
}

.membership-review-family-card--empty {
    display: block;
    color: #5b6f87;
    font-weight: 500;
}

.membership-review-family-card__index {
    background: #003398;
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1.9rem;
    padding: .55rem .35rem;
    text-align: center;
}

.membership-review-family-card__body {
    min-width: 0;
}

.membership-review-family-card__title {
    color: #17345d;
    font-weight: 700;
    margin-bottom: .2rem;
}

.membership-review-family-card__meta {
    color: #5b6f87;
    font-size: .9rem;
    font-weight: 500;
}

.step-navigation {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
}

.com-memberships-page .btn {
    border-radius: 999px;
    min-height: 46px;
    padding-inline: 1.35rem;
}

.com-memberships-page .btn-outline-primary {
    background: rgba(255, 255, 255, .94);
}

.com-trainings-form .form-step {
    display: block;
}

@media (max-width: 767.98px) {
    .com-memberships-form-shell {
        padding: 1rem;
    }

    .membership-stepper {
        padding-inline: .75rem;
    }

    .form-step {
        border-radius: 18px;
        padding: 1rem;
    }

    .membership-review-grid {
        grid-template-columns: 1fr;
    }

    .step-navigation {
        gap: .75rem;
    }
}
