/* WHV VereinsForum – gemeinsames Stylesheet (öffentlich + Admin) */
:root {
  --whv: #3DB82A;
  --whv-dark: #155C2C;
  --whv-light: #E8F3EC;
  --ink: #1c2b1c;
  --muted: #5f6f5f;
  --line: #d5e0d7;
  --bg: #f4f7f5;
  --card: #ffffff;
  --err: #b00020;
  --err-bg: #fdecee;
  --warn: #8a5a00;
  --warn-bg: #fdf4e3;
  --info: #1f4f8a;
  --info-bg: #e9f0fa;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--whv-dark); }
a:hover { color: var(--whv); }
h1, h2, h3 { color: var(--whv-dark); line-height: 1.25; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.err { color: var(--err); }
.ok { color: var(--whv-dark); }
.pre { white-space: pre-wrap; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 1px solid var(--whv-dark); background: var(--whv-dark); color: #fff;
  padding: .6rem 1.1rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--whv); border-color: var(--whv); color: #fff; }
.btn:focus-visible, .seg input:focus-visible + span, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(61,184,42,.55); outline-offset: 2px;
}
.btn-primary { background: var(--whv); border-color: var(--whv); }
.btn-primary:hover { background: var(--whv-dark); border-color: var(--whv-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,.06); color: inherit; border-color: currentColor; }
.btn-sec { background: #fff; color: var(--whv-dark); }
.btn-sec:hover { background: var(--whv-light); color: var(--whv-dark); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-sm { padding: .3rem .65rem; font-size: .86rem; font-weight: 500; }
.btn-link { background: none; border: 0; color: var(--whv-dark); text-decoration: underline; padding: 0; font: inherit; cursor: pointer; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ---------- Meldungen ---------- */
.flash, .notice { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; border: 1px solid; }
.flash-ok, .notice-ok { background: var(--whv-light); border-color: #b9dcc3; color: var(--whv-dark); }
.flash-err, .notice-err { background: var(--err-bg); border-color: #f1b8c0; color: var(--err); }
.notice-warn { background: var(--warn-bg); border-color: #eed3a0; color: var(--warn); }
.notice-info { background: var(--info-bg); border-color: #bcd0ec; color: var(--info); }

.badge {
  display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .78rem;
  background: #eef1ee; color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.badge-ok { background: var(--whv-light); color: var(--whv-dark); border-color: #b9dcc3; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #eed3a0; }
.badge-err { background: var(--err-bg); color: var(--err); border-color: #f1b8c0; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: #bcd0ec; }

/* ================= Öffentlicher Bereich ================= */
.pub-head { background: var(--whv-dark); color: #fff; }
.pub-head-in { max-width: 760px; margin: 0 auto; padding: .8rem 1rem; }
.brand { font-weight: 800; letter-spacing: .02em; color: #fff; text-decoration: none; }
.brand span { color: var(--whv); font-weight: 600; }
.brand { display: inline-flex; align-items: center; white-space: pre; }
.brand-logo { width: auto; height: 34px; background: #fff; border-radius: 8px; padding: 3px 5px; box-sizing: content-box; margin-right: .6rem; }
.topbar .brand-logo { height: 26px; padding: 2px 4px; border-radius: 6px; }
.pub-wrap { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.pub-foot { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .86rem; }

.event {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  border-top: 6px solid var(--whv); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem;
}
.event h1 { margin: 0 0 .6rem; font-size: 1.55rem; }
.event-mit-bild { border-top: 0; overflow: hidden; }
.event-hero { display: block; width: calc(100% + 2.4rem); max-width: none; height: auto; margin: -1.1rem -1.2rem -3%; }
.event-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; }
.event-facts dt { font-weight: 600; color: var(--whv-dark); }
.event-facts dd { margin: 0; }
.event-text { margin-top: .9rem; }
.event-text p { margin: .5rem 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1.1rem;
}
.card > h2, .card > h3 { margin-top: 0; }

/* ---------- Formular ---------- */
fieldset.sec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem 1.2rem; margin: 0 0 1.1rem; min-width: 0;
}
fieldset.sec > legend {
  font-weight: 700; color: var(--whv-dark); font-size: 1.1rem; padding: 0 .3rem;
  background: var(--card); border-radius: 6px;
}
.sec-hint { margin: .1rem 0 .8rem; color: var(--muted); font-size: .92rem; }
.field { margin: 0 0 1rem; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .lbl { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { color: var(--err); font-weight: 700; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=search], .field input[type=date],
.field input[type=datetime-local], .field input[type=number], .field select, .field textarea,
.inp {
  width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #b9c6bb; border-radius: 8px;
  background: #fff; color: var(--ink); min-height: 44px;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field .hint { color: var(--muted); font-size: .86rem; margin: .3rem 0 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--err); }
.field-err { color: var(--err); font-size: .9rem; margin: .3rem 0 0; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--whv-dark); }
.radios { display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; }
.radios .check { align-items: center; min-height: 44px; }
.radios .check input { margin: 0; }

/* Segmented Control (Themengewichtung) */
.thema { padding: .8rem 0; border-top: 1px solid var(--line); }
.thema:first-of-type { border-top: 0; padding-top: 0; }
.thema-titel { font-weight: 600; margin: 0 0 .15rem; }
.thema-besch { color: var(--muted); font-size: .9rem; margin: 0 0 .45rem; }
.seg {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #b9c6bb;
  border-radius: 8px; overflow: hidden; background: #fff; margin: .35rem 0 0; padding: 0;
}
.seg label { position: relative; margin: 0; cursor: pointer; }
.seg label + label { border-left: 1px solid #b9c6bb; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px;
  padding: .35rem .25rem; font-size: .88rem; line-height: 1.15; user-select: none;
}
.seg input:checked + span { background: var(--whv-dark); color: #fff; font-weight: 600; }
.seg label:hover span { background: var(--whv-light); }
.seg input:checked:hover + span { background: var(--whv-dark); }

/* Vereinssuche (Combobox) */
.vs { position: relative; }
.vs-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem 0;
  list-style: none; background: #fff; border: 1px solid #b9c6bb; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 22rem; overflow: auto;
}
.vs-opt { padding: .55rem .8rem; cursor: pointer; }
.vs-opt[aria-selected=true], .vs-opt:hover { background: var(--whv-light); }
.vs-name { display: block; font-weight: 600; }
.vs-meta { display: block; font-size: .84rem; color: var(--muted); }
.vs-leer { padding: .6rem .8rem; color: var(--muted); font-size: .92rem; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--whv-light);
  border: 1px solid #b9dcc3; border-radius: 999px; padding: .4rem .5rem .4rem .9rem; max-width: 100%;
}
.chip-text { min-width: 0; }
.chip-text strong { display: block; overflow-wrap: anywhere; }
.chip-text small { color: var(--muted); }
.chip button {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: var(--whv-dark);
  color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.vs-toggle { margin-top: .5rem; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.submit-row .btn { width: 100%; padding: .9rem 1.2rem; font-size: 1.05rem; }
@media (min-width: 600px) { .submit-row .btn { width: auto; } }
.btn-eval { background: var(--whv-dark); border-color: var(--whv-dark); }
.btn-eval:hover { background: var(--whv); border-color: var(--whv); }

.summary { margin: 0; display: grid; grid-template-columns: 1fr; gap: .1rem .8rem; }
.summary dt { font-weight: 600; color: var(--whv-dark); margin-top: .5rem; }
.summary dd { margin: 0; white-space: pre-wrap; }
@media (min-width: 600px) {
  .summary { grid-template-columns: 13rem 1fr; }
  .summary dt { margin-top: 0; }
}

/* ================= Admin ================= */
body.admin { font-size: 15px; }
.topbar {
  background: var(--whv-dark); color: #fff; display: flex; align-items: center; gap: .8rem 1.2rem;
  padding: .6rem 1.2rem; flex-wrap: wrap;
}
.nav { display: flex; gap: .15rem; flex-wrap: wrap; flex: 1; }
.nav a { color: #d9ead9; text-decoration: none; padding: .35rem .65rem; border-radius: 6px; font-size: .92rem; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.on { background: var(--whv); color: #fff; font-weight: 600; }
.nav-toggle { display: none; }
.va-switch select { font: inherit; font-size: .86rem; padding: .3rem .4rem; border-radius: 6px; border: 0; max-width: 20rem; }
.logout-form { margin: 0; display: flex; align-items: center; gap: .6rem; font-size: .86rem; }
.who { color: #d9ead9; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; margin-left: auto; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 6px; padding: .3rem .7rem; font: inherit; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .va-switch, .va-switch select { width: 100%; max-width: none; }
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 1.3rem 1.2rem 3rem; }
.page-head { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; font-size: 1.45rem; }
.page-head p { margin: .2rem 0 0; }
.cols { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 980px) { .cols { grid-template-columns: 1fr 1fr; } .cols-3-1 { grid-template-columns: 2fr 1fr; } }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--whv); }
.kpi-num { font-size: 1.7rem; font-weight: 800; color: var(--whv-dark); line-height: 1.2; }
.kpi-lbl { font-size: .84rem; color: var(--muted); }
.kpi-warn { border-color: #eed3a0; background: var(--warn-bg); }
.kpi-warn .kpi-num { color: var(--warn); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 2px solid var(--line); padding: .45rem .55rem; white-space: nowrap;
}
.tbl th a.sort { color: inherit; text-decoration: none; }
.tbl th a.sort:hover, .tbl th a.sort.aktiv { color: var(--whv-dark); }
.tbl td { border-bottom: 1px solid var(--line); padding: .5rem .55rem; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.storniert td { color: var(--muted); text-decoration: line-through; }
.tbl tr.storniert td.no-strike, .tbl tr.storniert td .badge { text-decoration: none; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 9rem; }
.filters .field label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
.filters .field input, .filters .field select { min-height: 38px; padding: .4rem .55rem; }

.inline-form { display: inline; margin: 0; }
.stack > * + * { margin-top: .6rem; }
.dl { display: grid; grid-template-columns: 12rem 1fr; gap: .35rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: .4rem; } }

.bar { background: #eef1ee; border-radius: 4px; height: .7rem; overflow: hidden; min-width: 6rem; }
.bar > span { display: block; height: 100%; background: var(--whv); }
.dist { display: flex; height: 1rem; border-radius: 4px; overflow: hidden; min-width: 10rem; background: #eef1ee; }
.dist span { display: block; height: 100%; }
.d0 { background: #d7ddd8; } .d1 { background: #a9d9a0; } .d2 { background: #5fbf4f; } .d3 { background: var(--whv-dark); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .3rem; }

.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .4rem .8rem; border-radius: 6px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.tabs a.on { background: var(--whv-dark); color: #fff; border-color: var(--whv-dark); }

.sugg { display: flex; gap: .4rem; flex-wrap: wrap; margin: .35rem 0; }
.sugg button { font: inherit; font-size: .84rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid #b9dcc3; background: var(--whv-light); color: var(--whv-dark); cursor: pointer; }
.sugg button:hover { background: var(--whv); color: #fff; }
.flag { color: var(--warn); font-size: .84rem; }
.chart-box { position: relative; height: 240px; }
.h3 { font-size: 1.05rem; margin: 0 0 .7rem; }

/* Umschalter VereinsForum | Vereinsevaluation */
.bereich-toggle { display: inline-flex; border: 1px solid var(--whv-dark); border-radius: 999px; overflow: hidden; margin: 0 0 1rem; background: #fff; }
.bereich-toggle a { padding: .45rem 1.1rem; text-decoration: none; color: var(--whv-dark); font-weight: 600; font-size: .92rem; }
.bereich-toggle a.on { background: var(--whv-dark); color: #fff; }
.bereich-toggle a:not(.on):hover { background: var(--whv-light); }

/* Evaluation */
.frage { border-top: 1px solid var(--line); padding: 1rem 0; }
.frage:first-child { border-top: 0; padding-top: 0; }
.card.frage, .card.frage:first-child { padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); }
.frage h3 { font-size: 1rem; margin: 0 0 .2rem; color: var(--ink); }
.frage .nr { color: var(--whv-dark); font-weight: 700; margin-right: .3rem; }
.frage-meta { color: var(--muted); font-size: .84rem; margin: 0 0 .6rem; }
.verteilung { display: grid; grid-template-columns: minmax(10rem, 22rem) 1fr 4.5rem; gap: .3rem .8rem; align-items: center; font-size: .9rem; }
.verteilung .bar { height: .9rem; }
.verteilung .zahl { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 700px) { .verteilung { grid-template-columns: 1fr 4rem; } .verteilung .bar { grid-column: 1 / -1; } }
/* Auswertung: Zeilen der Verteilung anklickbar (Popup mit den Vereinen) */
.verteilung .vt-zeile { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; gap: inherit; font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: .15rem .3rem; margin: 0 -.3rem; border-radius: 8px; }
.verteilung .bar { display: block; }
.verteilung button.vt-zeile { cursor: pointer; }
.verteilung button.vt-zeile:hover, .verteilung button.vt-zeile:focus-visible { background: #eef5f0; outline: none; }
.verteilung button.vt-zeile:hover > span:first-child { text-decoration: underline; text-decoration-color: #3DB82A; text-underline-offset: 3px; }
.vt-dialog { width: min(640px, calc(100vw - 2rem)); }
.vt-erkl { margin: 0; }
.vt-liste { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 60vh; }
.vt-liste li { padding: .45rem 0; border-top: 1px solid #e5ebe7; }
.vt-liste q { display: block; margin-top: .25rem; padding: .35rem .6rem; background: #f3f7f4; border-left: 3px solid #3DB82A; border-radius: 0 6px 6px 0; font-style: italic; }
.vt-liste .vt-ohne { display: block; }
/* Themengewichtung: Balken anklickbar, Popup nach Stufen */
.tg-knopf { display: block; width: 100%; padding: .35rem 0; background: none; border: 0; cursor: pointer; border-radius: 6px; }
.tg-knopf:hover .bar, .tg-knopf:focus-visible .bar { box-shadow: 0 0 0 2px #cfe6d2; }
.tg-knopf .bar { display: block; }
.tg-dist button { display: block; height: 100%; padding: 0; border: 0; cursor: pointer; }
.tg-dist button:hover, .tg-dist button:focus-visible { filter: brightness(1.12); outline: 2px solid #17201b; outline-offset: -2px; }
.tg-gruppen { overflow: auto; max-height: 62vh; display: grid; gap: .8rem; }
.tg-gruppe h3 { font-size: .95rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: .45rem; }
.tg-gruppe .vt-liste { max-height: none; }
.tg-farbe { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; }
.tg-personen { display: block; margin-top: .15rem; color: var(--muted); }
.tg-gruppe.tg-hervor { background: #f3f7f4; border-radius: 8px; padding: .4rem .6rem; margin: 0 -.6rem; }
.mtx td.zelle { text-align: center; font-variant-numeric: tabular-nums; }
.mtx td.zelle span { display: inline-block; min-width: 2.2rem; padding: .1rem .3rem; border-radius: 4px; }
.textliste { margin: 0; padding: 0; list-style: none; }
.textliste li { border-left: 3px solid var(--whv-light); padding: .3rem .7rem; margin: .4rem 0; white-space: pre-wrap; }
.textliste .wer { display: block; font-size: .8rem; color: var(--muted); white-space: normal; }
.statgrid { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; }
.statgrid b { color: var(--whv-dark); }
.eval-matrix { width: 100%; border-collapse: collapse; }
.eval-matrix th, .eval-matrix td { padding: .45rem .35rem; border-bottom: 1px solid var(--line); text-align: center; font-size: .88rem; }
.eval-matrix th:first-child, .eval-matrix td:first-child { text-align: left; }
.eval-matrix input { width: 1.25rem; height: 1.25rem; accent-color: var(--whv-dark); }
@media (max-width: 600px) {
  .eval-matrix thead { display: none; }
  .eval-matrix tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .eval-matrix td { display: block; border: 0; text-align: left; padding: .2rem 0; }
  .eval-matrix td:first-child { font-weight: 600; }
  .eval-matrix td label.mtx-opt { display: flex; gap: .5rem; align-items: center; }
}
.mtx-opt span.mtx-label { display: none; }
@media (max-width: 600px) { .mtx-opt span.mtx-label { display: inline; } }

/* Hinweis auf die Vereinsevaluation (Anmeldung, Danke-Seite) */
.eval-cta { border-left: 6px solid var(--whv); background: var(--whv-light); }
.eval-cta h2 { margin: .1rem 0 .5rem; font-size: 1.35rem; }
.eval-cta p:last-child { margin-bottom: 0; }
.eval-cta-kicker { font-weight: 700; color: var(--whv-dark); margin: 0 0 .2rem; }
.eval-cta-fertig { border-left-color: var(--whv-dark); }
.btn-gross { font-size: 1.05rem; padding: .8rem 1.3rem; }
@media (max-width: 560px) { .btn-gross { display: block; width: 100%; text-align: center; box-sizing: border-box; } }
.uebernommen { background: var(--whv-light); border-radius: 8px; padding: .8rem 1rem; }
.kontakt-aendern { margin-top: .6rem; }
.kontakt-aendern > summary { cursor: pointer; color: var(--whv-dark); text-decoration: underline; margin-bottom: .6rem; }

/* ---------- Vereinsprofil (Dashboard, dunkel) ---------- */
.dash {
  --d-page: #0b131c; --d-card: #121c27; --d-line: #22303d; --d-axis: #34424f;
  --d-ink: #e8eef3; --d-ink2: #a9b6c2; --d-muted: #7d8a96;
  --d-verein: #34a826; --d-alle: #4b5a68; --d-blau: #3987e5;
  background: var(--d-page); color: var(--d-ink); border-radius: 14px; padding: 1.4rem;
  font-variant-numeric: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.dash h1, .dash h2, .dash h3 { color: var(--d-ink); }
.dash a { color: var(--d-ink); }
.dash-top { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.2rem; }
.dash-top h1 { margin: .1rem 0 .2rem; font-size: 1.7rem; }
.dash-kicker { margin: 0; color: var(--d-verein); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dash-sub { margin: 0; color: var(--d-ink2); }
.dash-sub2 { margin: -.2rem 0 .9rem; color: var(--d-muted); font-size: .82rem; }
.dash-muted { color: var(--d-muted); }
.dash-hinweis { color: #fab219; font-size: .86rem; }
.dash-ctrl { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.dash-ctrl select { background: var(--d-card); color: var(--d-ink); border: 1px solid var(--d-axis); border-radius: 8px; padding: .5rem .7rem; max-width: 26rem; font: inherit; }
.dash-btn { background: transparent; color: var(--d-ink); border: 1px solid var(--d-axis); border-radius: 8px; padding: .5rem .8rem; font: inherit; cursor: pointer; }
.dash-btn:hover { border-color: var(--d-verein); }
.dash-card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; position: relative; }
.dash-card h2 { font-size: 1rem; margin: 0 0 .3rem; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 0; }
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.kpi-l { margin: 0; color: var(--d-ink2); font-size: .8rem; }
.kpi-v { margin: .25rem 0 .2rem; font-size: 2rem; font-weight: 650; line-height: 1.1; }
.kpi-v span { font-size: .95rem; font-weight: 400; color: var(--d-ink2); }
.kpi-d { margin: 0; color: var(--d-muted); font-size: .8rem; }
.kpi-status { font-size: 1.4rem; }
.kpi-status.ok { color: var(--d-ink); }
.kpi-status.ok::first-letter { color: var(--d-verein); }
.kpi-status.offen { color: var(--d-ink2); }
.zeitleiste { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--d-axis); }
.zeitleiste li { position: relative; text-align: center; font-size: .72rem; }
.zeitleiste a { text-decoration: none; color: var(--d-muted); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.zeitleiste i { width: 13px; height: 13px; border-radius: 50%; background: var(--d-card); border: 2px solid var(--d-axis); box-sizing: border-box; }
.zeitleiste li.ja i { background: var(--d-verein); border-color: var(--d-verein); box-shadow: 0 0 0 2px var(--d-card); }
.zeitleiste li.ja a { color: var(--d-ink); font-weight: 600; }
.legende { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: var(--d-ink2); margin: 0 0 .8rem; }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.sw-verein { background: var(--d-verein); }
.sw-alle { background: var(--d-alle); }
.sw-alle-strich { width: 2px; height: 12px; background: var(--d-ink); border-radius: 1px; }
.personen { list-style: none; margin: 0; padding: 0; }
.personen li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--d-line); }
.personen li:first-child { border-top: 0; }
.p-fkt { color: var(--d-ink2); font-size: .86rem; text-align: right; }
.themen, .opts, .mzeilen { list-style: none; margin: 0; padding: 0; }
.themen li { display: grid; grid-template-columns: minmax(8rem, 1.3fr) 2fr 2.4rem; gap: .7rem; align-items: center; padding: .4rem 0; font-size: .86rem; }
.t-bar, .o-bar { position: relative; height: 8px; background: rgba(255,255,255,.04); border-radius: 0 4px 4px 0; }
.t-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--d-verein); border-radius: 0 4px 4px 0; }
.t-bar .mark { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--d-ink); transform: translateX(-1px); border-radius: 1px; }
.t-v, .o-p, .m-p { text-align: right; color: var(--d-ink2); font-variant-numeric: tabular-nums; font-size: .82rem; }
.pills { display: flex; gap: .3rem; flex-wrap: wrap; background: var(--d-page); border: 1px solid var(--d-line); border-radius: 9px; padding: .2rem; }
.pills a { text-decoration: none; padding: .3rem .65rem; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--d-ink); }
.pills a.leer { color: var(--d-muted); font-weight: 400; }
.pills a.on { background: var(--d-verein); color: #fff; }
.abschnitt { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--d-muted); margin: 1.2rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--d-line); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; }
.q { background: var(--d-page); border: 1px solid var(--d-line); border-radius: 10px; padding: .85rem .95rem; break-inside: avoid; }
.q-t { margin: 0 0 .6rem; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.q-nr { color: var(--d-verein); margin-right: .4rem; }
.opts li { display: grid; grid-template-columns: minmax(7rem, 1.4fr) 1.6fr 2.6rem; gap: .6rem; align-items: center; padding: .22rem 0; font-size: .82rem; color: var(--d-ink2); }
.opts .o-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--d-alle); border-radius: 0 4px 4px 0; min-width: 2px; }
.opts li.on { color: var(--d-ink); font-weight: 600; }
.opts li.on .o-bar i { background: var(--d-verein); }
.mzeilen li { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: .6rem; padding: .3rem 0; border-top: 1px solid var(--d-line); font-size: .82rem; }
.mzeilen li:first-child { border-top: 0; }
.q-matrix { grid-column: 1 / -1; }
.q-matrix .mzeilen { columns: 3 300px; column-gap: 1.6rem; }
.q-matrix .mzeilen li { break-inside: avoid; }
.m-l { color: var(--d-ink2); }
.m-w { font-weight: 600; }
.z-v { margin: 0 0 .3rem; font-size: 1.5rem; font-weight: 650; }
.z-v span { font-size: .8rem; font-weight: 400; color: var(--d-ink2); margin-left: .5rem; }
.strip { width: 100%; height: 34px; display: block; }
.s-axis { stroke: var(--d-axis); stroke-width: 1; }
.s-alle { fill: var(--d-alle); }
.s-med { stroke: var(--d-ink2); stroke-width: 2; stroke-linecap: round; }
.s-verein { fill: var(--d-verein); stroke: var(--d-page); stroke-width: 2; }
.z-ax { display: flex; justify-content: space-between; margin: 0; font-size: .72rem; color: var(--d-muted); font-variant-numeric: tabular-nums; }
.zitat { margin: 0; padding: .1rem 0 .1rem .8rem; border-left: 2px solid var(--d-verein); color: var(--d-ink); font-size: .86rem; white-space: normal; }
.dash-tbl { overflow-x: auto; }
.dash-tbl table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.dash-tbl th { text-align: left; color: var(--d-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .4rem .5rem; border-bottom: 1px solid var(--d-axis); }
.dash-tbl td { padding: .45rem .5rem; border-bottom: 1px solid var(--d-line); vertical-align: top; color: var(--d-ink2); }
.dash-tbl td:first-child { color: var(--d-ink); min-width: 14rem; }
.dash-foot { margin: .4rem 0 0; color: var(--d-muted); font-size: .75rem; text-align: right; }
@media (max-width: 640px) {
  .dash { padding: .9rem; border-radius: 10px; }
  .dash-two, .q-grid { grid-template-columns: minmax(0, 1fr); }
  .themen li { grid-template-columns: 1fr 2.4rem; }
  .themen .t-bar { grid-column: 1 / -1; grid-row: 2; }
  .dash-ctrl, .dash-ctrl select { width: 100%; max-width: none; }
}
@media print {
  @page { size: A4; margin: 0; }
  body.admin { background: #0b131c; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.admin .topbar, .dash-ctrl, .flash { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .dash { border-radius: 0; padding: 10mm; }
  .dash-card, .q { break-inside: avoid; }
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
  .dash-two { grid-template-columns: 1fr 1fr; }
  .q-grid { grid-template-columns: 1fr 1fr; }
  .dash-card:has(.q-grid) { break-inside: auto; }
}
/* Vereinsprofil: Mitglieder (Hockey in NRW) */
.dash-sek { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--d-ink2) !important; margin: 1.4rem 0 .7rem; }
.dash-sek span { text-transform: none; letter-spacing: 0; color: var(--d-muted); font-weight: 400; margin-left: .4rem; }
.delta { font-weight: 600; }
.delta.up, .delta-v.up { color: #0ca30c; }
.delta.down, .delta-v.down { color: #e66767; }
.sw-ln-1 { background: var(--d-verein); }
.sw-ln-2 { background: var(--d-blau); }
.sw-ln-3 { background: var(--d-ref); }
.legende b { color: var(--d-ink); font-weight: 600; margin-left: .2rem; }
.dash { --d-ref: #8b98a5; }
.lnchart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--d-line); stroke-width: 1; }
.ch-tick { fill: var(--d-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.ln-1 { stroke: var(--d-verein); } .ch-line.ln-2 { stroke: var(--d-blau); } .ch-line.ln-3 { stroke: var(--d-ref); }
.ar-1 { fill: var(--d-verein); opacity: .12; }
.ch-dot { stroke: var(--d-card); stroke-width: 1.6; transition: r .12s; }
.ch-dot.ch-dot-klein { r: 2.4; }
.ch-pt { cursor: default; } .ch-pt:hover .ch-dot, .ch-pt:focus .ch-dot { r: 5.5; stroke-width: 2; }
.ch-dot.ln-1 { fill: var(--d-verein); } .ch-dot.ln-2 { fill: var(--d-blau); } .ch-dot.ln-3 { fill: var(--d-ref); }
.ch-hit { fill: transparent; }
.karte { width: 100%; height: auto; display: block; margin: .2rem 0 .6rem; }
.k-alle { fill: var(--d-alle); }
.k-nb { fill: var(--d-ink2); }
.k-link { stroke: var(--d-axis); stroke-width: 1; }
.k-fokus { fill: var(--d-verein); stroke: var(--d-card); stroke-width: 2; }
.lage-zahlen p { margin: .2rem 0; color: var(--d-ink2); font-size: .86rem; }
.lage-zahlen b { color: var(--d-ink); font-size: 1.05rem; }
.nachbarn { margin-top: .6rem; }
.alters li { grid-template-columns: 3rem 1fr 2.6rem; padding: .25rem 0; }
.kpi-v .delta-v { font-size: inherit; font-weight: inherit; color: inherit; }
.kpi-v .delta-v.up { color: #0ca30c; } .kpi-v .delta-v.down { color: #e66767; }
.karte { max-height: 330px; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }

/* ---------- Vereinsdashboard (hell, Karten-Stil) ---------- */
body.admin { background: #e7eeea; }
body.admin .topbar { background: #e7eeea; color: #1d2621; border-bottom: 0; }
body.admin .brand { color: #1d2621; }
body.admin .brand span { color: #2f9f2a; }
body.admin .nav { background: #fff; border-radius: 999px; padding: .3rem; box-shadow: 0 1px 2px rgba(20,40,30,.06); }
body.admin .nav a { color: #2b3630; border-radius: 999px; }
body.admin .nav a:hover { background: #eef3f0; color: #1d2621; }
body.admin .nav a.on { background: #e3ebe6; color: #1d2621; font-weight: 700; }
body.admin .who { color: #3c4842; }
body.admin .logout-form .btn-ghost { color: #1d2621; border-color: #c8d3cd; background: #fff; }
body.admin .nav-toggle { color: #1d2621; border-color: #c8d3cd; }
body.admin .bereich-toggle a.on { background: #1f2a24; border-color: #1f2a24; }
.vd {
  --d-card: #ffffff; --d-page: #e7eeea; --d-line: #e5ebe7; --d-axis: #cfd8d3;
  --d-ink: #17201b; --d-ink2: #56615b; --d-muted: #8a948f;
  --d-verein: #2f9f2a; --d-blau: #2a78d6; --d-orange: #eb6834; --d-ref: #9aa5a0; --d-alle: #cfd8d3;
  color: var(--d-ink); font-variant-numeric: normal;
}
.vd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin: .4rem 0 .9rem; }
.vd-head h1 { margin: 0; font-size: 1.45rem; color: var(--d-ink); }
.vd-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.vd-chip { background: #fff; border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; color: var(--d-ink2); display: inline-flex; align-items: center; gap: .4rem; box-shadow: 0 1px 2px rgba(20,40,30,.05); }
.vd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-verein); display: inline-block; }
.vd-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.vd-filter select, .vd-such { background: #fff; border: 1px solid transparent; border-radius: 12px; padding: .55rem .8rem; font: inherit; font-size: .9rem; color: var(--d-ink); box-shadow: 0 1px 2px rgba(20,40,30,.05); }
.vd-filter select:focus, .vd-such:focus-within { border-color: var(--d-verein); outline: none; }
.vd-such { display: flex; align-items: center; gap: .5rem; flex: 1 1 260px; max-width: 420px; }
.vd-such input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; padding: 0; }
.vd-btn { background: #1f2a24; color: #fff; border: 0; border-radius: 12px; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.vd-btn:hover { background: #2f9f2a; }
.vd-btn-hell { background: #fff; color: var(--d-ink); border: 1px solid var(--d-axis); }
.vd-reset { font-size: .85rem; color: var(--d-ink2); }
.vd-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vd-card { background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 1px 2px rgba(20,40,30,.05); min-width: 0; }
.vd-card h2 { font-size: 1.02rem; margin: 0; color: var(--d-ink); }
.vd-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--d-muted); margin: 0 0 .5rem; }
.vd-card-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.vd-sub { margin: .15rem 0 0; color: var(--d-muted); font-size: .82rem; }
.vd-muted { color: var(--d-muted); }
.vd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.vd-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.vd-kpi-top p { margin: 0; font-size: .9rem; color: var(--d-ink2); font-weight: 600; }
.vd-badge { width: 40px; height: 40px; border-radius: 12px; background: #e6f2e4; color: #2b7a26; display: grid; place-items: center; }
.vd-kpi-v { margin: .2rem 0 .25rem; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.vd-kpi-d { margin: 0; font-size: .84rem; }
.vd-delta { font-weight: 600; white-space: nowrap; }
.vd-delta.up { color: #1e7a1a; } .vd-delta.down { color: #c0392b; } .vd-delta.flat { color: var(--d-ink2); }
.vd-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2.2fr); gap: 1rem; margin-bottom: 1rem; }
.vd-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vd-pill-dark { background: #1f2a24; color: #fff; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.vd-liste { list-style: none; margin: 0; padding: 0; }
.vd-liste a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 14px; text-decoration: none; color: inherit; }
.vd-liste a:hover { background: #f1f5f2; }
.vd-liste li:first-child a { background: #1f2a24; color: #fff; }
.vd-liste li:first-child small, .vd-liste li:first-child .vd-delta { color: #c9d6cf; }
.vd-kompakt li:first-child a { background: transparent; color: inherit; }
.vd-kompakt li:first-child a:hover { background: #f1f5f2; }
.vd-kompakt li:first-child small { color: var(--d-muted); }
.vd-kompakt li:first-child .vd-delta.up { color: #1e7a1a; } .vd-kompakt li:first-child .vd-delta.down { color: #c0392b; }
.vd-rang { width: 32px; height: 32px; border-radius: 50%; background: #fbe9e3; color: #b4492c; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.vd-liste li:nth-child(n+2) .vd-rang { background: #fdf1df; color: #a26a12; }
.vd-l-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vd-l-text strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-l-text small { font-size: .78rem; color: var(--d-muted); }
.vd-l-wert { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; font-size: .92rem; }
.vd-l-wert small { font-size: .74rem; font-weight: 400; }
.vd-mehr { display: inline-block; margin-top: .6rem; font-size: .86rem; color: var(--d-ink); font-weight: 600; }
.vd-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--d-line); }
.vd-bars { list-style: none; margin: 0; padding: 0; }
.vd-bars li, .vd-b-link { display: grid; grid-template-columns: minmax(6rem, 1.2fr) 2fr 3.6rem 4.6rem; gap: .5rem; align-items: center; padding: .3rem 0; font-size: .84rem; text-decoration: none; color: inherit; }
.vd-b-link:hover .vd-b-l { text-decoration: underline; }
.vd-b-bar { height: 8px; background: #eef2ef; border-radius: 0 4px 4px 0; position: relative; }
.vd-b-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--d-verein); border-radius: 0 4px 4px 0; min-width: 2px; }
.vd-b-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vd-b-d { font-size: .78rem; text-align: right; }
.vd-karte { width: 100%; height: auto; display: block; max-height: 360px; }
.vk-alle { fill: #dfe6e2; }
.vk-v { fill: var(--d-verein); fill-opacity: .55; stroke: #fff; stroke-width: 1.2; }
.vk-v:hover { fill-opacity: .9; }
.vd .lnchart .ch-dot { stroke: #fff; }
/* Tabellen im Dashboard */
.vd-tbl-wrap { overflow-x: auto; }
.vd-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.vd-tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--d-muted); padding: .55rem .6rem; border-bottom: 1px solid var(--d-axis); white-space: nowrap; }
.vd-tbl th a { color: inherit; text-decoration: none; }
.vd-tbl th a.aktiv, .vd-tbl th a:hover { color: var(--d-ink); }
.vd-tbl td { padding: .55rem .6rem; border-bottom: 1px solid var(--d-line); vertical-align: middle; }
.vd-tbl tr:hover td { background: #f6f9f7; }
.vd-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-tbl small { color: var(--d-muted); }
.vd-tag { display: inline-block; background: #eef2ef; color: var(--d-ink2); border-radius: 999px; padding: .05rem .5rem; font-size: .72rem; }
.vd-spark { width: 90px; height: 24px; display: block; }
.vd-spark polyline { fill: none; stroke: var(--d-verein); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.vd-spark circle { fill: var(--d-verein); }
@media (max-width: 900px) { .vd-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 560px) { .vd-bars li, .vd-b-link { grid-template-columns: 1fr 3.4rem 4.4rem; } .vd-b-bar { grid-column: 1 / -1; grid-row: 2; } }
.vd-bars li > .vd-b-link { grid-column: 1 / -1; padding: 0; }
.vd-legende { margin: 0 0 .7rem; color: var(--d-ink2); }
.vd-legende .sw-alle-strich { width: 2px; height: 12px; }
.vd-pyramide { display: flex; flex-direction: column; gap: 4px; }
.vp-zeile { display: grid; grid-template-columns: 3rem 1fr 2.6rem 1fr 3rem; gap: .4rem; align-items: center; font-size: .8rem; }
.vp-g { text-align: center; font-weight: 600; color: var(--d-ink2); }
.vp-v { font-variant-numeric: tabular-nums; color: var(--d-ink2); }
.vp-zeile .vp-v:first-child { text-align: right; }
.vp-bar { position: relative; height: 14px; background: #f1f4f2; }
.vp-bar i { position: absolute; top: 0; bottom: 0; }
.vp-m { border-radius: 4px 0 0 4px; } .vp-w { border-radius: 0 4px 4px 0; }
.vp-m i { right: 0; background: var(--d-blau); border-radius: 4px 0 0 4px; }
.vp-w i { left: 0; background: var(--d-orange); border-radius: 0 4px 4px 0; }
.vp-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--d-ink); }
.vj-bar { fill: var(--d-verein); }
.vj-bar:hover { fill: #1e7a1a; }
.bereich-toggle { max-width: 100%; overflow-x: auto; }
@media (max-width: 560px) { .bereich-toggle a { padding-left: .7rem; padding-right: .7rem; font-size: .82rem; white-space: nowrap; } }
@media (max-width: 560px) {
  .bereich-toggle { display: flex; width: 100%; }
  .bereich-toggle a { flex: 1; text-align: center; padding: .45rem .3rem; font-size: .74rem; }
  .vd-filter select { flex: 1 1 45%; min-width: 0; }
}
@media (max-width: 560px) { .vd-filter > label:not(.vd-such) { flex: 1 1 45%; } .vd-filter > label select { width: 100%; } .vd-such { flex-basis: 100%; max-width: none; } }

/* ---------- Admin gesamt im Dashboard-Stil (hell, Karten, Pillen-Menü) ---------- */
body.admin .nav { flex: 0 1 auto; margin: 0 auto; }
body.admin .va-switch select { background: #fff; color: #1d2621; border-radius: 999px; padding: .45rem .8rem; box-shadow: 0 1px 2px rgba(20,40,30,.06); }
body.admin .who { color: #3c4842; }
body.admin .wrap h1, body.admin .page-head h1 { color: #17201b; }
body.admin .card, body.admin fieldset.sec { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(20,40,30,.05); }
body.admin fieldset.sec > legend { background: #fff; border-radius: 999px; padding: .2rem .7rem; }
body.admin .kpi { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(20,40,30,.05); padding: 1rem 1.2rem; }
body.admin a.kpi:hover { box-shadow: 0 4px 14px rgba(20,40,30,.10); }
body.admin .kpi-num { color: #17201b; }
body.admin .kpi-warn { background: #fff7e8; }
body.admin .btn { border-radius: 12px; background: #1f2a24; border-color: #1f2a24; }
body.admin .btn:hover { background: #2f9f2a; border-color: #2f9f2a; }
body.admin .btn-sec { background: #fff; color: #1d2621; border-color: #c8d3cd; }
body.admin .btn-sec:hover { background: #eef3f0; color: #1d2621; }
body.admin .btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
body.admin .btn-danger:hover { background: var(--err); color: #fff; }
body.admin .btn-ghost { background: #fff; color: #1d2621; border-color: #c8d3cd; }
body.admin .flash, body.admin .notice { border-radius: 14px; }
body.admin .bereich-toggle { border-color: #1f2a24; }
body.admin .bereich-toggle a { color: #1f2a24; }
body.admin .bereich-toggle a.on { background: #1f2a24; color: #fff; }
body.admin .tbl th { color: #8a948f; border-bottom-color: #cfd8d3; }
body.admin .tbl td { border-bottom-color: #e5ebe7; }
body.admin .filters input, body.admin .filters select, body.admin .inp { border-radius: 10px; }
/* Vereinsprofil (dunkles Dashboard) behält seine eigenen Karten */
.dash .dash-card.kpi { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; box-shadow: none; padding: 1.1rem 1.2rem; }
/* klickbare Kennzahlen im Vereinsdashboard */
a.vd-kpi { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, transform .15s; }
a.vd-kpi:hover, a.vd-kpi:focus-visible { box-shadow: 0 6px 18px rgba(20,40,30,.12); transform: translateY(-1px); }
a.vd-kpi .vd-mehr-pfeil { float: right; color: var(--d-muted); font-size: .8rem; }
a.vd-kpi:hover .vd-mehr-pfeil { color: var(--d-ink); }
.vd { --d-aqua: #1baf7a; --d-gelb: #eda100; }
.ch-line.ln-4 { stroke: var(--d-aqua); } .ch-line.ln-5 { stroke: var(--d-gelb); }
.ch-dot.ln-4 { fill: var(--d-aqua); } .ch-dot.ln-5 { fill: var(--d-gelb); }
.sw-ln-4 { background: var(--d-aqua); } .sw-ln-5 { background: var(--d-gelb); }
.vd-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.vd-tabs a { background: #fff; border-radius: 999px; padding: .4rem .9rem; text-decoration: none; color: var(--d-ink2); font-size: .88rem; font-weight: 600; box-shadow: 0 1px 2px rgba(20,40,30,.05); }
.vd-tabs a:hover { color: var(--d-ink); }
.vd-tabs a.on { background: #1f2a24; color: #fff; }
/* Bezirkskarte */
.bz path { stroke-width: .6; stroke-linejoin: round; }
.bz-west { fill: #f4e9a6; stroke: #f4e9a6; } .bz-ruhr { fill: #cfe7ad; stroke: #cfe7ad; }
.bz-rw { fill: #dad7f1; stroke: #dad7f1; } .bz-rhein { fill: #f7d3a8; stroke: #f7d3a8; }
.bz path:hover { filter: brightness(.96); }
.bz-blass { opacity: .35; }
.bz-label { font-size: 11px; font-weight: 700; fill: #3c4842; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; stroke-linejoin: round; }
.vk-alle { fill: rgba(23,32,27,.25); }
.vk-v { fill: #1f2a24; fill-opacity: .55; stroke: #fff; stroke-width: 1; }
.vk-v:hover { fill-opacity: .85; }
/* im dunklen Vereinsprofil: Bezirke gedämpft */
.dash .bz path { opacity: .22; }
.dash .bz .bz-blass { opacity: .08; }
.dash .bz-label { fill: #c3ccd4; stroke: rgba(18,28,39,.85); }
.dash .karte { max-height: 360px; }
/* Sofort-Tooltip und Hover der klickbaren Karten */
.vf-tip { position: fixed; z-index: 1000; pointer-events: none; background: #1f2a24; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; padding: .4rem .6rem; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 280px; }
.bz a path, .vd-karte a circle, .karte a circle { cursor: pointer; }
.bz path { transition: none; }
.bz a:hover path, .bz a:focus path { filter: brightness(.9) saturate(1.3); stroke: #1f2a24; stroke-width: 1.2; }
.bz .bz-wahl { stroke: #1f2a24; stroke-width: 1.4; }
.vd-karte a:hover .vk-v, .vd-karte a:focus .vk-v { fill: #2f9f2a; fill-opacity: 1; stroke: #1f2a24; stroke-width: 1.5; }
.vd-karte a:hover .vk-alle, .vd-karte a:focus .vk-alle { fill: #1f2a24; }
.karte a:hover circle, .karte a:focus circle { fill: var(--d-verein); stroke: #fff; stroke-width: 1.5; }
.dash .bz a:hover path { opacity: .55; stroke: #e8eef3; }
.bz path:hover { filter: none; }
/* Hebe-Effekt der Kennzahl-Karten wie im WHV-Dashboard */
.vd-card, body.admin .kpi { box-shadow: 0 1px 2px rgba(22,36,26,.04), 0 8px 24px rgba(22,36,26,.06); }
a.vd-kpi, body.admin a.kpi { transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
a.vd-kpi:hover, a.vd-kpi:focus-visible, body.admin a.kpi:hover, body.admin a.kpi:focus-visible { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(22,36,26,.06), 0 16px 36px rgba(22,36,26,.12); }
@media (prefers-reduced-motion: reduce) { a.vd-kpi, body.admin a.kpi { transition: none; } a.vd-kpi:hover, body.admin a.kpi:hover { transform: none; } }
.vd-schnitt { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--d-line); font-size: .84rem; color: var(--d-ink2); }
.vd-schnitt strong { color: var(--d-ink); font-size: .95rem; }

/* ---------- Admin-Layout: Bereichs-Pillen im Kopf, Menü links ---------- */
body.admin .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; background: rgba(231,238,234,.92); backdrop-filter: blur(6px); }
body.admin .topbar .bereich-toggle { margin: 0 auto; }
body.admin .topbar .logout-form { margin-left: 0; }
.adm-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.2rem; max-width: 1560px; margin: 0 auto; padding: .4rem 1.2rem 3rem; align-items: start; }
.adm-shell > .wrap { max-width: none; margin: 0; padding: .3rem 0 0; }
.sidenav { position: sticky; top: 74px; background: #fff; border-radius: 20px; padding: 1rem .7rem; box-shadow: 0 1px 2px rgba(22,36,26,.04), 0 8px 24px rgba(22,36,26,.06); max-height: calc(100vh - 90px); overflow-y: auto; }
.sidenav-titel { margin: 0 .5rem .7rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8a948f; }
.sidenav-gruppe { margin: .9rem .5rem .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #a3aca7; }
body.admin .sidenav .nav { display: flex; flex-direction: column; gap: .15rem; background: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; flex: none; }
body.admin .sidenav .nav a { display: block; padding: .55rem .75rem; border-radius: 12px; color: #2b3630; font-size: .92rem; font-weight: 500; }
body.admin .sidenav .nav a:hover { background: #eef3f0; color: #1d2621; }
body.admin .sidenav .nav a.on { background: #1f2a24; color: #fff; font-weight: 600; }
.sidenav .va-switch { margin: 0 0 .8rem; }
body.admin .sidenav .va-switch select { width: 100%; max-width: none; border-radius: 12px; background: #f1f5f2; box-shadow: none; font-size: .82rem; padding: .5rem .6rem; }
@media (max-width: 900px) {
  body.admin .topbar { flex-wrap: wrap; position: static; }
  body.admin .topbar .bereich-toggle { order: 5; flex-basis: 100%; margin: .2rem 0 0; }
  body.admin .nav-toggle { display: inline-block; margin-left: auto; background: #fff; color: #1d2621; border: 1px solid #c8d3cd; border-radius: 10px; padding: .35rem .8rem; font: inherit; }
  body.admin .topbar .who { display: none; }
  .adm-shell { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .sidenav { display: none; position: static; max-height: none; }
  .sidenav.open { display: block; }
}
body.admin .dash h1, body.admin .dash h2, body.admin .dash h3 { color: var(--d-ink); }
@media print {
  body.admin .sidenav, body.admin .topbar { display: none !important; }
  .adm-shell { display: block; padding: 0; max-width: none; }
}
/* Seitenleiste: am linken Rand, vertikal mittig festgepinnt; Verwaltung einklappbar */
@media (min-width: 901px) {
  .adm-shell { display: block; max-width: none; padding: .4rem 1.4rem 3rem 288px; }
  .adm-shell > .wrap { max-width: 1440px; margin: 0 auto; }
  .sidenav { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); width: 236px; box-sizing: border-box; max-height: calc(100vh - 140px); z-index: 15; }
}
.sidenav-verwaltung { margin-top: .6rem; border-top: 1px solid #e5ebe7; padding-top: .4rem; }
.sidenav-verwaltung summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-radius: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8a948f; }
.sidenav-verwaltung summary::-webkit-details-marker { display: none; }
.sidenav-verwaltung summary::after { content: "▸"; font-size: .9rem; transition: transform .15s; }
.sidenav-verwaltung[open] summary::after { transform: rotate(90deg); }
.sidenav-verwaltung summary:hover { background: #eef3f0; color: #1d2621; }
/* Admin auf großen Bildschirmen verkleinert darstellen (wie Browser-Zoom 80 %/90 %), damit mehr auf einen Blick passt */
/* Admin-Skalierung nach Bildschirmbreite (bei 2560 px wie 140 % der früheren 80-%-Darstellung) */
@media (min-width: 1200px) { body.admin { zoom: .9; } }
@media (min-width: 1600px) { body.admin { zoom: .85; } }
@media (min-width: 2000px) { body.admin { zoom: 1; } }
@media (min-width: 2400px) { body.admin { zoom: 1.12; } }
/* Bezirksvergleich */
.vd-bez-kpi { border-top: 4px solid var(--d-verein); }
.bzk-ln-2 { border-top-color: var(--d-blau); } .bzk-ln-4 { border-top-color: var(--d-aqua); } .bzk-ln-5 { border-top-color: var(--d-gelb); }
.vd-vergleich th .sw { vertical-align: middle; }
.vd-vergleich td:first-child { color: var(--d-ink2); }
.vd-stapel { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
.vs-zeile { display: grid; grid-template-columns: 6.5rem 1fr; gap: .7rem; align-items: center; }
.vs-l { font-weight: 600; font-size: .88rem; }
.vs-bar { display: flex; height: 26px; border-radius: 0 6px 6px 0; overflow: hidden; gap: 2px; background: #fff; }
.vs-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .72rem; font-weight: 600; color: #fff; min-width: 0; white-space: nowrap; }
.ph-1 { background: #86b6ef; color: #0b0b0b !important; } .ph-2 { background: #5598e7; } .ph-3 { background: #2a78d6; } .ph-4 { background: #1c5cab; } .ph-5 { background: #104281; }
.vd-legende .ph-1, .vd-legende .ph-2, .vd-legende .ph-3, .vd-legende .ph-4, .vd-legende .ph-5 { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.vd { --bz-rw: #6250d6; --bz-rh: #d9480f; --bz-ru: #2b8a3e; --bz-we: #c08d00; }
.ch-line.ln-rw { stroke: var(--bz-rw); } .ch-line.ln-rh { stroke: var(--bz-rh); } .ch-line.ln-ru { stroke: var(--bz-ru); } .ch-line.ln-we { stroke: var(--bz-we); }
.ch-dot.ln-rw { fill: var(--bz-rw); } .ch-dot.ln-rh { fill: var(--bz-rh); } .ch-dot.ln-ru { fill: var(--bz-ru); } .ch-dot.ln-we { fill: var(--bz-we); }
.sw-ln-rw { background: var(--bz-rw); } .sw-ln-rh { background: var(--bz-rh); } .sw-ln-ru { background: var(--bz-ru); } .sw-ln-we { background: var(--bz-we); }
.bzk-ln-rw { border-top-color: var(--bz-rw); } .bzk-ln-rh { border-top-color: var(--bz-rh); } .bzk-ln-ru { border-top-color: var(--bz-ru); } .bzk-ln-we { border-top-color: var(--bz-we); }
.vd-vergleich { table-layout: fixed; }
.vd-vergleich th:first-child, .vd-vergleich td:first-child { width: 30%; }
.vd-vergleich small { display: block; }
.vd-kurz { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hover-Erklärungen (data-info, Tooltip aus karte.js) ---------- */
[data-info] { cursor: help; }
[data-info]:focus-visible { outline: 2px solid #2f9f2a; outline-offset: 2px; border-radius: 4px; }
[data-info]:not([data-tip])::after {
  content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: .4rem; vertical-align: 2px;
  border-radius: 50%; border: 1.3px solid currentColor; font: italic 700 10px/1 Georgia, serif; text-transform: none; letter-spacing: 0;
  opacity: .32; transition: opacity .12s;
}
[data-info]:hover::after, [data-info]:focus-visible::after { opacity: .85; }
.vf-tip.vf-tip-info { font-weight: 400; max-width: 380px; white-space: pre-line; padding: .65rem .8rem; line-height: 1.45; font-size: .8rem; }
.vf-tip.vf-tip-info p { margin: 0 0 .45rem; white-space: normal; } .vf-tip.vf-tip-info p:last-child { margin-bottom: 0; }
.vf-tip.vf-tip-info .vf-tip-titel { font-weight: 700; margin: .55rem 0 .2rem; color: #b9f0ad; } .vf-tip.vf-tip-info .vf-tip-titel:first-child { margin-top: 0; }
.vf-tip.vf-tip-info ul { margin: 0 0 .45rem; padding-left: 1rem; white-space: normal; } .vf-tip.vf-tip-info li { margin: .12rem 0; }
.vf-tip.vf-tip-info .vf-tip-quelle { margin-top: .55rem; padding-top: .45rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .72rem; color: #c3cec8; }

/* gleichmäßige Spaltenbreiten */
.vd-tbl-gleich { table-layout: fixed; width: 100%; }
.vd-tbl-gleich th:first-child, .vd-tbl-gleich td:first-child { width: 30%; }

/* ---------- Analysen (Frühwarnung, Retention, Kohorten, Prognose, Größenklassen, Vergleich, Story, Chat, Karten) ---------- */
.vd { --amp-gruen: #2f9f2a; --amp-gelb: #c08d00; --amp-rot: #d1242f; }
.dash { --amp-gruen: #3fb950; --amp-gelb: #fab219; --amp-rot: #f85149; }
.ch-line.ch-dash { stroke-dasharray: 5 4; stroke-width: 1.6; }
.ampel { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ampel-gruen.ampel, .ampel.a-gruen { background: var(--amp-gruen); } .ampel.a-gelb { background: var(--amp-gelb); } .ampel.a-rot { background: var(--amp-rot); }
.score-kopf { display: flex; align-items: baseline; gap: .5rem; margin: .2rem 0 .6rem; }
.score-zahl { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.score-zahl.ampel-gruen { color: var(--amp-gruen); } .score-zahl.ampel-gelb { color: var(--amp-gelb); } .score-zahl.ampel-rot { color: var(--amp-rot); }
.vd-score { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.vd-score-bar { display: inline-block; width: 64px; height: 6px; background: #eef2ef; border-radius: 3px; overflow: hidden; vertical-align: middle; }
.vd-score-bar i { display: block; height: 100%; border-radius: 3px; }
.vd-score-bar i.a-gruen { background: var(--amp-gruen); } .vd-score-bar i.a-gelb { background: var(--amp-gelb); } .vd-score-bar i.a-rot { background: var(--amp-rot); }
.vd-warn { color: #9a3412; font-size: .8rem; line-height: 1.35; }
.vd-tabs-klein { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.vd-tabs-klein a { background: #fff; border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--d-ink2); text-decoration: none; box-shadow: 0 1px 2px rgba(20,40,30,.05); display: inline-flex; align-items: center; gap: .4rem; }
.vd-tabs-klein a.on { background: #1f2a24; color: #fff; }
.vd-big { font-size: 2rem; font-weight: 800; line-height: 1.05; margin: .2rem 0; color: var(--d-ink); }
.vd-kpi-v.a-gruen { color: var(--amp-gruen); } .vd-kpi-v.a-gelb { color: var(--amp-gelb); } .vd-kpi-v.a-rot { color: var(--amp-rot); }
.vd-saeulen { width: 100%; height: auto; display: block; }
.vd-saeulen .s-bar { fill: var(--d-blau); } .vd-saeulen .s-bar.s-unter { fill: #eb6834; } .vd-saeulen .s-bar.s-hl { fill: var(--d-verein); }
.vd-saeulen .s-ref { stroke: var(--d-ink); stroke-width: 2; }
.vd-saeulen g:hover .s-bar { opacity: .8; }
.vd-scatter .sc-p { stroke: #fff; stroke-width: 1; opacity: .9; }
.vd-scatter .sc-p:hover { opacity: 1; stroke: var(--d-ink); }
.sc-klein { fill: #86b6ef; } .sc-mittel { fill: #2a78d6; } .sc-gross { fill: #104281; }
.sw.sc-klein { background: #86b6ef; } .sw.sc-mittel { background: #2a78d6; } .sw.sc-gross { background: #104281; }
.vd-kohorten-wahl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.vd-kohorten-wahl select, .vd-kohorten-wahl input { background: #fff; border: 1px solid transparent; border-radius: 12px; padding: .5rem .7rem; font: inherit; font-size: .9rem; box-shadow: 0 1px 2px rgba(20,40,30,.05); }
.vd-vs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 1rem; align-items: start; }
.vd-vs-mitte { align-self: center; font-weight: 800; color: var(--d-muted); font-size: 1.1rem; }
.vd-vs-kopf { border-top: 4px solid var(--d-verein); }
.vd-vs-kopf.b { border-top-color: var(--d-blau); }
.vd-vs-kopf select { width: 100%; margin-top: .5rem; background: #f1f5f2; border: 0; border-radius: 10px; padding: .5rem .6rem; font: inherit; }
.vd-vs-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin-top: .8rem; }
.vd-vs-zahlen p { margin: 0; font-size: .78rem; color: var(--d-muted); }
.vd-vs-zahlen b { display: block; font-size: 1.2rem; color: var(--d-ink); }
/* Story-Modus */
.vd-story { min-height: 62vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 2rem; align-items: center; padding: 2.2rem 2.4rem; }
.vd-story-kicker { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--d-verein); }
.vd-story h2 { font-size: 1.9rem !important; line-height: 1.15; margin: 0 0 .8rem !important; }
.vd-story-zahl { font-size: 3.6rem; font-weight: 800; line-height: 1; margin: .2rem 0 .6rem; color: var(--d-ink); }
.vd-story-text { font-size: 1.05rem; line-height: 1.55; color: var(--d-ink2); max-width: 34rem; }
.vd-story-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.vd-story-punkte { display: flex; gap: .35rem; flex-wrap: wrap; }
.vd-story-punkte a { width: 9px; height: 9px; border-radius: 50%; background: #c8d3cd; display: block; }
.vd-story-punkte a.on { background: #1f2a24; width: 24px; border-radius: 5px; }
/* Karten-Layer */
.vk-layer { stroke: #fff; stroke-width: .8; }
.vk-l-gruen { fill: var(--amp-gruen); } .vk-l-gelb { fill: var(--amp-gelb); } .vk-l-rot { fill: var(--amp-rot); }
.vk-plz { fill: #eb6834; fill-opacity: .55; stroke: #9a3412; stroke-width: .6; }
.vk-plz:hover { fill-opacity: .9; }
.vd-skala { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: .3rem 0 .2rem; }
.vd-skala i { flex: 1; }
.vd-skala-l { display: flex; justify-content: space-between; font-size: .75rem; color: var(--d-muted); }
/* Hilfe */
.vd-hilfe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vd-hilfe-grid .vd-card h2 a { color: inherit; text-decoration: none; }
.vd-hilfe-grid .vd-card p { margin: .4rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--d-ink2); }
.vd-glossar dt { font-weight: 700; margin-top: .7rem; } .vd-glossar dd { margin: .15rem 0 0; color: var(--d-ink2); font-size: .9rem; line-height: 1.5; }
.vp-play { margin-left: auto; }
@media (max-width: 860px) {
  .vd-story { grid-template-columns: 1fr; padding: 1.4rem; min-height: 0; }
  .vd-story-zahl { font-size: 2.6rem; }
  .vd-vs { grid-template-columns: 1fr; }
  .vd-vs-mitte { display: none; }
}
.sidenav-gruppe:first-of-type { margin-top: .6rem; }
body.admin .sidenav .nav a { padding: .45rem .75rem; }
.vd-karte.vd-karte-gross { max-height: 640px; }
.vd-karte a:hover .vk-layer { stroke: #1f2a24; stroke-width: 1.5; }
a.vd-btn { text-decoration: none; display: inline-block; } a.vd-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.vp-bar i { transition: width .6s cubic-bezier(.2,.8,.2,1); } .vp-laeuft .vp-bar b { display: none; }

/* Seitenmenü kompakt: alle Einträge ohne Scrollen sichtbar */
.sidenav { padding: .75rem .6rem; }
.sidenav-titel { margin: 0 .5rem .45rem; }
.sidenav-gruppe, .sidenav-gruppe:first-of-type { margin: .55rem .75rem .12rem; font-size: .68rem; }
body.admin .sidenav .nav { gap: 1px; }
body.admin .sidenav .nav a { padding: .3rem .75rem; font-size: .875rem; line-height: 1.3; border-radius: 10px; }
.sidenav-verwaltung { margin-top: .4rem; padding-top: .25rem; }
.sidenav-verwaltung summary { padding: .35rem .75rem; }
@media (min-width: 901px) { .sidenav { max-height: calc(100% - 90px); } }
@media (min-width: 901px) and (max-height: 760px) {
  body.admin .sidenav .nav a { padding: .2rem .75rem; font-size: .84rem; }
  .sidenav-gruppe, .sidenav-gruppe:first-of-type { margin: .35rem .75rem .05rem; }
}
.vd-karte-zoom path, .vd-karte-zoom circle { vector-effect: non-scaling-stroke; }
/* Standortfaktoren */
.vd-faktoren { display: flex; flex-direction: column; gap: .35rem; }
.vd-faktor { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; align-items: center; padding: .45rem .55rem; border-radius: 12px; background: #f6f8f7; opacity: .62; transition: opacity .15s, background .15s; }
.vd-faktor.an { opacity: 1; background: #eef5ef; }
.vd-faktor-text strong { display: block; font-size: .86rem; color: var(--d-ink); }
.vd-faktor-text small { display: block; font-size: .74rem; color: var(--d-muted); line-height: 1.3; }
.vd-faktor select { border: 1px solid var(--d-axis); border-radius: 8px; padding: .2rem .3rem; font: inherit; font-size: .8rem; background: #fff; }
.vd-schalter { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.vd-schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vd-schalter span { position: absolute; inset: 0; background: #c8d0cc; border-radius: 10px; transition: background .15s; pointer-events: none; }
.vd-schalter span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.vd-schalter input:checked + span { background: #2f9f2a; }
.vd-schalter input:checked + span::after { transform: translateX(14px); }
.vd-schalter input:focus-visible + span { outline: 2px solid #1f2a24; outline-offset: 2px; }
.vd-faktoren-fuss { display: flex; gap: .8rem; align-items: center; margin-top: .4rem; }
/* Retention im Detail */
.vd-abschnitt { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .07em; color: var(--d-muted) !important; margin: 1.6rem 0 .6rem !important; }
.vd-trenner { width: 1px; background: #c8d3cd; margin: 0 .2rem; }
.vd-zeile-hl td { background: #f3f7f4; }
.vd-heat td.num { border-radius: 6px; border: 2px solid #fff; padding: .3rem .4rem; font-weight: 600; font-size: .82rem; }
.vd-heat th a { color: inherit; text-decoration: none; } .vd-heat th a.on { color: var(--d-ink); }
.vd-heat-ref td { font-weight: 700; color: var(--d-ink2); background: #f6f8f7; font-size: .8rem; }
.vd-skala-wrap { flex: none; }
.vd-einstieg { opacity: .7; font-style: italic; }
/* Segment-Umschalter oben rechts in Diagrammen */
.vd-umschalter { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.vd-seg { display: inline-flex; background: #f1f5f2; border-radius: 999px; padding: 3px; }
.vd-seg a { padding: .28rem .7rem; border-radius: 999px; font-size: .8rem; color: var(--d-ink2); text-decoration: none; }
.vd-seg a.on { background: #1f2a24; color: #fff; }
.vd-seg a:not(.on):hover { background: #e3ebe6; }
/* Demografie (Kreis- und Vereinsprofil) */
.va-demo { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.va-demo-kz { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.va-demo-k { background: var(--d-card); border-radius: 16px; padding: .8rem 1rem; }
.va-demo-vd .va-demo-k { box-shadow: 0 1px 2px rgba(20,40,30,.05); border-radius: 20px; }
.va-demo-dash .va-demo-k { border: 1px solid var(--d-line); border-radius: 12px; }
.va-demo-k p { margin: 0; font-size: .78rem; color: var(--d-muted); }
.va-demo-k b { display: block; font-size: 1.45rem; color: var(--d-ink); margin: .15rem 0; }
.va-demo-k small { color: var(--d-muted); font-size: .75rem; }
.va-demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.va-demo-grid > section { margin: 0; }
.va-demo-grid h3 { margin: 0; font-size: 1rem; color: var(--d-ink); text-transform: none; letter-spacing: 0; }
.va-demo-text { background: var(--d-card); border-radius: 20px; padding: 1rem 1.2rem; border-left: 4px solid var(--d-verein); }
.va-demo-dash .va-demo-text { border-radius: 12px; border-top: 1px solid var(--d-line); border-right: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.va-demo-text h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--d-ink); text-transform: none; letter-spacing: 0; }
.va-demo-text ul { margin: 0; padding-left: 1.1rem; color: var(--d-ink2); line-height: 1.55; font-size: .92rem; }
.va-demo-text li + li { margin-top: .25rem; }
.va-demo-fazit { margin: .7rem 0 0; font-weight: 600; color: var(--d-ink); }
.vd-saeulen .s-bar.s-nach { fill: #9fd49a; }
.dash .vd-saeulen .s-bar { fill: var(--d-blau); } .dash .vd-saeulen .s-bar.s-hl { fill: var(--d-verein); } .dash .vd-saeulen .s-bar.s-nach { fill: #8fd18a; }
.vd-est { font-style: italic; color: var(--d-ink2); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42,120,214,.05) 6px 12px); }
.vd-prog-summe td { border-top: 2px solid var(--d-axis); }
.bz path.bz-fill { stroke: #fff; stroke-width: .7; } .bz a:hover path.bz-fill { stroke: #1f2a24; stroke-width: 1.4; }
.vd-demo-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.vd-demo-legende li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; line-height: 1.35; }
.vd-demo-legende i { width: 16px; height: 16px; border-radius: 4px; flex: none; margin-top: 2px; }
.vd-kat { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; white-space: nowrap; }
.vd-kat i { width: 10px; height: 10px; border-radius: 3px; }
.vk-demo { fill: #1f2a24; fill-opacity: .55; pointer-events: none; }
/* Demografie-Karte im Vereinsprofil */
.dash .bz path.bz-fill { opacity: .9; stroke: #121c27; }
.dash .bz a:hover path.bz-fill { opacity: 1; stroke: #e8eef3; }
.va-demo-hervor { fill: none; stroke: #fff; stroke-width: 2.2; pointer-events: none; }
.vd .va-demo-hervor { stroke: #1f2a24; }
.va-demo-punkt { fill: #34a826; stroke: #fff; stroke-width: 1.5; }
.va-demo-karte { max-height: 380px; }
.va-demo-leg-zeile { flex-direction: row !important; flex-wrap: wrap; gap: .5rem 1rem !important; margin-top: .7rem !important; }
.va-demo-leg-zeile li { align-items: center !important; font-size: .8rem !important; }
.va-demo-leg-zeile i { width: 12px !important; height: 12px !important; margin: 0 !important; }
.va-demo-kat { display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0 .8rem; }
.va-demo-kat i { width: 16px; height: 16px; border-radius: 4px; flex: none; margin-top: 3px; }
/* Kennzahl-Pillen über der Anmeldeliste */
.anm-kpis .vd-kpis { margin-bottom: 1.1rem; }
.anm-kpis .vd-kpi-v { font-size: 2.2rem; }
.anm-bez { display: flex; flex-wrap: wrap; gap: .3rem; }
.anm-bez a { background: #f1f5f2; border-radius: 999px; padding: .15rem .55rem; font-size: .78rem; color: var(--d-ink2); text-decoration: none; }
.anm-bez a:hover { background: #e3ebe6; color: var(--d-ink); }
.anm-bez b { color: var(--d-ink); }
th[data-info] { cursor: help; }
th[data-info]:not([data-tip])::after { width: 12px; height: 12px; font-size: 8.5px; margin-left: .3rem; vertical-align: 1px; }

/* Menü-Icons */
.nav-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
body.admin .sidenav .nav a { display: flex; align-items: center; gap: .6rem; }
body.admin .sidenav .nav a.on .nav-ic, body.admin .sidenav .nav a:hover .nav-ic { opacity: 1; }
.nav-sum { display: inline-flex; align-items: center; gap: .6rem; }
.nav-sum .nav-ic { width: 15px; height: 15px; }
@media (max-width: 900px) { body.admin .sidenav .nav a { justify-content: flex-start; } }
/* Vereinsübersicht */
.vd-vereinsliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.vd-vereinsliste a { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: 12px; background: #f6f8f7; text-decoration: none; color: var(--d-ink); }
.vd-vereinsliste a:hover { background: #eaf1ec; }
.vd-vereinsliste small { color: var(--d-muted); font-size: .78rem; }
.ret-besser { background: #e3eefb; } .ret-schlechter { background: #fde9df; }
a.vd-chip { text-decoration: none; }
a.vd-chip:hover { color: var(--d-ink); }
a.dash-btn { text-decoration: none; display: inline-block; }
.vd-zeitraum select { border: 0; background: transparent; font: inherit; color: var(--d-ink); padding: 0 .1rem; cursor: pointer; }
.vd-von { display: inline-flex; align-items: center; gap: .3rem; background: #fff; border-radius: 12px; padding-left: .7rem; box-shadow: 0 1px 2px rgba(20,40,30,.05); font-size: .85rem; color: var(--d-muted); } .vd-filter .vd-von select { box-shadow: none; padding-left: .3rem; }
/* klickbare Tabellenzellen (Vereine) */
a.vd-zelle { color: inherit; text-decoration: none; display: inline-block; border-radius: 6px; padding: .1rem .25rem; margin: -.1rem -.25rem; }
a.vd-zelle:hover { background: #eef3f0; color: var(--d-ink); }
.vd-tbl td.num a.vd-zelle { display: inline-flex; justify-content: flex-end; }
.vd [id] { scroll-margin-top: 80px; }
.vd-score-klein { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.vd-score-klein .ampel { width: 8px; height: 8px; }
.vd-kpi-v .vd-score { font-size: inherit; }
.vd-kpi-v .vd-score-bar { width: 80px; height: 8px; }
.vd-b-bar i.a-gruen { background: var(--amp-gruen); } .vd-b-bar i.a-gelb { background: var(--amp-gelb); } .vd-b-bar i.a-rot { background: var(--amp-rot); }
.vd-teil { display: grid; grid-template-columns: 90px 1fr; gap: .25rem .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--d-line, #eef2ef); }
.vd-teil:last-child { border-bottom: 0; }
.vd-teil-l { grid-row: span 2; font-weight: 600; font-size: .9rem; }
.vd-teil-z { display: grid; grid-template-columns: 1fr 40px; gap: .6rem; align-items: center; font-size: .85rem; }
.vd-teil-z b { text-align: right; font-weight: 600; }
.vd-b-bar i.vd-teil-1 { background: var(--d-verein); } .vd-b-bar i.vd-teil-2 { background: var(--d-blau); }
.vf-begriff { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; }
.vf-begriff[data-info]::after { content: none; display: none; }
/* DHB-Infrastruktur */
.dhb-badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #eef1ef; color: #4a5550; }
.dhb-badge.dhb-eigen { background: #dff0dd; color: #1f6f1b; } .dhb-badge.dhb-geteilt { background: #dde9f8; color: #1d5ba8; }
.dhb-badge.dhb-keiner { background: #fbe4d9; color: #a5410f; } .dhb-badge.dhb-unbekannt { background: #f1f3f2; color: #8b98a5; }
.dhb-z { font-size: .8rem; font-weight: 600; } .dhb-z-offen { color: #a5410f; } .dhb-z-auto { color: #1d5ba8; } .dhb-z-manuell { color: #1f6f1b; } .dhb-z-keine { color: #8b98a5; }
.dhb-infra { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.dhb-infra > div { border: 1px solid #e6ebe8; border-radius: 10px; padding: .6rem .75rem; }
.dhb-infra small { display: block; color: var(--d-muted, #6b7770); font-size: .75rem; margin-bottom: .25rem; }
.dhb-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.dhb-links a { font-size: .85rem; padding: .25rem .65rem; border: 1px solid #dfe5e1; border-radius: 999px; text-decoration: none; }
.vk-l-eigen { fill: #2f9f2a; } .vk-l-geteilt { fill: #2a78d6; } .vk-l-keiner { fill: #eb6834; } .vk-l-sonstiges { fill: #8b98a5; } .vk-l-unbekannt { fill: #c8d0cc; }
/* Vereinslogos */
.vd-logo { display: inline-block; flex: none; object-fit: contain; border-radius: 6px; background: #fff; vertical-align: middle; }
.vd-logo-init { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e8efe9; color: #3c5a44; font-weight: 700; letter-spacing: .02em; }
.vd-verein-zelle { display: flex; align-items: center; gap: .6rem; }
.vd-head-logo { display: flex; align-items: center; gap: .9rem; }
.vd-vereinsliste a.mit-logo { flex-direction: row; align-items: center; gap: .7rem; }
.vd-vereinsliste a.mit-logo > span { display: flex; flex-direction: column; min-width: 0; }
.vd-head-logo .vd-logo { box-shadow: 0 1px 3px rgba(20,40,30,.12); }
/* SEB-Vergleichswerte (Sportentwicklungsbericht) – deutlich vom eigenen Datenbestand abgesetzt */
.seb-badge { display: inline-block; padding: .08rem .45rem; border-radius: 4px; background: #5b3fa8; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; cursor: help; }
.seb-badge[data-info]::after { display: none; }
.seb-vergleich { margin-top: .9rem; padding: .7rem .8rem; border: 1px solid #d9cff3; border-left: 4px solid #5b3fa8; border-radius: 8px; background: #f7f4fd; }
.seb-kopf { display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem; font-size: .9rem; }
.seb-tbl { margin: 0; background: transparent; }
.seb-tbl .seb-spalte { color: #4a3592; }
.frage-seb { border-top: 3px solid #5b3fa8; }
.seb-hinweis { border-left: 4px solid #5b3fa8; }
.seb-form { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed #d9cff3; }
.seb-liste { display: grid; gap: .45rem; margin: .6rem 0 .9rem; }
.seb-katalog { border-left: 4px solid #5b3fa8; }
/* SEB im Vereinsprofil (dunkles Profil-Layout) */
.seb-verein { margin-top: .8rem; font-size: .85rem; }
.seb-verein .seb-tbl { width: 100%; border-collapse: collapse; }
.seb-verein .seb-tbl th, .seb-verein .seb-tbl td { padding: .3rem .4rem; border-bottom: 1px solid rgba(91,63,168,.18); text-align: left; vertical-align: top; }
.seb-verein .seb-tbl .num { text-align: right; white-space: nowrap; }
.seb-verein .seb-tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.seb-ja { color: #2f9f2a; font-weight: 700; } .seb-nein { opacity: .7; }
.seb-klein { font-size: .75rem; opacity: .75; }
.seb-fuss { margin: .35rem 0 0; font-size: .75rem; opacity: .75; }
.dash .seb-vergleich { background: rgba(91,63,168,.14); border-color: rgba(140,115,220,.45); border-left-color: #8c73dc; color: inherit; }
.dash .seb-tbl .seb-spalte { color: #c8b8ff; }
.dash .seb-badge { background: #7a5fd0; }
.seb-verein { padding: .55rem .6rem; font-size: .8rem; }
.seb-verein .seb-kopf { flex-wrap: wrap; font-size: .82rem; }
.seb-scroll { overflow-x: auto; }
.seb-verein .seb-tbl { table-layout: fixed; }
.seb-verein .seb-tbl th, .seb-verein .seb-tbl td { padding: .28rem .3rem; overflow-wrap: anywhere; }
.seb-verein .seb-tbl th[data-info]::after { display: none; }
.seb-verein .seb-klein { display: block; }
.seb-wert { color: #5b3fa8; font-weight: 600; }
.vd .seb-vergleich .tbl { width: 100%; }
.vd-b-bar .seb-marke { position: absolute; top: -3px; bottom: -3px; width: 2px; left: 0; margin-left: -1px; background: #5b3fa8; border-radius: 1px; min-width: 0; z-index: 1; }
.vd-b-bar i.seb-balken { background: #5b3fa8; }
.vd-tabs-seb { align-items: center; gap: .4rem; }
.vd-karte-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .vd-karte-grid { grid-template-columns: minmax(0, 1fr); } }
.seb-kreis tfoot th, .seb-kreis tfoot td { border-top: 1px solid var(--line, #dfe5e2); font-weight: 600; }
.seb-kreis tfoot .seb-zeile th { color: #5b3fa8; }
.seb-kreis td:first-child { min-width: 10rem; }
/* Schmale Bildschirme: Tabellen ohne eigenen Scroll-Container scrollen in sich, statt die Seite zu verbreitern */
@media (max-width: 900px) { .vd-card > table, .seb-vergleich > table { display: block; overflow-x: auto; max-width: 100%; } }
/* Mail-Protokoll: Zeilen klickbar, Popup mit der versendeten Mail */
.mail-log tr.mail-zeile { cursor: pointer; }
.mail-log tr.mail-zeile:hover td, .mail-log tr.mail-zeile:focus-visible td { background: #f2f7f4; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #b9c8bf; text-underline-offset: 3px; }
.mail-dialog { width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: none; flex-direction: column; gap: .6rem; }
.mail-dialog[open] { display: flex; }
.mail-dialog::backdrop { background: rgba(20,30,24,.45); }
.mail-dialog-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mail-dialog-kopf h2 { margin: 0 0 .2rem; }
.mail-dialog-kopf p { margin: 0; }
.mail-dialog iframe { width: 100%; height: min(62vh, 640px); border: 1px solid #dfe5e2; border-radius: 10px; background: #E8F3EC; }
.mail-dialog-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; }
.mail-dialog-fuss p { margin: 0; flex: 1; }
.mail-log-kopf { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.mail-log-kopf .tabs { margin-bottom: 0; }
.mail-plan tr.muted td { color: #8a948f; }
.vd-zeitraum label { max-width: 100%; min-width: 0; }
.vd-zeitraum select[name="v"] { max-width: min(58vw, 320px); text-overflow: ellipsis; }
/* Kleine Kennzahlen innerhalb einer Karte (z. B. Spielerpässe in der Vereinsübersicht) */
.vd-kpi-mini { background: #f4f8f5; border-radius: 12px; padding: .7rem .9rem; min-width: 0; }
.vd-kpi-mini p { margin: 0; }
.vd-kpi-mini .vd-kpi-v { font-size: 1.55rem; line-height: 1.2; margin: .15rem 0; }
/* Spielerpässe: Abgleich mit der Mitgliedermeldung */
.pass-ampel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.pass-ampel-k { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 12px; background: #f4f8f5; color: inherit; text-decoration: none; border: 2px solid transparent; }
.pass-ampel-k strong { font-size: 1.7rem; line-height: 1.1; }
.pass-ampel-k span { font-size: .82rem; color: #56615b; }
.pass-ampel-k.rot strong { color: #d1242f; } .pass-ampel-k.gelb strong { color: #b07d00; } .pass-ampel-k.gruen strong { color: #2f9f2a; }
.pass-ampel-k.on { border-color: #1f2a24; }
.pass-liste { display: flex; flex-direction: column; gap: .5rem; }
.pass-befund { border: 1px solid #e5ebe7; border-radius: 12px; padding: .6rem .8rem; }
.pass-befund > summary { display: grid; grid-template-columns: 14px minmax(12rem, 1fr) minmax(0, 2fr); gap: .8rem; align-items: start; cursor: pointer; list-style: none; }
.pass-befund > summary::-webkit-details-marker { display: none; }
.pass-befund[open] > summary { margin-bottom: .6rem; }
.pass-stufe { width: 12px; height: 12px; border-radius: 50%; margin-top: .3rem; background: #2f9f2a; }
.pass-rot .pass-stufe { background: #d1242f; } .pass-gelb .pass-stufe { background: #e2a400; }
.pass-name { display: flex; flex-direction: column; min-width: 0; }
.pass-texte { font-size: .88rem; }
.pass-b-rot { color: #b3261e; } .pass-b-gelb { color: #7a5a00; }
.pass-matrix td.pass-mehr { background: #fde2e1; color: #b3261e; font-weight: 700; }
.pass-matrix td.pass-etwas { background: #fff3cd; }
@media (max-width: 700px) { .pass-befund > summary { grid-template-columns: 14px minmax(0, 1fr); } .pass-texte { grid-column: 2; } .pass-ampel { grid-template-columns: minmax(0, 1fr); } }
.pass-warn { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; font-size: .72rem; font-weight: 800; color: #fff; text-decoration: none; vertical-align: 1px; }
.pass-warn-rot { background: #d1242f; } .pass-warn-gelb { background: #e2a400; }
.pass-matrix td.pass-knapp, .vd-tbl td.pass-knapp { background: #fffbea; }
.vd-tbl td.pass-mehr { background: #fde2e1; color: #b3261e; } .vd-tbl td.pass-etwas { background: #fff3cd; }
/* Bereinigte Ansicht der Spielerpässe in der Vereinsübersicht */
.pass-bereinigt { border: 1px solid #e5ebe7; border-radius: 12px; padding: .8rem .9rem; margin-bottom: 1rem; }
.pass-balken { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eef2ef; }
.pass-balken i { display: block; height: 100%; }
.pb-aktiv { background: #2f9f2a; } .pb-mini { background: #9fd59a; } .pb-frueher { background: #e2a400; } .pb-ohne { background: #d1242f; }
.pass-legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.pass-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
/* Minimierbare Themenkacheln (karte.js) */
.vf-faltbar > .vf-kopf { position: relative; }
.vf-faltbar > h1.vf-kopf, .vf-faltbar > h2.vf-kopf, .vf-faltbar > h3.vf-kopf { padding-right: 2.2rem; }
.vf-falt { margin-left: auto; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1px solid #dfe5e2; background: #fff; color: #56615b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font: inherit; line-height: 1; }
.vf-falt::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform .15s; }
.vf-zu .vf-falt::before { transform: translateY(-2px) rotate(45deg); }
.vf-falt:hover { background: #eef3f0; color: #1d2621; }
.vf-falt:focus-visible { outline: 2px solid #2f9f2a; outline-offset: 2px; }
.vf-faltbar > h1.vf-kopf > .vf-falt, .vf-faltbar > h2.vf-kopf > .vf-falt, .vf-faltbar > h3.vf-kopf > .vf-falt { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1rem; }
.vd-card-head.vf-kopf { align-items: flex-start; }
.vd-card-head.vf-kopf > .vf-falt { margin-left: .6rem; order: 99; }
.vf-zu > :not(.vf-kopf) { display: none !important; }
.vf-zu > .vf-kopf { margin-bottom: 0 !important; cursor: pointer; }
.vf-zu { padding-bottom: .9rem; }
.dash .vf-falt, .dash-card .vf-falt { background: transparent; border-color: rgba(255,255,255,.25); color: inherit; }
@media print { .vf-falt { display: none; } .vf-zu > :not(.vf-kopf) { display: revert !important; } }
fieldset.vf-faltbar { position: relative; }
fieldset.vf-faltbar > legend.vf-kopf { position: static; }
fieldset.vf-faltbar { overflow: visible; }
fieldset.vf-faltbar > legend.vf-kopf > .vf-falt { position: absolute; right: .9rem; top: 0; transform: translateY(-50%); background: #fff; }
fieldset.vf-zu { min-height: 2.6rem; }
fieldset.vf-zu { padding-bottom: .6rem; }
.dash-card { min-width: 0; }
/* Umfeldkarte (Kitas um den Verein): Liste links, Karte rechts auf 2/3 */
.uk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; height: 34rem; }
.uk-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; border: 1px solid var(--d-line); border-radius: 10px; }
.uk-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; padding: .5rem .7rem; border-bottom: 1px solid var(--d-line); cursor: pointer; font-size: .85rem; }
.uk-liste li:last-child { border-bottom: 0; }
.uk-liste li:hover, .uk-liste li:focus-visible { background: color-mix(in srgb, var(--d-blau) 7%, transparent); outline: none; }
.uk-liste li.on { background: color-mix(in srgb, var(--d-blau) 14%, transparent); box-shadow: inset 3px 0 0 var(--d-blau); }
.uk-l-name { color: var(--d-ink); line-height: 1.25; }
.uk-l-km { color: var(--d-ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.uk-l-info { grid-column: 1 / -1; color: var(--d-muted); font-size: .78rem; }
.uk-l-info strong { color: var(--d-ink); }
.uk-view { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--d-line); background: #e9eee8; cursor: grab; touch-action: none; user-select: none; }
.uk-view.zieht { cursor: grabbing; }
.uk-kacheln img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.uk-ringe { position: absolute; inset: 0; pointer-events: none; }
.uk-ringe circle { fill: none; stroke: #17201b; stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 5 5; }
.uk-ringe text { font-size: 11px; fill: #17201b; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.uk-punkte { position: absolute; inset: 0; pointer-events: none; }
.uk-p { position: absolute; left: 0; top: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--d-blau); opacity: .85; cursor: pointer; pointer-events: auto; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.uk-p-ohne { background: #8a948f; }
.uk-p:hover, .uk-p:focus-visible { opacity: 1; outline: 2px solid #17201b; outline-offset: 1px; }
.uk-p.on { background: #eb6834; opacity: 1; z-index: 2; }
.uk-verein { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; }
.uk-verein::before { content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #2f9f2a; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.uk-verein span { position: absolute; left: 15px; top: -9px; white-space: nowrap; font-size: .75rem; font-weight: 600; color: #17201b; background: rgba(255,255,255,.88); padding: .05rem .35rem; border-radius: 4px; }
.uk-pop { position: absolute; z-index: 5; width: 17rem; max-width: calc(100% - 16px); background: #fff; color: #17201b; border-radius: 10px; padding: .7rem .8rem; box-shadow: 0 4px 18px rgba(0,0,0,.25); font-size: .82rem; cursor: auto; user-select: text; }
.uk-pop strong { display: block; padding-right: 1.4rem; line-height: 1.3; }
.uk-pop-adr { color: #56615b; margin: .15rem 0 .45rem; }
.uk-pop dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin: 0; }
.uk-pop dt { color: #8a948f; }
.uk-pop dd { margin: 0; }
.uk-pop-zu { position: absolute; right: .35rem; top: .3rem; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: #56615b; cursor: pointer; padding: .2rem .35rem; }
.uk-steuer { position: absolute; right: .6rem; top: .6rem; z-index: 4; display: flex; flex-direction: column; gap: 2px; }
.uk-steuer button { width: 2rem; height: 2rem; border: 0; border-radius: 6px; background: #fff; color: #17201b; font-size: 1.05rem; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.uk-steuer button:hover { background: #f1f4f2; }
.uk-quelle { position: absolute; right: 0; bottom: 0; z-index: 4; font-size: .68rem; background: rgba(255,255,255,.8); color: #17201b; padding: .05rem .35rem; border-top-left-radius: 4px; }
.uk-quelle a { color: inherit; }
@media (max-width: 820px) { .uk { grid-template-columns: minmax(0, 1fr); height: auto; } .uk-view { height: 24rem; order: -1; } .uk-liste { max-height: 18rem; } }
@media print { .uk { height: auto; } .uk-view { display: none; } .uk-liste { overflow: visible; border: 0; } }
.uk-p-sek, .uk-legende .uk-p-sek, .uk-l-pkt.uk-p-sek { background: #8e5bd0; }
.uk-legende { display: flex; flex-wrap: wrap; gap: .2rem .7rem; background: rgba(255,255,255,.88); color: #17201b; border-radius: 6px; padding: .25rem .5rem; font-size: .72rem; pointer-events: none; }
.uk-legende span { display: inline-flex; align-items: center; gap: .3rem; }
.uk-legende i, .uk-l-pkt { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--d-blau); flex: none; }
.uk-legende .uk-p-ohne, .uk-l-pkt.uk-p-ohne { background: #8a948f; }
.uk-l-pkt { margin-right: .4rem; vertical-align: .05rem; }
.uk-hinweis { margin: .4rem 0 0; }
.dash-head.vf-kopf > .vf-falt { margin-left: .6rem; order: 99; align-self: flex-start; }
/* NRW-Karte: Ebenen Kitas/Schulen 3 km */
.vd-karte-umf circle { vector-effect: non-scaling-stroke; }
.umf-ringe circle { fill: #2f9f2a; fill-opacity: .12; stroke: #2f9f2a; stroke-opacity: .55; stroke-width: .8; stroke-dasharray: 3 2; pointer-events: none; }
.umf-einr circle { stroke: #fff; stroke-width: .4; }
.umf-k, .umf-gs, i.umf-k, i.umf-gs { fill: #2a78d6; background: #2a78d6; }
.umf-sek, i.umf-sek { fill: #8e5bd0; background: #8e5bd0; }
.umf-k0, .umf-so, i.umf-k0, i.umf-so { fill: #8a948f; background: #8a948f; }
.umf-einr circle:hover { stroke: #1f2a24; stroke-width: 1.2; }
.vd-karte-umf .vk-v { fill: #1f2a24; fill-opacity: .7; stroke: #fff; stroke-width: 1.2; }
i.umf-ring-leg { background: rgba(47,159,42,.12); border: 1px dashed #2f9f2a; box-sizing: border-box; }
.umf-fern { fill: #eb6834; fill-opacity: .85; }

.uk-links { position: absolute; left: .6rem; top: .6rem; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; max-width: calc(100% - 4rem); pointer-events: none; }
.uk-radius { display: inline-flex; background: #fff; border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 2px; gap: 2px; pointer-events: auto; }
.uk-radius button { border: 0; background: none; color: #17201b; font: inherit; font-size: .78rem; padding: .3rem .6rem; border-radius: 5px; cursor: pointer; }
.uk-radius button:hover { background: #f1f4f2; }
.uk-radius button.on { background: #1f2a24; color: #fff; }
.uk-liste li[hidden], .uk-p[hidden] { display: none; }
.umf-leiste { align-items: center; margin: 0 0 .7rem; }
.umf-kartebox { position: relative; }
.umf-radius { position: absolute; left: .6rem; top: .6rem; z-index: 2; }
.uk-radius a { color: #17201b; text-decoration: none; font-size: .78rem; padding: .3rem .6rem; border-radius: 5px; }
.uk-radius a:hover { background: #f1f4f2; }
.uk-radius a.on { background: #1f2a24; color: #fff; }
/* Story-Szene Kitas und Schulen */
.umf-story-box { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 1.2rem; align-items: center; }
@media (max-width: 700px) { .umf-story-box { grid-template-columns: minmax(0, 1fr); } }
.umf-story { width: 100%; max-width: 320px; height: auto; background: color-mix(in srgb, var(--d-verein) 5%, transparent); border-radius: 50%; }
.umf-st-ring { fill: none; stroke: var(--d-ink2); stroke-opacity: .5; stroke-dasharray: 4 4; }
.umf-st-km { font-size: 10px; fill: var(--d-muted); }
.umf-story .umf-k { fill-opacity: .8; stroke: #fff; stroke-width: .8; }
.umf-st-gs { fill: #eb6834; fill-opacity: .85; stroke: #fff; stroke-width: .8; }
.umf-st-verein { fill: #2f9f2a; stroke: #fff; stroke-width: 2.5; }
.umf-reich li { grid-template-columns: 4.2rem minmax(0, 1fr) 3rem; }
.umf-story-bars li { grid-template-columns: 4.2rem minmax(0, 1fr) 3.4rem 4.2rem; }
@media (max-width: 560px) { .umf-reich li, .umf-story-bars li { grid-template-columns: 4.2rem minmax(0, 1fr) 3.4rem; } .umf-reich .vd-b-bar, .umf-story-bars .vd-b-bar { grid-column: auto; grid-row: auto; } .umf-story-bars .vd-b-d { display: none; } }
/* Liniendiagramm mit anklickbaren Jahren (Vereinsprofil) */
.ch-aktiv { stroke: currentColor; stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 3; }
a.ch-jahr { cursor: pointer; }
a.ch-jahr:hover .ch-tick, a.ch-jahr:focus .ch-tick { fill: var(--d-verein, #2f9f2a); font-weight: 700; }
.ch-tick-aktiv { font-weight: 700; fill: var(--d-ink, currentColor) !important; }
/* Vereinsprofil: Zugangslink (Admin), Jahreshinweis, Story */
.profil-link { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.profil-link input { flex: 1 1 22rem; min-width: 0; font: inherit; font-size: .82rem; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--d-line); background: rgba(255,255,255,.06); color: inherit; }
.profil-link-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.profil-jahr-hinweis { margin: -.2rem 0 .9rem; padding: .6rem .9rem; border-radius: 10px; background: rgba(250,178,25,.14); border: 1px solid rgba(250,178,25,.45); font-size: .88rem; }
.profil-jahr-hinweis a { color: inherit; }
.profil-story { margin-bottom: 1rem; }
.profil-story .vd-story { min-height: 0; }
.profil-ohne-link { text-decoration: none; }
.profil-story a.vd-btn-hell[aria-disabled] { pointer-events: none; opacity: .5; }
body.public .pub-wrap:has(> .dash) { max-width: 1280px; }
@media print { .profil-zugang, .profil-story .vd-story-nav { display: none !important; } }
.dash .profil-story .vd-story-nav { background: #fff; border-radius: 16px; padding: .6rem .8rem; }
.dash .profil-story a.vd-btn { color: #fff; text-decoration: none; }
.dash .profil-story a.vd-btn-hell { color: #17201b; }
.dash .profil-story .vd-story a { color: #17201b; }
/* Vereinsprofil: sanfter Wechsel (profil_sanft.js) */
.dash.vf-laedt { cursor: progress; }
.dash.vf-laedt .lnchart, .dash.vf-laedt .kpi-v, .dash.vf-laedt .vd-story { opacity: .55; transition: opacity .2s; }
.dash.vf-eingeblendet { animation: vf-einblenden .35s ease-out; }
@keyframes vf-einblenden { from { opacity: .6; } to { opacity: 1; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { .dash.vf-laedt * { transition: none !important; } }
.vd-tag-vj { background: #fff4d6; color: #8a5a00; border-color: #f0d48a; }
.vd-vj-hinweis, .profil-vj { color: #b07a00 !important; font-size: .78rem; }
.dash .profil-vj { color: #f0c35a !important; }
.profil-qr { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.profil-qr-bild { width: 132px; height: 132px; background: #fff; border-radius: 8px; padding: 4px; flex: none; }
.profil-qr-bild svg { width: 100%; height: 100%; display: block; }
.profil-qr > div:last-child { flex: 1 1 14rem; }
.dash .umf-leiste a { color: inherit; }
/* Umschalter mit gleitender Markierung (Zeitraum der Story) */
.profil-zeitraum { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; flex-wrap: wrap; }
.profil-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--d-line); }
.profil-toggle::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.4,0,.2,1); }
.profil-toggle[data-on="1"]::before { transform: translateX(100%); }
.dash .profil-toggle a { position: relative; z-index: 1; padding: .45rem 1.1rem; border-radius: 999px; text-align: center; white-space: nowrap; font-size: .86rem; font-weight: 600; color: var(--d-ink2); text-decoration: none; transition: color .3s; }
.dash .profil-toggle a.on { color: #17201b; }
.dash .profil-toggle a:not(.on):hover { color: var(--d-ink); }
.dash .profil-toggle a:focus-visible { outline: 2px solid var(--d-verein); outline-offset: 2px; }
/* fließender Übergang: die Story-Karte verwandelt sich, statt die ganze Seite zu überblenden */
.profil-story .vd-story { view-transition-name: vf-story; }
.profil-toggle { view-transition-name: vf-zeitraum; }
::view-transition-group(vf-story) { animation-duration: .45s; animation-timing-function: cubic-bezier(.4,0,.2,1); }
::view-transition-old(vf-story), ::view-transition-new(vf-story) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { .profil-toggle::before { transition: none; } }
@media print { .profil-zeitraum { display: none; } }
/* Legende der Story-Linien „Frauen und Mädchen“ */
.vd-leg-ln-1 { color: var(--d-verein); } .vd-leg-ln-2 { color: var(--d-blau); } .vd-leg-ln-3 { color: var(--d-ref, #9aa5a0); }
.vd-leg-ln-rw { color: var(--bz-rw); } .vd-leg-ln-rh { color: var(--bz-rh); } .vd-leg-ln-ru { color: var(--bz-ru); } .vd-leg-ln-we { color: var(--bz-we); }
[class^="vd-leg-ln"] { white-space: nowrap; }
/* Story „Jahr für Jahr“: Balken um die Nulllinie */
.vj-bars li { grid-template-columns: 3.2rem minmax(0, 1fr) 4.2rem; }
.vd-b-bar.vj-bar { background: linear-gradient(to right, transparent calc(50% - .5px), var(--d-axis, #cfd8d3) calc(50% - .5px), var(--d-axis, #cfd8d3) calc(50% + .5px), transparent calc(50% + .5px)), #eef2ef; border-radius: 4px; }
.vd-b-bar.vj-bar i.vj-plus, .vd-b-bar.vj-bar i.vj-minus { border-radius: 0; min-width: 0; }
.vd-b-bar.vj-bar i.vj-plus { background: var(--d-verein); border-radius: 0 4px 4px 0; }
.vd-b-bar.vj-bar i.vj-minus { background: var(--d-orange, #eb6834); border-radius: 4px 0 0 4px; }
.vd-b-bar.vj-bar i.vj-marke { width: 2px; margin-left: -1px; top: -3px; bottom: -3px; background: #5b6770; border-radius: 1px; z-index: 1; }
/* Story „Altersstruktur im Wandel“: Start- und Endjahr je Altersgruppe */
.aw-liste li { grid-template-columns: 3.2rem minmax(0, 1fr) 2.6rem 3rem; }
.aw-bars { display: flex; flex-direction: column; gap: 2px; }
.aw-bars i { display: block; height: 6px; border-radius: 0 3px 3px 0; min-width: 1px; }
.aw-alt { background: #c8d0cc; } .aw-neu { background: var(--d-verein); }
.aw-plus { color: #2f9f2a; font-weight: 600; } .aw-minus { color: #d9480f; font-weight: 600; }
.aw-leg { display: inline-block; width: .8rem; height: .45rem; border-radius: 2px; vertical-align: .05rem; }
/* Folien ohne zeitlichen Verlauf: Zeitraum-Umschalter ausgegraut */
.vd-gesperrt { opacity: .38; }
.vd-gesperrt a, .vd-gesperrt select { pointer-events: none; cursor: default; }
nav.vd-gesperrt { cursor: help; }
.profil-zeitraum.gesperrt { cursor: help; }
.profil-zeitraum.gesperrt .profil-toggle { opacity: .35; filter: grayscale(1); pointer-events: none; }
.profil-zeitraum.gesperrt .profil-toggle::before { background: #9aa5a0; box-shadow: none; }
.profil-zeitraum.gesperrt::after { content: "gilt hier nicht – Folie ohne zeitlichen Verlauf"; font-size: .78rem; color: var(--d-muted); }

/* ---------- Jugend-Analyse (inc/jugend_analyse.php) ---------- */
.jg-kor-zeile { margin: .7rem 0 1.4rem; }
.jg-kor-t { display: flex; justify-content: space-between; margin: 0 0 .35rem; font-size: .85rem; color: var(--d-ink2); }
.jg-kor-t b { color: var(--d-ink); }
.jg-kor-leer { margin: 0; font-size: .8rem; color: var(--d-muted); }
.jg-kor { position: relative; height: 14px; border-radius: 7px; background: rgba(127,140,133,.15); }
.jg-kor i { position: absolute; top: 0; bottom: 0; }
.jg-kor i:first-child { border-radius: 7px 0 0 7px; }
.jg-kor .jg-s1 { background: rgba(226,98,64,.35); } .jg-kor .jg-s2 { background: rgba(232,170,64,.38); }
.jg-kor .jg-s3 { background: rgba(61,184,42,.35); } .jg-kor .jg-s4 { background: rgba(61,184,42,.85); }
.jg-kor .jg-s5 { background: rgba(232,170,64,.38); border-radius: 0 7px 7px 0; }
.jg-marke { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--d-ink); box-shadow: 0 0 0 2px var(--d-card); }
.jg-kor-achse { margin: .3rem 0 0; font-size: .72rem; color: var(--d-muted); }
.jg .jg-ue-l { white-space: nowrap; min-width: 5.2rem; margin-right: .5rem; } .jg .jg-ue-n { white-space: nowrap; }
.jg-struktur { width: 100%; border-collapse: collapse; font-size: .85rem; }
.jg-struktur th, .jg-struktur td { padding: .3rem .25rem; border-bottom: 1px solid var(--d-line); }
.jg-struktur thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--d-muted); font-weight: 600; }
.jg-struktur tbody th { text-align: left; width: 3.2rem; color: var(--d-ink); }
.jg-struktur td.jg-m, .jg-struktur td.jg-w { width: 38%; }
.jg-struktur td span { display: inline-block; vertical-align: middle; width: calc(100% - 2.4rem); height: 10px; border-radius: 5px; background: rgba(127,140,133,.15); position: relative; overflow: hidden; }
.jg-struktur td i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.jg-struktur td.jg-m { text-align: right; } .jg-struktur td.jg-m i { right: 0; background: #4a90d9; }
.jg-struktur td.jg-w i { left: 0; background: #d9558f; }
.jg-struktur td b { display: inline-block; width: 2.1rem; font-variant-numeric: tabular-nums; color: var(--d-ink); font-weight: 600; }
.jg-struktur td.jg-m b { text-align: right; margin-left: .3rem; } .jg-struktur td.jg-w b { text-align: left; margin-right: .3rem; }
.jg-struktur thead th.jg-m { text-align: right; } .jg-struktur thead th.jg-w { text-align: left; }
.jg-luecke { display: inline-block; font-size: .7rem; font-weight: 700; color: #b8471f; background: rgba(226,98,64,.14); border-radius: 6px; padding: .05rem .4rem; white-space: nowrap; }
.jg-check { margin: 0; }
.jg-check h3 { margin: 0; font-size: 1rem; color: var(--d-ink); }
.jg-check-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: .4rem 0 .8rem; }
.jg-check-felder label { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; color: var(--d-muted); }
.jg-check-felder input { font: inherit; font-size: 1rem; padding: .4rem .55rem; border-radius: 8px; border: 1px solid var(--d-line); background: transparent; color: var(--d-ink); width: 100%; }
.jg-check-erg { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: baseline; margin: 0; font-size: .85rem; color: var(--d-ink2); }
.jg-check-erg b { font-size: 1.35rem; color: var(--d-ink); margin-left: .35rem; }
.jg-fazit { font-weight: 700; } .jg-gut { color: #2f9a22; } .jg-knapp { color: #c98a12; } .jg-luecke-f { color: #c8502a; }

/* Vereinsprofil: Wahl des Vergleichsjahrs in „Entwicklung seit …“ */
.seit-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .6rem; position: relative; }
.dash .seit-wahl a, .seit-wahl summary { font-size: .76rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--d-line); color: var(--d-ink2); text-decoration: none; cursor: pointer; }
.dash .seit-wahl > a.on, .seit-wahl details.on > summary { background: #fff; color: #17201b; border-color: #fff; }
.seit-wahl summary { list-style: none; } .seit-wahl summary::-webkit-details-marker { display: none; }
.seit-wahl summary::after { content: " ▾"; font-size: .7em; }
.seit-wahl details div { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; display: grid; grid-template-columns: repeat(4, auto); gap: .25rem; padding: .45rem; border-radius: 10px; background: var(--d-card); border: 1px solid var(--d-line); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.dash .seit-wahl details a { text-align: center; }
.dash .seit-wahl details a.on { background: #3DB82A; color: #fff; border-color: #3DB82A; }
/* Vergleichsjahr im hellen Vereinsdashboard */
.vd .seit-wahl a, .vd .seit-wahl summary { font-size: .76rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--d-axis); color: var(--d-ink2); text-decoration: none; background: var(--d-card); }
.vd .seit-wahl a:hover, .vd .seit-wahl summary:hover { border-color: var(--d-verein); color: var(--d-ink); }
.vd .seit-wahl > a.on, .vd .seit-wahl details.on > summary, .vd .seit-wahl details a.on { background: var(--d-verein); color: #fff; border-color: var(--d-verein); }
.vd .seit-wahl details a { text-align: center; }
.vd .vd-card-head .seit-wahl { margin-top: 0; }
.vd .vd-zeitraum .seit-wahl { margin-top: 0; }
.dash .profil-zeitraum .seit-wahl { margin-top: 0; }
.profil-zeitraum.gesperrt .seit-wahl { opacity: .45; pointer-events: none; }
.jg-struktur td.jg-kl { font-weight: 700; color: var(--d-ink); width: 3.2rem; }
.jg-uetab { width: 100%; border-collapse: collapse; font-size: .82rem; }
.jg-uetab td { padding: .42rem .3rem; border-bottom: 1px solid var(--d-line); vertical-align: middle; }
.jg-uetab thead td { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--d-muted); font-weight: 600; }
.jg-uetab td.jg-kl { font-weight: 700; color: var(--d-ink); white-space: nowrap; width: 1%; padding-right: .6rem; }
.jg-uetab td.jg-ue span { display: block; position: relative; height: 8px; border-radius: 4px; background: rgba(127,140,133,.15); margin-bottom: .25rem; }
.jg-uetab td.jg-ue i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.jg-uetab td.jg-m i { background: #4a90d9; } .jg-uetab td.jg-w i { background: #d9558f; } .jg-uetab td.jg-g i { background: var(--d-verein, #3DB82A); }
.jg-uetab td.jg-ue em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--d-ink); opacity: .55; }
.jg-uetab td.jg-ue b { font-variant-numeric: tabular-nums; color: var(--d-ink); }
.jg-uetab td.jg-ue small { display: block; color: var(--d-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-uetab td.jg-schwach b { color: #d9542b; } .jg-uetab td.jg-stark b { color: #2f9a22; }

/* Score-Ausblick: Zusammensetzung des Gesundheits-Scores je Jahr (va_score_ausblick_html) */
.sa-saeulen { display: flex; align-items: flex-end; gap: .45rem; height: 190px; margin: .6rem 0 .4rem; }
.sa-sp { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; min-width: 0; }
.sa-sp b { font-size: .8rem; color: var(--d-ink); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.sa-sp span { font-size: .7rem; color: var(--d-muted); margin-top: .25rem; }
.sa-sp.sa-heute span { color: var(--d-ink); font-weight: 700; }
.sa-stapel { width: 100%; max-width: 46px; height: 140px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.sa-stapel i { display: block; width: 100%; border-top: 1px solid rgba(255,255,255,.35); }
.sa-fort .sa-stapel i { opacity: .55; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 3px, transparent 3px 7px); }
.sa-wachstum { background-color: #3DB82A; } .sa-jugend { background-color: #4a90d9; } .sa-retention { background-color: #9b6bd6; } .sa-balance { background-color: #e0a63a; }
.sa-leg { display: flex; flex-wrap: wrap; gap: .3rem .9rem; } .sa-leg span { display: inline-flex; align-items: center; gap: .3rem; }
.sa-leg i, .sa-tab i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sa-leg-fort { color: var(--d-muted); }
.sa-tab { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: .6rem; }
.sa-tab td { padding: .35rem .3rem; border-bottom: 1px solid var(--d-line); text-align: right; font-variant-numeric: tabular-nums; color: var(--d-ink2); }
.sa-tab td:first-child { text-align: left; } .sa-tab td:first-child i { margin-right: .4rem; vertical-align: -1px; }
.sa-tab thead td { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--d-muted); font-weight: 600; }
.sa-tab .sa-summe td { font-weight: 700; color: var(--d-ink); border-bottom: 0; }
.sa-up { color: #2f9a22 !important; } .sa-down { color: #d9542b !important; }
.sa-text { margin: .7rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--d-ink2); }
.ch-band { stroke: none; opacity: .18; } .ch-band.ln-1 { fill: var(--d-verein); } .ch-band.ln-2 { fill: var(--d-blau); } .ch-band.ln-3 { fill: var(--d-ref); }

/* Story „Kitas und Schulen“: je Umkreis Kitas und Grundschulen gleich aufgebaut (Kinder als Balken, darunter Anzahl der Einrichtungen) */
.umf-st-tab { width: 100%; border-collapse: collapse; font-size: .86rem; }
.umf-st-tab td { padding: .45rem .4rem; border-bottom: 1px solid rgba(127,140,133,.22); vertical-align: middle; }
.umf-st-tab thead td { font-size: .8rem; color: #6b7a71; font-weight: 700; }
.umf-st-tab td.umf-st-r { white-space: nowrap; font-weight: 600; padding-right: .6rem; }
.umf-st-tab td.umf-st-k span, .umf-st-tab td.umf-st-g span { display: block; height: 8px; border-radius: 4px; background: rgba(127,140,133,.15); margin-bottom: .25rem; overflow: hidden; }
.umf-st-tab td i { display: block; height: 100%; border-radius: 4px; }
.umf-st-tab td.umf-st-k i { background: #2a78d6; } .umf-st-tab td.umf-st-g i { background: #eb6834; }
.umf-st-tab { table-layout: fixed; } .umf-st-tab td.umf-st-r { width: 4.6rem; } .umf-st-tab td.umf-st-k, .umf-st-tab td.umf-st-g { width: auto; }
.umf-st-tab td b { font-variant-numeric: tabular-nums; } .umf-st-tab td small { display: block; color: #6b7a71; font-size: .74rem; }
.umf-st-tab thead td.umf-st-k { color: #2a78d6; } .umf-st-tab thead td.umf-st-g { color: #eb6834; }
.umf-st-tab thead td small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: #6b7a71; }
/* Anmeldungen: Zeile zum manuellen Hinzufügen */
.tbl tr.anm-neu td { background: #f3f8f4; vertical-align: top; }
.anm-neu input, .anm-neu select { width: 100%; font: inherit; font-size: .88rem; padding: .35rem .5rem; border: 1px solid #cfd8d3; border-radius: 6px; background: #fff; }
.anm-neu input + input, .anm-neu select + input, .anm-neu .anm-neu-name + input { margin-top: .3rem; }
.anm-neu-name { display: flex; gap: .3rem; }
.anm-neu-name input { min-width: 0; }
.anm-neu .btn { white-space: nowrap; }
/* Anmeldungen: Verpflegung direkt in der Tabelle ändern */
.anm-vpf { display: flex; flex-direction: column; gap: .25rem; min-width: 9rem; }
.anm-vpf select, .anm-vpf input { font: inherit; font-size: .86rem; padding: .25rem .4rem; border: 1px solid #cfd8d3; border-radius: 6px; background: #fff; }
.anm-vpf-so { display: none; gap: .25rem; }
.anm-vpf.so .anm-vpf-so, .anm-vpf:has(select option[value="sonstiges"]:checked) .anm-vpf-so { display: flex; }
.anm-vpf-so input { min-width: 0; flex: 1; }
/* E-Mails: Versand der Erinnerung an alle Teilnehmenden */
.erinnerung-versand { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 12px; background: #f3f8f4; border: 1px solid #d6e6da; }
.erinnerung-versand h3 { margin: 0 0 .4rem; }
.erinnerung-versand .btn-row { margin-top: .6rem; }
.erinnerung-dialog { width: min(720px, calc(100vw - 2rem)); }
.erinnerung-dialog form { display: flex; flex-direction: column; gap: .6rem; }
.erinnerung-dialog textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .88rem; }
.erinnerung-stand { margin: 0; padding: .5rem .7rem; border-radius: 8px; background: #f3f8f4; }
/* Inhalte: Upload, Dateiliste, Link für Teilnehmende, Vereinsprofile */
.inh-drop { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.2rem; border: 2px dashed #b9cfc0; border-radius: 12px; background: #f6faf7; cursor: pointer; text-align: center; position: relative; }
.inh-drop.ueber { border-color: #3DB82A; background: #ecf7ee; }
.inh-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.inh-upload .grid2 { margin-top: .8rem; }
.inh-liste { list-style: none; margin: 0; padding: 0; }
.inh-liste li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid #e5ebe7; }
.inh-liste li:first-child { border-top: 0; }
.inh-typ { flex: none; width: 3.2rem; padding: .45rem 0; border-radius: 8px; background: #eef1ee; color: #56615b; font-size: .72rem; font-weight: 700; text-align: center; }
.inh-liste li.frei .inh-typ { background: #e3f3e0; color: #1f7a16; }
.inh-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.inh-akt { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.inh-sort { display: flex; gap: .25rem; }
.inh-sort form, .vp-akt form { margin: 0; }
.inh-frei { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .8rem; font-weight: 600; padding: .25rem .6rem .25rem .3rem; border-radius: 999px; border: 1px solid #cfd8d3; background: #fff; color: #56615b; cursor: pointer; }
.inh-frei i { width: 1.9rem; height: 1.05rem; border-radius: 999px; background: #cfd8d3; position: relative; transition: background .2s; }
.inh-frei i::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .75rem; height: .75rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.inh-frei.on { border-color: #3DB82A; color: #1f7a16; } .inh-frei.on i { background: #3DB82A; } .inh-frei.on i::after { transform: translateX(.85rem); }
.inh-bearb summary { cursor: pointer; color: var(--muted); }
.inh-bearb form { margin-top: .4rem; }
.inh-link { width: 100%; font: inherit; font-size: .82rem; padding: .4rem .5rem; border: 1px solid #cfd8d3; border-radius: 6px; background: #f6faf7; }
.inh-oeffentlich li { align-items: center; }
.vp-tab td { vertical-align: top; }
.vp-link { display: flex; gap: .3rem; min-width: 15rem; }
.vp-link input { flex: 1; min-width: 0; font: inherit; font-size: .78rem; padding: .3rem .45rem; border: 1px solid #cfd8d3; border-radius: 6px; background: #f6faf7; }
.vp-akt { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 17rem; }
.vp-dialog { width: min(640px, calc(100vw - 2rem)); }
.vp-dialog form { display: flex; flex-direction: column; gap: .6rem; }
.vp-qr .profil-qr-bild { width: 200px; height: 200px; border: 1px solid #e5ebe7; }
.vp-empf { border: 1px solid #e5ebe7; border-radius: 10px; padding: .5rem .8rem; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.vp-text { width: 100%; font-family: ui-monospace, monospace; font-size: .86rem; }
/* Vereinsprofil: ganzer Themenblock minimierbar (Überschrift wie die anderen Abschnitte, Knopf rechts) */
.dash-block > .dash-sek.vf-kopf { cursor: default; }
.dash-block.vf-zu { padding-bottom: 0; }
.dash-block.vf-zu > .dash-sek { margin-bottom: .7rem !important; cursor: pointer; }
/* Kacheln mit .dash-head (Überschrift plus Auswahl, z. B. „Antworten im Vergleich“): Knopf immer oben rechts wie bei den anderen */
.dash-head.vf-kopf { position: relative; padding-right: 2.6rem; }
.dash-head.vf-kopf > .vf-falt { position: absolute; right: 0; top: -5px; margin: 0; }
/* Übergänge: feste, gleich breite Spalten – passt auch in schmale Kacheln; Zahl und % bleiben zusammen, NRW-Wert darunter */
.jg-uetab { table-layout: fixed; }
.jg-uetab col.jg-uetab-kl { width: 6.2rem; }
.jg-uetab td.jg-kl { white-space: normal; width: auto; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; }
.jg-uetab td.jg-ue b { display: block; white-space: nowrap; }
.jg-uetab td.jg-ue { overflow: hidden; }
.jg-uetab thead td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .jg-uetab col.jg-uetab-kl { width: 4.6rem; }
  .jg-uetab td { padding: .38rem .18rem; }
  .jg-uetab td.jg-kl { font-size: .74rem; }
  .jg-uetab thead td { font-size: .6rem; letter-spacing: 0; }
  .jg-uetab td.jg-ue small { font-size: .62rem; }
}
/* Vereinsprofile: Mehrfachauswahl, Aktionsleiste, Sortierung */
.vp-sammel { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; margin: -.2rem 0 .6rem; }
.vp-sammel #vp-anzahl { margin-right: auto; color: var(--muted); }
.vp-sammel button:disabled { opacity: .45; cursor: not-allowed; }
.vp-tab th.vp-wahl, .vp-tab td.vp-wahl { width: 2rem; text-align: center; }
.vp-tab .vp-wahl input { width: 1.05rem; height: 1.05rem; accent-color: #2f9f2a; cursor: pointer; }
.vp-tab tr.vp-an td { background: #f1f8f2; }
.vp-sort { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.vp-sort:hover { color: #155C2C; }
th[aria-sort] .vp-sort::after { content: " ▲"; font-size: .75em; }
th[aria-sort="descending"] .vp-sort::after { content: " ▼"; }
/* Story wischbar (story_wisch.js): Karte folgt dem Finger, fliegt hinaus, neue Szene gleitet herein */
.vd-story { touch-action: pan-y; }
.vd-story.vf-zieht { transition: none !important; user-select: none; -webkit-user-select: none; cursor: grabbing; will-change: transform; }
.vd-story.vf-fliegt { transition: transform .17s cubic-bezier(.4,0,1,1), opacity .17s ease-in; }
.vd-story.vf-zurueck { transition: transform .26s cubic-bezier(.2,1.5,.4,1), opacity .2s ease-out; }
.vd-story.vf-rein-r { animation: vf-rein-r .34s cubic-bezier(.2,.8,.2,1); }
.vd-story.vf-rein-l { animation: vf-rein-l .34s cubic-bezier(.2,.8,.2,1); }
@keyframes vf-rein-r { from { transform: translateX(56px) rotate(1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vf-rein-l { from { transform: translateX(-56px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (pointer: coarse) { .vd-story-punkte::after { content: "‹ wischen ›"; display: block; width: 100%; text-align: center; font-size: .7rem; color: var(--d-muted, #8a948f); margin-top: .2rem; letter-spacing: .04em; } }
@media (prefers-reduced-motion: reduce) { .vd-story.vf-rein-r, .vd-story.vf-rein-l { animation: none; } }
/* Beim Wischen bleibt die Karte im Story-Bereich (keine Überstände über den Rand, kein seitliches Scrollen) */
.profil-story, .vd:has(.vd-story) { overflow-x: clip; }
/* Inhalte: Beispiel-Vereinsprofil */
.bsp-zeile { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bsp-zeile img { flex: none; }
.bsp-text { flex: 1 1 18rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
/* ===== Vereinsprofil: Hellmodus (.dash.dash-hell, Umschalter .modus-wahl oben) ===== */
.modus-wahl { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--d-line); background: transparent; color: var(--d-ink2); cursor: pointer; font: inherit; font-size: .85rem; line-height: 1; }
.modus-wahl i { position: relative; width: 2.1rem; height: 1.15rem; border-radius: 999px; background: #2b3a48; transition: background .25s; }
.modus-wahl i::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .85rem; height: .85rem; border-radius: 50%; background: #e8eef3; transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s; }
.modus-wahl[aria-checked="true"] i { background: #f2c94c; } .modus-wahl[aria-checked="true"] i::after { transform: translateX(.95rem); background: #fff; }
.modus-wahl .mw-d, .modus-wahl .mw-h { opacity: .55; transition: opacity .2s; } .modus-wahl[aria-checked="false"] .mw-d, .modus-wahl[aria-checked="true"] .mw-h { opacity: 1; }
.modus-wahl:hover { border-color: var(--d-verein); }
.modus-wahl:focus-visible { outline: 2px solid var(--d-verein); outline-offset: 2px; }
@media print { .modus-wahl { display: none; } }
.dash.dash-modus-wechsel, .dash.dash-modus-wechsel * { transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease !important; }
.dash.dash-hell {
  --d-page: #eef3f0; --d-card: #ffffff; --d-line: #e1e8e4; --d-axis: #cfd8d3;
  --d-ink: #17201b; --d-ink2: #4f5b55; --d-muted: #7a8680;
  --d-verein: #2f9f2a; --d-alle: #c5d0ca; --d-blau: #2a78d6; --d-ref: #8f9a95;
  --amp-gruen: #2f9f2a; --amp-gelb: #c08d00; --amp-rot: #d1242f;
  box-shadow: 0 1px 3px rgba(23,32,27,.06);
}
.dash.dash-hell .modus-wahl i { background: #f2c94c; }
.dash.dash-hell .bz-label { fill: #3d4a44; stroke: rgba(255,255,255,.85); }
.dash.dash-hell .bz a:hover path { stroke: #17201b; }
.dash.dash-hell .bz path.bz-fill { stroke: #ffffff; } .dash.dash-hell .bz a:hover path.bz-fill { stroke: #17201b; }
.dash.dash-hell .vd-saeulen .s-bar.s-nach { fill: #6cbf62; }
.dash.dash-hell .seb-vergleich { background: rgba(122,95,208,.07); border-color: rgba(122,95,208,.3); }
.dash.dash-hell .seb-tbl .seb-spalte { color: #5b3fa8; }
.dash.dash-hell .vf-falt { border-color: #dfe5e2; background: #fff; color: #56615b; }
.dash.dash-hell .profil-story .vd-story-nav { border: 1px solid var(--d-line); }
.dash.dash-hell .profil-vj { color: #a06a00 !important; }
.dash.dash-hell .seit-wahl > a.on, .dash.dash-hell .seit-wahl details.on > summary { background: #17201b; color: #fff; border-color: #17201b; }
.dash.dash-hell .profil-toggle::before { background: #17201b; }
.dash.dash-hell .profil-toggle a.on { color: #fff; }
.dash.dash-hell .profil-toggle { background: #f1f5f3; }

/* ===== Feedback-Schleife: Fragebogen (öffentlich) ===== */
.fb-kopf { padding-bottom: .4rem; }
.fb-kicker { margin: 0 0 .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--whv); }
.fb-hallo { font-weight: 600; margin-bottom: .3rem; }
.fb-frage { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.1rem 0 .9rem; min-width: 0; }
.fb-frage legend { font-weight: 600; padding: 0; margin-bottom: .35rem; float: left; width: 100%; }
.fb-frage legend + * { clear: both; }
.fb-frage .hint { color: var(--muted); font-size: .88rem; margin: -.15rem 0 .5rem; clear: both; }
.fb-frage textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .55rem .65rem; border: 1px solid #b9c6bb; border-radius: 8px; min-height: 5rem; resize: vertical; clear: both; display: block; }
.fb-frage.has-err textarea, .fb-frage.has-err .fb-sterne label { border-color: var(--err); }
.fb-frage .thema:first-of-type { border-top: 0; padding-top: .2rem; }
.fb-sterne { display: inline-flex; flex-direction: row-reverse; gap: .1rem; clear: both; }
.fb-sterne input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fb-sterne label { font-size: 2.5rem; line-height: 1; color: #d3ddd5; cursor: pointer; padding: 0 .12rem; min-width: 44px; text-align: center; transition: color .12s, transform .12s; }
.fb-sterne input:checked ~ label, .fb-sterne label:hover, .fb-sterne label:hover ~ label { color: #f2b01e; }
.fb-sterne label:hover { transform: scale(1.12); }
.fb-sterne input:focus-visible + label { outline: 2px solid var(--whv-dark); outline-offset: 2px; border-radius: 6px; }
.fb-skala { display: flex; justify-content: space-between; width: 15.5rem; max-width: 100%; margin: .1rem 0 0; }
.seg.seg-6 { grid-template-columns: repeat(6, 1fr); }
.seg.seg-6 span { font-size: .8rem; }
.seg .seg-x span { color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .seg.seg-6 { grid-template-columns: repeat(3, 1fr); }
  .seg.seg-6 label:nth-child(4) { border-left: 0; }
  .seg.seg-6 label:nth-child(n+4) { border-top: 1px solid #b9c6bb; }
}
.fb-danke { text-align: center; padding: 2rem 1.2rem; }
.fb-danke-icon { width: 3.4rem; height: 3.4rem; line-height: 3.4rem; margin: 0 auto .6rem; border-radius: 50%; background: var(--whv); color: #fff; font-size: 1.8rem; font-weight: 700; }
.fb-vorschau { max-width: 760px; }

/* ===== Feedback-Schleife: Admin ===== */
.fb-schritte { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; }
.fb-schritte > li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); position: relative; }
.fb-schritte > li:first-child { border-top: 0; }
.fb-schritte p { margin: .15rem 0 .45rem; }
.fb-nr { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #eef1ee; color: var(--muted); border: 2px solid var(--line); }
.fb-schritte li.fertig .fb-nr { background: var(--whv); border-color: var(--whv); color: #fff; }
.fb-schritte li.fertig .fb-nr::after { content: ''; }
.fb-schritte li.jetzt .fb-nr { background: #fff; border-color: var(--whv-dark); color: var(--whv-dark); box-shadow: 0 0 0 4px var(--whv-light); }
.fb-einst summary { cursor: pointer; font-size: .9rem; color: var(--whv-dark); }
.fb-einst-form { margin-top: .6rem; max-width: 34rem; }
.fb-kurz pre { white-space: pre-wrap; font: inherit; font-size: .88rem; background: #f4f7f4; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin: 0 0 .8rem; }
.fb-auswertung { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem 1.6rem; }
.fb-a { border-top: 1px solid var(--line); padding-top: .8rem; min-width: 0; }
.fb-a-themen, .fb-a-text { grid-column: 1 / -1; }
.fb-a-t { font-size: 1rem; margin: 0; }
.fb-a-n { margin: .1rem 0 .5rem; }
.fb-mittel { margin: 0 0 .4rem; font-size: 1.05rem; display: flex; align-items: center; gap: .45rem; }
.fb-mittel strong { font-size: 1.8rem; color: var(--whv-dark); }
.fb-sterne-anz { position: relative; display: inline-block; color: #d3ddd5; letter-spacing: .08em; font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.fb-sterne-anz span:last-child { position: absolute; left: 0; top: 0; overflow: hidden; color: #f2b01e; }
.fb-vert { list-style: none; margin: 0; padding: 0; }
.fb-vert li { display: grid; grid-template-columns: 2.6rem 1fr 3.2rem; gap: .6rem; align-items: center; padding: .12rem 0; font-size: .88rem; }
.fb-vert-text li { grid-template-columns: minmax(6rem, 9rem) 1fr 5.5rem; }
.fb-themen td:nth-child(2) { width: 3rem; }
.fb-texte { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.fb-texte li { background: #f4f7f4; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; line-height: 1.45; }
.fb-fragen { list-style: decimal; margin: .4rem 0 1rem; padding-left: 1.4rem; }
.fb-fragen > li { padding: .55rem 0; border-top: 1px solid var(--line); }
.fb-fragen > li:first-child { border-top: 0; }
.fb-fragen > li.fb-aus > .fb-frage-kopf strong { color: var(--muted); }
.fb-frage-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fb-bearb summary { cursor: pointer; color: var(--whv-dark); margin-top: .2rem; }
.fb-neu summary { list-style: none; display: inline-flex; }
.fb-neu summary::-webkit-details-marker { display: none; }
.fb-frage-form { margin-top: .6rem; max-width: 40rem; background: #f8faf8; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }

/* ===== Anmeldungen: Anwesenheit (vor Ort / No-Show / kurzfristig abgesagt) per Mehrfachauswahl ===== */
.anm-wahl { width: 2rem; text-align: center; }
.anm-wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--whv-dark); cursor: pointer; }
.tbl tr.anm-an td { background: #eef6ec; }
.anm-anw-bar { position: sticky; top: .5rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end;
  margin: -.2rem 0 .6rem; padding: .45rem .6rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.anm-anw-bar.an { border-color: var(--whv); box-shadow: 0 6px 18px rgba(16, 60, 30, .12); }
.anm-anw-bar #anm-anzahl { margin-right: auto; color: var(--muted); }
.anm-anw-bar.an #anm-anzahl { color: var(--whv-dark); font-weight: 600; }
.anm-anw-bar button:disabled { opacity: .45; cursor: not-allowed; }
.anm-anw-bar .anm-b-anwesend { background: #2f8f2a; border-color: #2f8f2a; }
.anm-anw-bar .anm-b-no_show { background: #b42335; border-color: #b42335; }
.anm-anw-bar .anm-b-kurzfristig_abgesagt { background: #a8660b; border-color: #a8660b; }
.anm-anw-leiste { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin: 0 0 1rem; padding: .55rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.anm-anw-k { text-decoration: none; color: inherit; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); }
.anm-anw-k b { font-variant-numeric: tabular-nums; }
.anm-anw-k.aktiv, .anm-anw-k:hover { border-color: var(--whv-dark); background: var(--whv-light); }
.anm-anw-anwesend b { color: #2f8f2a; } .anm-anw-no_show b { color: #b42335; } .anm-anw-kurzfristig_abgesagt b { color: #a8660b; }
.anm-ul-btn { margin-left: auto; }

/* ===== Anmeldungen: Import per Liste ===== */
.anm-import { width: min(980px, 96vw); }
.anm-import textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.anm-import-bsp { background: #f4f7f4; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font-size: .8rem; overflow-x: auto; margin: 0 0 .8rem; }
.anm-import-vorschau { max-height: 52vh; overflow: auto; }
.anm-import-vorschau tr.imp-fehler td, .anm-import-vorschau tr.imp-dublette td { color: var(--muted); }
.anm-import-vorlage { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: 0 0 .5rem; }
.anm-import-werte { margin: 0 0 .8rem; } .anm-import-werte summary { cursor: pointer; color: var(--whv-dark); } .anm-import-werte p { margin: .3rem 0 0; }
.ul-dialog { width: min(420px, 94vw); }
.ul-sort { border: 0; padding: 0; margin: 0; display: grid; gap: .1rem; } .ul-sort legend { font-weight: 600; margin-bottom: .3rem; }
.ul-sort .check { min-height: 36px; align-items: center; }
/* Umsortieren ohne Neuladen: kurzes Aufleuchten des verschobenen Eintrags */
.sort-blitz { animation: sort-blitz .9s ease-out; }
@keyframes sort-blitz { from { background-color: var(--whv-light); } to { background-color: transparent; } }
/* Themen pflegen: Liste mit ↑/↓ */
.th-liste { list-style: none; margin: 0; padding: 0; }
.th-liste > li { position: relative; border-top: 1px solid var(--line); padding: .8rem 0 0; margin-top: .8rem; border-radius: 6px; }
.th-liste .th-sort { position: absolute; right: 0; top: .6rem; display: flex; gap: .3rem; z-index: 1; }
.th-liste .th-sort form { margin: 0; }
.th-liste > li > form .field:first-child { padding-right: 5.5rem; }
.inh-mail-zeile { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: .6rem 0; }
/* Themengewichtung: Export aus dem Popup */
.tg-kopf-knoepfe { gap: .4rem; flex-wrap: nowrap; }
.tg-export { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: flex-end; margin: 0 0 .8rem; padding: .7rem .9rem; background: #f4f7f4; border: 1px solid var(--line); border-radius: 10px; }
.tg-export fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: .2rem 1rem; flex-wrap: wrap; align-items: center; }
.tg-export legend { font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.tg-export .check { min-height: 32px; align-items: center; }
.tg-export .btn { margin-left: auto; }

/* ===== Öffentliche Übersicht der Austauschformate ===== */
.aus-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.aus-karte { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.aus-karte h2 { font-size: 1.15rem; margin: 0; }
.aus-karte .btn { align-self: flex-start; margin-top: auto; }
.aus-wann { margin: 0; } .aus-text { margin: .2rem 0 .6rem; color: var(--muted); }
.aus-format { margin: 0; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; background: var(--whv-light); color: var(--whv-dark); }
.aus-format.aus-online { background: #e4eefb; color: #1d4f8f; } .aus-format.aus-hybrid { background: #f4ecdc; color: #7a5410; }
.va-link { margin: .2rem 0 1rem; padding: .7rem .8rem; background: #f4f7f4; border: 1px solid var(--line); border-radius: 10px; }
.va-link-feld { width: 100%; box-sizing: border-box; font-size: .82rem; }

/* ===== Formatierter Text: Editor (Admin) und Anzeige ===== */
.rt { border: 1px solid #b9c6bb; border-radius: 8px; background: #fff; overflow: hidden; }
.rt:focus-within { border-color: var(--whv-dark); box-shadow: 0 0 0 3px var(--whv-light); }
.rt-leiste { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; padding: .35rem .4rem; background: #f4f7f4; border-bottom: 1px solid var(--line); }
.rt-knopf { font: inherit; font-size: .85rem; min-width: 2rem; height: 2rem; padding: 0 .45rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text, #1b2620); cursor: pointer; }
.rt-knopf:hover, .rt-knopf.an { background: #fff; border-color: #c9d4cb; }
.rt-knopf.an { color: var(--whv-dark); }
.rt-trenner { width: 1px; height: 1.4rem; background: #cfd9d1; margin: 0 .2rem; }
.rt-farben { display: inline-flex; gap: .25rem; align-items: center; }
.rt-farbe { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d4cb; cursor: pointer; padding: 0; }
.rt-farbe:hover { transform: scale(1.15); }
.rt-feld { min-height: 11rem; max-height: 32rem; overflow-y: auto; padding: .7rem .8rem; line-height: 1.55; outline: none; }
.rt-feld p, .event-text p { margin: .5rem 0; }
.rt-feld h3, .event-text h3 { font-size: 1.08rem; margin: .9rem 0 .3rem; color: var(--whv-dark); }
.rt-feld ul, .rt-feld ol, .event-text ul, .event-text ol { margin: .4rem 0; padding-left: 1.4rem; }
.rt-feld li, .event-text li { margin: .15rem 0; }
.event-text a { color: var(--whv-dark); }

/* ===== Externe Referent:innen ===== */
.ref-eintrag { border-top: 1px solid var(--line); padding: .6rem 0; }
.ref-eintrag:first-of-type { border-top: 0; }
.ref-form { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; }
.ref-form .check { min-height: 30px; align-items: center; }
.ref-neu summary { list-style: none; display: inline-flex; margin-top: .4rem; } .ref-neu summary::-webkit-details-marker { display: none; }
.ref-kopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ref-tabs { margin: 0 0 1rem; flex-wrap: wrap; }
.inh-ersetzen { margin: 0; } .inh-ersetzen label { cursor: pointer; margin: 0; }

/* ===== To-dos auf der Übersicht ===== */
.todo-karte { margin: 0 0 1.1rem; }
.todo-neu { display: flex; gap: .5rem; margin: .4rem 0 .8rem; }
.todo-neu .inp { flex: 1; min-width: 0; }
.todo-liste { list-style: none; margin: 0; padding: 0; }
.todo { display: flex; align-items: center; gap: .55rem; padding: .45rem .3rem; border-top: 1px solid var(--line); background: var(--card, #fff); border-radius: 6px; position: relative; }
.todo-liste > .todo:first-child { border-top: 0; }
.todo-griff { cursor: grab; touch-action: none; user-select: none; color: #9aa79f; font-size: 1.1rem; letter-spacing: -2px; padding: .3rem .2rem; border-radius: 4px; line-height: 1; }
.todo-griff:hover, .todo-griff:focus-visible { color: var(--whv-dark); background: var(--whv-light); outline: none; }
.todo-zieht { z-index: 5; box-shadow: 0 8px 22px rgba(16, 60, 30, .18); cursor: grabbing; }
.todo-zieht .todo-griff { cursor: grabbing; }
.todo-haken-form { margin: 0; display: flex; }
.todo-haken { width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid #9aa79f; background: #fff; cursor: pointer; padding: 0; color: #fff; font-size: .85rem; line-height: 1; flex: none; }
.todo-haken:hover { border-color: var(--whv); background: var(--whv-light); }
.todo-fertig .todo-haken { background: var(--whv); border-color: var(--whv); }
.todo-text { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .15rem 0; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: .1rem; }
.todo-text:hover .todo-titel { color: var(--whv-dark); text-decoration: underline; }
.todo-meta { font-size: .8rem; color: var(--muted); }
.todo-ueber { color: var(--err); font-weight: 600; }
.todo-fertig .todo-titel { text-decoration: line-through; color: var(--muted); }
.todo-erledigt { margin-top: .6rem; } .todo-erledigt summary { cursor: pointer; color: var(--muted); }
.todo-leer { margin: .2rem 0; }
.todo-dialog { width: min(620px, 94vw); }

/* ===== Vereinsevaluation: Rücklauf ===== */
.rl-bezirke { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.rl-bezirke a { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr 8rem; gap: .8rem; align-items: center; padding: .3rem .4rem; border-radius: 6px; text-decoration: none; color: inherit; }
.rl-bezirke a:hover, .rl-bezirke a.on { background: var(--whv-light); }
.rl-bezirke a.on span:first-child { font-weight: 700; color: var(--whv-dark); }
.rl-erinnerung-zeile { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: 0 0 .8rem; }
.rl-dialog { width: min(860px, 96vw); }
.rl-empf { max-height: 34vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin: 0 0 .8rem; background: #f8faf8; }
.rl-verein { padding: .35rem 0; border-top: 1px solid var(--line); } .rl-verein:first-of-type { border-top: 0; }
.rl-verein .check { margin: .15rem 0 0 .2rem; min-height: 28px; align-items: center; }
