/* Dashboard Garten- und Landschaftsbau (js/dashboard-galabau.js, nur galabau). 09.11.2026 „Mischung“ wie die Rollrasen-Demo
   (Demo-Zweig 86c54991, vorschau/dashboard-handwerk.css der Rollrasen-Demo, .hw-m): groß die Feld-Umrisse mit der Zahl der Leute,
   rechts der Anthrazit-Block „Gerade bei der Arbeit“, unten Wetter | Termine | Zu erledigen.
   Nach dem Design-Thema (einspielen/design-thema.md): flach (keine Verläufe, kein Glas), Panels weiß mit feiner Linie, 12 px Ecken
   für Flächen, 8 px für Knöpfe. Felder grün (Rasen) bzw. grau (Hof). Der Akzent (Orange) steht an einer Stelle (--dg-akzent) und
   nur als Punkt, Strich oder kleine Schrift. */

.dg-dash.dash-panel { --dg-anthrazit: #2b2f33; --dg-akzent: #ea7535; --dg-akzent-hell: #ffb07c; --dg-auf-dunkel: #c9ced4;
  --dg-feld: #f1f4f7; --dg-feldrand: #b9c3cd; --dg-rasen: rgba(52, 199, 89, .08); --dg-rasenrand: #86bf95;
  --dg-rasen-an: rgba(52, 199, 89, .18); --dg-rasenrand-an: #2f8f46; --dg-hof: #eef1f4; --dg-hofrand: #a7b1bc; --dg-hof-an: #e3e8ed; --dg-hofrand-an: #7d8a97;
  background: var(--white); box-shadow: none; padding: 26px 30px 22px; }
html.dark .dg-dash.dash-panel { --dg-anthrazit: #2a2e33; --dg-akzent: #ff9a5c; --dg-feld: #2a2d31; --dg-feldrand: #55555a;
  --dg-rasen: rgba(76, 212, 113, .07); --dg-rasenrand: #3f7d52; --dg-rasen-an: rgba(76, 212, 113, .18); --dg-rasenrand-an: #4cd471;
  --dg-hof: #2f3337; --dg-hofrand: #6b747d; --dg-hof-an: #383d42; --dg-hofrand-an: #9aa5b1; }
/* Lars 10.11.: Luft zwischen Dashboard und Reiterleiste (vorher 5 px, die Karten unten wirkten abgeschnitten) */
#tab-dashboard:has(> .dg-dash) { padding-top: 12px; padding-bottom: 18px; }
.dg-dash .dg-icon { display: block; flex: 0 0 auto; }
.dg-dash button { font: inherit; }

/* ── Kopf: „Schichtwerk Handwerk · Datum“, darunter groß der Gruß ── */
.dg-dash .dg-kopfzeile { display: flex; align-items: center; gap: 16px; min-height: 44px; min-width: 0; margin: 0; padding: 0; }
.dg-kopf-text { min-width: 0; }
.dg-marke { display: flex; align-items: center; flex-wrap: wrap; gap: 0 5px; font-size: 14px; color: var(--text); }
/* Lars 10.11.: Schichtwerk-Farben oben links – der orange Strich wie an Wetter/Termine, die Sparte in Orange */
.dg-marke::before { content: ''; width: 3px; height: 15px; margin-right: 4px; border-radius: 2px; background: var(--dg-akzent); }
.dg-marke b { font-weight: 700; }
.dg-marke .dg-sparte { font-weight: 600; color: var(--dg-akzent); }
.dg-marke i { width: 5px; height: 5px; margin: 0 5px; border-radius: 50%; background: var(--dg-akzent); }
.dg-dash .dg-marke .dash-date { height: auto; padding: 0; background: none; font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.dg-dash .dg-kopfzeile .dash-greeting, html.dark .dg-dash .dg-kopfzeile .dash-greeting { height: auto; margin: 1px 0 0; padding: 0; background: none; border-radius: 0;
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text); white-space: normal; overflow: visible; }

/* ── Bühne: Felder groß, rechts der Anthrazit-Block (Lars 08.11.: Felder füllen die freie Höhe) ── */
.dg-buehne { flex: 0 0 auto; display: flex; align-items: stretch; gap: 20px; margin: 14px 0; padding: 14px 20px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); }
.dg-felder { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-around; align-content: flex-start; align-items: flex-start; gap: 12px 16px; }
.dg-feld { flex: 1 1 150px; max-width: 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 12px;
  cursor: pointer; text-align: center; }
.dg-feld:hover { background: var(--bg); }
/* Lars 10.11.: kein leerer Streifen über den Feldern – die Felder-Fläche ist so hoch wie ihr Inhalt, die freie Höhe bekommen die Flächen unten */
/* 23.11. (Lars: Dashboard ganz auf einen Blick): Umrisse etwas flacher, damit Wetter, Termine und Zu erledigen auch am Laptop (1280 × 800) ganz zu sehen sind */
.dg-feld-bild { position: relative; width: 100%; height: clamp(96px, 16vh, 210px); margin-bottom: 6px; }
/* 23.11. (Lars: „mich stört, dass unten so eine Lücke ist“): die freie Höhe füllen zuerst die Umrisse – so hoch, wie neben dem Rest
   Platz ist (ca. 580 px für Kopf, Feld-Texte und die Flächen unten), höchstens 200 px, mehr gibt die Breite der Felder nicht her.
   Was dann noch frei ist, bekommen die Flächen unten (.dg-unten wächst bis zum Rand). Zu wenig Platz: wie bisher blättern. */
.dg-felder > .dg-feld > .dg-feld-bild { height: clamp(96px, calc(100vh - 580px), 200px); }
.dg-felder--viele > .dg-feld > .dg-feld-bild { height: clamp(80px, calc(100vh - 620px), 140px); }
.dg-felder-flaeche:has(.dg-ruhig) > .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(80px, calc(100vh - 660px), 170px); }
.dg-liste li[hidden], .dg-mehr[hidden], .dg-mehr-zeile[hidden] { display: none; }
.dg-wtext { display: none; }
/* Am Rechner (breiter als 1100 px): die drei Flächen reichen bis zum unteren Rand. Termine und Zu erledigen zeigen so viele Zeilen,
   wie hineinpassen (js: _dgPassen), das Wetter steht als Liste der 7 Tage untereinander und füllt seine Fläche. */
