.mw-wizard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mw-top {
    display: grid;
    gap: 0.85rem;
}

.mw-intro {
    padding: 1.05rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.mw-intro__h {
    margin: 0;
    font-size: 1.25rem;
}

.mw-intro__p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.mw-stepper {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.25rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 720px) {
    .mw-stepper {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

.mw-stepper__item {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.mw-stepper__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.mw-stepper__btn:focus-visible {
    outline: 3px solid rgba(12, 107, 158, 0.2);
    outline-offset: -3px;
}

.mw-stepper__n {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex: 0 0 auto;
}

.mw-stepper__t {
    font-size: 0.92rem;
    font-weight: 650;
    color: #0f172a;
}

.mw-stepper__item.is-active {
    border-color: rgba(12, 107, 158, 0.5);
    box-shadow: 0 1px 0 rgba(12, 107, 158, 0.12);
}

.mw-stepper__item.is-active .mw-stepper__n {
    background: linear-gradient(135deg, #0f766e 0%, #0c6b9e 100%);
    border-color: transparent;
    color: #fff;
}

.mw-stepper__item.is-done .mw-stepper__n {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.mw-field {
    margin: 0 0 0.95rem;
}

.mw-label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted, #64748b);
    margin-bottom: 0.4rem;
}

.mw-input,
.mw-select {
    width: 100%;
    max-width: 100%;
    font: inherit;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mw-input:focus,
.mw-select:focus {
    outline: none;
    border-color: var(--blue, #0c6b9e);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12, 107, 158, 0.14);
}

.mw-input--date {
    min-height: 2.75rem;
    color-scheme: light;
    font-variant-numeric: tabular-nums;
}

.mw-input--num {
    max-width: 12rem;
}

.form__grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .form__grid2 {
        grid-template-columns: 1fr;
    }
}

.mw-static {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    font-size: 0.92rem;
    line-height: 1.55;
}

.mw-static__h {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.mw-static__p {
    margin: 0 0 0.5rem;
}

.mw-static__p:last-child {
    margin-bottom: 0;
}

.mw-toolbar {
    margin: 0;
    padding-bottom: 0.15rem;
}

.mw-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--ice, #e8f0f8);
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.mw-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #0f766e, #0c6b9e);
    border-radius: 99px;
    transition: width 0.25s ease;
}

.mw-steps-label {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-muted);
    font-weight: 600;
}

.mw-steps-region {
    flex: 1 1 auto;
    min-height: 12rem;
}

.mw-step__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.mw-step__lead {
    margin: -0.35rem 0 0.9rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.mw-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.mw-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.mw-radio {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.mw-radio input {
    margin-top: 0.2rem;
}

.mw-indent {
    margin: 0.25rem 0 0.75rem 1.6rem;
}

.mw-sepa {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px dashed var(--color-border);
}

.mw-muted {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.mw-legal {
    max-height: 14rem;
    overflow: auto;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 0.88rem;
    line-height: 1.55;
}

.mw-legal p {
    margin: 0 0 0.65rem;
}

.mw-legal p:last-child {
    margin-bottom: 0;
}

.mw-summary {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: #f8fafc;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* Kein CSS-Grid auf dem Wizard-Formular (globales .form { display:grid } kollidiert mit Flex-Layout) */
#mw-form.mw-form.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mw-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.25rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--color-border);
    flex: 0 0 auto;
}

.mw-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 7.5rem;
    padding: 0.65rem 1.25rem;
}

/* Buttons ganz normal am Formularende (keine Sticky/Fixed-Leiste) */
.page-membership #mw-nav-bar.mw-nav {
    position: static;
    z-index: auto;
    margin-top: 0.75rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--color-border);
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
}

/* Schrift wie Stepper (weniger fett) */
.page-membership #mw-nav-bar .btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.page-membership #mw-nav-bar .btn--outline {
    color: #0f172a;
    border: 2px solid #94a3b8;
    background: transparent;
    box-shadow: none;
}

.page-membership #mw-nav-bar .btn--outline:hover {
    border-color: #64748b;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
}

.page-membership #mw-nav-bar .btn--solid {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: none;
}

.page-membership #mw-nav-bar .btn--solid:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #94a3b8;
}
