:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1c2733;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #0e7c66;
  --primary-dark: #0a5f4e;
  --primary-soft: #e6f4f1;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --success: #1e8e5a;
  --success-soft: #e8f7ef;
  --warning: #b9770e;
  --warning-soft: #fdf3e0;
  --accent: #14539a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --sidebar-w: 240px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #10261f;
  color: #d7e5df;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 1.25rem 1.25rem 1rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand small { display: block; font-weight: 400; color: #9db8ae; font-size: .8rem; }
.sidebar .brand-logo { display: block; width: 100%; max-width: 180px; height: auto; max-height: 100px; margin: 0 auto .75rem; border-radius: 6px; background: rgba(255,255,255,.12); padding: 6px; object-fit: contain; }
.sidebar nav { padding: .75rem .5rem; flex: 1; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border-radius: 8px;
  color: #cfe0d9;
  font-size: .95rem;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.sidebar .userbox {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  color: #9db8ae;
}
.sidebar .userbox strong { color: #fff; display: block; }

.content { flex: 1; padding: 1.75rem 2rem 3rem; max-width: 1400px; }
/* Seite mit der grossen Mitglieder-Tabelle nutzt die volle Fensterbreite (dynamisch) */
.content:has(#mitgliederTable) { max-width: none; min-width: 0; padding: 1rem 1.25rem 2rem; }
.content { flex: 1; padding: 1.75rem 2rem 3rem; }  /* nutzt immer die volle verfuegbare Fensterbreite */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.page-header h1 { margin: 0; font-size: 1.5rem; }
.page-header .subtitle { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

/* ---------- Komponenten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
}
.stat .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }
.stat .hint { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.stat.primary .value { color: var(--primary); }
.stat.success .value { color: var(--success); }
.stat.danger .value { color: var(--danger); }
a.stat { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
a.stat:hover { box-shadow: 0 6px 18px rgba(15,23,42,.12); transform: translateY(-1px); }
a.stat:hover .label { color: var(--primary); }

.table-wrap { overflow-x: auto; }
/* Lange Listen (z. B. Kontoauszug-Buchungen, Rechnungen): passen sich dynamisch
   der Browserfenster-Hoehe an und scrollen intern - der Tabellenkopf bleibt stehen
   (thead th ist bereits sticky). Auf Mobil (<=860px) scrollt wie bisher die Seite. */
.table-wrap.fill { max-height: calc(100vh - 240px); overflow: auto; }
table.data {
  /* Das GANZE Tabellenobjekt passt sich immer der verfuegbaren Browserfenster-Breite an */
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .92rem;
}
table.data th, table.data td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  overflow-wrap: anywhere;   /* lange Inhalte (Grund, Lieferant, ...) brechen um */
}
/* Betrags-/Zahlenspalten bleiben kompakt und brechen nicht um */
table.data th.num, table.data td.num { white-space: nowrap; }
/* Ausnahme: die grosse Mitgliederliste bleibt breit und scrollt horizontal (Design) */
#mitgliederTable { width: max-content; min-width: 100%; }
#mitgliederTable th, #mitgliederTable td { white-space: nowrap; overflow-wrap: normal; }
}
table.data td:last-child { white-space: normal; }
table.data td .btn-row { justify-content: flex-end; }
table.data thead th {
  background: #f8fafc;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  position: sticky;
  top: 0;
}
table.data tbody tr:hover { background: #f1f5f9; }
table.data th a { color: inherit; }
table.data th a:hover { color: var(--primary); text-decoration: none; }
.sort-ind { font-size: .75em; margin-left: .25rem; }

.badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.neutral { background: #eef2f7; color: var(--muted); }
.badge.primary { background: var(--primary-soft); color: var(--primary-dark); }

.btn {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn.secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: #f1f5f9; }
.btn.danger { background: var(--danger); }
.btn.sm { padding: .3rem .65rem; font-size: .82rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

.filterbar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.filterbar .field { display: flex; flex-direction: column; gap: .25rem; }
.filterbar label { font-size: .78rem; color: var(--muted); font-weight: 600; }

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], select, textarea {
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  min-width: 160px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.flash {
  padding: .7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .92rem;
}
.flash.success { background: var(--success-soft); color: var(--success); }
.flash.danger { background: var(--danger-soft); color: var(--danger); }
.flash.info { background: var(--primary-soft); color: var(--primary-dark); }
.flash.warning { background: var(--warning-soft); color: var(--warning); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .4rem 2rem;
}
.detail-grid dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.detail-grid dd { margin: 0 0 .5rem; font-weight: 500; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10261f 0%, #0e7c66 100%);
  padding: 1rem;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
}
.login-card h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.login-card p.sub { color: var(--muted); margin: 0 0 1.5rem; font-size: .9rem; }
.login-card .field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.login-card label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; padding: .65rem; }

.muted { color: var(--muted); }
.text-right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.money-positive { color: var(--success); font-weight: 600; }
.money-negative { color: var(--danger); font-weight: 600; }

.bar-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.bar-row .bar-label { width: 90px; font-size: .85rem; color: var(--muted); }
.bar-track { flex: 1; background: #eef2f7; border-radius: 6px; height: 14px; overflow: hidden; display: flex; }
.bar-ein { background: var(--success); height: 100%; }
.bar-aus { background: var(--danger); height: 100%; }
.bar-row .bar-val { width: 90px; text-align: right; font-size: .8rem; color: var(--muted); }

/* ---------- Bulk-Action-Bar ---------- */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin-bottom: 1rem;
}
.bulk-bar .bulk-info { font-size: .9rem; white-space: nowrap; }
.bulk-bar .bulk-info strong { color: var(--warning); }
.bulk-bar .bulk-actions { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; flex: 1; }
.bulk-bar .bulk-actions form { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.bulk-bar .field { display: flex; flex-direction: column; gap: .15rem; }
.bulk-bar .field label { font-size: .72rem; color: var(--muted); font-weight: 600; }

table.data input[type="checkbox"] { cursor: pointer; width: 16px; height: 16px; accent-color: var(--primary); }
.member-row:hover { background: #f1f5f9; }

/* Spalten-Ausblendung bei kleinem Fenster: unwichtige Spalten werden versteckt,
   damit die Tabelle nicht ueberlappt/abgeschnitten wird */
@media (max-width: 1100px) { .hide-md { display: none; } }
@media (max-width: 860px)  { .hide-sm { display: none; } }

/* ---------- Mittlere Fensterbreite: Tabellen werden kompakter, damit alle Spalten passen ---------- */
@media (max-width: 1100px) {
  /* ALLE Tabellen behalten eine lesbare Mindestbreite und scrollen im Wrap horizontal (statt zu quetschen) */
  table.data { font-size: .85rem; width: auto; min-width: 640px; }
  #mitgliederTable { min-width: 640px; }
  table.data th, table.data td { padding: .45rem .5rem; white-space: nowrap; }
  /* Filter-/Formularfelder duerfen schmaler als 160px werden, sonst explodiert die Tabelle */
  input[type="text"], input[type="password"], input[type="email"],
  input[type="number"], input[type="date"], select, textarea { min-width: 0; }
  .filterbar .field input, .filterbar .field select { min-width: 0; }
  .col-filter-input { min-width: 0; }
  .badge { white-space: normal; }
  .btn.sm { padding: .25rem .5rem; font-size: .78rem; }
  table.data td .btn-row { justify-content: flex-start; }
  .table-wrap, .table-wrap.fill { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Mobil (Handy-Browser): alles dynamisch umbrechend ---------- */
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  /* Sidebar wird zur kompakten Top-Bar */
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    border-bottom: none;
    padding: .55rem .9rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .sidebar .brand small { display: inline; font-size: .72rem; }
  .sidebar .brand-logo { width: auto; max-width: 44px; max-height: 32px; margin: 0; padding: 2px; }
  .sidebar nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .4rem .5rem; flex: 1 1 100%; }
  .sidebar nav a { white-space: nowrap; padding: .45rem .7rem; font-size: .88rem; }
  .sidebar .userbox { border-top: none; padding: .5rem .9rem; font-size: .78rem; }

  .content { padding: .9rem .75rem 2.5rem; }
  .page-header { flex-direction: column; align-items: flex-start; gap: .6rem; margin-bottom: .9rem; }
  .page-header h1 { font-size: 1.25rem; }

  .card { padding: .85rem .9rem; margin-bottom: .9rem; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
  .stat { padding: .7rem .9rem; }
  .stat .value { font-size: 1.25rem; }

  /* Formulare: Felder nehmen die volle Breite */
  .filterbar { flex-direction: column; align-items: stretch; gap: .6rem; }
  .filterbar .field { width: 100%; }
  .card form .field input, .card form .field select, .card form .field textarea { width: 100%; min-width: 0; }
  input[type="text"], input[type="password"], input[type="email"],
  input[type="number"], input[type="date"], select, textarea { min-width: 0; }
  .btn-row { gap: .4rem; }
  .btn { padding: .45rem .8rem; }

  .bulk-bar { flex-direction: column; align-items: stretch; }
  .bulk-bar .bulk-actions { flex-direction: column; align-items: stretch; }
  .bulk-bar .bulk-actions form { flex-direction: column; align-items: stretch; }

  /* Subnav: horizontal scrollbar statt umbrechen/quetschen */
  .subnav { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .subnav a { flex: 0 0 auto; }

  /* Tabellen kompakter auf dem Handy, Seite scrollt horizontal im Wrap */
  table.data { font-size: .8rem; min-width: 640px; }
  table.data th, table.data td { padding: .35rem .4rem; }
  .page-header .btn { width: 100%; text-align: center; }

  /* Tabellen: kompakt, Text bricht um, alles sichtbar; bei Ueberbreite
     scrollt der Wrap horizontal (Scrollbalken sichtbar), nichts wird abgeschnitten */
  .table-wrap, .table-wrap.fill { overflow: auto; -webkit-overflow-scrolling: touch; }
  /* bei kleinem Fenster scrollt die GESAMTE Seite - die Tabelle wird nicht auf
     wenige Zeilen zusammengedrueckt (interner Scroll nur auf dem Desktop) */
  .table-wrap.fill { max-height: none; }
  table.data { width: auto; min-width: 640px; font-size: .82rem; }  /* Mindestbreite, Wrap scrollt */
  table.data th, table.data td { padding: .35rem .4rem; white-space: nowrap; }
  table.data thead th { position: static; }
  /* horizontale Fixierung der Name-Spalten auch mobil behalten, vertikales Stickiness wie bisher aus */
  #mitgliederTable thead th.sticky-left { top: auto; }
  /* Hochformat/Handy: Fixierung komplett aufheben – sonst sieht man nur Name/Vorname */
  #mitgliederTable th.sticky-left,
  #mitgliederTable td.sticky-left {
    position: static;
    left: auto;
    width: auto;
    box-shadow: none;
    background: transparent;
  }
  #mitgliederTable thead th.sticky-left { background: #f8fafc; }
  table.data th.num, table.data td.num { white-space: nowrap; }
  .badge { white-space: normal; }
  table.data td .btn-row { justify-content: flex-start; }
  .btn.sm { padding: .25rem .5rem; font-size: .78rem; }

  /* Grosse Mitglieder-Tabelle (12 Spalten): bleibt breit und scrollt horizontal statt abzuschneiden */
  #mitgliederTable { min-width: 640px; }
  #mitgliederTable th, #mitgliederTable td { white-space: nowrap; overflow-wrap: normal; padding: .3rem .35rem; font-size: .78rem; }
  #mitgliederTable .col-filter-input { font-size: .68rem; padding: .12rem .18rem; }
  #mitgliederTable .col-resize-handle { display: none; }

  .bar-row .bar-label, .bar-row .bar-val { width: 58px; font-size: .75rem; }
}

@media (max-width: 480px) {
  .content { padding: .7rem .5rem 2rem; }
  .card { padding: .7rem .6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.15rem; }
  table.data { min-width: 640px; font-size: .78rem; }
  table.data th, table.data td { padding: .3rem .35rem; }
  .subnav a { padding: .35rem .7rem; font-size: .85rem; }
  .header-row th { font-size: .75rem; padding: .4rem .35rem; }
  .filter-row th { padding: .2rem .25rem; }
}

/* ---------- Mitgliederliste: Header + Filter-Zeile ---------- */
.header-row th {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: .5rem .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
}

.filter-row th {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: .25rem .3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.sort-link:hover { color: var(--primary); text-decoration: none; }

.sort-ind {
  font-size: .7rem;
  color: var(--primary);
  min-width: .8rem;
}

/* Filter-Eingabefelder in der Tabellen-Header-Zeile */
.col-filter-input {
  width: 100%;
  min-width: 0;
  padding: .2rem .3rem;
  font-size: .75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
.col-filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}
.col-filter-input::placeholder { color: #94a3b8; font-size: .72rem; }
select.col-filter-input { padding: .18rem .2rem; }

/* Gestapelte Filterfelder in einer Header-Zelle (z. B. Name + EM, Kontakt + Handy + Fitarco) */
.col-stack { display: flex; flex-direction: column; gap: 2px; }
.filter-row .col-stack .col-filter-input { padding: .14rem .22rem; font-size: .7rem; }
.filter-row .col-stack select.col-filter-input { padding: .12rem .18rem; }

/* Tabelle kompakter */
#mitgliederTable th,
#mitgliederTable td {
  padding: .3rem .35rem;
  font-size: .8rem;
}
#mitgliederTable td.num {
  text-align: right;
  white-space: nowrap;
}

/* Modal/Popup (z. B. Konfiguration einer Kontoauszug-Buchung) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.modal-card h2 { margin-top: 0; }
.modal-card .field { margin-bottom: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.modal-card label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.modal-card label.check { font-size: .9rem; color: var(--text); font-weight: 400; display: flex; align-items: center; gap: .4rem; }

/* Sub-Navigation (Tabs) innerhalb eines Bereichs */
.subnav { display: flex; gap: .35rem; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 0 0 1.1rem; padding: .3rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.subnav a { padding: .4rem 1rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.subnav a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.subnav a.active { color: #fff; background: var(--primary); box-shadow: var(--shadow); }

/* Flash-Meldungen blenden automatisch aus */
.flash { transition: opacity .5s ease; }
.flash.fading { opacity: 0; }

/* Spalten-Resize (Mitgliederliste): Handle am rechten Spaltenrand */
.col-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 6;
  border-right: 2px solid transparent;
}
.col-resize-handle:hover,
.col-resize-handle:active {
  border-right-color: var(--primary);
}
body.resizing,
body.resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* Spalten duerfen per Drag auch verkleinert werden: Zellen-Text (und Filterfelder) passen sich an */
#mitgliederTable td {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Filterfelder folgen der Spaltenbreite in beide Richtungen: die Basis-Regel
   (input/select { min-width: 160px }) hat hoehere Spezifitaet als .col-filter-input,
   wird hier per ID-Regel ueberschrieben, damit die Felder auch schmaler als 160px werden */
#mitgliederTable .col-filter-input {
  width: 100%;
  min-width: 0;
}
/* Sticky-Spalten: Name + Vorname bleiben beim horizontalen Scrollen links fixiert */
#mitgliederTable th.sticky-left,
#mitgliederTable td.sticky-left {
  position: sticky;
  z-index: 2;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border);
}
#mitgliederTable thead th.sticky-left {
  top: 0;
  z-index: 3;
  background: #f8fafc;
}
#mitgliederTable th.col-name,
#mitgliederTable td.col-name { left: 0; width: 170px; }
#mitgliederTable th.col-vorname,
#mitgliederTable td.col-vorname {
  left: 170px;
  width: 110px;
  box-shadow: inset -1px 0 0 var(--border), inset 0 -1px 0 var(--border);
}
#mitgliederTable td.col-name > a,
#mitgliederTable td.col-vorname > a {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
#mitgliederTable td.col-name > a { max-width: 120px; }
#mitgliederTable td.col-vorname > a { max-width: 94px; }
#mitgliederTable tbody tr:hover td.sticky-left { background: #f1f5f9; }

/* Hochformat/Handy: Sticky-Spalten endgültig aufheben (kommt nach den Desktop-Regeln,
   damit die Spezifität/Reihenfolge gewinnt) */
@media (max-width: 1100px) {
  #mitgliederTable th.sticky-left,
  #mitgliederTable td.sticky-left {
    position: static !important;
    left: auto !important;
    width: auto !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  #mitgliederTable thead th.sticky-left { background: #f8fafc !important; }
}
