/* Mitgliederportal. Farben und Skins: /css/xplario-tokens.css (CLUB-35) */
.cwx-start {
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.cwx-mark { width: 10rem; height: auto; }
/* Schriftzug Xplario (helle Fassung für den dunklen Hintergrund) */
.cwx-wordmark { width: min(22rem, 80vw); height: auto; }
.cwx-start h1 { margin: 0; font-style: italic; color: var(--title); }
.cwx-version { margin: 0; color: var(--muted); }
.cwx-panel { width: 100%; text-align: left; background: var(--surface); border: var(--border-w) solid var(--line); border-radius: 1rem; padding: 0 1.25rem; }
.cwx-topbar { display: flex; justify-content: flex-end; padding: .75rem 1rem 0; }
.cwx-languages { display: flex; gap: .75rem; }
.cwx-languages a { color: var(--muted); text-decoration: none; }
.cwx-languages a[aria-current="true"] { color: var(--title); font-weight: 600; text-decoration: underline; }
.cwx-languages a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cwx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwx-languages { align-items: center; }
.cwx-languages a { display: inline-flex; align-items: center; padding: .3rem .25rem; border-bottom: 3px solid transparent; line-height: 0; }
.cwx-languages a[aria-current="true"] { border-bottom-color: var(--title); }
.cwx-flag { width: 1.75rem; height: 1.05rem; display: block; border: 1px solid var(--line-strong); border-radius: .15rem; }
.cwx-flag-code { display: inline-grid; place-items: center; font-size: .65rem; font-weight: 700; line-height: 1;
    color: var(--text); background: var(--surface-2); }
.cwx-links a { color: var(--link); font-weight: 600; }
.cwx-links a:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 3px; }
.cwx-hint { margin: 0; color: var(--muted); }

/* Anmeldung, Registrierung, Passwort und „Mein Konto“ (CLUB-32) */
.cwx-auth, .cwx-member { gap: 1rem; padding-top: 2rem; }
.cwx-studio { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.cwx-mark-small { width: 5rem; }
.cwx-studio-name { margin: 0; font-size: 1.5rem; font-weight: 700; font-style: italic; color: var(--title); }
.cwx-card {
    width: min(30rem, 100%); box-sizing: border-box; padding: 1.5rem; text-align: left;
    background: var(--surface-soft); border: var(--border-w) solid var(--line-soft); border-radius: .5rem;
}
.cwx-start .cwx-card h1 { margin: 0 0 1rem; font-size: 1.35rem; font-style: normal; color: var(--text); }
.cwx-card h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.cwx-card > p { margin: 0 0 .75rem; }
.cwx-form { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 .75rem; }
.cwx-form label { font-weight: 600; margin-top: .4rem; }
.cwx-form input[type=email], .cwx-form input[type=password], .cwx-form input[type=text], .cwx-form input[type=date] {
    padding: .6rem .7rem; border-radius: .3rem; border: var(--border-w) solid var(--line-strong);
    background: var(--field); color: var(--text); font: inherit;
}
.cwx-form input:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 1px; }
.cwx-form button {
    margin-top: 1rem; padding: .65rem 1rem; border: 0; border-radius: .3rem; cursor: pointer;
    background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700;
}
.cwx-form button:disabled { opacity: .55; cursor: wait; }
.cwx-form button:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.cwx-form button.cwx-secondary { background: transparent; color: var(--text); border: var(--border-w) solid var(--line-strong); }
.cwx-alert { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: .3rem; background: var(--ok-bg); color: var(--text);
    border: var(--border-w) solid var(--ok); border-left-width: 4px; }
.cwx-alert p { margin: 0; }
.cwx-alert-error { background: var(--crit-bg); border-color: var(--crit); }
.cwx-card .cwx-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 0; }
.cwx-link-button { background: none; border: none; padding: 0; color: var(--link); font: inherit; font-weight: 600;
    text-decoration: underline; cursor: pointer; }
.cwx-link-button:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 3px; }

