/* LUMU Vereinsserver – Weboberfläche im Look der LUMU Android-App.
   Wird nach lumu.css geladen. Bestehende Formulare/Funktionen bleiben erhalten. */
:root {
  color-scheme: light;
  --bg:#f5f4ef; --ink:#381019; --muted:#786d6d; --border:#e6dfd6;
  --navy:#381019; --navy2:#5c1d2e; --blue:#6c1832; --green:#23704d; --white:#fffefa;
  --lumu-surface:#fffefa; --lumu-header:#f5f4ef; --lumu-accent:#f9dd4b;
  --lumu-soft:#f0e7df; --lumu-shadow:rgba(56,16,25,.08);
}
/* Optionaler Dunkelmodus, jetzt ebenfalls mit Bordeaux-Farben statt Marineblau. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#201418; --ink:#f6f1eb; --muted:#cbb6b8; --border:#60424c;
  --navy:#381019; --navy2:#6c283c; --blue:#f9dd4b; --green:#80d3a4;
  --white:#fffefa; --lumu-surface:#302027; --lumu-header:#281820;
  --lumu-soft:#442a34; --lumu-shadow:rgba(0,0,0,.2);
}
html {scroll-padding-top:118px}
body {background:var(--bg);color:var(--ink)}
a {color:var(--blue)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid var(--lumu-accent);outline-offset:3px}
/* Kopfzeile bleibt beim Scrollen sichtbar. */
.shell {display:flex;flex-direction:column;min-height:100vh;grid-template-columns:none}
.lumu-site-header {
  position:sticky;top:0;z-index:100;
  background:var(--lumu-header);border-bottom:1px solid var(--border);
  box-shadow:0 4px 20px var(--lumu-shadow);
}
.lumu-header-inner {
  max-width:1500px;margin:auto;padding:12px clamp(16px,3vw,36px);
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:clamp(18px,2.5vw,40px);align-items:center;
}
.lumu-brand {display:flex;flex-direction:column;text-decoration:none;color:var(--navy);line-height:1;min-width:175px}
.lumu-brand-word {font-size:clamp(25px,2.45vw,34px);font-weight:900;letter-spacing:-.065em}
.lumu-brand-dot {color:var(--navy2)}
.lumu-brand-caption {font-size:10px;letter-spacing:.24em;font-weight:750;margin-top:6px}
:root[data-theme="dark"] .lumu-brand {color:var(--ink)}
.lumu-top-nav {display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;min-width:0}
.lumu-top-nav a {
  display:inline-flex;align-items:center;flex:0 0 auto;
  padding:10px 12px;border-radius:12px;white-space:nowrap;
  text-decoration:none;font-size:clamp(12px,1.08vw,14px);font-weight:700;
  color:var(--ink);transition:background-color .18s ease,color .18s ease;
}
.lumu-top-nav a:hover {background:var(--lumu-soft);color:var(--ink)}
.lumu-top-nav a.active {background:var(--navy);color:#fffefa;box-shadow:inset 0 -3px 0 var(--lumu-accent)}
.lumu-header-actions {display:flex;align-items:center;gap:9px;justify-self:end;white-space:nowrap}
.lumu-icon-button {
  display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;
  border:1px solid var(--border);border-radius:50%;background:var(--lumu-surface);
  color:var(--navy);cursor:pointer;text-decoration:none;
  transition:background-color .18s ease,transform .18s ease;
}
.lumu-icon-button:hover {background:var(--lumu-soft);transform:translateY(-1px)}
.lumu-icon-button svg {display:block;width:22px;height:22px}
.lumu-logout {border-color:var(--navy);background:var(--navy);color:#fffefa}
.lumu-logout:hover {background:var(--navy2);color:#fffefa}
.lumu-account-menu {position:relative}
.lumu-account-menu summary {list-style:none}
.lumu-account-menu summary::-webkit-details-marker {display:none}
.lumu-account-menu.active summary,.lumu-account-menu[open] summary {box-shadow:inset 0 0 0 2px var(--navy2)}
.lumu-account-dropdown {
  position:absolute;right:0;top:calc(100% + 12px);width:min(290px,calc(100vw - 26px));
  padding:8px;border:1px solid var(--border);border-radius:15px;
  background:var(--lumu-surface);box-shadow:0 18px 44px var(--lumu-shadow);z-index:110;
}
.lumu-account-caption {display:flex;flex-direction:column;gap:4px;padding:12px 13px;border-bottom:1px solid var(--border);margin-bottom:5px;white-space:normal}
.lumu-account-caption strong {font-size:14px;overflow-wrap:anywhere}
.lumu-account-caption small {font-size:12px;color:var(--muted)}
.lumu-account-dropdown a {display:block;padding:10px 13px;border-radius:9px;text-decoration:none;font-size:14px;font-weight:700;color:var(--ink)}
.lumu-account-dropdown a:hover,.lumu-account-dropdown a[aria-current="page"] {background:var(--lumu-soft)}
/* Seiteninhalt bleibt unabhängig von der dauerhaft sichtbaren Menüleiste scrollbar. */
.main {width:100%;max-width:1450px;flex:1;padding:34px clamp(17px,4vw,56px);margin:0 auto}
.top {align-items:center;margin-bottom:26px}
.top h1 {color:var(--navy);font-weight:850}
:root[data-theme="dark"] .top h1 {color:var(--ink)}
.sub {color:var(--muted)}
.pill,.chip {border-color:var(--border);background:var(--lumu-soft);color:var(--navy)}
:root[data-theme="dark"] .pill,:root[data-theme="dark"] .chip {color:var(--ink);background:var(--lumu-soft);border-color:var(--border)}
.panel,.metric,.tile,.stat,.loginbox {
  background:var(--lumu-surface);color:var(--ink);border-color:var(--border);
  box-shadow:0 3px 16px var(--lumu-shadow);
}
.metric strong,.stat strong {color:var(--navy)}
:root[data-theme="dark"] .metric strong,:root[data-theme="dark"] .stat strong {color:var(--ink)}
.panel-head,.panelhead {border-bottom-color:var(--border)}
.btn,.action {background:var(--navy);color:#fffefa}
.btn:hover,.action:hover {background:var(--navy2);color:#fffefa}
.btn.secondary,.action.secondary {background:var(--lumu-soft);color:var(--ink)}
.btn.secondary:hover,.action.secondary:hover {background:var(--border);color:var(--ink)}
.tile:hover {border-color:var(--navy2);box-shadow:0 6px 24px var(--lumu-shadow)}
th,.eyebrow,.metric-label {color:var(--muted)}
td,.tip {border-color:var(--border)}
input[type="checkbox"],input[type="radio"],.lumu-active-toggle input,.switchrow input {accent-color:var(--navy2)}
.auth-field input,.auth-field select,.search-field,.select-field {
 background:var(--lumu-surface);color:var(--ink);border-color:var(--border);
}
:root[data-theme="dark"] .auth-field input,:root[data-theme="dark"] .auth-field select,
:root[data-theme="dark"] .search-field,:root[data-theme="dark"] .select-field {
  background:var(--lumu-surface);color:var(--ink);border-color:var(--border);
}
.alert-info {background:var(--lumu-soft);border-color:var(--border);color:var(--ink)}
:root[data-theme="dark"] .alert-info {background:var(--lumu-soft);border-color:var(--border);color:var(--ink)}
.footer {color:var(--muted);border-color:var(--border)}
/* Tablet und Smartphone: Logo + zwei Icons oben, Navigation darunter immer sichtbar. */
@media (max-width:1140px) {
  html {scroll-padding-top:132px}
  .lumu-header-inner {grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:12px 17px 8px}
  .lumu-header-actions {grid-column:2;grid-row:1}
  .lumu-top-nav {grid-column:1 / -1;grid-row:2;justify-content:flex-start;
    overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:7px;
    -webkit-overflow-scrolling:touch;
  }
  .lumu-top-nav a {font-size:13px;padding:9px 11px}
  .main {padding-top:24px}
}
@media (max-width:600px) {
  html {scroll-padding-top:125px}
  .lumu-header-inner {padding:11px 13px 6px}
  .lumu-brand {min-width:0}
  .lumu-brand-word {font-size:27px}
  .lumu-brand-caption {font-size:9px;letter-spacing:.17em}
  .lumu-icon-button {width:40px;height:40px}
  .lumu-top-nav a {font-size:12px;padding:9px 10px}
  .main {padding:22px 14px}
  .top {margin-bottom:20px}
}
@media (prefers-reduced-motion:reduce) {
  .lumu-icon-button,.lumu-top-nav a {transition:none}
  html {scroll-behavior:auto}
}
