/**
 * BrickFit Member (com_bfmember) — multi-step signup, FITYES-style in BrickFit colours
 * (C) 2026 DERHAKE IT-Services - Jan Derhake
 */

.bfm-wizard {
    --bfm-bg: #17181a;
    --bfm-card: #24262b;
    --bfm-card-2: #2f3137;
    --bfm-border: #2c2f36;
    --bfm-accent: #a23b16;
    --bfm-accent-d: #7d2d11;
    --bfm-text: #f3f4f6;
    --bfm-dim: #9aa1ac;
    --bfm-ok: #33c27a;
    max-width: 1060px;
    margin: 0 auto;
    color: var(--bfm-text);
}

.bfm-title { font-weight: 800; letter-spacing: -.02em; margin-bottom: .25em; text-transform: uppercase; }
.bfm-lead { color: var(--bfm-dim); font-size: 1.1rem; margin-bottom: 2rem; }

.bfm-notice { padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--bfm-border); background: var(--bfm-card); }
.bfm-notice-error { border-color: #5a2730; background: #2a1a1d; }
.bfm-notice-info  { border-color: #2c4257; background: #16222e; }
/* Adresspruefung im Anschrift-Schritt (Warnhinweis, kein Blocker) */
.bfm-addr-status { margin-top: 1rem; }

/* Two-column layout: steps + summary */
.bfm-layout { display: grid; grid-template-columns: 1fr 330px; gap: 1.75rem; align-items: start; }

/* ---- Stepper ---- */
.bfm-stepper {
    display: flex;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: step;
}
.bfm-stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    position: relative;
    color: var(--bfm-dim);
    font-size: .82rem;
    text-align: center;
}
.bfm-stepper-item::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--bfm-border);
    z-index: 0;
}
.bfm-stepper-item:first-child::before { display: none; }
.bfm-stepper-num {
    position: relative;
    z-index: 1;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bfm-card-2);
    border: 2px solid var(--bfm-border);
    font-weight: 700;
}
.bfm-stepper-item.is-active { color: var(--bfm-text); }
.bfm-stepper-item.is-active .bfm-stepper-num { border-color: var(--bfm-accent); color: var(--bfm-accent); }
.bfm-stepper-item.is-done .bfm-stepper-num { background: var(--bfm-accent); border-color: var(--bfm-accent); color: #111; }
.bfm-stepper-item.is-done::before,
.bfm-stepper-item.is-active::before { background: var(--bfm-accent); }

/* ---- Steps ---- */
.bfm-step {
    display: none;
    border: 1px solid var(--bfm-border);
    border-radius: 14px;
    background: var(--bfm-card);
    padding: 1.5rem 1.5rem 1.25rem;
}
.bfm-step.is-active { display: block; animation: bfm-fade .2s ease; }
@keyframes bfm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bfm-step-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 1.1rem; }

