/* Gemeinsamer Vereinsrahmen für Einstieg und geschützte Mitgliederansichten. */
body.member-site-shell {
    --mp-pink: var(--brand-dark);
    --mp-ink: var(--ink);
    --mp-muted: var(--muted);
    --mp-line: var(--line);
    --mp-soft: var(--soft);
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.member-site-shell .member-portal { width: min(calc(100% - 40px), var(--content)); max-width: var(--content); margin: 0 auto; padding: 30px 0 40px; }
.member-site-shell .site-header .brand { margin: 0; }
.member-site-shell .mp-hero { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #f6f3ef; box-shadow: none; }
.member-site-shell .mp-hero h1 { font-size: clamp(2.1rem, 3.3vw, 3.25rem); line-height: 1.12; overflow-wrap: anywhere; }
.member-site-shell .mp-hero p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.member-site-shell .mp-hero-logo { width: 96px; height: 96px; padding: 6px; border: 1px solid var(--line); box-shadow: none; }
.member-site-shell .mp-card, .member-site-shell .mp-mini-card, .member-site-shell .mp-collapse, .member-site-shell .mp-chat-panel { border-radius: 8px; border-color: var(--line); background: var(--paper); box-shadow: none; backdrop-filter: none; }
.member-site-shell .mp-card:hover, .member-site-shell .mp-mini-card:hover, .member-site-shell .mp-collapse:hover { transform: none; box-shadow: none; }
.member-site-shell .mp-card h2 { font-size: 1.4rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.member-site-shell .mp-card h3 { font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.member-site-shell .mp-card p { line-height: 1.65; }
.member-site-shell .mp-btn { border-radius: 5px !important; min-height: 46px !important; padding: 12px 18px !important; max-width: 100% !important; font-size: 1rem !important; line-height: 1.35 !important; box-shadow: none; font-family: inherit; text-align: center; white-space: normal; }
.member-site-shell .mp-btn.secondary { color: var(--brand-dark) !important; background: transparent; }
.member-site-shell .mp-field { line-height: 1.55; }
.member-site-shell .mp-field input, .member-site-shell .mp-field select, .member-site-shell .mp-field textarea { border-radius: 5px !important; padding: 12px 14px !important; min-height: 46px; border-color: var(--line); font-family: inherit; font-size: 1rem; }
.member-site-shell .mp-muted { color: var(--muted); }
.member-site-shell .mp-notice, .member-site-shell .mp-error { border-radius: 7px; line-height: 1.6; }
.member-site-shell .mp-status-card { border-radius: 6px; border-color: var(--line); background: var(--soft); box-shadow: none; }
.member-site-shell .mp-status-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.member-site-shell .site-header .icon-button, .member-site-shell .site-header .menu-button { width: 46px !important; max-width: 46px !important; min-width: 46px !important; min-height: 46px !important; padding: 0 !important; border-radius: 5px !important; font-size: 1rem !important; line-height: 1 !important; }
.member-site-shell .mp-quicknav { top: calc(var(--header-h) + 76px); border-radius: 6px; box-shadow: none; }
.member-site-shell #main { scroll-margin-top: calc(var(--header-h) + 80px); }
.member-site-shell .mp-section-anchor { scroll-margin-top: calc(var(--header-h) + 90px); }
.member-site-shell .mp-pass-name, .member-site-shell .mp-pass-label { overflow-wrap: anywhere; hyphens: auto; }
.member-site-shell > .lc-member-honors-card, .member-site-shell > .lc-honor-card { width: min(calc(100% - 40px), var(--content)); max-width: var(--content); margin: 20px auto !important; }
.member-site-topnav { position: sticky; top: var(--header-h); z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.member-site-topnav .lc-bottom-nav { position: static; display: flex; justify-content: flex-start; gap: 8px; width: min(calc(100% - 40px), var(--content)); max-width: var(--content); margin: 0 auto; padding: 10px 0; border: 0; border-radius: 0; box-shadow: none; transform: none; background: var(--paper); }
.member-site-topnav .lc-bottom-nav a { min-height: 42px; padding: 9px 18px; border-radius: 5px; color: var(--ink); font-size: .9rem; }
.member-site-topnav .lc-bottom-nav a.active { color: #fff; background: var(--brand-dark); }
.member-site-topnav .lc-bottom-nav .icon { display: none; }
.member-site-shell > .lc-bottom-nav { display: none; }
.member-site-shell .site-footer { margin-top: 0; }
html[data-contrast="true"] .member-site-shell .mp-hero, html[data-contrast="true"] .member-site-shell .mp-card { background: var(--paper); }
html[data-contrast="true"] .member-site-shell .mp-muted { color: var(--ink); }
@media (max-width: 760px) {
    .member-site-shell .member-portal { width: calc(100% - 28px); padding: 22px 0 30px; }
    .member-site-shell .mp-hero { padding: 22px; }
    .member-site-shell .mp-hero-inner { display: block; }
    .member-site-shell .mp-hero-logo { display: none; }
    .member-site-shell .mp-hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
    .member-site-shell .mp-hero p { font-size: 1rem; }
    .member-site-shell .mp-login-grid { grid-template-columns: minmax(0, 1fr); }
    .member-site-shell .mp-card { padding: 20px; }
    .member-site-shell .mp-actions .mp-btn { width: 100%; }
    .member-site-topnav { display: none; }
    .member-site-shell.member-site-authenticated { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .member-site-shell > .lc-bottom-nav { display: grid; left: 0; right: 0; max-width: none; transform: none; border-radius: 0; z-index: 9998; }
    .member-site-shell > .lc-bottom-nav a { min-width: 0; padding: 5px 1px; font-size: .68rem; }
    .member-site-shell > .lc-bottom-nav a > span:last-child { max-width: 100%; line-height: 1.15; overflow-wrap: anywhere; text-align: center; }
    .member-site-shell > .lc-bottom-nav a.active { color: var(--brand-dark); background: #f6f3ef; border-radius: 5px; }
    .member-site-shell.menu-open .site-header { z-index: 10020; }
    .member-site-shell.menu-open > .lc-bottom-nav { visibility: hidden; }
}

.mp-email-capture-note { margin-top: 26px; padding: 20px; border: 1px solid var(--mp-line); border-radius: 6px; background: var(--mp-soft); }
.mp-email-capture-note h3 { margin: 0 0 10px; font-size: 1.15rem; }
.mp-email-capture-note p { margin-bottom: 16px; }
.mp-email-capture-note a { display: inline-block; }

/* Themengrafik nur im gemeinsamen Vereinsrahmen; Anmeldung und Ansichten bleiben gleich. */
@media screen {
    .member-site-shell .mp-hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(18px, 3vw, 42px); }
    .member-site-shell .mp-hero-logo { display: none; }
    .member-site-shell .mp-hero-inner::after { content: ""; display: block; width: 100%; aspect-ratio: 900 / 680; background: url("images/grafiken/header-mitgliederportal-2026.svg") center / contain no-repeat; }
}
@media screen and (max-width: 760px) {
    .member-site-shell .mp-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .member-site-shell .mp-hero-inner::after { width: min(100%, 520px); justify-self: center; }
}
@media print {
    .member-site-shell .mp-hero-inner::after { display: none; }
}
