/* Portal-only design system. Never imported by Verwaltung or shop frontends. */
:root {
  --portal-ink: #203b30;
  --portal-muted: #52665c;
  --portal-accent: #245b43;
  --portal-selected: #e8f1eb;
  --portal-canvas: #f3f6f4;
  --portal-line: #cad5ce;
  --portal-surface: #fff;
  --portal-radius: 16px;
  --portal-ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
body.portal { margin: 0; background: var(--portal-canvas); color: var(--portal-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #c4dfcd; color: #153c29; }
a { color: var(--portal-accent); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 1.375rem; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 16px; }
h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
p { max-width: 72ch; color: var(--portal-muted); margin-bottom: 20px; overflow-wrap: anywhere; }
small, .muted { color: var(--portal-muted); }
small { display: block; font-size: .8125rem; }
label { display: block; font-size: .875rem; font-weight: 600; margin: 20px 0 8px; }
input, select, textarea { width: 100%; border: 1px solid #7c9082; border-radius: 8px; padding: 11px 13px; background: var(--portal-surface); color: var(--portal-ink); min-width: 0; min-height: 46px; font-size: 1rem; caret-color: var(--portal-accent); }
input::placeholder, textarea::placeholder { color: #607368; opacity: 1; }
textarea { resize: vertical; }
input:disabled { background: #edf0ee; color: #52665c; }
button:disabled { background: #e2e8e4; color: #52665c; border-color: var(--portal-line); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 3px; }
.button { border: 1px solid var(--portal-accent); border-radius: 8px; background: var(--portal-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; font-size: .875rem; font-weight: 650; min-height: 46px; text-align: center; }
.button svg { width: 18px; height: 18px; }
.button.secondary { background: #fff; color: var(--portal-accent); border-color: #7c9082; }
.button.full { width: 100%; margin-top: 24px; }
.button.small { min-height: 44px; padding: 8px 14px; }
.button:active:not(:disabled) { transform: scale(.98); }
form > .button { margin-top: 24px; }
form > small { margin-top: 12px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; font-size: 1.5rem; line-height: 1.1; color: var(--portal-ink); letter-spacing: -.03em; width: fit-content; }
.brand:hover { text-decoration: none; }
.brand-sub { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: 0; margin-top: 6px; color: var(--portal-muted); }
.brand-mark { width: 44px; height: 48px; background: var(--portal-accent); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 26px; height: 26px; }
.public-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.public-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 6vw; }
.quiet-link { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; min-height: 44px; }
.quiet-link svg { width: 18px; }
.public-main { width: 100%; max-width: 1240px; margin: auto; padding: 44px 48px 72px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.auth-story { padding: 24px 0; }
.auth-story h1 { font-size: 3.5rem; line-height: 1.12; letter-spacing: -.035em; margin: 0 0 28px; }
.auth-story > p { max-width: 36ch; font-size: 1.0625rem; line-height: 1.75; }
.story-rule { width: 48px; height: 2px; background: #8caa98; margin: 32px 0; }
.story-footer { display: flex; align-items: center; gap: 14px; }
.story-footer b { font-size: .9375rem; }
.story-footer p { font-size: .875rem; margin: 4px 0; }
.round-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--portal-selected); border-radius: 50%; color: var(--portal-accent); flex-shrink: 0; }
.auth-card { background: #fff; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); padding: 36px; max-width: 490px; width: 100%; }
.auth-card h2 { font-size: 1.75rem; letter-spacing: -.025em; margin-bottom: 12px; }
.auth-card > p { font-size: .9375rem; }
.auth-card.compact { margin: 20px auto; }
.auth-card h1 { font-size: 1.875rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row > a { font-size: .875rem; min-height: 44px; display: flex; align-items: center; }
.auth-hint { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--portal-line); margin-top: 28px; padding-top: 24px; }
.auth-hint svg { width: 18px; margin-top: 3px; color: var(--portal-muted); }
.auth-hint p { font-size: .8125rem; margin: 0; line-height: 1.8; }
.footer { padding: 20px 4vw; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--portal-muted); font-size: .8125rem; }
.footer > div { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a, .text-button { color: var(--portal-muted); font-size: .8125rem; min-height: 44px; display: inline-flex; align-items: center; }
.text-button { border: 0; background: none; padding: 0; }
.text-button:hover { text-decoration: underline; }
.footer form { margin: 0; }
.app-shell { min-height: 100dvh; display: flex; }
.sidebar { width: 244px; flex-shrink: 0; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--portal-line); padding: 32px 20px 20px; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.sidebar .brand { margin-left: 10px; }
.workspace-label { font-size: .8125rem; font-weight: 600; color: var(--portal-muted); margin: 44px 12px 12px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav > a { color: var(--portal-muted); display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; font-size: .9375rem; min-height: 48px; }
.sidebar nav > a svg { width: 20px; height: 20px; }
.sidebar nav > a[aria-current] { background: var(--portal-selected); color: var(--portal-accent); font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.help-note { padding: 20px 12px 12px; border-top: 1px solid var(--portal-line); font-size: .875rem; }
.help-note p { font-size: .8125rem; margin: 8px 0; }
.help-note a { font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.powered { font-size: .8125rem; color: var(--portal-muted); display: block; margin: 20px 12px 0; }
.app-body { margin-left: 244px; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.app-header { min-height: 96px; border-bottom: 1px solid var(--portal-line); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 20px 3vw; gap: 20px; }
.club-identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.club-identity img, .club-monogram { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--portal-selected); padding: 5px; flex-shrink: 0; }
.club-monogram { display: flex; align-items: center; justify-content: center; color: var(--portal-accent); font-weight: 700; font-size: .875rem; }
.club-identity b { font-size: .9375rem; display: block; overflow-wrap: anywhere; }
.club-identity > div > span { display: block; color: var(--portal-muted); font-size: .8125rem; margin-top: 2px; }
.header-account { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--portal-muted); max-width: 35%; overflow-wrap: anywhere; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--portal-selected); color: var(--portal-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.main-content { width: 100%; max-width: 1440px; padding: 36px 3vw 32px; margin: 0 auto; flex: 1; }
.page-title { margin-bottom: 28px; min-width: 0; }
.page-title p { font-size: .9375rem; margin: 0; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.welcome-row > .button { flex-shrink: 0; margin-bottom: 28px; }
.welcome-banner { background: var(--portal-selected); border-radius: var(--portal-radius); padding: 28px 32px; margin-bottom: 24px; }
.welcome-banner h2 { font-size: 1.625rem; margin-bottom: 12px; }
.welcome-banner p { max-width: 64ch; font-size: .9375rem; margin-bottom: 12px; }
.welcome-banner a { font-size: .875rem; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; background: #fff; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); overflow: hidden; }
.metric-card { padding: 22px; min-width: 0; }
.metric-card + .metric-card { border-left: 1px solid var(--portal-line); }
.metric-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--portal-muted); }
.metric-card svg { width: 18px; height: 18px; }
.metric-card strong { display: block; color: var(--portal-ink); font-size: 2rem; font-weight: 600; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.metric-card small { font-size: .8125rem; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { background: #fff; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); padding: 28px; margin-bottom: 24px; min-width: 0; }
.panel h2 { font-size: 1.125rem; }
.panel > p { font-size: .9375rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; }
.panel-heading > a { font-size: .875rem; }
.panel-heading > svg { color: var(--portal-accent); width: 20px; }
.content-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.content-grid.equal { grid-template-columns: 1fr 1fr; }
.content-grid > .panel { margin-bottom: 0; }
.content-grid { margin-bottom: 24px; }
.badge { background: #edf2ef; color: #3f5d4c; font-size: .8125rem; line-height: 1.6; display: inline-flex; border-radius: 6px; padding: 4px 10px; max-width: 100%; overflow-wrap: anywhere; }
.empty-state { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 28px 12px; }
.empty-icon { color: var(--portal-accent); display: flex; margin-bottom: 16px; }
.empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; }
.empty-state p { font-size: .875rem; max-width: 40ch; margin: 0; line-height: 1.7; }
.section-divider { height: 1px; background: var(--portal-line); margin: 28px 0; }
.shop-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--portal-line); padding: 12px 0; }
.shop-link > div { min-width: 0; }
.shop-link b { font-size: .875rem; overflow-wrap: anywhere; }
.shop-link span { display: block; font-size: .8125rem; color: var(--portal-muted); }
.shop-link > a { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.notice { background: #e8f1eb; border: 1px solid #b2cbb9; color: #244e35; padding: 16px 20px; border-radius: 12px; font-size: .9375rem; margin-bottom: 24px; max-width: 100%; overflow-wrap: anywhere; }
.notice.error { background: #fff1ed; color: #8b3024; border-color: #d5a097; }
.back-link { font-size: .875rem; display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 20px; }
.organization-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.organization-switch label { margin: 0; }
.organization-switch select { width: auto; max-width: 60%; }
.organization-switch .button { margin: 0; }
.request-row { display: block; padding: 20px 0; border-bottom: 1px solid var(--portal-line); }
.request-row h3 { margin: 12px 0 8px; font-size: 1rem; }
.request-row small { font-size: .8125rem; }
.conversation { display: grid; gap: 16px; margin: 24px 0; }
.message { border: 1px solid var(--portal-line); padding: 20px; border-radius: 12px; background: #f5f7f6; overflow-wrap: anywhere; }
.message.staff { background: var(--portal-selected); }
.message header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: .875rem; }
.message time { font-size: .8125rem; color: var(--portal-muted); font-variant-numeric: tabular-nums; }
.message p { font-size: .9375rem; margin: 12px 0 0; color: var(--portal-ink); }
.membership-row { padding: 16px 0; border-bottom: 1px solid var(--portal-line); }
.membership-row b { font-size: .9375rem; overflow-wrap: anywhere; }
.membership-row span { display: block; font-size: .875rem; color: var(--portal-muted); }
.lead-layout { display: grid; grid-template-columns: .85fr 1.2fr; gap: 8%; align-items: start; }
.lead-story { padding-top: 24px; }
.lead-story h1 { font-size: 2.5rem; line-height: 1.2; }
.lead-story > a { font-size: .875rem; }
.steps { list-style: none; padding: 0; margin: 36px 0; }
.steps li { display: flex; gap: 16px; margin-bottom: 28px; }
.steps li > span { font-size: .875rem; color: var(--portal-accent); background: var(--portal-selected); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps b { font-size: .9375rem; }
.steps p { font-size: .875rem; margin: 6px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid > div { min-width: 0; }
.span-2 { grid-column: span 2; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; font-weight: 400; line-height: 1.7; }
.checkbox input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--portal-accent); }
.upload-field small { font-size: .8125rem; margin-top: 8px; }
input[type=file] { max-width: 100%; font-size: .875rem; }
.form-footnote { font-size: .8125rem; margin: 16px 0 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.menu-toggle, .menu-backdrop { display: none; }
.skip { position: absolute; left: 12px; top: -100px; padding: 12px 16px; z-index: 100; background: white; border-radius: 8px; }
.skip:focus { top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover { background: #194631; text-decoration: none; }
  .button.secondary:not(:disabled):hover { background: var(--portal-selected); }
  .sidebar nav > a:hover, .shop-link > a:hover { background: #edf3ef; text-decoration: none; }
}
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(3) { border-left: 0; }
  .metric-card:nth-child(n+3) { border-top: 1px solid var(--portal-line); }
  .metric-grid.three { grid-template-columns: 1fr; }
  .metric-grid.three .metric-card + .metric-card { border-left: 0; border-top: 1px solid var(--portal-line); }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.equal { grid-template-columns: 1fr 1fr; }
  .welcome-row { flex-wrap: wrap; gap: 0; }
  .auth-layout { gap: 6%; }
  .auth-story h1 { font-size: 3rem; }
  .auth-card { padding: 28px; }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .sidebar-bottom { display: none; }
  .workspace-label { margin-top: 24px; }
  .js .sidebar { position: fixed; width: min(300px, calc(100vw - 52px)); top: 80px; bottom: 0; transform: translateX(-100%); visibility: hidden; border-right: 1px solid var(--portal-line); }
  .js .menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #7c9082; background: #fff; color: var(--portal-ink); border-radius: 8px; }
  .js .menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 80px 0 0; border: 0; background: #17362659; z-index: 25; }
  .js .app-header { position: relative; z-index: 40; }
  .menu-open { overflow: hidden; }
  .app-body { margin-left: 0; }
  .app-header { min-height: 80px; height: 80px; padding: 12px 16px; gap: 12px; }
  .club-identity { margin-right: auto; gap: 10px; }
  .club-identity img, .club-monogram { width: 36px; height: 36px; }
  .club-identity b { font-size: .875rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .club-identity > div > span { display: none; }
  .header-account > span:last-child { display: none; }
  .header-account { max-width: none; }
  .main-content { padding: 28px 20px; }
  .page-title h1 { font-size: 1.75rem; }
  .page-title p { font-size: .875rem; }
  .content-grid, .content-grid.equal { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .auth-story { display: none; }
  .auth-card { margin: auto; }
  .public-header { padding: 24px 20px; gap: 16px; }
  .public-header > .quiet-link { font-size: .8125rem; max-width: 145px; text-align: right; }
  .public-main { padding: 24px 20px 40px; }
  .brand { font-size: 1.25rem; gap: 10px; }
  .brand-mark { width: 36px; height: 42px; }
  .brand-sub { font-size: .8125rem; }
  .lead-layout { grid-template-columns: 1fr; gap: 28px; }
  .lead-story { padding: 0; }
  .lead-story h1 { font-size: 2rem; }
  .welcome-banner { padding: 24px; }
  .welcome-banner h2 { font-size: 1.375rem; }
  .metric-card { padding: 20px; }
  .footer { flex-wrap: wrap; padding: 20px; }
  .footer > div { gap: 20px; }
}
@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card + .metric-card { border-left: 0; border-top: 1px solid var(--portal-line); }
  .metric-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
  .metric-card > div { justify-content: flex-start; }
  .metric-card strong { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .metric-card small { grid-column: 1; }
  .auth-card { padding: 24px; }
  .auth-card h2 { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .header-account { display: none; }
  .organization-switch select { max-width: 100%; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .sidebar { transition: transform 180ms var(--portal-ease); }
}
.keyboard-input .sidebar { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .button:active:not(:disabled) { transform: none; }
}
