* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; background: #f7f8fa; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding: 1rem 1.25rem; max-width: 1400px; margin: 0 auto; width: 100%; }

header.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.brand { font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.brand em { font-style: normal; color: #67A839; font-weight: 600; }
.brand i { color: #E47B27; font-size: 1.4rem; }
.meta { display: flex; gap: 1rem; font-size: 0.9rem; color: #4b5563; flex-wrap: wrap; }
.meta i { margin-right: 0.25rem; }

footer { font-size: 0.8rem; color: #6b7280; padding: 0.75rem 1.25rem; border-top: 1px solid #e5e7eb; background: #fff; text-align: center; }

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
}
.control-block { display: flex; flex-direction: column; gap: 0.5rem; }
.control-label { font-size: 0.85rem; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 0.35rem; }

.plz-input { display: flex; gap: 0.5rem; }
.plz-input input { flex: 1; padding: 0.5rem 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 1rem; }
.plz-input button { background: #67A839; color: #fff; border: none; padding: 0.5rem 0.85rem; border-radius: 4px; cursor: pointer; font-weight: 500; }
.plz-input button:hover { background: #538a2c; }

.chips { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.chip { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.85rem; cursor: pointer; }
.chip.active { background: #67A839; color: #fff; border-color: #67A839; }

.slider-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.slider-row input[type=range] { flex: 1; min-width: 100px; }
.slider-val { font-size: 0.85rem; color: #4b5563; min-width: 90px; text-align: right; }

.checkbox-row { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.checkbox-row label { display: flex; align-items: center; gap: 0.4rem; }

.map-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
#map { height: 640px; width: 100%; }

.legende {
  background: rgba(255,255,255,0.95); padding: 0.6rem 0.8rem; border-radius: 6px;
  border: 1px solid #d1d5db; font-size: 0.85rem; line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.legende-row { display: flex; align-items: center; gap: 0.4rem; }
.legende-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.2); }

.ergebnis {
  margin-top: 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 1rem;
}
.ergebnis.hidden { display: none; }
.ergebnis h2 { margin: 0 0 0.75rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.4rem; }
.erg-korrektur { padding: 0.7rem; background: #f9fafb; border-left: 4px solid #E47B27; border-radius: 4px; margin-bottom: 0.85rem; }
.erg-korrektur em { color: #6b7280; margin-left: 0.5rem; }
.ampel-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 0.4rem; vertical-align: middle; }
.erg-tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.erg-tabelle th, .erg-tabelle td { padding: 0.45rem 0.6rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
.erg-tabelle th { background: #f3f4f6; font-weight: 600; }

.popup-chart { width: 220px; height: 80px; display: block; margin-top: 0.4rem; }
.popup-content { font-size: 0.9rem; }
.popup-content strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.popup-content .row { display: flex; justify-content: space-between; padding: 0.1rem 0; }

/* Fallen-Quadrate als Leaflet divIcon */
.fallen-marker { background: transparent; border: none; }
.fallen-square {
  width: 14px;
  height: 14px;
  border: 1.5px solid #333;
  background: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.fallen-grau    { background: #aaaaaa; }
.fallen-gruen   { background: #67A839; }
.fallen-gelb    { background: #E8B931; }
.fallen-orange  { background: #E47B27; }
.fallen-rot     { background: #C8312C; }

.legende-square {
  width: 12px; height: 12px; display: inline-block;
  border: 1.5px solid #333; vertical-align: middle;
}
.legende { max-width: 240px; }

/* Lichtfalle = Beifang: graue, gestrichelte Raute statt Fang-Ampel-Quadrat. */
.fallen-beifang {
  width: 13px; height: 13px;
  background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 3px, #cbd5e1 3px, #cbd5e1 6px);
  border: 1.5px dashed #6b7280;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.legende-beifang {
  width: 12px; height: 12px; display: inline-block; vertical-align: middle;
  background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 3px, #cbd5e1 3px, #cbd5e1 6px);
  border: 1.5px dashed #6b7280;
}
.beifang-label { color: #b45309; font-weight: 600; }

.fang-legende { max-width: 290px; }
.fang-legende-hinweis {
  margin-top: 0.35rem; font-size: 0.76rem; color: #4b5563; line-height: 1.35;
}

.heatmap-legende { max-width: 280px; }
.heatmap-bar {
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  background: linear-gradient(to right,
    #2c7bb6 0%,
    #67A839 25%,
    #E8B931 50%,
    #E47B27 70%,
    #C8312C 85%,
    #8B1A1A 100%);
  margin-top: 0.3rem;
}
.heatmap-skala {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: #4b5563;
  margin-top: 0.15rem;
}
.heatmap-skala-titel {
  font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem;
}

/* Falle-Detail-Panel */
.falle-detail {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.falle-detail.hidden { display: none; }
.falle-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.falle-detail-head h2 {
  margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 0.4rem;
}
.falle-detail-head button {
  background: transparent; border: none; cursor: pointer; font-size: 1.2rem; color: #6b7280;
}
.falle-detail-head button:hover { color: #C8312C; }

.falle-detail-stamm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.fallen-legend-box {
  display: inline-block; width: 12px; height: 12px;
  border: 1.5px solid #333; vertical-align: middle; margin: 0 0.25rem;
}

.falle-detail-chartwrap {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 0.85rem;
}
.falle-detail-chartwrap canvas {
  width: 100%; height: auto; max-width: 100%; display: block;
}
.falle-detail-legende {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: #4b5563; margin-top: 0.4rem;
}
.lg-line, .lg-bar {
  display: inline-block; vertical-align: middle; margin-right: 0.3rem;
}
.lg-line { width: 18px; height: 2px; background: #1f2937; }
.lg-bar  { width: 10px; height: 10px; }
.lg-male   { background: #1f2937; }
.lg-female {
  background: #C8312C;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.6) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 75%, transparent 75%);
  background-size: 6px 6px;
}

.falle-detail-region, .falle-detail-empfehlung {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #f9fafb;
  border-left: 4px solid #67A839;
  border-radius: 4px;
  font-size: 0.92rem;
}
.falle-detail-empfehlung { border-left-color: #E47B27; }
.falle-detail-region h3, .falle-detail-empfehlung h3 {
  margin: 0 0 0.25rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.35rem;
}
.falle-detail-empfehlung p { margin: 0; }

/* Layer-Control etwas freundlicher */
.leaflet-control-layers-expanded { font-size: 0.9rem; }

/* Navigation im Header */
.topnav { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.topnav a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: #374151; text-decoration: none;
  padding: 0.35rem 0.7rem; border-radius: 4px;
  font-size: 0.92rem; font-weight: 500;
  border: 1px solid transparent;
}
.topnav a:hover { background: #f3f4f6; border-color: #e5e7eb; }
.topnav a.active { background: #67A839; color: #fff; }
.topnav a.active i { color: #fff; }

/* Flash-Meldungen */
.flash-stack { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.flash {
  padding: 0.6rem 0.85rem; border-radius: 4px;
  border-left: 4px solid #67A839;
  background: #f3faec;
  font-size: 0.92rem;
}
.flash-error { background: #fef2f2; border-left-color: #C8312C; color: #7f1d1d; }
.flash-success { background: #f3faec; border-left-color: #67A839; color: #2d4a18; }

/* Karten/Listen für Fallen-Verwaltung */
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.page-head h1 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 0.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 1px solid #d1d5db; background: #fff; color: #1f2937;
  padding: 0.45rem 0.8rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #f3f4f6; }
.btn-primary { background: #67A839; color: #fff; border-color: #67A839; }
.btn-primary:hover { background: #538a2c; border-color: #538a2c; }
.btn-secondary { background: #E47B27; color: #fff; border-color: #E47B27; }
.btn-secondary:hover { background: #c66318; border-color: #c66318; }
.btn-link { padding: 0.2rem 0.4rem; font-size: 0.85rem; }

.fallen-tabelle {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden;
  font-size: 0.92rem;
}
.fallen-tabelle th, .fallen-tabelle td {
  padding: 0.5rem 0.7rem; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle;
}
.fallen-tabelle th { background: #f3f4f6; font-weight: 600; }
.fallen-tabelle tr:last-child td { border-bottom: none; }
.fallen-tabelle .actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ampel-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: #f3f4f6; font-size: 0.82rem;
}
.ampel-pill .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }

/* Formular-Layout */
.form-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 1.1rem 1.25rem; max-width: 700px;
}
.form-card h1 { margin: 0 0 0.85rem; font-size: 1.15rem; display: flex; align-items: center; gap: 0.4rem; }
.form-card .hint { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: #374151; }
.form-row .sub { font-size: 0.8rem; color: #6b7280; font-weight: 400; }
.form-row input[type=text],
.form-row input[type=number],
.form-row input[type=date],
.form-row select,
.form-row textarea {
  padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.95rem;
  font-family: inherit;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }
.error-box {
  background: #fef2f2; border-left: 4px solid #C8312C; padding: 0.55rem 0.8rem;
  border-radius: 4px; color: #7f1d1d; font-size: 0.9rem; margin-bottom: 0.85rem;
}
.error-box ul { margin: 0.15rem 0 0; padding-left: 1.1rem; }

/* Verlaufs-Seite */
.detail-stamm {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.35rem 1rem; font-size: 0.92rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 0.85rem 1rem; margin-bottom: 1rem;
}
.verlauf-tabelle {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden;
  font-size: 0.92rem;
}
.verlauf-tabelle th, .verlauf-tabelle td {
  padding: 0.5rem 0.7rem; border-bottom: 1px solid #e5e7eb; text-align: left;
}
.verlauf-tabelle th { background: #f3f4f6; font-weight: 600; }
.verlauf-tabelle tr:last-child td { border-bottom: none; }
.verlauf-chartwrap {
  background: #fafafa; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 0.75rem; margin: 1rem 0;
}
.verlauf-chartwrap canvas { width: 100%; height: auto; max-width: 100%; display: block; }

/* Dashboard */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 0.7rem 0.9rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.kpi-label { font-size: 0.78rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi-value { font-size: 1.25rem; font-weight: 600; color: #1f2937; margin-top: 0.2rem; }
.kpi-sub { font-size: 0.78rem; color: #6b7280; margin-top: 0.1rem; }

.dash-filter {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 0.75rem 0.9rem; margin-bottom: 1rem;
  align-items: flex-end;
}
.dash-filter label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: #374151; }
.dash-filter select {
  padding: 0.4rem 0.55rem; border: 1px solid #d1d5db; border-radius: 4px;
  font-size: 0.92rem; background: #fff; min-width: 140px;
}

.dash-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 0.9rem 1rem; margin-bottom: 1rem;
}
.dash-card h2 {
  margin: 0 0 0.6rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.4rem;
}
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.dash-card-hint { font-size: 0.82rem; color: #6b7280; }

.table-scroll { width: 100%; overflow-x: auto; }
.dash-tabelle th { user-select: none; white-space: nowrap; }
.dash-tabelle th.sort-asc::after  { content: " ▲"; color: #67A839; font-size: 0.7em; }
.dash-tabelle th.sort-desc::after { content: " ▼"; color: #67A839; font-size: 0.7em; }
.dash-tabelle tr:hover td { background: #fafbfc; }
.dash-tabelle .sub { font-size: 0.78rem; color: #6b7280; font-weight: 400; }

.trend { font-weight: 600; font-size: 1rem; }
.trend-up   { color: #C8312C; }
.trend-down { color: #2c7bb6; }
.trend-eq   { color: #6b7280; }
.trend-new  { color: #9ca3af; }

.dash-kurven-select {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem; font-size: 0.85rem;
}
.dash-falle-check { display: inline-flex; gap: 0.3rem; align-items: center; }
.dash-falle-check em { color: #6b7280; font-style: normal; font-size: 0.78rem; }

.dash-chart-wrap {
  position: relative; width: 100%; height: 340px;
  background: #fafafa; border: 1px solid #e5e7eb; border-radius: 4px;
  padding: 0.5rem;
}
.dash-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ===================== Ausbringungs-Dispo ===================== */
.dispo-head { margin: 0.5rem 0 0.75rem; }
.dispo-sub { color: #555; max-width: 70ch; line-height: 1.45; margin: 0.25rem 0 0; }

.dispo-legende {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin: 0.5rem 0 1rem; font-size: 0.85rem; color: #444;
}
.dispo-legende span { display: inline-flex; align-items: center; gap: 0.4rem; }

.konf-badge {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: #fff; letter-spacing: .02em;
}
.konf-hoch   { background: #2e7d32; }
.konf-mittel { background: #E8B931; color: #333; }
.konf-modell { background: #9aa0a6; }

.dispo-tablewrap { overflow-x: auto; }
.dispo-tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dispo-tabelle thead th {
  text-align: left; padding: 0.5rem 0.6rem; border-bottom: 2px solid #e5e7eb;
  color: #444; font-weight: 600; white-space: nowrap;
}
.dispo-tabelle th.num, .dispo-tabelle td.num { text-align: right; }
.dispo-row > td {
  padding: 0.55rem 0.6rem; border-bottom: 1px solid #eef0f2; vertical-align: top;
}
.dispo-row { cursor: pointer; }
.dispo-row:hover { background: #f7faf3; }
.dispo-row.offen { background: #eef5e6; }
.dispo-toggle { color: #888; width: 1.4rem; }
.dispo-row.offen .dispo-toggle i { transform: rotate(90deg); }
.dispo-toggle i { display: inline-block; transition: transform .15s; }

.dispo-zone { font-weight: 600; }
.dispo-meta { display: block; font-weight: 400; font-size: 0.76rem; color: #888; }
.dispo-fenster { color: #888; font-size: 0.82rem; }
.dispo-iv { color: #E47B27; font-size: 0.78rem; font-weight: 600; }
.dispo-warm {
  display: inline-block; background: #fde8d4; color: #b3590f;
  border-radius: 3px; padding: 0 0.3rem; font-size: 0.72rem; font-weight: 600;
}
.vorlauf-jetzt { color: #C8312C; font-weight: 700; }
.vorlauf-bald  { color: #E47B27; font-weight: 600; }
.dispo-loading { padding: 1rem 0.6rem; color: #888; }

.dispo-detail > td { padding: 0 0.6rem 1rem; background: #fbfdf8; }
.dispo-detailgrid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 1rem; align-items: start; padding-top: 0.75rem;
}
.dispo-chartwrap { position: relative; height: 240px; min-width: 0; }
.dispo-facts { font-size: 0.85rem; }
.dispo-facts > div {
  display: flex; flex-direction: column; padding: 0.3rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.dispo-facts span { color: #888; font-size: 0.76rem; }
.dispo-facts b { color: #222; }
@media (max-width: 720px) {
  .dispo-detailgrid { grid-template-columns: 1fr; }
}

/* --- Adminbereich (Benutzerverwaltung, Paket 1) ------------------------- */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.admin-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid #e3e6ea; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.admin-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.07); border-color: #cfd4da; }
.admin-card i { font-size: 1.7rem; color: #2f7d4f; margin-top: .1rem; }
.admin-card h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.admin-card p { margin: 0; color: #5b636c; font-size: .9rem; }
.admin-card--soon { opacity: .7; cursor: default; }
.admin-card .soon { font-size: .7rem; background: #eef1f4; color: #7a828b; padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; margin-left: .3rem; }
.admin-form { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; }
.admin-form label { display: flex; flex-direction: column; font-size: .82rem; color: #4b5560; gap: .25rem; }
.admin-form input, .admin-form select { padding: .45rem .55rem; border: 1px solid #cfd4da; border-radius: 8px; font-size: .92rem; }
.inline-form { display: inline-flex; gap: .3rem; align-items: center; margin: 0; }
.inline-form input { padding: .35rem .45rem; border: 1px solid #cfd4da; border-radius: 7px; font-size: .85rem; width: 9rem; }
.inline-form select { padding: .3rem .4rem; border: 1px solid #cfd4da; border-radius: 7px; }

/* --- ZG-Praxis-Cockpit (Paket 2) --------------------------------------- */
.praxis-liste { border: 1px solid #e3e6ea; border-radius: 12px; overflow: hidden; margin-top: .8rem; }
.praxis-kopf, .praxis-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; }
.praxis-kopf { background: #f4f6f8; font-size: .78rem; font-weight: 600; color: #5b636c; text-transform: uppercase; letter-spacing: .02em; }
.praxis-row { border-top: 1px solid #eef1f4; margin: 0; }
.praxis-row.ist-gepflegt { background: #f6fbf7; }
.praxis-row:hover { background: #f0f5ff; }
.p-name { flex: 1 1 12rem; min-width: 10rem; }
.p-name .sub { margin-left: .35rem; color: #8a929b; font-size: .8rem; }
.p-badge { margin-left: .4rem; font-size: .68rem; background: #2f7d4f; color: #fff; padding: .08rem .4rem; border-radius: 999px; vertical-align: middle; }
.p-bonus { flex: 0 0 5rem; width: 5rem; padding: .35rem .4rem; border: 1px solid #cfd4da; border-radius: 7px; }
.p-flag { flex: 0 0 5rem; text-align: center; }
.p-modus { flex: 0 0 11rem; padding: .35rem .4rem; border: 1px solid #cfd4da; border-radius: 7px; }
.p-notiz { flex: 2 1 16rem; min-width: 12rem; padding: .35rem .5rem; border: 1px solid #cfd4da; border-radius: 7px; }
.p-akt { flex: 0 0 auto; display: inline-flex; gap: .2rem; white-space: nowrap; }
@media (max-width: 760px) {
  .praxis-kopf { display: none; }
  .praxis-row { flex-wrap: wrap; }
  .p-name { flex: 1 1 100%; }
}

/* --- Nutzungs-Analytik --------------------------------------------------- */
.an-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.an-name { flex: 0 0 15rem; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bar { flex: 1; background: #eef1f4; border-radius: 6px; height: 14px; overflow: hidden; }
.an-bar > span { display: block; height: 100%; background: #2f7d4f; }
.an-n { flex: 0 0 3rem; text-align: right; font-variant-numeric: tabular-nums; color: #5b636c; }
@media (max-width: 760px) { .an-name { flex-basis: 8rem; } }