@media (min-width: 1101px) {
  html:not(.dark) .dg-dash > .dg-unten, .dg-dash > .dg-unten { flex: 1 1 0; min-height: 300px; grid-template-rows: minmax(0, 1fr); }
  .dg-dash > .dg-unten > .dg-karte { min-height: 0; overflow: hidden; }
  .dg-karte--wetter .dg-wtage { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(26px, 1fr); gap: 0;
    max-height: 420px; }   /* große Bildschirme: Zeilen höchstens 60 px hoch */
  .dg-karte--wetter .dg-wtag { display: grid; grid-template-columns: 52px 30px minmax(0, 1fr) 34px 30px 46px; align-items: center; column-gap: 8px;
    padding: 0 8px; border-top: 1px solid var(--border); border-radius: 0; }
  .dg-karte--wetter .dg-wtag:first-child { border-top: 0; }
  .dg-karte--wetter .dg-wtag small { justify-self: start; font-size: 14px; }
  .dg-karte--wetter .dg-wtag svg { justify-self: center; }
  .dg-karte--wetter .dg-wtag b, .dg-karte--wetter .dg-wtag i { justify-self: end; }
  .dg-karte--wetter .dg-wtag b { font-size: 15px; }
  .dg-karte--wetter .dg-wtag em { justify-self: end; font-size: 13px; white-space: nowrap; }
  .dg-karte--wetter .dg-wtag--regen { border-radius: 6px; }
  .dg-karte--wetter .dg-wtag--regen + .dg-wtag { border-top-color: transparent; }
}
/* Wetter in Worten nur, wo die Spalte breit genug ist – sonst bleibt die Spalte leer statt abgeschnitten */
@media (min-width: 1360px) {
  .dg-karte--wetter .dg-wtext { display: block; font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
}
.dg-felder--viele .dg-feld { flex-basis: 140px; max-width: 240px; }
.dg-felder--viele .dg-feld-bild { height: clamp(80px, 11vh, 140px); }
/* mit der Reihe „Weitere Felder“ etwas kleinere Umrisse, damit Wetter/Termine/Zu erledigen ganz ins Bild passen */
.dg-felder-flaeche:has(.dg-ruhig) .dg-feld-bild { height: clamp(90px, 15vh, 190px); }
/* Viele Felder (Lars 10.11.): Felder ohne Leute als schmale Reihe unter den großen – die Höhe wächst kaum mit der Zahl der Felder */
.dg-felder-flaeche { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* Lars 10.11.: Reihen sauber untereinander (festes Raster statt Fließtext), nichts „schwebt“, weniger Grün */
.dg-ruhig { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 0 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.dg-ruhig-titel { grid-column: 1 / -1; margin-bottom: 2px; font-size: 13px; color: var(--text-muted); }
/* ohne Rahmen und ohne Kasten; beim Drüberfahren hebt sich das Feld nur leicht, Name und Umriss werden dunkler; ein Klick holt es nach oben */
.dg-klein { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px; border-radius: 8px; cursor: pointer;
  transition: transform .18s ease; }
.dg-klein:hover, .dg-klein:focus-visible { transform: translateY(-2px); outline: none; }
.dg-klein-bild { flex: none; width: 36px; height: 22px; }
/* Umriss grau wie eine Skizze; grün nur, wo gerade jemand arbeitet (wie oben) */
.dg-klein .dg-form polygon, .dg-klein .dg-form rect { fill: none; stroke: var(--dg-hofrand); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: stroke .18s ease; }
.dg-klein.dg-feld--hof .dg-form polygon, .dg-klein.dg-feld--hof .dg-form rect { fill: none; stroke: var(--dg-hofrand); }
.dg-klein--an .dg-form polygon, .dg-klein--an .dg-form rect { fill: var(--dg-rasen-an); stroke: var(--dg-rasenrand-an); }
.dg-klein--an.dg-feld--hof .dg-form polygon, .dg-klein--an.dg-feld--hof .dg-form rect { fill: var(--dg-hof-an); stroke: var(--dg-hofrand-an); }
.dg-klein:hover .dg-form polygon, .dg-klein:hover .dg-form rect, .dg-klein:focus-visible .dg-form polygon { stroke: var(--text); }
.dg-klein b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .18s ease; }
.dg-klein:hover b, .dg-klein:focus-visible b, .dg-klein--an b { color: var(--text); font-weight: 600; }
.dg-klein-zahl { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--dg-anthrazit); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* nach oben geholt: kommt kurz von unten herein */
.dg-feld--neu { animation: dg-hoch .38s cubic-bezier(.2, .8, .2, 1); }
/* das Feld, das oben Platz gemacht hat, leuchtet in der Reihe kurz auf (Lars 10.11.: man soll sehen, welches gewechselt wurde) */
.dg-klein--raus::after { content: ''; position: absolute; inset: 0; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--text) inset; pointer-events: none;
  animation: dg-raus 2s ease forwards; }
@keyframes dg-raus { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dg-hoch { from { opacity: 0; transform: translateY(28px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dg-klein, .dg-klein:hover { transition: none; transform: none; } .dg-feld--neu { animation: none; } }
.dg-form { display: block; width: 100%; height: 100%; }
.dg-form polygon, .dg-form rect { fill: var(--dg-rasen); stroke: var(--dg-rasenrand); stroke-width: 1.5; stroke-linejoin: round; }
.dg-form--an polygon, .dg-form--an rect { fill: var(--dg-rasen-an); stroke: var(--dg-rasenrand-an); }
/* Hof grau statt grün (Lars 09.11.: grün heißt Rasen, der Hof ist kein Feld) */
.dg-feld--hof .dg-form polygon, .dg-feld--hof .dg-form rect { fill: var(--dg-hof); stroke: var(--dg-hofrand); }
.dg-feld--hof .dg-form--an polygon, .dg-feld--hof .dg-form--an rect { fill: var(--dg-hof-an); stroke: var(--dg-hofrand-an); }
.dg-feld-zahl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; background: var(--dg-anthrazit); color: #fff; box-shadow: 0 0 0 3px var(--white);
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dg-feld-name { max-width: 100%; font-size: 16px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dg-feld-was { font-size: 14px; color: var(--text-muted); }
.dg-feld-namen { font-size: 13px; font-weight: 600; color: var(--text); }
.dg-feld-geld { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dg-felder-leer { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; max-width: 520px; margin: 0 auto;
  padding: 34px 0; text-align: center; }
.dg-felder-leer b { font-size: 18px; font-weight: 600; color: var(--text); }
.dg-felder-leer span { font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.dg-felder-leer .dg-knopf { margin-top: 8px; }

.dg-summe { flex: 0 0 300px; align-self: flex-start; margin-top: 8px; display: flex; flex-direction: column; gap: 14px; margin-inline-end: -8px; padding: 20px 20px 18px; border-radius: 12px;
  background: var(--dg-anthrazit); color: #fff; box-shadow: inset 0 3px 0 var(--dg-akzent); }
.dg-summe-titel { display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--dg-akzent-hell); }
.dg-summe-jetzt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 6px; margin: -6px -8px 0; padding: 6px 8px; border: 0;
  border-radius: 8px; background: none; color: #fff; text-align: start; cursor: pointer; }
.dg-summe-jetzt small { grid-column: 1 / -1; }
.dg-summe-jetzt b { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dg-summe-jetzt .dg-icon { margin-bottom: 7px; color: var(--dg-auf-dunkel); }
.dg-summe-jetzt:hover { background: rgba(255, 255, 255, .07); }
.dg-summe-zahlen { display: flex; flex-direction: column; gap: 4px; }
.dg-summe-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--dg-auf-dunkel); }
.dg-summe-zeile b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-summe-zeile b i { font-style: normal; font-weight: 500; color: var(--dg-auf-dunkel); }
.dg-sonst { display: flex; flex-direction: column; gap: 8px; }
.dg-sonst-ort { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; cursor: pointer; }
.dg-sonst-ort:hover { background: rgba(255, 255, 255, .12); }
.dg-sonst-ort b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-sonst-ort span { margin-inline-start: auto; white-space: nowrap; color: var(--dg-auf-dunkel); font-variant-numeric: tabular-nums; }
.dg-sonst-ort .dg-icon { color: var(--dg-auf-dunkel); }

/* ── Unten: drei Flächen, Wetter breiter ── */
/* 23.11.: „Zu erledigen“ hat die längsten Zeilen und bekommt die meiste Breite (vorher Wetter, das dafür halb leer blieb) */
.dg-unten { flex: 1 0 auto; min-height: 220px; display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 14px; align-items: stretch; }
.dg-karte { min-width: 0; display: flex; flex-direction: column; padding: 14px 18px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.dg-karte-kopf { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.dg-karte-kopf--still { cursor: default; }
.dg-karte-kopf h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.dg-karte-kopf h2::before { content: ''; display: inline-block; width: 3px; height: 14px; margin-inline-end: 9px; border-radius: 2px; background: var(--dg-akzent); vertical-align: -1px; }
.dg-karte-kopf .dg-icon { color: var(--text-muted); }
.dg-karte-kopf:not(.dg-karte-kopf--still):hover { background: var(--bg); }
.dg-satz { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); }
.dg-still { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.dg-wtage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; cursor: pointer; }
.dg-wtag { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.dg-wtag small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dg-wtag--heute small { color: var(--text); padding-bottom: 1px; box-shadow: inset 0 -2px var(--dg-akzent); }
.dg-wtag b { font-size: 16px; font-weight: 600; color: var(--text); }
.dg-wtag i { font-style: normal; font-size: 13px; color: var(--text-muted); }
.dg-wtag em { font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.2; }
.dg-wtag--regen { background: rgba(10, 132, 255, .09); }
.dg-regen { color: #0a64c2; }
.dg-frost { color: #2f6db5; }
html.dark .dg-regen, html.dark .dg-frost { color: #64aaff; }
.dg-liste { list-style: none; margin: 0; padding: 0; }
.dg-liste li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 4px; border-top: 1px solid var(--border); cursor: pointer; }
.dg-liste li:first-child { border-top: 0; }
.dg-liste li:hover { background: var(--bg); }
.dg-wann { flex: 0 0 82px; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: var(--text); }
.dg-wann small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.dg-was { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 14px; color: var(--text); }
.dg-liste:not(.dg-liste--auf) .dg-was { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dg-was b { font-weight: 600; }
.dg-was small { font-size: 13px; color: var(--text-muted); }
.dg-nw { white-space: nowrap; }
.dg-pille { flex: 0 0 auto; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--dg-anthrazit); color: #fff;
  font-size: 13px; font-weight: 600; }
.dg-pille--leise { background: var(--bg); color: var(--text); }
html.dark .dg-pille:not(.dg-pille--leise) { background: #3a3f45; }
.dg-mehr { margin-top: 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--primary); cursor: pointer; text-align: start; }
.dg-mehr:hover { text-decoration: underline; }
/* Verweise unter „Zu erledigen“ nebeneinander, bei Platzmangel untereinander */
.dg-mehr-zeile { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 2px 4px 0; border-top: 1px solid var(--border); }
/* 23.11. (Lars: „zu viel Orange“): Fahrzeug-Aufgaben in normaler Schrift; nur was überfällig ist (Mangel, TÜV/Wartung vorbei)
   bekommt einen kleinen orangen Punkt davor. Bald fällig: ohne Punkt, das Datum steht darunter. */
.dg-liste--auf b.dg-fz { color: var(--text); }
.dg-liste--auf b.dg-fz--vorbei::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%;
  background: var(--hwfz-hinweis, #A85F17); vertical-align: 2px; }
/* Lohnbüro abhaken: Kreis links wie eine Erinnerung; danach eine stille Zeile mit „Rückgängig“ bis zum nächsten Laden */
.dg-haken { flex: none; width: 22px; height: 22px; padding: 0; border: 1.5px solid var(--text-muted); border-radius: 50%; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.dg-haken svg { width: 12px; height: 12px; }
.dg-haken:hover, .dg-haken:focus-visible { border-color: var(--text); color: var(--text-muted); outline: none; }
.dg-haken:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.dg-haken[aria-busy="true"] { opacity: .5; cursor: progress; }
.dg-liste li.dg-lohn-fertig { cursor: default; }
.dg-liste li.dg-lohn-fertig:hover { background: none; }
.dg-lohn-fertig .dg-haken { border-color: var(--text-muted); background: var(--text-muted); color: var(--white); cursor: default; }
.dg-lohn-fertig .dg-was { color: var(--text-muted); }
.dg-zurueck { flex: none; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--primary); cursor: pointer; }
.dg-zurueck:hover { text-decoration: underline; }
/* 23.11. (Lars: „mir gefallen die ganzen grauen kleinen Texte nicht“): keine grauen Kleintexte mehr. Alles in Textfarbe und
   mindestens 14 px; Ordnung nur über die Schriftstärke (Titel fett, der Rest normal). Grau bleibt nur, was erledigt ist. */
html:not(.dark) #tab-dashboard .dg-dash .dg-marke .dash-date, #tab-dashboard .dg-dash .dg-marke .dash-date { font-size: 15px; color: var(--text); }
.dg-dash .dg-summe-zeile span { white-space: nowrap; }
.dg-dash .dg-feld-was, .dg-dash .dg-feld-namen, .dg-dash .dg-feld-geld { font-weight: 400; color: var(--text); }
/* Text unter dem Feld (Lars 23.11.: „zu klein, um es wirklich zu lesen“): linksbündiger Block, 16–19 px, Name und Betrag oben in einer Zeile */
.dg-feld-text { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
.dg-feld-kopf { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 721px) {
  .dg-dash .dg-feld-text { max-width: 290px; margin-top: 4px; gap: 3px; text-align: start; }
  .dg-dash .dg-feld-kopf { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; margin-bottom: 3px;
    border-bottom: 1px solid var(--border); }
  .dg-dash .dg-feld-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
  .dg-dash .dg-feld-geld { flex: none; margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
  .dg-dash .dg-feld-was, .dg-dash .dg-feld-namen { font-size: 16px; line-height: 1.35; }
  .dg-dash .dg-feld-was { font-weight: 600; }
  .dg-felder--viele .dg-feld-name { font-size: 17px; }
}
/* Was gemacht wird links, wer dort ist rechts als Kreise mit Anfangsbuchstaben (Lars 23.11.: Namen wurden bei 5 Leuten zu voll) */
.dg-feld-unten { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dg-kreise { display: inline-flex; flex-wrap: nowrap; gap: 4px; }
.dg-kreis { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--g-feld, #eef1f4); color: var(--text); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
html.dark .dg-kreis { background: #3a3f45; }
.dg-kreis--mehr { background: var(--text); color: var(--white); }
@media (min-width: 721px) {
  .dg-dash .dg-feld-unten { align-items: flex-start; gap: 6px; }
}
/* Felder kräftiger, wo gerade jemand arbeitet; die Zahl klein an der Ecke oben rechts der Form statt mitten auf dem Feld (Lars 23.11.: „ja“) */
.dg-dash.dash-panel { --dg-rasen-an: rgba(52, 199, 89, .30); }
.dg-dash .dg-form--an polygon, .dg-dash .dg-form--an rect { stroke-width: 2; }
.dg-form { overflow: visible; }
.dg-zahl-svg circle { fill: var(--dg-anthrazit); stroke: var(--white); stroke-width: 3; }
.dg-zahl-svg text { fill: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 721px) { .dg-dash .dg-feld-bild > .dg-feld-zahl { display: none; } }
@media (max-width: 720px) { .dg-zahl-svg { display: none; } }
/* schmaler (Laptop 1280): Name in voller Breite, der Betrag darunter – sonst bricht der Feldname um */
@media (min-width: 721px) and (max-width: 1359px) {
  .dg-dash .dg-feld-kopf { flex-direction: column; align-items: flex-start; gap: 0; }
  .dg-felder--viele .dg-feld-was, .dg-felder--viele .dg-feld-namen, .dg-felder--viele .dg-feld-geld { font-size: 15px; }
}
html:not(.dark) .dg-dash .dg-summe-titel, .dg-dash .dg-summe-titel { font-size: 14px; font-weight: 600; color: var(--text); }
html:not(.dark) .dg-dash .dg-summe-zeile, .dg-dash .dg-summe-zeile { font-size: 15px; color: var(--text); }
html:not(.dark) .dg-dash .dg-summe-zeile b i, .dg-dash .dg-summe-zeile b i { color: var(--text); font-weight: 400; }
.dg-dash .dg-ruhig-titel, .dg-dash .dg-klein b { color: var(--text); }
.dg-dash .dg-satz, .dg-dash .dg-still { font-size: 15px; color: var(--text); }
.dg-dash .dg-wtag small, .dg-dash .dg-wtag i, .dg-dash .dg-wtext { color: var(--text); }
.dg-dash .dg-wtag small { font-size: 14px; }
.dg-dash .dg-wtag i { font-size: 14px; }
/* Termine: Tag fett, Uhrzeit normal darunter; ab 1360 px in einer Zeile */
.dg-dash .dg-wann { flex-basis: 82px; font-size: 14px; font-weight: 400; color: var(--text); }
.dg-dash .dg-wann b { font-size: 15px; font-weight: 600; }
@media (min-width: 1360px) {
  .dg-dash .dg-wann { flex-basis: 118px; display: block; font-size: 15px; white-space: nowrap; }
  .dg-dash .dg-wann b { margin-inline-end: 4px; }
}
.dg-dash .dg-was { font-size: 15px; }
.dg-dash .dg-was small { font-size: 14px; color: var(--text); }
/* Text eines Mangels: ganz, höchstens zwei Zeilen */
.dg-zwei { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dg-liste li[aria-busy="true"] { opacity: .6; cursor: progress; }

.dg-feld:focus-visible, .dg-karte-kopf:focus-visible, .dg-liste li:focus-visible, .dg-wtage:focus-visible, .dg-summe-jetzt:focus-visible, .dg-sonst-ort:focus-visible,
.dg-mehr:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dg-summe-jetzt:focus-visible, .dg-sonst-ort:focus-visible { outline-color: #fff; }

/* ── Fenster: Leute je Ort, Wer ist wo, Woche, Lohnbüro ── */
.dg-knopf { min-height: 42px; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); font: inherit; font-size: 15px; font-weight: 700;
  color: var(--text); cursor: pointer; }
.dg-knopf:hover { background: var(--bg); }
.dg-knopf--primaer { background: var(--primary); border-color: var(--primary); color: #fff; }
.dg-knopf--primaer:hover { background: var(--primary); filter: brightness(1.1); }
html.dark .dg-knopf--primaer { color: #141414; }
.dg-knopf:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dg-fenster.dash-live-modal { width: min(720px, calc(96vw / var(--ui-zoom, 1))); }
.dg-fenster.dg-fenster--breit { width: min(1000px, calc(96vw / var(--ui-zoom, 1))); }
.dg-fenster-fuss { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 28px 18px; border-top: 1px solid var(--border); }
.dg-fenster-notiz { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }
.dg-leer { margin: 0; font-size: 15px; color: var(--text-muted); }
.dg-fenster-ort + .dg-fenster-ort { margin-top: 18px; }
.dg-fenster-ort-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.dg-fenster-ort-kopf b { font-size: 15px; font-weight: 700; color: var(--text); }
.dg-fenster-ort-kopf span { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
/* Leute: Punkt in Farbe der Tätigkeit, Name, was, seit wann, Lohn heute */
.dg-personen-liste { list-style: none; margin: 0; padding: 0; }
.dg-person-zeile { display: grid; grid-template-columns: 8px minmax(0, 1.2fr) minmax(0, 1fr) 80px 64px; align-items: center; gap: 10px; min-height: 36px;
  border-top: 1px solid var(--border); font-size: 15px; color: var(--text); }
.dg-ohne-geld .dg-person-zeile { grid-template-columns: 8px minmax(0, 1.2fr) minmax(0, 1fr) 80px; }
.dg-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--dg-farbe, #cbd5e1); }
.dg-pz-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-pz-was { font-weight: 500; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-pz-wann { font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.dg-pz-kosten { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-person-zeile--still .dg-pz-name, .dg-person-zeile--still .dg-pz-kosten { color: var(--text-muted); font-weight: 600; }
.dg-person-zeile--still .dg-punkt { opacity: .45; }
/* Lohnbüro-Liste */
.dg-lohn-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.dg-lohn-tabelle th { padding: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: end; }
.dg-lohn-tabelle td { padding: 7px 0; border-top: 1px solid var(--border); text-align: end; }
.dg-lohn-tabelle th:first-child, .dg-lohn-tabelle td:first-child { text-align: start; font-weight: 600; }
.dg-lohn-tabelle tfoot td { font-weight: 800; border-top: 2px solid var(--border); }
.dg-lohn-info { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }
/* Woche im Fenster: 7 Tage nebeneinander (Wetter, Termine, Leute), heute dunkel */
.dg-woche .dash-week { grid-template-columns: repeat(7, minmax(0, 1fr)); background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0; margin: 0; gap: 8px; }
.dg-woche .dash-week-day { min-width: 0; }
.dg-woche .dash-week-day:hover { transform: none; box-shadow: none; filter: brightness(.98); }
.dg-woche .dash-week-tags { width: 100%; min-width: 0; }
.dg-woche .dash-week-tag { font-size: 12px; font-weight: 700; padding: 3px 6px; border-radius: 4px; }
.dg-woche .dash-week-tag-more { font-size: 12px; }
.dg-woche .dg-tag { align-items: stretch; text-align: start; gap: 6px; padding: 10px 10px 9px; min-height: 0; border-radius: 12px; cursor: pointer; }
.dg-woche .dg-tag:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dg-woche .dg-tag.today { box-shadow: none; }
.dg-woche .dg-tag-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.dg-woche .dg-tag-kopf .dash-week-name { font-size: 12px; color: var(--text); }
.dg-woche .dg-tag-datum { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dg-woche .dg-tag-wetter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.dg-woche .dg-tag-wetter svg { flex: 0 0 auto; }
.dg-woche .dg-tag-wetter b { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.dg-woche .dg-tag-regen, .dg-woche .dg-tag-frost { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dg-woche .dg-tag-regen--viel, .dg-woche .dg-tag-frost { color: #2f6db5; }
.dg-woche .dg-tag-termine { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.dg-woche .dg-tag-termine .dash-week-tag { display: block; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-woche .dg-tag-leute { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dg-woche .dg-tag-leute--leer { font-weight: 500; opacity: .75; }
.dg-woche .dg-tag.today .dg-tag-kopf .dash-week-name, .dg-woche .dg-tag.today .dg-tag-wetter b { color: #fff; }
.dg-woche .dg-tag.today .dg-tag-datum, .dg-woche .dg-tag.today .dg-tag-wetter, .dg-woche .dg-tag.today .dg-tag-frost,
.dg-woche .dg-tag.today .dg-tag-regen, .dg-woche .dg-tag.today .dg-tag-leute { color: rgba(255, 255, 255, .75); }
html.dark .dg-woche .dg-tag.today .dg-tag-kopf .dash-week-name, html.dark .dg-woche .dg-tag.today .dg-tag-wetter b { color: #141414; }
html.dark .dg-woche .dg-tag.today .dg-tag-datum, html.dark .dg-woche .dg-tag.today .dg-tag-wetter, html.dark .dg-woche .dg-tag.today .dg-tag-frost,
html.dark .dg-woche .dg-tag.today .dg-tag-regen, html.dark .dg-woche .dg-tag.today .dg-tag-leute { color: rgba(20, 20, 20, .65); }

/* ── Schmaler: Block rechts schmaler, unten zwei Spalten (Wetter über die ganze Breite) ── */
@media (max-width: 1100px) {
  .dg-summe { flex-basis: 240px; }
  /* „November bisher“ und Betrag passen nicht mehr nebeneinander: Betrag rechtsbündig in die nächste Zeile statt Umbruch im Wort */
  .dg-summe-zeile { flex-wrap: wrap; row-gap: 0; }
  .dg-summe-zeile span { white-space: nowrap; }
  .dg-summe-zeile b { margin-inline-start: auto; }
  .dg-unten { grid-template-columns: 1fr 1fr; }
  /* 23.11.: Wetter über die ganze Breite unter Termine und Zu erledigen – was zu tun ist, steht so am Tablet ohne Blättern oben */
  .dg-karte--wetter { grid-column: 1 / -1; order: 3; }
}

/* ── Handy: Felder oben in einer Reihe, Block darunter, Flächen untereinander ── */
@media (max-width: 720px) {
  .dg-dash.dash-panel { padding: 22px 14px 84px; }
  .dg-dash .dg-kopfzeile { padding-inline-end: 70px; align-items: flex-start; gap: 12px; }
  .dg-dash .dg-kopfzeile .dash-greeting, html.dark .dg-dash .dg-kopfzeile .dash-greeting { font-size: 22px; }
  .dg-marke { font-size: 13px; }
  .dg-marke i { display: none; }
  .dg-dash .dg-marke .dash-date { flex-basis: 100%; font-size: 13px; }
  .dg-buehne { flex-direction: column; gap: 0; margin: 16px 0 12px; padding: 12px 6px; }
  .dg-felder { gap: 8px 4px; }
  .dg-feld, .dg-felder--viele .dg-feld { flex: 1 1 30%; max-width: none; padding: 4px 2px 6px; }
  .dg-feld-bild, .dg-felder--viele .dg-feld-bild { height: auto; aspect-ratio: 26 / 15; margin-bottom: 4px; }
  /* Handy: Seite wird geblättert, Umrisse nach Breite */
  .dg-felder > .dg-feld > .dg-feld-bild { height: auto; }
  .dg-feld-zahl { min-width: 32px; height: 32px; font-size: 15px; }
  .dg-ruhig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; padding: 10px 4px 0; }
  .dg-ruhig-titel { font-size: 12px; }
  .dg-klein { padding: 5px 2px; gap: 7px; }
  .dg-klein-bild { width: 30px; height: 19px; }
  .dg-klein b { font-size: 13px; }
  .dg-feld-name { font-size: 13px; line-height: 1.25; }
  .dg-feld-was { font-size: 11px; line-height: 1.3; }
  .dg-feld-namen { font-size: 11px; line-height: 1.3; }
  .dg-feld-geld { font-size: 13px; }
  .dg-summe { flex-basis: auto; align-self: stretch; margin: 10px 0 0; padding: 16px 14px 14px; gap: 10px; }
  .dg-summe-jetzt b { font-size: 26px; }
  /* 23.11.: am Handy steht der Block unter den Feldern – Trennlinie oben statt eines senkrechten Strichs links (Grundgerüst) */
  .dg-zwei { -webkit-line-clamp: 3; }   /* schmale Spalte: ein Mangel bekommt drei Zeilen */
  html:not(.dark) .dg-dash .dg-summe { border-left: 0; border-top: 1px solid var(--g-linie); margin-top: 14px; padding: 14px 0 0 8px; }
  .dg-sonst-ort { min-height: 38px; font-size: 13px; }
  .dg-unten { grid-template-columns: 1fr; gap: 12px; }
  .dg-karte { padding: 12px 12px 14px; }
  .dg-wtag b { font-size: 15px; }
  .dg-fenster-fuss { padding: 12px 16px 16px; }
  .dg-person-zeile, .dg-ohne-geld .dg-person-zeile { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 0; padding: 6px 0; }
  .dg-pz-name { grid-column: 2; }
  .dg-pz-kosten { grid-column: 3; grid-row: 1; }
  .dg-pz-was { grid-column: 2; grid-row: 2; font-size: 13px; }
  .dg-pz-wann { grid-column: 3; grid-row: 2; text-align: end; font-size: 12px; }
  .dg-ohne-geld .dg-pz-wann { grid-row: 1; }
  .dg-lohn-tabelle th:nth-child(3), .dg-lohn-tabelle td:nth-child(3), .dg-lohn-tabelle th:nth-child(4), .dg-lohn-tabelle td:nth-child(4) { display: none; }
  .dg-woche .dash-week { gap: 4px; }
  .dg-woche .dg-tag { padding: 7px 4px; gap: 4px; align-items: center; text-align: center; }
  .dg-woche .dg-tag-kopf { flex-direction: column; align-items: center; gap: 0; }
  .dg-woche .dg-tag-kopf .dash-week-name, .dg-woche .dg-tag-datum { font-size: 10px; }
  .dg-woche .dg-tag-wetter { flex-direction: column; gap: 2px; }
  .dg-woche .dg-tag-wetter span, .dg-woche .dg-tag-leute, .dg-woche .dg-tag-regen:not(.dg-tag-regen--viel) { display: none; }
  .dg-woche .dg-tag-regen, .dg-woche .dg-tag-frost { font-size: 10px; }
  .dg-woche .dg-tag-termine { width: 100%; flex-direction: row; justify-content: center; gap: 3px; }
  .dg-woche .dg-tag-termine .dash-week-tag { font-size: 0; width: 7px; height: 7px; padding: 0; border-radius: 50%; background: currentColor; opacity: .55; }
  .dg-woche .dg-tag-termine .dash-week-tag-more { font-size: 9px; line-height: 7px; }
}

/* ── 23.11. Woche oben (Lars: „mehr in Richtung Gastro, oben wieder eine Woche“) ───────────────────────────────────────────
   7 Tage ab heute nebeneinander wie der Wochenstreifen der Gastro, je Tag Wetter, Termine und eingeteilte Leute. Darunter etwas
   kleiner die Felder, ganz unten „Zu erledigen“ über die ganze Breite (zweispaltig). */
.dg-woche-oben { flex: 0 0 auto; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); overflow: hidden; }
html:not(.dark) .dg-woche-oben { border: 0; background: var(--g-karte); border-radius: var(--g-ecke-karte); box-shadow: var(--g-schatten); }
.dg-wt-reihe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dg-wt { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; border-inline-start: 1px solid var(--border); cursor: pointer;
  color: var(--text); }
.dg-wt:first-child { border-inline-start: 0; }
.dg-wt:hover { background: var(--bg); }
.dg-wt:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.dg-wt--heute { box-shadow: inset 0 3px var(--text); }
.dg-wt-kopf { display: flex; align-items: baseline; gap: 6px; }
.dg-wt-kopf span { font-size: 14px; font-weight: 600; }
.dg-wt-kopf b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dg-wt-wetter { display: flex; align-items: center; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dg-wt-wetter svg { flex: none; }
.dg-wt-wetter b { font-size: 16px; font-weight: 700; }
.dg-wt-wetter em { font-style: normal; font-size: 13px; font-weight: 600; }
.dg-wt-termine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 14px; line-height: 1.3; }
.dg-wt-termine li { overflow-wrap: anywhere; }
.dg-wt-termine b { font-weight: 600; }
.dg-wt-mehr { font-weight: 600; }
.dg-wt-leute { margin-inline-start: auto; font-style: normal; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .dg-wt-kopf { flex-wrap: wrap; column-gap: 6px; row-gap: 0; } .dg-wt-leute { margin-inline-start: 0; flex-basis: 100%; } }
/* unten nur noch eine Fläche über die ganze Breite, die Aufgaben zweispaltig */
html:not(.dark) .dg-dash > .dg-unten, .dg-dash > .dg-unten { grid-template-columns: minmax(0, 1fr); }
.dg-karte--auf .dg-liste--auf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.dg-karte--auf .dg-liste--auf li:nth-child(2) { border-top: 0; }
@media (min-width: 1101px) {
  html:not(.dark) .dg-dash > .dg-unten, .dg-dash > .dg-unten { min-height: 190px; }
  /* Felder etwas kleiner, damit Woche, Felder und Aufgaben zusammen auf den Bildschirm passen */
  .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(80px, calc(100vh - 760px), 260px); }
}
@media (max-width: 1100px) {
  .dg-wt { padding: 10px 8px 12px; }
  .dg-wt-wetter span, .dg-wt-wetter em { display: none; }
}
@media (max-width: 720px) {
  .dg-woche-oben { overflow-x: auto; }
  .dg-wt-reihe { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
  .dg-karte--auf .dg-liste--auf { grid-template-columns: minmax(0, 1fr); }
  .dg-karte--auf .dg-liste--auf li:nth-child(2) { border-top: 1px solid var(--border); }
}
/* 23.11. ohne „Zu erledigen“: die Felder bekommen den ganzen Platz unter der Woche */
.dg-dash--ohne-auf > .dg-unten { display: none !important; }
@media (min-width: 1101px) {
  .dg-dash--ohne-auf > .dg-buehne { flex: 1 1 auto; margin-bottom: 0; }
  .dg-dash--ohne-auf .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(110px, calc(100vh - 560px), 400px); }
  .dg-dash--ohne-auf .dg-felder { align-self: center; }
}
/* 23.11. Lars: Datum umpositionieren – links nur die Begrüßung, das Datum rechts auf gleicher Höhe */
@media (min-width: 721px) {
  html:not(.dark) #tab-dashboard .dg-dash .dg-kopf-text, #tab-dashboard .dg-dash .dg-kopf-text { flex: 1 1 auto; display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
  #tab-dashboard .dg-dash .dg-kopf-text > .dg-marke { order: 2; flex: none; }
  #tab-dashboard .dg-dash .dg-kopfzeile { width: 100%; }
  html:not(.dark) #tab-dashboard .dg-dash .dg-marke .dash-date, #tab-dashboard .dg-dash .dg-marke .dash-date { font-size: 17px; font-weight: 600; color: var(--text); }
}
/* 23.11. Lars: Termine sahen „langweilig, fehlplatziert“ aus und schoben bei mehr als zwei alles nach unten.
   Jetzt je Termin ein ruhiges Kästchen (Uhrzeit fett, Text höchstens zwei Zeilen), höchstens zwei je Tag in fester Höhe,
   weitere als „+n“ oben am Tag – die Woche ist immer gleich hoch. */
.dg-wt-termine { --dg-wt-zeile: 18px; gap: 6px; height: calc(2 * (2 * var(--dg-wt-zeile) + 10px) + 6px); overflow: hidden; }
.dg-wt-termine li > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dg-wt-termine li { flex: none; padding: 5px 8px; border-radius: 8px; background: rgba(15, 23, 42, .055); font-size: 14px; line-height: var(--dg-wt-zeile); }
html.dark .dg-wt-termine li { background: rgba(255, 255, 255, .08); }
.dg-wt-termine li b { font-weight: 700; }
.dg-wt:hover .dg-wt-termine li { background: rgba(15, 23, 42, .08); }
.dg-wt-mehr { margin-inline-start: auto; align-self: center; padding: 1px 8px; border-radius: 999px; background: var(--text); color: var(--white);
  font-size: 13px; font-weight: 700; line-height: 18px; }
html:not(.dark) .dg-wt-mehr { color: #fff; }
.dg-wt-wetter { min-height: 24px; }
/* 23.11. Lars: „sieht bisschen nach KI aus“ → keine grauen Blasen und kein schwarzes Pillen-Zeichen mehr,
   sondern wie in einem Kalender: schmaler Strich links, Uhrzeit fett, Text daneben; „+3“ als schlichter Text */
.dg-wt-termine { gap: 8px; height: calc(2 * (2 * var(--dg-wt-zeile) + 2px) + 8px); }
.dg-wt-termine li, .dg-wt:hover .dg-wt-termine li, html.dark .dg-wt-termine li { padding: 1px 0 1px 9px; border-radius: 0; background: none;
  border-inline-start: 3px solid #c4c9d0; }
html.dark .dg-wt-termine li { border-inline-start-color: #5a6068; }
.dg-wt--heute .dg-wt-termine li { border-inline-start-color: var(--text); }
.dg-wt-mehr, html:not(.dark) .dg-wt-mehr { padding: 0; border-radius: 0; background: none; color: var(--text); font-size: 14px; font-weight: 600; }
/* „und n weitere“ als eigene Zeile unter den zwei Terminen, ohne Strich */
.dg-wt-termine { height: calc(2 * (2 * var(--dg-wt-zeile) + 2px) + 8px + 8px + var(--dg-wt-zeile)); }
.dg-wt-termine li.dg-wt-mehr, .dg-wt:hover .dg-wt-termine li.dg-wt-mehr, html.dark .dg-wt-termine li.dg-wt-mehr {
  padding: 0; border: 0; margin: 0; font-size: 14px; font-weight: 600; line-height: var(--dg-wt-zeile); color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-align: start; align-self: flex-start; }
/* Wetter in der Woche einfarbig: Symbol, Regen und Frost in Textfarbe */
.dg-wt-wetter .dg-wsym { color: var(--text); }
.dg-wt-wetter em, .dg-wt-wetter em.dg-regen, .dg-wt-wetter em.dg-frost { color: var(--text); }
/* Wetter-Symbole (Lars: Variante 2, Wolke A): hell und ruhig, nur die Sonne leicht gelb */
.dg-wsym { flex: none; overflow: visible; }
.dg-wsym .dg-ws-sonne { fill: #e9b44c; }
.dg-wsym .dg-ws-strahl { stroke: #e9b44c; stroke-width: 1.8; stroke-linecap: round; }
.dg-wsym .dg-ws-wolke { fill: #e3e7ec; stroke: #8b95a1; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dg-wsym .dg-ws-strich line { stroke: #8b95a1; stroke-width: 1.8; stroke-linecap: round; }
.dg-wsym .dg-ws-punkt { fill: #8b95a1; }
.dg-wsym .dg-ws-blitz { fill: none; stroke: #e9b44c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.dark .dg-wsym .dg-ws-wolke { fill: #4b525b; stroke: #a3acb7; }
html.dark .dg-wsym .dg-ws-strich line { stroke: #a3acb7; }
html.dark .dg-wsym .dg-ws-punkt { fill: #a3acb7; }
/* 23.11. Lars: Felder als Überblick für den Chef – unter jedem Feld Pflege, Fläche und Monat, bei Bedarf ein Pacht-Hinweis.
   Alles in Textfarbe, mindestens 15px (keine grauen Kleintexte); Fälliges fett mit Punkt davor. */
.dg-feld-pflege, .dg-feld-monat, .dg-feld-hinweis { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--text); text-align: start; }
.dg-feld-pflege i, .dg-feld-monat i { font-style: normal; }
.dg-feld-pflege { padding-top: 8px; border-top: 1px solid var(--border); margin-top: 10px; }
.dg-pflege-faellig { font-weight: 700; white-space: nowrap; }
.dg-pflege-faellig::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: #ea7535; vertical-align: middle; }
.dg-feld-monat { font-variant-numeric: tabular-nums; }
.dg-feld-hinweis { font-weight: 700; }
.dg-feld-hinweis::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: #ea7535; vertical-align: middle; }
/* Werte-Tabelle unter dem Feld: zwei Spalten, Titel normal, Wert fett, alles in Textfarbe */
.dg-feld-werte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); text-align: start; }
.dg-wert { min-width: 0; display: flex; flex-direction: column; color: var(--text); }
.dg-wert span { font-size: 14px; line-height: 1.3; }
.dg-wert b { font-size: 16px; font-weight: 700; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg-wert--leer b { font-weight: 500; font-size: 15px; white-space: normal; }
.dg-wert--faellig b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 6px 2px 0; border-radius: 50%; background: #ea7535; vertical-align: middle; }
.dg-feld-hinweis { margin-top: 10px; }
.dg-feld-kopf .dg-feld-geld { font-weight: 600; }
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(90px, calc(100vh - 660px), 360px); }
}
/* 23.11. (Lars am PC 1920: Lücken links und rechts neben den Feldern): ohne „Zu erledigen“ füllen die großen Felder die Breite,
   je nach Breite 3 bis 5 nebeneinander (JS _dgObenZahl); die übrigen stehen darunter in der Reihe „Weitere Felder“ */
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder { justify-content: stretch; gap: 12px 36px; flex-wrap: nowrap; }
  .dg-dash--ohne-auf .dg-felder > .dg-feld, .dg-dash--ohne-auf .dg-felder--viele > .dg-feld { flex: 1 1 0; max-width: none; }
  .dg-dash--ohne-auf .dg-felder-flaeche:has(.dg-ruhig) .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(80px, calc(100vh - 760px), 300px); }
}
/* Weitere Felder: Umrisse größer und immer leicht gefüllt, damit sie nicht wie Ankreuzkästchen aussehen; Titel in normaler Schrift */
.dg-dash--ohne-auf .dg-ruhig { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; }
.dg-dash--ohne-auf .dg-ruhig-titel, html:not(.dark) .dg-dash--ohne-auf .dg-ruhig-titel { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dg-dash--ohne-auf .dg-klein-bild { width: 54px; height: 34px; }
.dg-dash--ohne-auf .dg-klein .dg-form polygon, .dg-dash--ohne-auf .dg-klein .dg-form rect { fill: var(--dg-feld, #eef2ec); stroke: var(--dg-hofrand); }
.dg-dash--ohne-auf .dg-klein:not(.dg-feld--hof) .dg-form polygon, .dg-dash--ohne-auf .dg-klein:not(.dg-feld--hof) .dg-form rect { fill: rgba(52, 168, 83, .12); stroke: #7fb48d; }
.dg-dash--ohne-auf .dg-klein--an:not(.dg-feld--hof) .dg-form polygon, .dg-dash--ohne-auf .dg-klein--an:not(.dg-feld--hof) .dg-form rect { fill: var(--dg-rasen-an); stroke: var(--dg-rasenrand-an); }
.dg-dash--ohne-auf .dg-klein b, html:not(.dark) .dg-dash--ohne-auf .dg-klein b { font-size: 15px; font-weight: 600; color: var(--text); }
/* Spalten der Werte nach Inhalt, damit „vor 16 Tagen“ und der Betrag nie aneinanderstoßen */
.dg-feld-werte { grid-template-columns: max-content max-content; column-gap: 24px; }
/* kleinere Bildschirme mit vielen Feldern: Reihe „Weitere Felder“ dichter, damit alles auf den Bildschirm passt */
@media (min-width: 1101px) and (max-width: 1359px) {
  .dg-dash--ohne-auf .dg-ruhig { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; }
  .dg-dash--ohne-auf .dg-klein { padding: 2px 4px; }
  .dg-dash--ohne-auf .dg-klein-bild { width: 40px; height: 26px; }
}
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder-flaeche:has(.dg-ruhig) .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(60px, calc(100vh - 760px), 300px); }
}
@media (min-width: 1101px) and (max-width: 1359px) {
  /* lange Namen brechen um statt „…“ (nichts abschneiden) */
  .dg-dash--ohne-auf .dg-klein b, html:not(.dark) .dg-dash--ohne-auf .dg-klein b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; line-height: 1.15; }
  .dg-dash--ohne-auf .dg-feld-werte { margin-top: 8px; padding-top: 8px; row-gap: 4px; }
}
/* Text unter dem Feld nutzt die ganze Breite der Spalte (keine Lücke rechts neben dem Text) */
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder > .dg-feld > .dg-feld-text { width: 100%; max-width: none; align-self: stretch; }
  .dg-dash--ohne-auf .dg-feld-werte { grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr); }
}
/* 23.11. Lars: einzelne Feld-Karte ruhiger – Kürzel neben der Tätigkeit (eine Zeile weniger), nur noch eine Trennlinie (unter dem Namen),
   Pflege und Geld als zwei getrennte Spalten */
@media (min-width: 1600px) {
  .dg-dash--ohne-auf .dg-feld-unten { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .dg-dash--ohne-auf .dg-feld-unten .dg-feld-was { min-width: 0; }
  .dg-dash--ohne-auf .dg-feld-unten .dg-feld-namen { flex: none; }
}
.dg-dash--ohne-auf .dg-feld-werte, .dg-dash--ohne-auf .dg-felder > .dg-feld .dg-feld-werte { display: flex; gap: 28px; border-top: 0; padding-top: 0; margin-top: 12px; }
.dg-werte-spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* kleiner Laptop (bis 1359 × 820) mit vielen Feldern: die Umrisse wären nur noch briefmarkengroß – dann ohne Bild, die Werte gehen vor */
@media (min-width: 1101px) and (max-width: 1359px) and (max-height: 820px) {
  .dg-dash--ohne-auf .dg-felder-flaeche:has(.dg-ruhig) .dg-felder > .dg-feld > .dg-feld-bild { display: none; }
}
/* Pflege-Spalte so breit wie ihr Inhalt, das Geld daneben – so stoßen „vor 16 Tagen“ und der Betrag nie aneinander */
.dg-feld-werte > .dg-werte-spalte:first-child:not(:last-child) { flex: 0 0 auto; }
/* 23.11. fällige Pflege: Feld gelblich statt grün (Handwerk-Farben: ruhiges Ocker, kein Signalgelb) */
.dg-form--faellig polygon, .dg-form--faellig rect, .dg-form--an.dg-form--faellig polygon, .dg-form--an.dg-form--faellig rect { fill: rgba(233, 180, 76, .28); stroke: #b8892e; }
html.dark .dg-form--faellig polygon, html.dark .dg-form--faellig rect { fill: rgba(233, 180, 76, .2); stroke: #d9a94a; }
/* 23.11. weniger Leerraum über den Formen (gemeinsamer Maßstab macht manche kleiner): Bildfläche niedriger */
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(90px, calc(100vh - 700px), 240px); }
  .dg-dash--ohne-auf .dg-felder-flaeche:has(.dg-ruhig) .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(60px, calc(100vh - 780px), 220px); }
}
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(90px, calc(100vh - 680px), 300px); }
}
.dg-dash--ohne-auf .dg-klein--achtung .dg-form polygon, .dg-dash--ohne-auf .dg-klein--achtung .dg-form rect { fill: rgba(233, 180, 76, .28); stroke: #b8892e; }
@media (min-width: 1101px) {
  .dg-dash--ohne-auf .dg-felder-flaeche:has(.dg-ruhig) .dg-felder > .dg-feld > .dg-feld-bild { height: clamp(60px, calc(100vh - 785px), 320px); }
}
/* die Felder-Reihe immer über die ganze Breite (align-self: center hätte sie in der Spalte auf Inhaltsbreite geschrumpft) */
@media (min-width: 1101px) { .dg-dash--ohne-auf .dg-felder { align-self: stretch; } }
.dg-dash--ohne-auf .dg-klein.dg-klein--achtung:not(.dg-feld--hof) .dg-form polygon, .dg-dash--ohne-auf .dg-klein.dg-klein--achtung:not(.dg-feld--hof) .dg-form rect { fill: rgba(233, 180, 76, .32); stroke: #b8892e; }
/* ── 23.11. Lageplan: Felder an echter Stelle, rechts das Infofeld ─────────────────────────────────────────── */
.dg-plan { flex: 1 1 auto; min-width: 0; display: flex; gap: 28px; align-items: stretch; }
.dg-plan-karte { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dg-plan-bild { position: relative; flex: none; }
.dg-plan-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dg-plan-feld { cursor: pointer; outline: none; }
.dg-plan-feld polygon { stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .15s ease, stroke .15s ease; }
.dg-plan-feld--ruhig polygon { fill: #eef1f4; stroke: #a7b1bc; }
.dg-plan-feld--an polygon { fill: rgba(52, 199, 89, .30); stroke: #2f8f46; }
.dg-plan-feld--achtung polygon { fill: rgba(233, 180, 76, .32); stroke: #b8892e; }
.dg-plan-feld--zeigt polygon, .dg-plan-feld:focus-visible polygon { stroke-width: 2.6; }
.dg-plan-feld--wahl polygon { stroke: var(--text); stroke-width: 2.6; }
html.dark .dg-plan-feld--ruhig polygon { fill: #2c3036; stroke: #6b7480; }
.dg-plan-name { position: absolute; transform: translate(-50%, 6px); white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
  text-shadow: 0 0 3px var(--white), 0 0 3px var(--white), 0 0 3px var(--white); pointer-events: auto; }
html:not(.dark) .dg-plan-name { text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.dg-plan-zahl { position: absolute; transform: translate(-30%, -70%); min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--dg-anthrazit); color: #fff; font-size: 14px; font-weight: 700; border: 2px solid var(--white); cursor: pointer; }
.dg-plan-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--text); }
.dg-plan-leg::before { content: ''; display: inline-block; width: 14px; height: 10px; margin-right: 7px; border-radius: 2px; vertical-align: -1px; border: 1.5px solid; }
.dg-plan-leg--an::before { background: rgba(52, 199, 89, .30); border-color: #2f8f46; }
.dg-plan-leg--achtung::before { background: rgba(233, 180, 76, .32); border-color: #b8892e; }
.dg-plan-leg--ruhig::before { background: #eef1f4; border-color: #a7b1bc; }
.dg-plan-ohne { flex-basis: 100%; text-align: center; }
.dg-plan-info { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 4px 24px; border-inline-start: 1px solid var(--border); }
.dg-plan-info-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dg-plan-info-kopf b { font-size: 20px; font-weight: 700; color: var(--text); }
.dg-plan-info-kopf span { font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; }
.dg-plan-info-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.dg-plan-info .dg-feld-werte { display: flex; gap: 28px; margin-top: 4px; padding-top: 0; border-top: 0; }
.dg-plan-oeffnen { align-self: flex-start; margin-top: 6px; }
/* Plan füllt genau die Höhe der Fläche, nie mehr (das Bild passt sich per JS an) */
@media (min-width: 1101px) {
  .dg-dash--ohne-auf > .dg-buehne:has(.dg-plan) { flex: 1 1 0; min-height: 300px; }
  .dg-buehne:has(.dg-plan) > .dg-plan { min-height: 0; }
  .dg-plan-karte { overflow: hidden; justify-content: center; }
}
/* echte Karte im Dashboard */
.dg-plan--echt .dg-plan-karte { align-items: stretch; }
.dg-map { flex: 1 1 auto; min-height: 260px; border-radius: 10px; overflow: hidden; background: #eef1f4; }
.dg-map .leaflet-control-attribution { font-size: 11px; }
.dg-map-schild-huelle { background: none; border: 0; }
.dg-map-schild { position: relative; left: 0; display: inline-flex; align-items: center; gap: 6px; transform: translate(-50%, 6px); white-space: nowrap;
  padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  font: 600 14px/1.2 Inter, system-ui, sans-serif; color: #1d1d1f; cursor: pointer; }
.dg-map-schild b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #2b2f33; color: #fff; font-size: 12px; font-weight: 700; }
.dg-map-schild--achtung { box-shadow: inset 3px 0 #b8892e, 0 1px 3px rgba(0, 0, 0, .18); }
/* überdeckte Namen werden zum Punkt in der Zustandsfarbe, beim Drüberfahren wieder ganz */
.dg-map-klein .dg-map-schild { padding: 0; width: 12px; height: 12px; min-width: 0; border-radius: 50%; font-size: 0; gap: 0; transform: translate(-50%, 2px);
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.dg-map-klein .dg-map-schild b { display: none; }
.dg-map-klein .dg-map-schild--an { background: #34a853; }
.dg-map-klein .dg-map-schild--achtung { background: #d9a13a; }
.dg-map-klein .dg-map-schild--ruhig { background: #a7b1bc; }
.dg-map-vorn { z-index: 9999 !important; }
.dg-map-vorn.dg-map-klein .dg-map-schild { width: auto; height: auto; padding: 3px 8px; border-radius: 7px; font-size: 14px; gap: 6px; background: rgba(255, 255, 255, .97);
  border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transform: translate(-50%, 6px); }
.dg-map-vorn.dg-map-klein .dg-map-schild b { display: inline-flex; }
/* 24.11. Lars: „ok schon besser“ zur Karte, „ja“ zu: Karte ruhiger, Felder immer als Fleck sichtbar, Leute-Block unter das Infofeld –
   dazu „die ganze Seite ist sehr weiß“: Seitengrund etwas dunkler, Karte grau statt weiß, Infofeld auf hellgrauer Fläche,
   „Gerade bei der Arbeit“ wieder als Anthrazit-Block (Handwerk-Farbe) */
html:not(.dark) #tab-dashboard:has(> .dg-dash) { background: #e6e8eb; }
html:not(.dark) .app-content:has(> #tab-dashboard.active > .dg-dash), html:not(.dark) .app-content:has(#tab-dashboard.active > .dg-dash) { background: #e6e8eb; }
html:not(.dark) .dg-map { background: #f2efe9; }
/* 24.11.: Karte A (farbig), etwa ein Drittel blasser, damit die Felder vorn bleiben */
html:not(.dark) .dg-map .leaflet-tile-pane { filter: saturate(.6) contrast(.88) brightness(1.05); }
.dg-map-fleck { cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.dg-plan-rechts { flex: 0 0 340px; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
#tab-dashboard .dg-plan-rechts > .dg-plan-info { flex: none; padding: 16px 18px 18px; border: 0; border-radius: 10px; background: #f0f2f4; }
html.dark #tab-dashboard .dg-plan-rechts > .dg-plan-info { background: rgba(255, 255, 255, .05); }
#tab-dashboard .dg-plan-rechts .dg-plan-info-kopf { border-bottom-color: #d6dbe0; }
html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan-rechts > .dg-summe { flex: none; align-self: stretch; margin: 0; padding: 16px 18px 18px;
  border: 0; border-radius: 10px; background: #2e3338; color: #fff; box-shadow: none; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-titel { color: #ffb07c; font-size: 14px; font-weight: 600; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-jetzt { color: #fff; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-jetzt .dg-icon { color: #e3e6ea; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-jetzt:hover { background: rgba(255, 255, 255, .08); }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-zeile { color: #e3e6ea; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-summe-zeile b { color: #fff; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-sonst-ort { background: rgba(255, 255, 255, .08); border: 0; color: #fff; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-sonst-ort span { color: #e3e6ea; }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-sonst-ort:hover { background: rgba(255, 255, 255, .15); }
.dg-map-mitfleck .dg-map-schild { transform: translate(-50%, 14px); }
.dg-map-weg:not(.dg-map-vorn) { visibility: hidden; }
/* rechte Spalte kompakt, damit Infofeld und Leute-Block auch am Laptop (1280×800) ohne Scrollen untereinander passen */
#tab-dashboard .dg-plan-rechts { gap: 12px; }
#tab-dashboard .dg-plan-rechts > .dg-plan-info { gap: 8px; padding: 14px 16px 16px; }
#tab-dashboard .dg-plan-rechts .dg-plan-info-kopf b { font-size: 18px; }
#tab-dashboard .dg-plan-rechts .dg-plan-oeffnen { margin-top: 2px; }
html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan-rechts > .dg-summe { gap: 10px; padding: 14px 16px 16px; }
#tab-dashboard .dg-plan-rechts .dg-summe-jetzt b { font-size: 28px; }
#tab-dashboard .dg-plan-rechts .dg-sonst { gap: 6px; }
#tab-dashboard .dg-plan-rechts .dg-sonst-ort { min-height: 36px; }
.dg-plan { position: relative; }
#tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { position: absolute; z-index: 700; top: 12px; left: 12px; width: 300px; max-height: calc(100% - 64px); overflow: auto;
  background: rgba(244, 245, 247, .97); box-shadow: 0 2px 10px rgba(16, 24, 40, .18); }
html.dark #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { background: rgba(36, 39, 43, .97); }
/* 24.11. Lars: „das Problem mit dem viel Weiß ist immer noch da – bekommst du irgendwo das Orange rein?“
   Kartenfläche ohne weißen Rahmen direkt auf dem grauen Grund, Infofeld als eigene weiße Karte; Orange (Handwerk) an drei Stellen:
   heute in der Woche, Kante des Leute-Blocks, Knopf „Wer ist dort?“ (#bf5512: Weiß darauf 4,6:1) */
html:not(.dark) #tab-dashboard .dg-buehne:has(> .dg-plan) { padding: 0; background: none; box-shadow: none; border: 0; }
#tab-dashboard .dg-buehne:has(> .dg-plan) .dg-map { border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06); }
html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-plan-info { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04); border-radius: 12px; }
html:not(.dark) #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 10px rgba(16, 24, 40, .18); }
html:not(.dark) #tab-dashboard .dg-plan-rechts .dg-plan-info-kopf { border-bottom-color: var(--g-linie); }
html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan-rechts > .dg-summe { border-radius: 12px; box-shadow: inset 0 4px 0 #ea7535; padding-top: 18px; }
/* heute: orange Kante oben, ganz leicht orange getönt */
html:not(.dark) .dg-wt--heute { background: #fff3ea; box-shadow: inset 0 4px #ea7535; }
html:not(.dark) .dg-wt--heute:hover { background: #ffeadb; }
html:not(.dark) .dg-wt--heute .dg-wt-kopf span, html:not(.dark) .dg-wt--heute .dg-wt-kopf b { color: #b44f12; }
html:not(.dark) .dg-wt--heute .dg-wt-termine li { border-inline-start-color: #ea7535; }
html.dark .dg-wt--heute { box-shadow: inset 0 4px #ff9a5c; }
/* Knopf in Orange */
#tab-dashboard .dg-plan-info .dg-plan-oeffnen { background: #bf5512; border-color: #bf5512; color: #fff; font-weight: 600; }
#tab-dashboard .dg-plan-info .dg-plan-oeffnen:hover { background: #a94a0f; border-color: #a94a0f; }
#tab-dashboard .dg-plan-info .dg-plan-oeffnen:focus-visible { outline: 2px solid #bf5512; outline-offset: 2px; }
/* 24.11.: Infofeld hat feste Höhe (längstes Feld) – der Knopf steht immer unten an derselben Stelle */
#tab-dashboard .dg-plan-rechts .dg-plan-info { box-sizing: border-box; }
#tab-dashboard .dg-plan-rechts .dg-plan-oeffnen { margin-top: auto; }
/* 24.11. Infofeld neu (Lars: „den Teil noch mal angehen“): Kopf, Status, Hinweis, Pflege-Zeilen, Lohn-Kacheln, Knopf */
#tab-dashboard .dg-plan-rechts > .dg-plan-info { gap: 12px; }
.dg-pi-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dg-pi-kopf b { min-width: 0; font-size: 20px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-pi-kopf span { flex: none; font-size: 16px; font-weight: 600; color: var(--text); }
.dg-pi-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 6px 4px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--text); }
.dg-pi-status > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-pi-status > span:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: #8a949f; }
.dg-pi-status--an { background: rgba(52, 199, 89, .14); }
.dg-pi-status--an > span:first-child::before { background: #2f9e4f; }
.dg-pi-status--ruhig { background: #f0f2f4; }
html.dark .dg-pi-status--ruhig { background: rgba(255, 255, 255, .06); }
.dg-pi-status .dg-kreis { background: #fff; }
.dg-pi-hinweis { padding: 8px 12px; border-radius: 8px; background: #fbf1dc; box-shadow: inset 3px 0 #b8892e; font-size: 15px; font-weight: 600; color: #4a3810; }
html.dark .dg-pi-hinweis { background: rgba(233, 180, 76, .14); color: #f3d79a; }
.dg-pi-block { display: flex; flex-direction: column; }
.dg-pi-block h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.dg-pi-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--text); }
.dg-pi-zeile + .dg-pi-zeile { border-top: 1px solid var(--g-linie, #e6e9ee); }
.dg-pi-zeile b { font-weight: 600; white-space: nowrap; }
.dg-pi-zeile--leer b { font-weight: 500; }
.dg-pi-zeile--faellig b { color: #7a5200; }
.dg-pi-zeile--faellig b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #d9a13a; vertical-align: 1px; }
html.dark .dg-pi-zeile--faellig b { color: #f3c46a; }
.dg-pi-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.dg-pi-kachel { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; background: #f0f2f4; }
html.dark .dg-pi-kachel { background: rgba(255, 255, 255, .06); }
.dg-pi-kachel b { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg-pi-kachel span { font-size: 14px; color: var(--text); }
/* 24.11. zurück zur alten Anordnung, nur besser lesbar: zwei Spalten mit Überschrift, Wert groß, Bezeichnung darüber */
.dg-pi-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dg-pi-spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dg-pi-spalte h3 { margin: 0; padding-bottom: 5px; border-bottom: 2px solid var(--g-linie, #e6e9ee); font-size: 14px; font-weight: 700; color: var(--text); }
.dg-pi-wert { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.dg-pi-wert span { font-size: 14px; color: var(--text); }
.dg-pi-wert b { font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.dg-pi-wert--ok b::before, .dg-pi-wert--faellig b::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: 2px; }
.dg-pi-wert--ok b::before { background: #2f9e4f; }
.dg-pi-wert--faellig b::before { background: #d9a13a; }
.dg-pi-wert--faellig b { color: #7a5200; }
html.dark .dg-pi-wert--faellig b { color: #f3c46a; }
.dg-pi-wert--leer b { font-size: 16px; font-weight: 600; }
#tab-dashboard .dg-plan-rechts .dg-plan-oeffnen { min-height: 40px; padding-inline: 18px; }
/* Infofeld auf der Karte (Laptop) etwas breiter, damit „vor 12 Tagen“ in einer Zeile bleibt */
#tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { width: 330px; }
.dg-pi-spalten { gap: 14px; }
.dg-pi-wert b { font-size: 18px; white-space: nowrap; }
.dg-pi-wert--leer b { white-space: normal; }
/* 24.11. Lars am PC (1920 × ~910 im Browser): Infofeld soll rechts bleiben – alles etwas dichter */
.dg-pi-wert small { font-size: 14px; color: var(--text); }
#tab-dashboard .dg-plan-rechts > .dg-plan-info { gap: 10px; padding: 12px 16px 14px; }
.dg-pi-status { min-height: 36px; }
.dg-pi-spalte { gap: 8px; }
html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan-rechts > .dg-summe { gap: 8px; padding: 14px 16px 14px; }
#tab-dashboard .dg-plan-rechts .dg-sonst-ort { min-height: 34px; }
/* 24.11. Lars: Infofeld immer rechts. Ist der Bildschirm zu niedrig, liegt stattdessen der dunkle Leute-Block unten links auf der Karte */
#tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { position: static; width: auto; max-height: none; overflow: visible; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04); }
html:not(.dark) #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-plan-info { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04); }
html:not(.dark) #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-summe {
  position: absolute; z-index: 700; left: 12px; bottom: 46px; width: 300px; box-shadow: inset 0 4px 0 #ea7535, 0 2px 10px rgba(16, 24, 40, .3); }
/* 24.11. Lars: „die Farben rechts im Feld – das Grün und das Blau sollten da nicht sein“ → Infofeld nur Weiß, Grau, Orange
   (wie Heute in der Woche): Status grau hinterlegt mit orangem Punkt, Pflege in Ordnung ohne Punkt, Fälliges und Pacht orange */
.dg-pi-status--an, .dg-pi-status--ruhig { background: #f0f2f4; }
.dg-pi-status--an > span:first-child::before { background: #ea7535; }
.dg-pi-wert--ok b::before { display: none; }
.dg-pi-wert--faellig b::before { background: #ea7535; }
.dg-pi-wert--faellig b { color: #b44f12; }
.dg-pi-hinweis { background: #fff3ea; box-shadow: inset 3px 0 #ea7535; color: #7a3409; }
html.dark .dg-pi-hinweis { background: rgba(234, 117, 53, .14); color: #ffc49e; }
/* 24.11. Lars: Pacht-Hinweis wie die Gruppenköpfe in Gastro – ein klarer, gerader Strich links, ohne runde Ecken, in Handwerk-Orange */
.dg-pi-hinweis, html.dark .dg-pi-hinweis { padding: 7px 12px; border-radius: 0; background: none; box-shadow: none; border-left: 4px solid #ea7535; color: var(--text); font-weight: 700; }
/* 24.11. Lars: „passt das oben bei 2 Leute · Schälen auch?“ – gleiche Form (gerader Strich, kein Hintergrund), aber Anthrazit:
   Orange bleibt dem vorbehalten, was Aufmerksamkeit braucht. Niemand dort = hellgrauer Strich. */
.dg-pi-status, .dg-pi-status--an, .dg-pi-status--ruhig { min-height: 34px; padding: 2px 0 2px 12px; border-radius: 0; background: none; border-left: 4px solid #2e3338; }
.dg-pi-status--ruhig { border-left-color: #b9c1ca; }
html.dark .dg-pi-status--an { border-left-color: #e3e6ea; }
html.dark .dg-pi-status--ruhig { border-left-color: #5a6068; }
.dg-pi-status > span:first-child::before { display: none; }
.dg-pi-status .dg-kreis { background: #f0f2f4; }
html.dark .dg-pi-status .dg-kreis { background: rgba(255, 255, 255, .1); }
/* 24.11. dichter, wenn die Höhe knapp ist (Browser-Zoom, Laptop) – so bleibt der Leute-Block rechts unter dem Infofeld */
#tab-dashboard .dg-plan--eng .dg-plan-rechts { gap: 10px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts > .dg-plan-info { gap: 8px; padding: 10px 14px 12px; }
.dg-plan--eng .dg-pi-kopf b { font-size: 18px; }
.dg-plan--eng .dg-pi-kopf span { font-size: 15px; }
.dg-plan--eng .dg-pi-status { min-height: 28px; }
.dg-plan--eng .dg-pi-status .dg-kreis { width: 26px; height: 26px; font-size: 11px; }
.dg-plan--eng .dg-pi-spalte { gap: 5px; }
.dg-plan--eng .dg-pi-spalte h3 { padding-bottom: 3px; }
.dg-plan--eng .dg-pi-wert b { font-size: 16px; line-height: 1.2; }
.dg-plan--eng .dg-pi-wert span, .dg-plan--eng .dg-pi-wert small { font-size: 13.5px; }
.dg-plan--eng .dg-pi-hinweis { padding: 4px 10px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-plan-oeffnen { min-height: 34px; padding-block: 4px; }
html:not(.dark) #tab-dashboard .dg-plan--eng .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan--eng .dg-plan-rechts > .dg-summe { gap: 6px; padding: 12px 14px 12px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-summe-jetzt b { font-size: 24px; }
html:not(.dark) #tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-summe-zeile { font-size: 14px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-summe-zahlen { gap: 1px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-sonst { gap: 4px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-sonst-ort { min-height: 30px; font-size: 14px; }
/* niedrige Bildschirme (Laptop mit Browserleiste): oben etwas weniger Luft, damit rechts beides untereinander passt */
@media (min-width: 1101px) and (max-height: 880px) {
  html:not(.dark) #tab-dashboard .dg-dash .dg-kopfzeile, #tab-dashboard .dg-dash .dg-kopfzeile { margin-bottom: 10px; }
  #tab-dashboard .dg-wt { padding-block: 9px; gap: 4px; }
  #tab-dashboard .dg-woche-oben { margin-bottom: 10px; }
  #tab-dashboard .dg-buehne:has(> .dg-plan) { margin-top: 0; }
}
/* Statuszeile darf umbrechen statt abgeschnitten zu werden (z. B. „3 Leute · Schälen, Feldpflege“) */
.dg-pi-status > span:first-child { white-space: normal; overflow: visible; text-overflow: clip; }
/* Kartenquelle nur als kleines „©“, aufklappbar */
.dg-map .dg-map-quelle { margin: 0 8px 8px 0; font-size: 12px; color: #1f2933; }
.dg-map-quelle summary { list-style: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; cursor: pointer; }
.dg-map-quelle summary::-webkit-details-marker { display: none; }
.dg-map-quelle[open] { display: flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.dg-map-quelle[open] summary { box-shadow: none; }
.dg-map-quelle a { color: #1f5fa8; }
/* 24.11. Lars: „Sias Knopf unten – bekommen wir den anders hin? Gerade ist das unsymmetrisch“: auf dem Handwerk-Dashboard (Karte)
   steht der Sia-Knopf oben rechts in der Zeile der Begrüßung; unten enden Karte und rechte Spalte auf einer Linie
   (der dunkle Leute-Block wächst bis zur Unterkante, die Orte stehen unten in ihm) */
@media (min-width: 1101px) {
  body:has(#tab-dashboard:not(.hidden) .dg-plan) .ai-fab, html:not(.dark) body:has(#tab-dashboard:not(.hidden) .dg-plan) .ai-fab { top: 12px; bottom: auto; }
  html:not(.dark) #tab-dashboard .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan-rechts > .dg-summe { flex: 1 0 auto; }
  html:not(.dark) #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-summe, #tab-dashboard .dg-plan--ueber .dg-plan-rechts > .dg-summe { flex: none; }
  #tab-dashboard .dg-plan-rechts > .dg-summe > .dg-sonst { margin-top: auto; }
}
/* knappe Höhe: Orte-Zeilen noch etwas flacher, damit der Leute-Block öfter rechts bleibt */
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-sonst-ort { min-height: 28px; }
#tab-dashboard .dg-plan--eng .dg-plan-rechts .dg-sonst { gap: 3px; }
/* großer Bildschirm: freie Höhe auf Infofeld und Leute-Block aufteilen statt nur den dunklen Block lang zu ziehen */
@media (min-width: 1101px) { #tab-dashboard .dg-plan:not(.dg-plan--ueber) .dg-plan-rechts > .dg-plan-info { flex: 1 0 auto; } }
/* 24.11. Lars: „sauber platzierte Animationen“ – kurz, ruhig, nur wo sie etwas erklären; bei „Bewegung reduzieren“ alles aus */
@media (prefers-reduced-motion: no-preference) {
  @keyframes dg-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .dg-auftritt .dg-kopfzeile { animation: dg-rein .45s cubic-bezier(.2, .7, .2, 1) both; }
  .dg-auftritt .dg-woche-oben { animation: dg-rein .5s .07s cubic-bezier(.2, .7, .2, 1) both; }
  .dg-auftritt .dg-plan-karte { animation: dg-rein .55s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .dg-auftritt .dg-plan-rechts > .dg-plan-info { animation: dg-rein .5s .23s cubic-bezier(.2, .7, .2, 1) both; }
  .dg-auftritt .dg-plan-rechts > .dg-summe { animation: dg-rein .5s .31s cubic-bezier(.2, .7, .2, 1) both; }
  /* Infofeld: anderes Feld blendet weich über */
  @keyframes dg-blend { from { opacity: .2; } to { opacity: 1; } }
  .dg-pi-blend > * { animation: dg-blend .22s ease-out; }
  /* Leute-Zahl am Schild: ruhiger grüner Ring, alle gut 2 Sekunden */
  @keyframes dg-puls-ring { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 79, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 158, 79, 0); } }
  .dg-map-schild--leute b { animation: dg-puls-ring 2.4s ease-out infinite; }
  .dg-map-klein .dg-map-schild--leute { animation: dg-puls-ring 2.4s ease-out infinite; }
  /* Fleck beim Rauszoomen: Ring wächst aus dem Punkt und verblasst */
  @keyframes dg-puls-kreis { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
  .dg-map-puls { transform-box: fill-box; transform-origin: center; animation: dg-puls-kreis 2.4s ease-out infinite; pointer-events: none; }
}
/* nur während der Platz-Messung: natürliche Höhe, keine Animation */
#tab-dashboard .dg-plan--mess .dg-plan-rechts > *, html:not(.dark) #tab-dashboard .dg-plan--mess .dg-plan-rechts > * { flex: none !important; animation: none !important; }
/* Kartenflug: Felder, Punkte und Namen kurz aus, danach weich wieder ein */
.dg-map .leaflet-overlay-pane, .dg-map .leaflet-marker-pane { transition: opacity .35s ease-out; }
.dg-map.dg-map-fliegt .leaflet-overlay-pane, .dg-map.dg-map-fliegt .leaflet-marker-pane { opacity: 0; transition: none; }
/* Start: Karte erst zeigen, wenn die Kacheln geladen sind, dann weich einblenden */
.dg-map .leaflet-tile-pane { transition: opacity .45s ease-out; }
.dg-map.dg-map-wartet .leaflet-tile-pane { opacity: 0; transition: none; }

/* 24.11. (Lars: „sofort zurück zum Hof quasi“): Haus-Knopf unter Plus/Minus, gleiche Größe wie die Zoom-Knöpfe */
.dg-map .dg-map-heim a { display: flex; align-items: center; justify-content: center; color: #1f2933; }
.dg-map .dg-map-heim a:hover { color: #bf5512; }
.dg-map .dg-map-heim a:focus-visible { outline: 2px solid #ea7535; outline-offset: 1px; }

/* 24.11.: nichts abschneiden – passt „Unterwegs“ mit Zahlen nicht in eine Zeile (schmaler Block auf der Karte), rutschen die Zahlen
   in eine zweite Zeile statt dass der Name gekürzt wird */
#tab-dashboard .dg-plan-rechts .dg-sonst-ort { flex-wrap: wrap; row-gap: 0; padding-top: 4px; padding-bottom: 4px; }
#tab-dashboard .dg-plan-rechts .dg-sonst-ort b { overflow: visible; text-overflow: clip; }

/* 24.11. Handy (bis 720 px): die Feld-Kacheln sind nur ~150 px breit – Pflege und Geld nebeneinander liefen übereinander und rechts
   aus dem Bild (Panel bis 49 px zu breit). Dort stehen die beiden Werte-Spalten untereinander, Schrift passend zur Kachel. */
@media (max-width: 720px) {
  .dg-feld-werte, .dg-dash--ohne-auf .dg-feld-werte, .dg-dash--ohne-auf .dg-felder > .dg-feld .dg-feld-werte { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .dg-feld-werte > .dg-werte-spalte, .dg-feld-werte > .dg-werte-spalte:first-child:not(:last-child) { flex: none; gap: 6px; }
  .dg-wert span { font-size: 12px; }
  .dg-wert b { font-size: 14px; }
  .dg-wert--leer b { font-size: 13px; }
}

/* 24.11. Tablet (Kacheln statt Karte, z. B. 1024 px): Pflege und Lohn nebeneinander passten nicht in die schmale Kachel – „November“
   lief über „Gedüngt“. Jede Spalte ist jetzt so breit wie ihr Inhalt; passt die zweite nicht mehr daneben, rutscht sie darunter. */
.dg-felder > .dg-feld .dg-feld-werte, .dg-dash--ohne-auf .dg-felder > .dg-feld .dg-feld-werte { flex-wrap: wrap; row-gap: 10px; column-gap: 24px; }
.dg-felder > .dg-feld .dg-feld-werte > .dg-werte-spalte { min-width: max-content; }

/* ── 29.11. Lars (Windows-App, 1920 × 1080: „das soll langsam mal gefixed werden“): Startseite kompakt und gefüllt ──────────────
   Woche: nur so hoch wie ihr Inhalt – ohne Termine in der Woche Kopf und Wetter, sonst Platz für höchstens zwei Termine und
   „und n weitere“ (alle Tage gleich hoch, weil sie in einer Rasterzeile stehen). Vorher war der Platz für Termine immer reserviert,
   in einer leeren Woche war jede Kachel zur Hälfte leer. */
.dg-wt-termine { height: auto; max-height: calc(2 * (2 * var(--dg-wt-zeile) + 2px) + 8px + 8px + var(--dg-wt-zeile)); }
.dg-wt-termine:empty { display: none; }
/* Karte ohne eingezeichnete Felder: Hinweis unten links auf der Karte, Orte mit Pin als Schild mittig auf dem Pin */
.dg-plan--echt .dg-plan-karte { position: relative; }
.dg-map-hinweis { position: absolute; left: 16px; bottom: 16px; z-index: 500; max-width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 12px rgba(16, 24, 40, .16); color: #1d1d1f; }
.dg-map-hinweis b { font-size: 17px; font-weight: 700; line-height: 1.3; }
.dg-map-hinweis span { font-size: 15px; line-height: 1.45; color: #3a3f45; }
.dg-map-hinweis .dg-knopf { margin-top: 6px; background: #2b2f33; border-color: #2b2f33; color: #fff; }
.dg-map-hinweis .dg-knopf:hover { background: #1b1e21; }
html.dark .dg-map-hinweis { background: rgba(32, 34, 37, .97); color: #f2f3f5; }
html.dark .dg-map-hinweis span { color: #c3c8ce; }
.dg-map-schild-huelle--pin .dg-map-schild, .dg-map-vorn.dg-map-klein.dg-map-schild-huelle--pin .dg-map-schild { transform: translate(-50%, -50%); }
html.dark #tab-dashboard .dg-map-hinweis .dg-knopf { background: #f2f3f5; border-color: #f2f3f5; color: #1b1e21; }
html.dark #tab-dashboard .dg-map-hinweis .dg-knopf:hover { background: #ffffff; }