/* Tariff cards */
.bfm-tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.bfm-tariff { display: block; cursor: pointer; position: relative; }
.bfm-tariff input { position: absolute; opacity: 0; pointer-events: none; }
.bfm-tariff-card {
    display: flex; flex-direction: column; gap: .35rem;
    padding: 1.1rem 1.2rem;
    border: 2px solid var(--bfm-border);
    border-radius: 12px;
    background: var(--bfm-bg);
    transition: border-color .15s, transform .15s, box-shadow .15s;
    height: 100%;
}
.bfm-tariff:hover .bfm-tariff-card { border-color: #44484f; }
.bfm-tariff input:checked + .bfm-tariff-card {
    border-color: var(--bfm-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 93, 26, .18);
}
/* Warnung auf der Test-Karte: soll ins Auge fallen, damit der Test-Tarif
   waehrend der Testphase gefahrlos online bleiben kann. */
.bfm-tariff-testwarn {
    margin-top: .4rem; padding: .45rem .6rem;
    border: 1px solid #7a5c12; border-radius: 8px; background: #2a2313;
    color: #f0c860; font-size: .78rem; line-height: 1.4; font-weight: 600;
}

/* Hinweis-Kachel "Mehr Infos zu den Tarifen": gleiche Grundform wie ein Tarif,
   aber gestrichelt und ohne Preis - sonst haelt man sie fuer einen waehlbaren
   Tarif und wundert sich, dass "Weiter" nicht reagiert. */
.bfm-tariff-info { text-decoration: none; color: inherit; }
.bfm-tariff-info .bfm-tariff-card { border-style: dashed; background: transparent; justify-content: center; }
.bfm-tariff-info:hover .bfm-tariff-card { border-style: solid; border-color: var(--bfm-accent); }
.bfm-tariff-info-text { font-size: .82rem; line-height: 1.45; color: var(--bfm-dim); }
.bfm-tariff-name { font-weight: 700; }
.bfm-tariff-price { font-size: 1.3rem; font-weight: 800; color: var(--bfm-accent); }
.bfm-tariff-price small { font-size: .78rem; font-weight: 600; color: var(--bfm-dim); }
.bfm-tariff-fee { font-size: .78rem; color: var(--bfm-dim); }

/* Fields */
.bfm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bfm-field { display: flex; flex-direction: column; gap: .35rem; }
.bfm-field.bfm-col-2 { grid-column: 1 / -1; }
.bfm-field > span { font-size: .82rem; color: var(--bfm-dim); font-weight: 600; }
.bfm-field input, .bfm-field select {
    padding: .7rem .85rem;
    border: 1px solid var(--bfm-border);
    border-radius: 9px;
    background: var(--bfm-bg);
    color: var(--bfm-text);
    font-size: 1rem;
}
.bfm-field input:focus, .bfm-field select:focus {
    outline: none; border-color: var(--bfm-accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 26, .16);
}
.bfm-field input.bfm-invalid { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217, 83, 79, .16); }
.bfm-hint { color: var(--bfm-dim); font-size: .9rem; margin: -.25rem 0 1rem; }

.bfm-check { display: flex; align-items: flex-start; gap: .65rem; padding: .5rem 0; line-height: 1.45; cursor: pointer; }
.bfm-check input { margin-top: .2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--bfm-accent); }
.bfm-check a { color: var(--bfm-accent); }
.bfm-check.bfm-invalid span { color: #e88; }

/* Nav buttons */
.bfm-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.bfm-btn {
    border: 0; border-radius: 999px;
    padding: .8rem 2rem; font-weight: 700; font-size: 1rem; cursor: pointer;
    background: var(--bfm-accent); color: #111;
    transition: transform .12s, filter .12s;
}
.bfm-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bfm-ghost { background: transparent; color: var(--bfm-dim); border: 1px solid var(--bfm-border); }
.bfm-ghost:hover { color: var(--bfm-text); }
.bfm-submit { font-size: 1.1rem; padding: .9rem 2.5rem; }
.bfm-submit[disabled] { opacity: .6; cursor: progress; }

/* Review list */
.bfm-review { margin: 0 0 .5rem; }
.bfm-review div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--bfm-border); }
.bfm-review dt { color: var(--bfm-dim); }
.bfm-review dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- Summary sidebar ---- */
.bfm-summary {
    position: sticky; top: 1rem;
    border: 1px solid var(--bfm-border);
    border-radius: 14px;
    background: var(--bfm-card);
    padding: 1.25rem 1.35rem 1.5rem;
}
.bfm-summary-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bfm-dim); margin-bottom: .75rem; }
.bfm-summary-name { font-size: 1.2rem; font-weight: 800; }
.bfm-summary-price { font-size: 1.9rem; font-weight: 800; color: var(--bfm-accent); margin: .15rem 0; }
.bfm-summary-price small { font-size: .85rem; font-weight: 600; color: var(--bfm-dim); }
.bfm-summary-fee { color: var(--bfm-dim); font-size: .9rem; }
.bfm-summary-note {
    margin: 1rem 0;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: rgba(51, 194, 122, .12);
    border: 1px solid rgba(51, 194, 122, .3);
    color: #bdebcf;
    font-size: .9rem;
}
.bfm-summary-features { list-style: none; margin: 0; padding: 0; }
.bfm-summary-features li { position: relative; padding: .35rem 0 .35rem 1.6rem; color: var(--bfm-text); }
.bfm-summary-features li::before {
    content: "\2713"; position: absolute; left: 0; top: .35rem;
    color: var(--bfm-ok); font-weight: 800;
}
.bfm-summary-features li.bfm-feat-note {
    margin-top: .6rem; padding-left: 0; font-size: .76rem; font-style: italic;
    color: var(--bfm-dim); border-top: 1px solid var(--bfm-border);
}
.bfm-summary-features li.bfm-feat-note::before { content: none; }

