/* Ergänzungen Version 2: Abrechnungs-Hinweis, Kennzahlen, Rückvergütungen, Verlauf, Protokoll-Archiv */

body { background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.app-breite { max-width: 1720px; padding-left: 24px; padding-right: 24px; }
.app-titel, .app-titel:hover { color: #fff; font-size: 1.5rem; text-decoration: none; }
.app-nav .btn { margin-left: 4px; }
.app-nav .btn.active { box-shadow: inset 0 -3px 0 #fff; }
.klein { font-size: .875rem; }
.abschnitt { margin-top: 2.5rem; }
.tabelle-rahmen { overflow-x: auto; }
.daten-tabelle td, .daten-tabelle th { vertical-align: middle; }
.daten-tabelle .aktionen { white-space: nowrap; }
.betrag { white-space: nowrap; }
.betrag-minus { color: #c62828; font-weight: 600; }
.bg-rv { background: #b36b00; }

/* Hinweisband Test/Lokal */
.umgebung-band { padding: 6px 16px; text-align: center; font-weight: 600; letter-spacing: .02em; }
.umgebung-demo { background: #ffd54f; color: #4a3500; }
.umgebung-lokal { background: #b2dfdb; color: #00332e; }

/* Abrechnungs-Hinweis */
.abrechnen-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #c62828; color: #fff; border-radius: 8px; padding: 18px 22px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(198, 40, 40, .35);
}
.abrechnen-banner-text { display: flex; align-items: center; gap: 16px; font-size: 1.2rem; line-height: 1.35; }
.abrechnen-banner-zahlen { display: block; font-size: 1rem; opacity: .95; }
.abrechnen-symbol { font-size: 2.4rem; line-height: 1; display: inline-block; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .abrechnen-symbol { animation: none; } }

.zeile-alarm > td { background: #fff1f1 !important; }
.zeile-alarm > td:first-child { box-shadow: inset 5px 0 0 #d32f2f; }
.badge-abrechnen, a.badge-abrechnen {
  display: inline-block; background: #d32f2f; color: #fff; border-radius: 4px; padding: 2px 8px;
  font-weight: 700; white-space: nowrap; text-decoration: none;
}
a.badge-abrechnen:hover { background: #b71c1c; color: #fff; }
.abrechnen-tage { display: block; font-size: .8rem; color: #b71c1c; white-space: nowrap; }

.abrechnen-box {
  border: 3px solid #d32f2f; background: #fff5f5; border-radius: 8px; padding: 16px 20px; margin-top: 1.5rem;
}
.abrechnen-box h5 { color: #b71c1c; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.abrechnen-box .abrechnen-symbol { font-size: 1.8rem; }
.abrechnen-tabelle { background: #fff; margin: 10px 0 14px; }
.abrechnen-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }

/* Kennzahlen über der Liste */
.kennzahlen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.kennzahl {
  border: 1px solid #ced4da; background: #f8f9fa; color: #212529; border-radius: 20px; padding: 6px 14px;
  font-size: .95rem; cursor: pointer; text-decoration: none;
}
.kennzahl:hover { background: #e9ecef; color: #212529; text-decoration: none; }
.kennzahl.aktiv { background: #007bff; border-color: #007bff; color: #fff; }
.kennzahl-wert { font-weight: 700; }
.filter-hinweis { margin-left: 8px; }

/* Aufschlag in Prozent */
.pct { display: inline-block; min-width: 4.2em; text-align: right; font-weight: 600; white-space: nowrap; }
.pct-rot { color: #c62828; }
.pct-gelb { color: #b26a00; }
.pct-gruen { color: #2e7d32; }
.pct-leer { color: #6c757d; font-weight: 400; }
.pct-gross { font-size: 1.05rem; margin-left: 12px; padding: 2px 8px; border-radius: 4px; background: #f1f3f5; }

/* Projektdetails */
.projekt-daten dt { font-weight: 600; }
.bemerkung { white-space: normal; }
.kennzahlen-tabelle { width: 100%; max-width: 560px; border-collapse: collapse; margin-left: auto; }
.kennzahlen-tabelle th, .kennzahlen-tabelle td { padding: 6px 10px; border-bottom: 1px solid #e9ecef; }
.kennzahlen-tabelle td { text-align: right; white-space: nowrap; }
.kennzahlen-tabelle .unterzeile th, .kennzahlen-tabelle .unterzeile td { font-size: .9rem; color: #6c757d; padding-left: 28px; }
.kennzahlen-tabelle .summenzeile th, .kennzahlen-tabelle .summenzeile td { font-size: 1.15rem; border-top: 2px solid #343a40; }
.kennzahlen-tabelle .zeile-noch-offen th, .kennzahlen-tabelle .zeile-noch-offen td { color: #b71c1c; background: #fff1f1; }
.haken { color: #2e7d32; font-weight: 700; }

/* Formular Ausgang */
.rv-feld { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.rv-haken { display: flex; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; }
.rv-haken input { margin-top: 5px; transform: scale(1.3); }
.abrechnen-auswahl { border: 1px solid #f5c6cb; background: #fff5f5; border-radius: 6px; padding: 10px 12px; }
.abrechnen-auswahl h6 { font-weight: 700; color: #b71c1c; margin-bottom: 2px; }
.abrechnen-zeile { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; margin: 2px 0; cursor: pointer; }

/* Verlauf */
.verlauf-rahmen { border: 1px solid #e9ecef; border-radius: 8px; padding: 8px; background: #fff; }
.verlauf { width: 100%; height: auto; display: block; font-family: inherit; }
.verlauf .raster { stroke: #e9ecef; stroke-width: 1; }
.verlauf .raster-x { stroke-dasharray: 3 4; }
.verlauf .null-linie { stroke: #495057; stroke-width: 1.5; }
.verlauf .achse { font-size: 12px; fill: #6c757d; }
.verlauf .saldo-plus { fill: rgba(46, 125, 50, .18); }
.verlauf .saldo-minus { fill: rgba(198, 40, 40, .22); }
.verlauf .linie-kosten { fill: none; stroke: #c62828; stroke-width: 2.5; }
.verlauf .linie-einnahmen { fill: none; stroke: #1565c0; stroke-width: 2.5; }
.verlauf .punkt { stroke: #fff; stroke-width: 2; cursor: help; }
.verlauf .punkt-plus { fill: #2e7d32; }
.verlauf .punkt-minus { fill: #c62828; }
.verlauf-legende { display: flex; flex-wrap: wrap; gap: 18px; font-size: .875rem; color: #495057; margin-top: 8px; }
.verlauf-legende .lg::before { content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.lg-kosten::before { background: #c62828; height: 3px !important; }
.lg-einnahmen::before { background: #1565c0; height: 3px !important; }
.lg-plus::before { background: rgba(46, 125, 50, .35); }
.lg-minus::before { background: rgba(198, 40, 40, .4); }

/* Protokoll */
.log-aktion { font-size: .85rem; max-width: 900px; }
.log-aktion > div { max-height: 3.2em; overflow: hidden; word-break: break-word; cursor: pointer; }
.log-aktion.offen > div { max-height: none; }
.archiv-nav { border: 1px solid #e9ecef; border-radius: 8px; padding: 14px 16px; background: #f8f9fa; position: sticky; top: 12px; }
.archiv-nav summary { font-weight: 700; cursor: pointer; margin-top: 6px; }
.archiv-nav ul { list-style: none; padding-left: 14px; margin: 6px 0; }
.archiv-nav li { padding: 2px 0; }
.archiv-nav li.aktiv a { font-weight: 700; }

/* DataTables-Kleinigkeiten */
div.dt-container .dt-search input { min-width: 240px; }

/* ------------------------------------------------------------ Version 2.1: Projektleiter (PL) und Statistik */

/* Knopfleiste je PL über der Liste */
.pl-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.pl-leiste-titel { font-weight: 600; color: #495057; margin-right: 2px; }
.pl-knopf .kennzahl-wert { margin-left: 4px; }

/* Kopf, Auswahl, Kacheln */
.stat-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 6px; }
.stat-auswahlen { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.stat-auswahl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stat-auswahl-titel { font-weight: 600; color: #495057; margin-right: 2px; }
.stat-zeitraum { color: #6c757d; margin-bottom: 18px; }
.stat-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-kachel { border: 1px solid #dee2e6; border-radius: 10px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.stat-kachel-titel { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }
.stat-kachel-wert { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 4px 0 2px; white-space: nowrap; }
.stat-kachel-unter { font-size: .85rem; color: #495057; }
.stat-kachel-vergleich { font-size: .82rem; color: #6c757d; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #dee2e6; }
.kachel-gewinn { border-color: #81c784; background: #f6fbf6; }
.kachel-alarm { border-color: #d32f2f; background: #fff5f5; }
.kachel-alarm .stat-kachel-wert { color: #b71c1c; }
.delta { font-weight: 600; white-space: nowrap; }
.delta-plus { color: #2e7d32; }
.delta-minus { color: #c62828; }
.delta-gleich { color: #6c757d; }

/* Tabelle je PL */
.stat-tabelle th, .stat-tabelle td { white-space: nowrap; vertical-align: middle; }
.stat-tabelle tbody th a { font-weight: 700; }
.stat-tabelle .vergleich-zeile td { font-size: .8rem; color: #6c757d; border-top: 0; padding-top: 0; }
.stat-tabelle .summen-zeile th, .stat-tabelle .summen-zeile td { border-top: 2px solid #343a40; font-weight: 700; background: #f8f9fa; }
.stat-tabelle .summen-vergleich td { background: #f8f9fa; }

/* Rangliste: Säulen, Namen, Rakete mit Feuerwerk über Platz 1 */
.rangliste { border: 1px solid #e3e8ef; border-radius: 12px; padding: 18px 20px 6px; margin-bottom: 30px;
  background: linear-gradient(#f5f9ff, #fff 60%); overflow: hidden; }
.rangliste-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.rangliste-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rangliste-diagramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; margin-top: 8px; }
.rang-diagramm { margin: 0; }
.rang-diagramm figcaption { font-weight: 700; font-size: 1.05rem; color: #343a40; }
.rang-flaeche { --saeule: 240px; position: relative; display: flex; gap: 10px; padding-top: 64px; }
.rang-flaeche::after { content: ""; position: absolute; left: 0; right: 0; top: calc(64px + var(--saeule)); height: 2px; background: #37474f; }
.rang-spalte { position: relative; flex: 1 1 0; min-width: 0; }
.rang-saeule { position: relative; height: var(--saeule); }
.rang-balken { position: absolute; left: 13%; right: 13%; bottom: 0; height: calc(var(--h) * 1%); min-height: 3px;
  border-radius: 7px 7px 0 0; background: linear-gradient(#64b5f6, #1565c0); transform-origin: 50% 100%; }
.rang-1 .rang-balken { background: linear-gradient(#ffe082, #f9a825 55%, #ef6c00); box-shadow: 0 0 22px rgba(249, 168, 37, .5); }
.rang-wert { position: absolute; left: -12px; right: -12px; bottom: calc(var(--h) * 1% + 6px); text-align: center;
  font-weight: 700; font-size: .95rem; white-space: nowrap; color: #263238; }
.rang-1 .rang-wert { font-size: 1.2rem; color: #e65100; }
.mini-rakete { width: 11px; height: 18px; vertical-align: -3px; margin-right: 3px; }
.rang-beschriftung { text-align: center; padding-top: 10px; line-height: 1.2; }
.rang-name { display: block; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.rang-name b { color: #6c757d; font-weight: 600; }
.rang-1 .rang-name { color: #e65100; }
.rang-zusatz { display: block; font-size: .75rem; color: #6c757d; margin-top: 3px; }
.rang-zusatz .pct { min-width: 0; text-align: center; }
.rang-offen { display: block; color: #b71c1c; font-weight: 600; white-space: nowrap; margin-top: 2px; }
.rang-offen small { display: block; font-size: 100%; font-weight: 400; }
.rang-rakete { position: absolute; left: 50%; width: 26px; margin-left: -13px; bottom: calc(var(--h) * 1% + 30px);
  opacity: 0; z-index: 3; pointer-events: none; }
.rang-rakete svg { display: block; width: 26px; height: 43px; }
.rang-rakete .flamme { transform-origin: 12px 26px; animation: flackern .12s linear infinite alternate; }
.rang-funken { position: absolute; left: 50%; bottom: calc(var(--h) * 1% + 40px); width: 0; height: 0; z-index: 2; pointer-events: none; }
.rang-funken i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: 0; }
.rang-funken::before { content: ""; position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(rgba(255, 241, 118, .95), rgba(255, 152, 0, .45) 45%, transparent 70%); opacity: 0; }

/* Ablauf (Klassen setzt app.js): bewegt = Startbild, laeuft = Säulen, namen = Namen, fertig = Rakete + Zahlen */
.rangliste.bewegt .rang-balken { transform: scaleY(0); }
.rangliste.bewegt .rang-wert { opacity: 0; }
.rangliste.bewegt .rang-beschriftung { opacity: 0; transform: translateY(8px); }
.rangliste.bewegt.laeuft .rang-balken { transform: scaleY(1);
  transition: transform .9s cubic-bezier(.25, .9, .3, 1.12) calc(var(--i) * .16s); }
.rangliste.bewegt.namen .rang-beschriftung { opacity: 1; transform: none;
  transition: opacity .45s ease calc(var(--i) * .07s), transform .45s ease calc(var(--i) * .07s); }
.rangliste.bewegt.fertig .rang-wert { opacity: 1; transition: opacity .35s ease .85s; }
.rangliste.bewegt.fertig .rang-1 .rang-wert { animation: wert-pop .7s cubic-bezier(.2, 1.7, .4, 1) .85s both; }
.rangliste.bewegt.fertig .rang-1 .rang-rakete { animation: rakete-flug .9s cubic-bezier(.45, 0, .75, .55) forwards; }
.rangliste.bewegt.fertig .rang-1 .rang-funken i { animation: funke 1.05s ease-out .85s forwards; }
.rangliste.bewegt.fertig .rang-1 .rang-funken::before { animation: blitz .65s ease-out .85s forwards; }
@keyframes rakete-flug {
  0% { bottom: -46px; opacity: 1; }
  88% { opacity: 1; }
  100% { bottom: calc(var(--h) * 1% + 26px); opacity: 0; }
}
@keyframes funke {
  0% { opacity: 1; transform: translate(0, 0) scale(1.3); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.35); }
}
@keyframes blitz { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes wert-pop { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes flackern { from { transform: scaleY(.75); } to { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { [data-rangliste-nochmal] { display: none; } .rang-rakete .flamme { animation: none; } }
@media (max-width: 575px) {
  .rangliste { padding: 14px 12px 4px; }
  .rang-flaeche { --saeule: 190px; gap: 6px; }
  .rang-wert { font-size: .8rem; }
  .rang-1 .rang-wert { font-size: 1rem; }
  .rang-name { font-size: .8rem; }
  .rang-zusatz { font-size: .68rem; }
  .stat-auswahlen { align-items: flex-start; }
  .stat-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-kachel { padding: 10px 12px; }
  .stat-kachel-wert { font-size: 1.2rem; }
}

/* Jahre im Vergleich */
.jahre-rahmen { border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 8px 2px; background: #fff; margin: 0 0 16px; }
.jahre-rahmen figcaption { font-weight: 700; padding: 2px 6px 0; }
.jahre-grafik { width: 100%; height: auto; display: block; font-family: inherit; }
.jahre-grafik .raster { stroke: #e9ecef; stroke-width: 1; }
.jahre-grafik .null-linie { stroke: #495057; stroke-width: 1.5; }
.jahre-grafik .achse { font-size: 12px; fill: #6c757d; }
.jahre-grafik .wert { font-size: 11px; fill: #37474f; font-weight: 600; }
.jahre-grafik .wert-minus { fill: #c62828; }
.jahre-grafik .pl-name { font-size: 14px; font-weight: 700; fill: #212529; }
.jahr-stufe-0 { fill: #1565c0; }
.jahr-stufe-1 { fill: #64b5f6; }
.jahr-stufe-2 { fill: #bbdefb; }
.jahr-stufe-3 { fill: #e3f2fd; }
.jahre-legende { display: flex; flex-wrap: wrap; gap: 16px; font-size: .875rem; color: #495057; margin-bottom: 8px; }
.jahr-chip::before { content: ""; display: inline-block; width: 18px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.jahr-chip-0::before { background: #1565c0; }
.jahr-chip-1::before { background: #64b5f6; }
.jahr-chip-2::before { background: #bbdefb; }
.jahr-chip-3::before { background: #e3f2fd; border: 1px solid #bbdefb; }

/* ------------------------------------------------------------ Version 2.2: Dashboard der Geschäftsführung */
.dash-abschnitt { margin: 0 0 34px; }
.dash-titel { font-size: 1.25rem; font-weight: 700; color: #1f2d3d; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid #e3e8ef; }
.dash-titel small { font-size: .85rem; font-weight: 400; }
.dash-hinweis { margin: -16px 0 0; }
.stat-kachel-verlauf { margin: 8px 0 2px; }
.stat-kachel-vergleich a, .stat-kachel-unter a { white-space: nowrap; }
.spark { display: block; width: 100%; height: 34px; }
.spark-plus { fill: #bbdefb; }
.spark-plus.spark-letzter { fill: #1565c0; }
.spark-minus { fill: #ef9a9a; }
.spark-minus.spark-letzter { fill: #c62828; }
.spark-null { stroke: #90a4ae; stroke-width: 1; }

/* Entwicklung je Monat */
.dash-raster-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.dash-grafik { margin: 0; border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 8px 2px; background: #fff; }
.dash-grafik figcaption { font-weight: 700; padding: 2px 4px 4px; }
.monats-grafik { width: 100%; height: auto; display: block; font-family: inherit; }
.monats-grafik .raster { stroke: #eef1f4; stroke-width: 1; }
.monats-grafik .null-linie { stroke: #495057; stroke-width: 1.2; }
.monats-grafik .achse { font-size: 11px; fill: #6c757d; }
.mb-jetzt { fill: #1565c0; }
.mb-vorher { fill: #bbdefb; }
.mb-jetzt.mb-minus { fill: #c62828; }
.mb-vorher.mb-minus { fill: #ef9a9a; }
.ku-jetzt { fill: none; stroke: #1565c0; stroke-width: 3; stroke-linejoin: round; }
.ku-vorher { fill: none; stroke: #90caf9; stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linejoin: round; }
.ku-punkt-jetzt { fill: #1565c0; stroke: #fff; stroke-width: 2; }
.ku-punkt-vorher { fill: #64b5f6; stroke: #fff; stroke-width: 2; }
.ku-text { font-size: 12px; font-weight: 700; }
.ku-text-jetzt { fill: #0d47a1; }
.ku-text-vorher { fill: #5c7a99; }
.dash-legende { display: flex; gap: 18px; font-size: .85rem; color: #495057; margin-top: 8px; }
.dash-legende span::before { content: ""; display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lg-jetzt::before { background: #1565c0; }
.lg-vorher::before { background: #bbdefb; }

/* Karten je Projektleiter */
.rangliste-kopf h5 { font-weight: 700; }
.pl-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.pl-karte { border: 1px solid #dee2e6; border-radius: 10px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column;
  gap: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.pl-karte-grau { background: #f8f9fa; border-style: dashed; box-shadow: none; }
.pl-karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pl-karte-name { font-size: 1.15rem; font-weight: 700; }
.pl-karte-platz { font-size: .8rem; color: #6c757d; white-space: nowrap; }
.pl-karte-zahlen { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: .9rem; }
.pl-karte-zahlen dt { font-weight: 400; color: #6c757d; }
.pl-karte-zahlen dd { margin: 0; text-align: right; white-space: nowrap; }
.pl-karte-zahlen .pct { min-width: 0; }
.pl-karte-verlauf span { display: block; font-size: .72rem; color: #6c757d; margin-top: 2px; }
.pl-karte-fuss { font-size: .82rem; color: #495057; border-top: 1px dashed #dee2e6; padding-top: 6px; margin-top: auto; }
.pl-karte-fuss table { width: 100%; border-collapse: collapse; }
.pl-karte-fuss th { width: 1%; padding: 1px 14px 1px 0; font-weight: 400; color: #6c757d; white-space: nowrap; vertical-align: baseline; }
.pl-karte-fuss td { padding: 1px 0; line-height: 1.6; vertical-align: baseline; }
.pl-karte-fuss td > a:not(.badge-abrechnen):not(.betrag-minus) { color: inherit; }
.pl-karte-fuss td > a.betrag-minus:hover { color: #b71c1c; }
.pl-karte-fuss .badge-abrechnen { padding: 0 6px; }

/* Was jetzt zu tun ist */
.todo-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.todo-liste { border: 1px solid #dee2e6; border-radius: 10px; padding: 12px 14px; background: #fff; }
.todo-alarm { border-color: #f5c6cb; background: #fff8f8; }
.todo-liste h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.todo-liste h5 small { display: block; font-weight: 400; color: #6c757d; margin-top: 2px; }
.todo-liste ol { list-style: none; padding: 0; margin: 0 0 8px; }
.todo-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "projekt rechts" "pl rechts";
  gap: 0 10px; padding: 6px 0; border-bottom: 1px solid #f1f3f5; font-size: .88rem; }
.todo-liste li > a { grid-area: projekt; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-pl { grid-area: pl; font-size: .78rem; color: #6c757d; }
.todo-rechts { grid-area: rechts; text-align: right; white-space: nowrap; }
.todo-rechts small { display: block; color: #6c757d; }
.todo-mehr { font-size: .85rem; }

/* ------------------------------------------------------------ Version 2.3: Fuß, Rückmeldung, Passwort, Verwaltung */
.app-fuss a { color: #fff; text-decoration: underline; }
.app-fuss a:hover { color: #e3f2fd; }
.fuss-links { font-size: .9rem; }
/* Honigtopf: für Menschen unsichtbar, Bots füllen es aus */
.hp-feld { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rueckmeldung-art { display: flex; flex-wrap: wrap; gap: 10px; }
.rueckmeldung-wahl { border: 1px solid #ced4da; border-radius: 8px; padding: 8px 14px; cursor: pointer; margin: 0; background: #f8f9fa; }
.rueckmeldung-wahl input { margin-right: 6px; }
.passwort-form, .rueckmeldung-form { margin-top: 12px; }
.verwaltung-tabelle td, .verwaltung-tabelle th { vertical-align: middle; }
.verwaltung-tabelle .bemerkung { max-width: 520px; }
.passwort-vergeben .form-control { width: 190px; }
