/* VereinsAssist – Gestaltung */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5f5;
  --text: #17211d;
  --muted: #5d6b65;
  --border: #e3e7e5;
  /* Akzentfarbe: schwarz auf weißem Hintergrund, weiß auf schwarzem (außer bei bunter Menüfarbe) */
  --primary: #111111;
  --primary-strong: color-mix(in srgb, var(--primary) 65%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 13%, var(--bg));
  --on-primary: #ffffff;
  --accent: #f4c542;
  --ok: #1d7f4e;
  --ok-soft: #e1f4ea;
  --warn: #a76100;
  --warn-soft: #fdf0d9;
  --danger: #c0362c;
  --danger-soft: #fbe5e3;
  --shadow: 0 1px 2px rgba(16, 32, 25, .05), 0 4px 14px rgba(16, 32, 25, .05);
  --radius: 14px;
  /* Menüfarbe: wird pro Nutzer in den Einstellungen gewählt (siehe applyTheme in app.js) */
  --menu-bg: #000000;
  --menu-text: #ffffff;
  --menu-muted: color-mix(in srgb, var(--menu-text) 68%, var(--menu-bg));
  --menu-hover: color-mix(in srgb, var(--menu-text) 12%, transparent);
  --menu-line: color-mix(in srgb, var(--menu-text) 18%, transparent);
  color-scheme: light;
}

/* Hintergrund Schwarz statt Weiß */
:root[data-bg="schwarz"] {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1d1d1d;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --border: #2b2b2b;
  --primary: #ffffff;
  --on-primary: #000000;
  --primary-strong: color-mix(in srgb, var(--primary) 60%, #fff);
  --primary-soft: color-mix(in srgb, var(--primary) 22%, var(--bg));
  --ok: #4fc98a;
  --ok-soft: #12291d;
  --warn: #f0b04a;
  --warn-soft: #2e230e;
  --danger: #f07167;
  --danger-soft: #331715;
  --shadow: none;
  color-scheme: dark;
}
:root[data-bg="schwarz"] .sidebar { border-right: 1px solid var(--border); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 4px 0; }

.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.block { display: block; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mono, code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.empty { color: var(--muted); padding: 18px; text-align: center; background: var(--surface-2); border-radius: 10px; font-size: .9rem; }

/* Bausteine */
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.grid-2.tight, .grid-3.tight { gap: 12px; }
.grid-2.tight { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-head a { font-size: .85rem; }

label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--text); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 42px;
}
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
label.check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 700; padding: 0 6px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
  padding: 9px 16px; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { opacity: .85; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.small { padding: 5px 10px; min-height: 32px; font-size: .82rem; }
.btn.danger-btn { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted-badge { background: var(--surface-2); color: var(--muted); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }

.tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { font: inherit; font-size: .88rem; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.toolbar select, .toolbar input[type="search"] { width: auto; min-width: 200px; }
.group-title { margin: 24px 0 10px; font-size: 1rem; color: var(--muted); text-transform: capitalize; }
.toolbar .group-title { margin: 0; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }

/* Logo */
.logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: var(--surface); flex-shrink: 0; }
.logo-lg { width: 72px; height: 72px; border-radius: 16px; }
.logo-fallback { display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.logo-lg.logo-fallback { font-size: 1.6rem; }
.logo-edit { display: flex; align-items: center; gap: 16px; }
.logo-edit label { flex: 1; }

/* Anmeldung */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.setup { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.setup-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Sprachwahl mit Flaggen – die gewählte Sprache ist größer */
.lang-flags { display: flex; align-items: flex-end; gap: 12px; }
.lang-flags.corner { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; }
.auth { padding-bottom: 76px; }
.flag { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 4px; opacity: .7; transition: opacity .15s, transform .15s; }
.flag svg { display: block; height: 22px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .2); transition: height .15s; }
.flag:hover { opacity: 1; transform: translateY(-1px); }
.flag.active { opacity: 1; cursor: default; transform: none; }
.flag.active svg { height: 36px; }
.flag:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand img { width: 64px; height: 64px; }
.brand p { color: var(--muted); }

/* Grundgerüst: Menü ist ausgeblendet und fährt über die drei Striche als schwarzer Balken herein */
.shell { min-height: 100vh; }
.sidebar {
  width: 280px; max-width: 85vw; background: var(--menu-bg); color: var(--menu-text);
  display: flex; flex-direction: column; padding: 16px 12px; gap: 16px;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; overflow-y: auto;
  transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .35);
}
.menu-open .sidebar { transform: none; }
.menu-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sidebar .club { display: flex; align-items: center; gap: 10px; padding: 6px; color: var(--menu-text); min-width: 0; }
.sidebar .club:hover { text-decoration: none; }
.sidebar .club strong { display: block; line-height: 1.25; }
.sidebar .club small { color: var(--menu-muted); display: block; line-height: 1.3; }
.sidebar .logo-fallback { background: var(--menu-text); color: var(--menu-bg); }
.sidebar .icon-btn { color: var(--menu-muted); }
.sidebar .icon-btn:hover { background: var(--menu-hover); color: var(--menu-text); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--menu-text); font-weight: 500; }
.sidebar nav a:hover { background: var(--menu-hover); text-decoration: none; }
.sidebar nav a.active { background: var(--menu-text); color: var(--menu-bg); font-weight: 700; }
.nav-icon { width: 22px; text-align: center; }
.userbox { border-top: 1px solid var(--menu-line); padding: 12px 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.userbox small { color: var(--menu-muted); display: block; }
.userbox strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.userbox .btn.ghost { color: var(--menu-muted); }
.userbox .btn.ghost:hover { background: var(--menu-hover); color: var(--menu-text); }
main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 1.4rem; flex: 1; }
.topbar .logo { width: 36px; height: 36px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 42px; height: 42px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.menu-btn:hover { background: var(--surface-2); }
.content { padding: 20px 28px 48px; max-width: 1200px; margin: 0 auto; }
.backdrop { display: none; }

/* Übersicht */
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--text); display: flex; flex-direction: column; gap: 4px; }
a.stat:hover { border-color: var(--primary); text-decoration: none; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.line-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.line-item:last-child { border-bottom: 0; }
.line-item:hover { background: var(--surface-2); text-decoration: none; border-radius: 8px; }
.line-item strong, .line-item small { display: block; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--warn); }
.dot.status-arbeit { background: var(--primary); }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; flex-shrink: 0; font-size: .72rem; text-transform: uppercase; color: var(--primary-strong); background: var(--primary-soft); border-radius: 10px; padding: 5px 0; line-height: 1.15; }
.date-chip b { font-size: 1.15rem; }
.date-chip.big { width: 62px; padding: 8px 0; }
.date-chip.big b { font-size: 1.5rem; }
.date-chip small { font-size: .68rem; color: var(--muted); }