/* Thank-you */
.bfm-signup.bfm-thanks { max-width: 980px; margin: 0 auto; text-align: center; color: var(--bfm-text, #f3f4f6); }
.bfm-thanks-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
.bfm-thanks-main { min-width: 0; }
@media (min-width: 860px) { .bfm-thanks-grid { grid-template-columns: 1.25fr 1fr; } }
/* Smartphone-Mockup mit BrickFit-Logo im Display */
.bfm-phone { width: 166px; margin: .3rem auto 1.1rem; background: #0e0e0f; border-radius: 28px; padding: 9px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); position: relative; }
.bfm-phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 52px; height: 5px; background: #2a2a2c; border-radius: 3px; z-index: 1; }
.bfm-phone-screen { background: #111; border-radius: 20px; aspect-ratio: 1080 / 2255; overflow: hidden; }
.bfm-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfm-thanks-icon { width: 76px; height: 76px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--bfm-accent, #a23b16); color: #111; font-size: 2.4rem; line-height: 76px; font-weight: 900; }
.bfm-summary-list { list-style: none; margin: 1.5rem auto; padding: 0; max-width: 460px; text-align: left; }
.bfm-summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--bfm-border, #2c2f36); }
.bfm-summary-list li span { color: var(--bfm-dim, #9aa1ac); }

/* Weiter-Knopf in der Buchungsuebersicht: bewusst schmaler und ruhiger als der
   grosse Weiter-Button im Formular, aber klar als Schaltflaeche erkennbar. */
.bfm-summary-next { display: block; width: 100%; margin-top: 1.1rem; padding: .6rem 1.2rem; font-size: .95rem; }
.bfm-summary-next[hidden] { display: none; }

@media (max-width: 900px) {
    .bfm-layout { grid-template-columns: 1fr; }
    .bfm-summary { position: static; order: -1; }
    /* Ab Schritt 2 nur noch Tarif, Preis und Knopf zeigen - sonst scrollt man
       auf dem Handy bei jedem Schritt an der vollen Leistungsliste vorbei. */
    .bfm-summary.is-compact { padding: .9rem 1.1rem; }
    .bfm-summary.is-compact .bfm-summary-note,
    .bfm-summary.is-compact .bfm-summary-features { display: none; }
    .bfm-summary.is-compact .bfm-summary-next { margin-top: .8rem; }
    .bfm-stepper-label { display: none; }
}
@media (max-width: 560px) {
    .bfm-grid { grid-template-columns: 1fr; }
}

/* ---- Alters-Hinweise (u16/u18) + Pflicht-Formulare ---- */
.bfm-age-notice { margin: 1.25rem 0 0; }
.bfm-age-notice[hidden] { display: none !important; }
/* Auffaelliger Pflicht-Callout mit Blink (wie der App-Zutritt-Hinweis) */
.bfm-age-notice.bfm-notice-info { border: 1.5px solid var(--bfm-accent); background: #251a12;
    animation: bfm-age-blink 1.25s ease-in-out infinite; }
@keyframes bfm-age-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(162, 59, 22, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(162, 59, 22, .38), 0 0 22px rgba(232, 120, 50, .45); } }
@media (prefers-reduced-motion: reduce) { .bfm-age-notice.bfm-notice-info { animation: none; } }
.bfm-age-forms-intro { position: relative; padding-left: 2rem; font-weight: 700; margin: 0 0 .5rem; }
.bfm-age-forms-intro::before { content: "\26A0\FE0F"; position: absolute; left: 0; top: -.05rem;
    font-size: 1.3rem; line-height: 1.2; }
.bfm-forms { list-style: none; margin: 0 0 .9rem; padding: 0; }
.bfm-forms li { margin: .3rem 0; }
.bfm-forms a { color: var(--bfm-accent); font-weight: 600; text-decoration: none; }
.bfm-forms a:hover { text-decoration: underline; }

/* ---- Danke-Seite: App-Promo in BrickFit-Orange ---- */
.bfm-app { margin: 0; max-width: 100%; padding: 1.7rem 1.6rem; border-radius: 18px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #b8431a 0%, #a23b16 55%, #7d2d11 100%);
    box-shadow: 0 14px 38px rgba(162, 59, 22, .38); }
.bfm-app-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.bfm-app-title { color: #fff; font-weight: 900; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.1; margin: .2rem 0 .7rem; text-transform: uppercase; }
.bfm-app-notice { position: relative; margin: 0 0 1.15rem; padding: .8rem 1rem .8rem 2.95rem;
    text-align: left; font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: #2a1206;
    background: #fff; border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    animation: bfm-notice-blink 1.2s ease-in-out infinite; }
.bfm-app-notice::before { content: "\26A0\FE0F"; position: absolute; left: .9rem; top: 50%;
    transform: translateY(-50%); font-size: 1.4rem; line-height: 1; }
@keyframes bfm-notice-blink {
    0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 0 7px rgba(255, 255, 255, .45), 0 0 26px rgba(255, 225, 150, .55); } }
@media (prefers-reduced-motion: reduce) { .bfm-app-notice { animation: none; } }
.bfm-app-badges { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.bfm-app-badges img { height: 52px; width: auto; display: block; transition: transform .15s; }
.bfm-app-badges a:hover img { transform: translateY(-2px); }

/* --- Konto-Schritt (Bestandskonto / App-Konto) --- */
.bfm-account-choice .bfm-tariff-card { min-height: 0; }
.bfm-acct-desc { display: block; font-size: .88rem; opacity: .75; margin-top: .3rem; }
.bfm-lookup-row { display: flex; gap: .8rem; align-items: flex-end; margin-bottom: .9rem; flex-wrap: wrap; }
.bfm-lookup-row .bfm-grow { flex: 1 1 240px; }
.bfm-lookup-row .bfm-btn { flex: 0 0 auto; }
.bfm-notice-success { border-color: #1d5a38; background: #14261c; color: #9fe0bd; }
#bfm-app-pw[hidden] { display: none; }

/* Ohne gewaehlten Tarif: Uebersicht weg + Hauptspalte volle Breite (13.08.) */
.bfm-summary[hidden] { display: none !important; }
.bfm-layout:has(.bfm-summary[hidden]) { grid-template-columns: 1fr; }

/* Passwortfelder: gleiche Hoehe + Anforderungs-Zeile kleiner + Auge-Toggle (13.08.) */
.bfm-grid-bottom { align-items: end; }
.bfm-req { display: block; font-size: .82em; font-weight: 400; opacity: .72; margin-top: .1rem; }
.bfm-pw-wrap { position: relative; display: block; }
.bfm-pw-wrap input { width: 100%; padding-right: 2.7rem; }
.bfm-pw-toggle { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: #9a9a9a; cursor: pointer; padding: .25rem; line-height: 1; }
.bfm-pw-toggle:hover, .bfm-pw-toggle.is-visible { color: #fff; }