.cwx-memberbar { width: min(30rem, 100%); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cwx-memberbar .cwx-links { display: flex; gap: 1.25rem; }
.cwx-logout { margin: 0; }
.cwx-logout button { background: none; border: var(--border-w) solid var(--line-strong); color: var(--text); border-radius: .3rem;
    padding: .3rem .8rem; cursor: pointer; font: inherit; }
.cwx-logout button:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.cwx-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.cwx-facts dt { font-weight: 700; }
.cwx-facts dd { margin: 0; overflow-wrap: anywhere; }
.cwx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cwx-list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.cwx-list a { color: var(--link); font-weight: 600; }
.cwx-qr { width: 12rem; max-width: 100%; margin: .5rem 0; line-height: 0; }
.cwx-qr svg { width: 100%; height: auto; border-radius: .3rem; }
.cwx-totp ol { margin: 0 0 .5rem; padding-left: 1.25rem; }

/* Passwort-Anforderungen beim Festlegen */
.cwx-pw-check { margin-top: .6rem; }
.cwx-pw-bar { height: .45rem; border-radius: .25rem; background: var(--line-soft); overflow: hidden; }
.cwx-pw-bar span { display: block; height: 100%; width: var(--progress, 0%); background: var(--warn);
    transition: width .2s, background-color .2s; }
.cwx-pw-bar.cwx-ok span { background: var(--ok); }
.cwx-pw-status { margin: .4rem 0 .2rem; font-weight: 600; }
.cwx-pw-check ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.cwx-pw-check li { color: var(--muted); padding-left: 1.4rem; position: relative; }
.cwx-pw-check li::before { content: "○"; position: absolute; left: 0; }
.cwx-pw-check li.cwx-ok { color: var(--ok); }
.cwx-pw-check li.cwx-ok::before { content: "✓"; }

/* Barrierefreiheit (CLUB-36): Sprunglink, Fuß mit der Erklärung, Erklärung selbst */
.cwx-skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--accent); color: var(--accent-ink);
    padding: .5rem 1rem; border-radius: 6px; font-weight: 700; }
.cwx-skip:focus { top: 1rem; }
main:focus { outline: none; }
.cwx-footer { display: flex; justify-content: center; padding: 0 1rem 2rem; }
.cwx-footer .cwx-links { display: flex; gap: 1.25rem; }
.cwx-card-text { width: min(46rem, 100%); }
.cwx-card-text h2 { margin: 1.25rem 0 .5rem; font-size: 1.1rem; }
.cwx-card-text ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
.cwx-card-text address { font-style: normal; line-height: 1.5; }
.cwx-card-text a { color: var(--link); }
.cwx-pre { white-space: pre-wrap; }

/* CLUB-36: Zielgröße mindestens 24 px (WCAG 2.5.8), Links im Fließtext nicht nur an der Farbe erkennbar (1.4.1) */
.cwx-link-button { min-height: 24px; padding: .2rem 0; }
.cwx-hint a, .cwx-card p a { text-decoration: underline; }

/* Digitaler Mitgliedsausweis (CLUB-45): Codes immer schwarz auf weiß */
.cwx-member-card { max-width: 26rem; border-radius: .8rem; padding: 1rem; background: #0b2a4a; color: #fff; display: grid; gap: .8rem; }
.cwx-member-card .cwx-facts dt { color: #c8d6eb; }
.cwx-member-card-body { display: flex; gap: 1rem; align-items: flex-start; }
.cwx-member-card-photo { width: 5.5rem; height: 7rem; object-fit: cover; border-radius: .4rem; }
.cwx-member-card-qr { width: 14rem; height: 14rem; margin: 0 auto; background: #fff; padding: .4rem; border-radius: .4rem; }
.cwx-member-card-barcode { height: 4.5rem; background: #fff; padding: .3rem; border-radius: .4rem; }
.cwx-member-card-qr svg, .cwx-member-card-barcode svg { width: 100%; height: 100%; display: block; }