/* Aufgaben-Board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.column { background: var(--surface-2); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.column h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.count { background: var(--surface); border-radius: 999px; font-size: .75rem; padding: 1px 8px; color: var(--muted); }
.column .empty { background: transparent; padding: 10px; }
.task { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.task-top { display: flex; gap: 6px; flex-wrap: wrap; }
.task p { font-size: .88rem; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Termine */
.event { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.event h4 { margin: 4px 0 2px; }
.event p { font-size: .9rem; }

/* Mitglieder */
.invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code { font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; background: var(--surface-2); padding: 8px 14px; border-radius: 10px; user-select: all; }
.member { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.member small { display: block; margin-top: 2px; }
.roles { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Tabellen */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.actions { display: table-cell; text-align: right; white-space: nowrap; }
td.actions > * { vertical-align: middle; margin-left: 4px; }
.small-link { font-size: .8rem; display: inline-block; margin-top: 2px; }

/* Farbauswahl in den Einstellungen */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.swatch { position: relative; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sw); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--sw-text); font-weight: 800;
}
.swatch input:checked + span { outline: 3px solid var(--text); outline-offset: 2px; }
.swatch input:checked + span::after { content: "✓"; }
.swatch input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.swatch small { color: var(--muted); }

/* Vorlagen */
.template { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tpl-icon { font-size: 1.8rem; }

/* E-Mail schreiben */
.mail-to { margin-top: 4px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: .88rem; word-break: break-word; max-height: 96px; overflow: auto; }
.form-actions.wrap { flex-wrap: wrap; }
.form-actions.start { justify-content: flex-start; }
.mail-direct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-send { gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.mail-help { font-size: .9rem; padding-top: 4px; border-top: 1px solid var(--border); }
.mail-help p { margin: 6px 0; }
.mail-help ol { margin: 6px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Passwort mit Auge */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kalender */
.cal { padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-head h3 { min-width: 150px; text-align: center; }
.cal-head .icon-btn { font-size: 1.4rem; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; min-height: 86px; padding: 4px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; cursor: pointer; min-width: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.empty { border: 0; background: transparent; cursor: default; }
.cal-day .num { font-size: .82rem; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; }
.cal-day.today .num { background: var(--primary); color: var(--on-primary); }
.cal-day.selected { outline: 2px solid var(--primary); outline-offset: -1px; }
.cal-ev { font-size: .72rem; background: var(--primary-soft); color: var(--text); border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .7rem; color: var(--muted); padding-left: 4px; }

/* Dialog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog.wide { width: min(820px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(10, 20, 16, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 1.15rem; }
.modal-body { padding: 18px 20px 20px; }

/* Hinweis unten */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 1000; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Tablet & Handy */
@media (max-width: 1000px) {
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 1.2rem; }
  .content { padding: 16px 16px 40px; }
  .toolbar select, .toolbar input[type="search"] { min-width: 0; flex: 1; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.2rem; }
  td, th { padding: 10px; }
  .auth-card { padding: 22px; }
  /* Kalender auf dem Handy: statt Titeln nur Punkte */
  .cal { padding: 10px; }
  .cal-grid { gap: 2px; }
  .cal-day { min-height: 48px; align-items: center; padding: 3px 0; }
  .cal-ev, .cal-more { display: none; }
  .cal-day.has-events::after { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--primary); }
  .cal-head h3 { min-width: 0; font-size: 1rem; }
}

/* Pinnwand, Zu-/Absagen, Helferlisten, Protokolle, Kassenbuch */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pre { white-space: pre-wrap; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news { display: flex; flex-direction: column; gap: 8px; }
.news.pinned { border-color: var(--primary); }
.news-head { display: flex; gap: 10px; align-items: flex-start; }
.news h3 { margin: 4px 0 0; }
.rsvp { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.rsvp-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.no { background: var(--danger); border-color: var(--danger); color: #fff; }
.rsvp summary { cursor: pointer; font-size: .88rem; font-weight: 600; }
.rsvp-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.rsvp-lists p { margin: 2px 0 0; }
.helpers { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border); }
.helpers ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.helpers li { display: flex; gap: 10px; align-items: center; }
.event-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-row, .fee-type-row { display: grid; grid-template-columns: 2fr 1.3fr 80px 34px; gap: 8px; align-items: center; }
.fee-type-row { grid-template-columns: 1fr 120px 16px 34px; }
.notice.warn { margin: 0; }
.notice-row { margin: -6px 0 14px; }
.line-card { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
tr.total td { border-top: 2px solid var(--border); }
.protocol h3 { margin: 8px 0 0; }
.import-preview .notice { margin-bottom: 8px; font-weight: 400; }
@media (max-width: 640px) {
  .slot-row { grid-template-columns: 1fr 1fr; }
  .slot-row input[name="slotLabel"] { grid-column: 1 / -1; }
}

/* Mehrere Vereine, Mitgliedsstatus, Datenschutz, SEPA, Versammlung, Fristen */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.club-switch { display: block; padding: 0 12px 8px; }
.club-switch select { width: 100%; background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.club-switch option { color: #111; }
.add-club { margin: 4px 12px 8px; font: inherit; font-size: .8rem; background: transparent; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); color: inherit; opacity: .8; border-radius: 8px; padding: 6px 8px; cursor: pointer; text-align: left; }
.add-club:hover { opacity: 1; }
.member.faded { opacity: .65; }
.badge.warn-badge { background: var(--warn-soft); color: var(--warn); }
.tabs .count { margin-left: 4px; }
.consents { display: flex; flex-direction: column; gap: 6px; }
.consent-row { display: grid; grid-template-columns: 1fr 190px 90px; gap: 8px; align-items: center; font-size: .9rem; }
.consent-row label { margin: 0; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.steps { width: 100%; }
.attend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; max-height: 340px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; }
.vote-row { display: grid; grid-template-columns: 1fr 70px 70px 70px 34px; gap: 8px; align-items: end; }
.vote-row label { font-size: .75rem; }
.deadline-row, .deadline-head { display: grid; grid-template-columns: 1fr 150px 110px 80px 34px; gap: 8px; align-items: center; }
.deadline-head { margin-top: 6px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.line-item.deadline.late strong { color: var(--danger); }
.line-item.deadline.soon strong { color: var(--warn); }
.sepa-sum { align-self: end; font-size: .85rem; }
@media (max-width: 640px) {
  .consent-row { grid-template-columns: 1fr; }
  .vote-row { grid-template-columns: 1fr 1fr 1fr 34px; }
  .vote-row input[name^="vs_"] { grid-column: 1 / -1; }
  .deadline-row { grid-template-columns: 1fr 1fr; }
  .deadline-row input[name="dlTitle"] { grid-column: 1 / -1; }
  .deadline-head { display: none; }
}
/* Lange Auswahltexte oder Knöpfe dürfen Spalten nicht breiter als den Bildschirm machen */
.grid-2 > *, .grid-3 > *, .stack > * { min-width: 0; }
select { max-width: 100%; }
.suggestions .btn { white-space: normal; text-align: left; }
.form-actions .btn { white-space: normal; text-align: center; }
/* Zu-/Absagen auf der Übersicht */
.rsvp-line .rsvp-buttons { flex-shrink: 0; }
.nav-badge.inline { margin-left: 6px; vertical-align: middle; }
@media (max-width: 640px) {
  .rsvp-line { flex-wrap: wrap; }
  .rsvp-line .rsvp-buttons { width: 100%; justify-content: flex-end; }
}
/* Website-Knopf, Umfragen, Belegung */
.hero .website-btn { margin-left: auto; align-self: center; }
.poll.closed { opacity: .8; }
.poll-form { display: flex; flex-direction: column; gap: 6px; }
.poll-option { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.poll-results { display: flex; flex-direction: column; gap: 10px; }
.poll-label { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.poll-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 3px; }
.poll-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.poll-result.mine .poll-label span { font-weight: 700; }
.booking-table { min-width: 860px; table-layout: fixed; }
.booking-table th:first-child { width: 140px; }
.booking-table th.today, .booking-table td.today { background: var(--primary-soft); }
.slot-cell { vertical-align: top; padding: 4px; }
.booking-chip { display: block; width: 100%; text-align: left; font: inherit; font-size: .75rem; line-height: 1.3; margin-bottom: 4px; padding: 4px 6px; border-radius: 6px;
  border: 0; background: var(--primary); color: var(--on-primary); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }

.slot-add { width: 100%; font: inherit; border: 1px dashed var(--border); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; padding: 2px; }
.slot-add:hover { color: var(--text); border-color: var(--text); }
.facility-row { grid-template-columns: 1fr 1fr 34px; }
@media (max-width: 640px) { .hero .website-btn { margin-left: 0; } .hero { flex-wrap: wrap; } }
/* Abteilungen, Mannschaften, Trainingszeiten */
.training-row { display: grid; grid-template-columns: 130px 95px 95px 1fr 1fr 34px; gap: 8px; align-items: center; }
.booking-chip.training { background: var(--ok); color: #fff; }
.department h3 { margin: 0; }
@media (max-width: 760px) {
  .training-row { grid-template-columns: 1fr 1fr 1fr; }
  .training-row > :nth-child(5), .training-row > :nth-child(6) { grid-column: span 3; }
  .training-row > input[name="trPlace"] { grid-column: span 2; }
}

/* Symbole: schlichte Linien-Zeichnungen statt Emojis, in der Farbe des umgebenden Textes */
.i { display: inline-block; width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M8 3h8l-1 6 3 4H6l3-4z'/%3E%3C/svg%3E"); }
.i-tasks { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.i-calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.i-building { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.i-trophy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0z'/%3E%3Cpath d='M8 6H5a3 3 0 0 0 3 4M16 6h3a3 3 0 0 1-3 4'/%3E%3Cpath d='M12 13v4M8 21h8M9 17h6'/%3E%3C/svg%3E"); }
.i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E"); }
.i-coins { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 8.6a4 4 0 1 0 0 6.8M7.5 11h6M7.5 13.5h6'/%3E%3C/svg%3E"); }
.i-receipt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.i-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A1.5 1.5 0 0 0 5.5 22H20v-4'/%3E%3C/svg%3E"); }
.i-file { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.i-settings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.i-trash { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); }
.i-edit { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E"); }
.i-printer { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V3h10v6'/%3E%3Crect x='3' y='9' width='18' height='8' rx='2'/%3E%3Cpath d='M7 14h10v7H7z'/%3E%3C/svg%3E"); }
.i-notes { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h10l4 4v14H5z'/%3E%3Cpath d='M15 3v4h4M9 11h6M9 15h6M9 19h3'/%3E%3C/svg%3E"); }
.i-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }
.i-upload { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V8M7 13l5-5 5 5M4 4h16'/%3E%3C/svg%3E"); }
.i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M6 17v-5M11 17V6M16 17v-8M21 17V3'/%3E%3C/svg%3E"); }
.i-bank { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18L12 4z'/%3E%3Cpath d='M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 21h18'/%3E%3C/svg%3E"); }
.i-exit { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4H6v16h8'/%3E%3Cpath d='M10 12h10M17 9l3 3-3 3'/%3E%3C/svg%3E"); }
.i-repeat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.i-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.i-clip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11l-8.5 8.5a5 5 0 0 1-7-7L13 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L14 7'/%3E%3C/svg%3E"); }
.i-alarm { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M5 3L2 6M19 3l3 3'/%3E%3C/svg%3E"); }
.i-vote { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='1'/%3E%3Cpath d='M8 11V4h8v7M10 7.5l1.5 1.5L14 6'/%3E%3C/svg%3E"); }
.i-gift { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v9h14v-9M12 8v13'/%3E%3Cpath d='M12 8C10 4 7 4 7 6s3 2 5 2zM12 8c2-4 5-4 5-2s-3 2-5 2z'/%3E%3C/svg%3E"); }
.i-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.i-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-mappin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.i-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E"); }
.i-globe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z'/%3E%3C/svg%3E"); }
.i-save { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h11l3 3v15H5z'/%3E%3Cpath d='M8 3v5h7V3M8 21v-7h8v7'/%3E%3C/svg%3E"); }
.i-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.i-stop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3C/svg%3E"); }
.i-helpers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M19 7v6M16 10h6'/%3E%3C/svg%3E"); }.toolbar input[type="search"] { flex: 1 1 200px; min-width: 180px; max-width: 360px; }

/* Abteilungs-Mitglieder, Nachweise, Mitgliederverwaltung */
.dept-members summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.card-inset { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pill.muted-pill { background: var(--surface-2); color: var(--muted); }
.admin-bulk { margin-top: -6px; }
.admin-table { min-width: 980px; }
.admin-row[hidden] { display: none; }
.i-idcard { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M5.5 16a3.5 3.5 0 0 1 7 0M15 10h3M15 14h3'/%3E%3C/svg%3E"); }
.i-handshake { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l4-2 5 2 5-2 4 2v7l-3 1-5 4-2-1-2-2-3-1-3-1z'/%3E%3Cpath d='M12 8l-3 3 2 2 3-2 4 4'/%3E%3C/svg%3E"); }
.i-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='M11.5 11.5L20 3M16 7l3 3M13.5 9.5l2 2'/%3E%3C/svg%3E"); }
.i-badge { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14l-1.5 7 5-2.5 5 2.5-1.5-7'/%3E%3Cpath d='M9.5 9l2 2 3-3.5'/%3E%3C/svg%3E"); }
/* Schriftgröße und Kontrast (Einstellungen → Darstellung) */
:root[data-size="gross"] { font-size: 112.5%; }
:root[data-size="gross"] body { font-size: 17px; }
:root[data-size="sehrgross"] { font-size: 125%; }
:root[data-size="sehrgross"] body { font-size: 19px; }
:root[data-contrast="hoch"] { --muted: #2b332f; --border: #6f7a75; --surface-2: #e9ecea; --shadow: none; }
:root[data-contrast="hoch"][data-bg="schwarz"] { --muted: #e0e0e0; --border: #8a8a8a; --surface-2: #262626; }
:root[data-contrast="hoch"] .card, :root[data-contrast="hoch"] .btn, :root[data-contrast="hoch"] input, :root[data-contrast="hoch"] select, :root[data-contrast="hoch"] textarea { border-width: 2px; }
:root[data-contrast="hoch"] a { text-decoration: underline; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Willkommens-Assistent, Änderungsprotokoll */
.welcome { border-color: var(--primary); }
.welcome h3 { margin-bottom: 4px; }
.welcome-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-steps span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; }
.welcome-steps span.active { background: var(--primary); color: var(--on-primary); }
.welcome-steps span.done { color: var(--ok); }
.audit-list { max-height: 55vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.audit-day { margin: 10px 0 4px; font-size: .85rem; color: var(--muted); }
.audit-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }