/* Felder & Hof (05.11.2026, js/hw-felder.js; 08.11.2026 „Liste zuerst“ und Feldseite wie die Rollrasen-Demo frei-2):
   Satz zur Lage, Tage zum Zurückschauen, je Einsatzort eine Zeile, Feld-Protokoll, Feldseite als Fenster.
   Nur wenn hwfAn() (Linie Handwerk + galabau bzw. Reiter „Felder & Hof“). Farben aus main.css, ruhig. */
/* 09.11. (Lars: „scrollen soll so nicht sein“): Felder ODER Einsatzorte, Knopf „Einsatzorte“ oben. Der Reiter bleibt in der
   Bildschirmhöhe (baustellen.css); nur wenn ein Betrieb sehr viele Felder hat, scrollt der Felder-Bereich in sich. */
.hwf-modus .bau-panel { display: flex; flex-direction: column; overflow: hidden; }
.hwf-modus:not(.hwf-orte-an) #hwf-bereich { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-bottom: 0; }
.hwf-modus:not(.hwf-orte-an) #hwf-orte-kopf, .hwf-modus:not(.hwf-orte-an) #bau-body { display: none; }
.hwf-modus.hwf-orte-an #hwf-bereich { display: none; }
.hwf-modus.hwf-orte-an .bau-grid { flex: 1 1 0; min-height: 0; }
#hwf-bereich { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
#hwf-bereich.hidden { display: none; }
.hwf-wrap { display: flex; flex-direction: column; gap: 14px; }
.hwf-karte { margin: 0; padding: 4px 20px 10px; }
.hwf-kopf { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; flex-wrap: wrap; }
.hwf-kopf > div:first-child { flex: 1 1 auto; min-width: 0; }
.hwf-titel { font-size: 16px; font-weight: 700; color: var(--text); }
.hwf-unter { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hwf-orte-kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.hwf-orte-kopf .hwf-titel { flex: 1 1 auto; }
.hwf-orte-kopf.hidden { display: none; }

/* Kopfzeile des Reiters: Zahl, „Karte“, „Neues Feld“ (nur im Felder-Modus) */
#tab-baustellen:not(.hwf-modus) .hwf-kopf-teil { display: none; }
.hwf-kopf-karte { margin-left: auto; }
/* 13.11. Umschalter Felder · Einsatzorte · Fahrzeuge statt einzelner Knöpfe.
   14.11. (Lars: „die Knöpfe sind irgendwie so halb nur“): eigener Rahmen wie .btn-secondary, gleiche Höhe wie die Knöpfe daneben.
   14.11. (Lars: „die Optik darf sich beim Drücken nicht verändern“, „eine kleine Animation“): alle Teile gleich dick geschrieben
   (keine Breitenänderung), kein Schrumpfen beim Drücken, die Markierung gleitet (.hwf-ansicht-zeiger, js hwfZeigerSetzen). */
.hwf-ansicht { position: relative; display: inline-flex; align-items: stretch; gap: 2px; padding: 2px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); flex: 0 0 auto; box-sizing: border-box; height: 32px; }
.hwf-ansicht.hidden { display: none; }
.hwf-ansicht-zeiger { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: calc(var(--radius-sm) - 2px);
  background: var(--primary-pale); box-shadow: inset 0 0 0 1px var(--border); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.3, .8, .3, 1), width .28s cubic-bezier(.3, .8, .3, 1); }
.hwf-ansicht.mit-zeiger .hwf-ansicht-zeiger { opacity: 1; }
.hwf-ansicht-knopf { position: relative; z-index: 1; padding: 0 12px; border: 0; border-radius: calc(var(--radius-sm) - 2px);
  background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: color .2s; }
.hwf-ansicht-knopf.hidden { display: none; }
.hwf-ansicht-knopf:hover { color: var(--primary); }
.hwf-ansicht-knopf[aria-pressed="true"] { color: var(--primary); }
.hwf-ansicht:not(.mit-zeiger) .hwf-ansicht-knopf[aria-pressed="true"] { background: var(--primary-pale); box-shadow: inset 0 0 0 1px var(--border); }
.hwf-ansicht-knopf:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
/* Karte und „… anlegen“ gleich hoch wie der Umschalter, und beim Drücken bleibt alles, wie es ist (main.css: scale(.97)) */
#tab-baustellen.hwf-modus .dash-header .btn-sm.hwf-kopf-teil { box-sizing: border-box; height: 32px; padding-top: 0; padding-bottom: 0;
  display: inline-flex; align-items: center; justify-content: center; }
#tab-baustellen.hwf-modus .dash-header .btn-sm.hwf-kopf-teil.hidden { display: none; }
#tab-baustellen .dash-header .hwf-kopf-teil:active, #tab-baustellen .hwf-ansicht-knopf:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .hwf-ansicht-zeiger, .hwf-ansicht-knopf { transition: none; } }
#hwf-kopf-zahl:empty { display: none; }

/* Lage und Tage */
.hwf-l-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.hwf-l-lage { font-size: 16px; font-weight: 600; color: var(--text); }
.hwf-l-warn { color: #b45309; }
.hwf-l-ruhig { color: var(--text-muted); font-weight: 500; }
.hwf-l-tage { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hwf-l-tag { font: inherit; font-size: 13px; color: var(--text); background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 8px; padding: 5px 11px; cursor: pointer; }
.hwf-l-tag:hover { border-color: #94a3b8; }
.hwf-l-tag.an { border-color: var(--text); font-weight: 600; }
.hwf-l-datum { font: inherit; font-size: 13px; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; background: var(--surface, #fff); }

/* Liste */
.hwf-liste { padding-top: 6px; }
.hwf-leer-hinweis { padding: 16px 0 10px; }
.hwf-tabelle-wrap { overflow-x: auto; }
.hwf-tabelle, .hwf-p-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hwf-tabelle th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
  padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hwf-tabelle td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.hwf-tabelle tr:last-child td { border-bottom: 0; }
.hwf-tabelle td b { display: block; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hwf-tabelle td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hwf-zeile { cursor: pointer; }
.hwf-zeile:hover td, .hwf-zeile:focus-visible td { background: rgba(15, 23, 42, .025); }
.hwf-zeile:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.hwf-zeile--aus b { color: var(--text-muted) !important; }
.hwf-name { width: 20%; }
.hwf-name b { font-size: 16px !important; font-weight: 700 !important; }
.hwf-l-kosten { width: 13%; }
.hwf-l-kosten .hwf-l-gross { font-size: 16px; }
.hwf-l-rasen { width: 25%; }
.hwf-l-leute { width: 20%; }
.hwf-leer { color: #a0aec0; font-weight: 500; }
.hwf-l-eintrag { display: flex; flex-direction: column; gap: 1px; }
.hwf-l-eintrag + .hwf-l-eintrag { margin-top: 7px; }
.hwf-l-gross { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hwf-l-klein { font-size: 12.5px; color: var(--text-muted); }
.hwf-l-an .hwf-l-gross { color: #b45309; }

/* Rasen je Teilfläche: kleine Auswahl mit Farbpunkt der Sorte */
.hwf-ph { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0 6px 6px 0; padding: 4px 24px 4px 9px; border-radius: 8px;
  font-size: 13px; font-weight: 600; background: #f1efe8; color: #2c2c2a; cursor: pointer; }
.hwf-ph i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.hwf-ph::after { content: ''; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; pointer-events: none; }
.hwf-ph select { field-sizing: content; appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit;
  padding: 0; margin: 0; cursor: pointer; outline: none; max-width: 180px; }
.hwf-ph select option { color: #0f172a; background: #fff; font-weight: 400; }
.hwf-ph:focus-within { box-shadow: 0 0 0 2px rgba(15, 23, 42, .25); }
.hwf-ph--ohne { color: var(--text-muted); font-weight: 500; }

/* Feld-Protokoll */
.hwf-filter { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface, #fff); color: var(--text); max-width: 220px; }
.hwf-p-tabelle td { padding: 7px 12px 7px 0; font-size: 14px; color: var(--text); vertical-align: top; }
.hwf-p-tabelle tr.hwf-p-neu td { border-top: 1px solid var(--border); }
.hwf-p-tabelle tr:first-child td { border-top: 0; }
.hwf-p-tag { width: 18%; font-weight: 600; white-space: nowrap; }
.hwf-p-tag small, .hwf-p-menge small, .hwf-p-wer small { display: inline; margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.hwf-p-wer small { display: block; margin-left: 0; white-space: normal; }
.hwf-p-feld { width: 18%; }
.hwf-p-art { width: 15%; font-weight: 600; white-space: nowrap; }
.hwf-p-menge { width: 22%; white-space: nowrap; }
.hwf-p-wer { color: var(--text-muted) !important; }
.hwf-p-aktion { width: 32px; text-align: right; }
.hwf-p-weg { border: 0; background: none; color: var(--text-muted); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; cursor: pointer; opacity: .55; }
.hwf-p-weg:hover, .hwf-p-weg:focus-visible { opacity: 1; background: rgba(15, 23, 42, .06); }
.hwf-p-leer { padding: 14px 0 8px; font-size: 14px; color: var(--text-muted); }
.hwf-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: middle; background: #94a3b8; }
.hwf-punkt--gemaeht { background: #4d7c0f; }
.hwf-punkt--geduengt { background: #a16207; }
.hwf-punkt--gewaessert { background: #0369a1; }

/* Feldseite: links Kosten (Summe, je Monat, wofür), rechts Jetzt dort, Steht an, Flächen, Verlauf. Nichts scrollt, der Verlauf wird gekürzt. */
.dash-live-modal.hwf-fs-fenster { width: min(1180px, calc(94vw / var(--ui-zoom, 1))); max-width: none;
  height: min(calc(720px / var(--ui-zoom, 1)), calc(86vh / var(--ui-zoom, 1))); max-height: none; overflow: hidden; }
.hwf-fs-fenster .dlm-header { gap: 12px; padding: 16px 24px 12px; }
.hwf-fs-fenster .dlm-header > div:first-child { flex: 1 1 auto; min-width: 0; }
.hwf-fs-fenster .dlm-title { color: var(--text); }
.hwf-fs-reiter { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 999px; max-width: 52%; overflow-x: auto; }
.hwf-fs-reiter-knopf { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: #475569; padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hwf-fs-reiter-knopf.an { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.hwf-fs-rumpf { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 14px 24px 20px; overflow: hidden; }
.hwf-fs-links, .hwf-fs-rechts { min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.hwf-fs-titel { font-size: 14px; font-weight: 700; color: var(--text); padding-top: 12px; }
.hwf-fs-rechts > .hwf-fs-titel:first-child { padding-top: 0; }
.hwf-fs-kopfzahl { display: flex; flex-direction: column; gap: 2px; }
.hwf-fs-kopfzahl small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.hwf-fs-summe { display: block; font-size: 34px; font-weight: 800; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hwf-fs-monate { flex: 1 1 0; min-height: 90px; display: flex; gap: 6px; align-items: stretch; }
.hwf-fs-monat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
.hwf-fs-saeule { flex: 1 1 0; min-height: 0; width: 70%; max-width: 40px; display: flex; flex-direction: column-reverse; }
.hwf-fs-saeule i { display: block; width: 100%; background: #3b6d11; border-radius: 4px 4px 0 0; }
.hwf-fs-monat--jetzt span { color: var(--text); font-weight: 700; }
.hwf-fs-arten { display: flex; flex-direction: column; gap: 6px; }
.hwf-fs-art { display: grid; grid-template-columns: 120px minmax(0, 1fr) 90px; align-items: center; gap: 12px; font-size: 14px; }
.hwf-fs-art-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-art-balken { height: 8px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.hwf-fs-art-balken i { display: block; height: 100%; background: #3b6d11; border-radius: 4px; }
.hwf-fs-art b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.hwf-fs-ohne-ort p { margin: 6px 0 12px; font-size: 14px; color: var(--text-muted); max-width: 420px; }
.hwf-fs-block { padding-bottom: 4px; }
.hwf-fs-flaechen { display: flex; flex-direction: column; gap: 2px; }
.hwf-fs-flaeche { display: grid; grid-template-columns: 10px auto minmax(0, 1fr); align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 14px;
  border: 0; background: none; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; color: var(--text); }
.hwf-fs-flaeche:hover, .hwf-fs-flaeche:focus-visible { background: rgba(15, 23, 42, .04); }
.hwf-fs-flaeche i { width: 9px; height: 9px; border-radius: 2px; }
.hwf-fs-flaeche b { font-weight: 600; white-space: nowrap; }
.hwf-fs-flaeche span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-verlauf { flex: 1 1 0; min-height: 0; overflow: hidden; }
.hwf-fs-v-tag { width: 26%; font-weight: 600; white-space: nowrap; }

/* Fenster */
.modal-overlay.hwf-fenster-huelle { z-index: 9100; }   /* über der Feldseite (dash-live-modal-overlay 9000) */
.hwf-fenster select, .hwf-fenster input[type=date], .hwf-menge input {
  font: inherit; font-size: 14px; font-weight: 400; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  background: var(--surface, #fff); color: var(--text); width: 100%; box-sizing: border-box; }
.hwf-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hwf-menge { display: flex !important; gap: 8px; }
.hwf-menge select { width: 96px; flex: none; }
.hwf-wahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hwf-wahl-knopf { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  background: var(--surface, #fff); color: var(--text); cursor: pointer; }
.hwf-wahl-knopf[aria-checked="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.hwf-aktiv { font-size: 14px; }

@media (max-width: 760px) {
  .hwf-karte { padding: 4px 14px 10px; }
  .hwf-zwei, .hwf-wahl { grid-template-columns: 1fr 1fr; }
  #tab-baustellen.bau-pane.hwf-modus { overflow-y: auto; height: auto; min-height: calc(calc(100dvh / var(--ui-zoom)) - var(--nav-h)); }
  .hwf-modus .bau-panel { overflow: visible; }
  .hwf-modus:not(.hwf-orte-an) #hwf-bereich { overflow: visible; }
  .hwf-modus.hwf-orte-an .bau-grid { height: auto; }
  .hwf-l-tage { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .dash-live-modal.hwf-fs-fenster { width: 100vw; height: 100dvh; border-radius: 0; }
  .hwf-fs-fenster .dlm-header { flex-wrap: wrap; }
  .hwf-fs-reiter { order: 5; max-width: 100%; }
  .hwf-fs-rumpf { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .hwf-fs-links, .hwf-fs-rechts { overflow: visible; }
  .hwf-fs-monate { min-height: 140px; }
  .hwf-fs-verlauf { overflow: visible; flex: none; }
}

html.dark .hwf-zeile:hover td { background: rgba(255, 255, 255, .04); }
html.dark .hwf-leer { color: #5b6470; }
html.dark .hwf-l-warn, html.dark .hwf-l-an .hwf-l-gross { color: #fbbf24; }
html.dark .hwf-ph { background: rgba(255, 255, 255, .07); color: var(--text); }
html.dark .hwf-fs-reiter, html.dark .hwf-fs-art-balken { background: rgba(255, 255, 255, .06); }
html.dark .hwf-fs-reiter-knopf { color: var(--text-muted); }
html.dark .hwf-fs-reiter-knopf.an { background: rgba(255, 255, 255, .12); color: var(--text); }
html.dark .hwf-fs-saeule i, html.dark .hwf-fs-art-balken i { background: #6a9f3a; }
html.dark .hwf-fs-flaeche:hover { background: rgba(255, 255, 255, .05); }
html.dark .hwf-filter, html.dark .hwf-fenster select, html.dark .hwf-fenster input[type=date], html.dark .hwf-menge input, html.dark .hwf-wahl-knopf,
html.dark .hwf-l-tag, html.dark .hwf-l-datum {
  background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: var(--text); }
html.dark .hwf-p-weg:hover { background: rgba(255, 255, 255, .08); }
html.dark .hwf-wahl-knopf[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: #141414; }

/* 09.11. (Rollrasen, Stand der Demo frei-2 bis 3c0ce781; Design-Thema /root/Projekte/einspielen/design-thema.md Abschnitt 1):
   Liste ohne Lage-Satz und Tage, Rasen nur als Text, nur der Feldname fett, Beträge rechtsbündig, Spaltenköpfe normal geschrieben,
   Hof (Ort ohne Rasen) als schmale Zeile, Listen erst 3 Zeilen; Feldseite: links Kosten und Verlauf, rechts Rückblick, Jetzt dort,
   Flächen mit Rasen zum Umstellen, Steht an; so hoch wie der Inhalt. Akzent-Stellen nur über --hwf-akzent / --hwf-akzent-text
   (Farbe setzt der Chef: Handwerk Orange, Entwurf) – hier die bisherigen Werte. */
:root { --hwf-akzent: var(--text); --hwf-akzent-text: #b45309; }
html.dark { --hwf-akzent-text: #fbbf24; }
.hwf-karte { border-radius: var(--radius, 12px); }
.hwf-tabelle th { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hwf-tabelle th.hwf-zahl, .hwf-tabelle td.hwf-zahl { text-align: right; padding-right: 40px; }
.hwf-zahl .hwf-l-eintrag { align-items: flex-end; }
.hwf-tabelle td .hwf-l-gross, .hwf-p-art, .hwf-p-tag, .hwf-fs-art-name, .hwf-fs-v-tag, .hwf-fs-summe, .hwf-l-tag.an { font-weight: 400; }
.hwf-name b, .hwf-p-tag { font-weight: 700 !important; }
.hwf-l-kosten .hwf-l-gross { font-size: 16px; font-variant-numeric: tabular-nums; }
.hwf-l-klein { font-size: 13px; }
.hwf-leer { color: var(--text-muted); font-weight: 400; }
.hwf-l-teil { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.hwf-l-teil + .hwf-l-teil { margin-top: 5px; }
.hwf-l-teil b { display: inline !important; font-size: 14.5px !important; font-weight: 400 !important; color: var(--text); }
.hwf-l-teil span { color: var(--text-muted); }
.hwf-l-an .hwf-l-gross { color: var(--hwf-akzent-text); }
div.hwf-hofzeile { display: flex; align-items: baseline; gap: 28px; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 14.5px; color: var(--text); }
.hwf-hofzeile:hover, .hwf-hofzeile:focus-visible { background: rgba(15, 23, 42, .025); }
.hwf-hofzeile:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.hwf-hofzeile .hwf-name { width: auto; font-size: 16px; }
.hwf-hofzeile .hwf-l-eintrag { display: inline-flex; }
.hwf-hofzeile .hwf-l-gross { font-weight: 400; font-size: 14.5px; }
.hwf-hof-kosten { font-variant-numeric: tabular-nums; }
.hwf-alle { align-self: flex-start; flex: 0 0 auto; margin: 10px 0 6px; }
/* Feldseite */
.dash-live-modal.hwf-fs-fenster { height: auto; max-height: min(calc(720px / var(--ui-zoom, 1)), calc(86vh / var(--ui-zoom, 1))); border-radius: var(--radius, 12px); display: flex; flex-direction: column; }
.hwf-fs-rumpf { flex: 0 1 auto; }
.hwf-fs-reiter { border-radius: 8px; background: var(--app-bg, #eef1f5); }
.hwf-fs-reiter-knopf { border-radius: 4px; font-weight: 700; color: var(--text-muted); }
.hwf-fs-reiter-knopf.an { color: var(--text); box-shadow: inset 0 -2px 0 var(--hwf-akzent), 0 1px 2px rgba(15, 23, 42, .12); }
.hwf-fs-kopfzahl span { font-size: 13px; color: var(--text-muted); }
.hwf-fs-kopfzahl small { font-weight: 400; }
.hwf-fs-summe { font-size: 30px; }
.hwf-fs-monate { flex: 1 1 120px; min-height: 56px; max-height: 120px; }
.hwf-fs-monat--jetzt span { color: var(--hwf-akzent); }
.hwf-fs-verlauf:not(.hwf-alle-offen) { flex: 0 1 auto; }
.hwf-fs-verlauf.hwf-alle-offen { flex: 1 1 0; overflow: auto; }
.hwf-fs-tage { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.hwf-fs-tage .hwf-l-tag { padding: 4px 9px; }
.hwf-l-tag.an { border-color: var(--hwf-akzent); color: var(--hwf-akzent); font-weight: 700; }
.hwf-l-tag:hover { border-color: var(--text-muted); }
.hwf-fs-flaeche { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 0; margin: 0; cursor: default; }
.hwf-fs-flaeche:hover { background: none; }
.hwf-fs-flaeche-name { font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; min-width: 110px; }
.hwf-fs-flaeche-name:hover, .hwf-fs-flaeche-name:focus-visible { text-decoration: underline; }
.hwf-fs-flaeche .hwf-ph { margin: 0; font-weight: 400; }
.hwf-fs-flaeche > span { font-size: 13px; color: var(--text-muted); }
@media (max-height: 780px) { .hwf-fs-monate { flex-basis: 64px; min-height: 0; max-height: 64px; } }
@media (max-width: 760px) {
  .dash-live-modal.hwf-fs-fenster { height: 100dvh; max-height: none; }
  .hwf-fs-rumpf { flex: 1 1 0; }
  .hwf-tabelle th.hwf-zahl, .hwf-tabelle td.hwf-zahl { padding-right: 16px; }
  div.hwf-hofzeile { flex-wrap: wrap; gap: 6px 18px; }
}
html.dark .hwf-hofzeile:hover { background: rgba(255, 255, 255, .04); }
.hwf-fs-v-tag { font-weight: 700; }
.hwf-fs-art b, .hwf-fs-block .hwf-l-gross { font-weight: 400; }
/* 09.11.: „Alle N anzeigen“ im Kopf des Protokolls (spart eine Zeile, Reiter scrollt nicht) */
#hwf-p-mehr { margin-left: auto; display: flex; }
#hwf-p-mehr .hwf-alle { margin: 0; }
#hwf-p-mehr:empty { display: none; }
/* 09.11. b (Lars: „oben zu weiß-grau“): kleiner Umriss je Feld wie auf dem Dashboard (Rasen grün, Hof grau), ruhiger Tabellenkopf,
   „Jetzt dort“ als „2 Leute · Schälen“ mit Namen darunter. Farben an einer Stelle (Felder dürfen grün sein, design-thema.md). */
:root { --hwf-rasen: rgba(52, 199, 89, .14); --hwf-rasenrand: #2f8f46; --hwf-hof: #eef1f4; --hwf-hofrand: #8a96a3; }
html.dark { --hwf-rasen: rgba(76, 212, 113, .14); --hwf-rasenrand: #4cd471; --hwf-hof: #2f3337; --hwf-hofrand: #6b747d; }
.hwf-name-mit-form { display: flex; align-items: center; gap: 12px; }
.hwf-form { flex: 0 0 auto; display: block; overflow: visible; }
.hwf-form polygon, .hwf-form rect { fill: var(--hwf-rasen); stroke: var(--hwf-rasenrand); stroke-width: 1.2; stroke-linejoin: round; }
.hwf-form--hof polygon, .hwf-form--hof rect { fill: var(--hwf-hof); stroke: var(--hwf-hofrand); }
.hwf-tabelle th { font-size: 12px; font-weight: 400; color: var(--text-muted); }
div.hwf-hofzeile { align-items: center; }
.hwf-hofzeile .hwf-l-eintrag { display: inline-flex; gap: 8px; align-items: baseline; }
.hwf-l-leute .hwf-l-gross, .hwf-hof-leute .hwf-l-gross { white-space: nowrap; }
.hwf-l-leute .hwf-l-eintrag { min-width: 0; }
.hwf-l-leute .hwf-l-klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; display: block; }
.hwf-hofzeile .hwf-l-eintrag { flex-direction: row; }
/* 09.11. c: Hof als Zeile am Ende der Tabelle (Kosten unter den Beträgen), Spalten fest verteilt („Steht an“ schmaler),
   Protokoll rechts frei für den SIA-Knopf (lag sonst über dem × der unteren Zeilen) */
.hwf-l-tabelle { table-layout: fixed; width: 100%; }
.hwf-l-tabelle th:nth-child(1) { width: 27%; }
.hwf-l-tabelle th:nth-child(2) { width: 15%; }
.hwf-l-tabelle th:nth-child(3) { width: 22%; }
.hwf-l-tabelle th:nth-child(4) { width: 22%; }
.hwf-l-tabelle th:nth-child(5) { width: 14%; }
.hwf-l-tabelle td { overflow: hidden; text-overflow: ellipsis; }
tr.hwf-hofzeile { cursor: pointer; }
tr.hwf-hofzeile td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
tr.hwf-hofzeile .hwf-l-kosten .hwf-l-gross { font-variant-numeric: tabular-nums; }
.hwf-modus .hwf-p-tabelle td.hwf-p-aktion { padding-right: 72px; }
tr.hwf-hofzeile .hwf-l-klein { max-width: none; }
@media (max-width: 760px) { .hwf-modus .hwf-p-tabelle td.hwf-p-aktion { padding-right: 0; } .hwf-l-tabelle { table-layout: auto; } }
/* 09.11. d (Lars: „was man täglich sehen will“): Liste ohne Kosten (die stehen auf der Feldseite), unten „Heute“ – links die Karte,
   wo wer gerade ist, rechts der Tag nach Uhrzeit. Die Karte füllt die Höhe bis zur Leiste, die Liste passt sich ein. */
.hwf-l-tabelle th:nth-child(1) { width: 32%; }
.hwf-l-tabelle th:nth-child(2) { width: 24%; }
.hwf-l-tabelle th:nth-child(3) { width: 28%; }
.hwf-l-tabelle th:nth-child(4) { width: 16%; }
.hwf-heute { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; padding: 16px 20px; }
.hwf-modus:not(.hwf-orte-an) #hwf-bereich > .hwf-wrap { flex: 1 1 auto; min-height: 0; }
.hwf-modus .hwf-heute { flex: 1 1 0; min-height: 170px; }
.hwf-heute-karte { position: relative; min-height: 130px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.hwf-heute-rechts { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.hwf-heute-rechts .hwf-kopf { padding: 0 0 6px; }
.hwf-modus .hwf-heute #hwf-protokoll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: thin; }
.hwf-modus .hwf-heute #hwf-protokoll tr { scroll-snap-align: start; }   /* 23.11. (Lars): alle Einträge, scrollt und rastet je Zeile ein */
.hwf-h-tabelle { table-layout: fixed; }
.hwf-h-tabelle .hwf-p-tag { width: 56px; font-weight: 700; }
.hwf-h-wer { width: 22%; }
.hwf-h-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwf-h-text small { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.hwf-h-wo { width: 30%; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwf-h-tabelle tr + tr td { border-top: 1px solid var(--border); }
.hwf-modus .hwf-h-tabelle td.hwf-p-aktion { width: 32px; padding-right: 0; }
.hwf-heute-form { stroke: var(--hwf-rasenrand); fill: rgba(52, 199, 89, .28); fill-opacity: 1; }
.hwf-heute-form--hof { stroke: var(--hwf-hofrand); fill: rgba(120, 132, 145, .25); }
.hwf-pin-huelle { background: none; border: 0; }
.hwf-pin { position: relative; transform: translate(-50%, -50%); display: flex; flex-direction: column; padding: 4px 9px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-size: 12px; line-height: 1.35;
  white-space: nowrap; color: var(--text); cursor: pointer; }
.hwf-pin b { font-weight: 700; }
.hwf-pin span { color: var(--text-muted); }
.hwf-pin--an { border-color: var(--hwf-rasenrand); }
.hwf-pin--an span { color: var(--text); }
html.dark .hwf-pin { background: #1f2327; }
@media (max-width: 760px) {
  .hwf-heute { grid-template-columns: 1fr; }
  .hwf-heute-karte { height: 220px; }
  .hwf-h-wo { display: none; }
}
.hwf-pin--zahl { width: 26px; height: 26px; padding: 0; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700;
  font-size: 13px; background: #2b2f33; color: #fff; border: 2px solid #fff; }
.hwf-pin--zahl:not(.hwf-pin--an) { background: #fff; color: var(--text-muted); border-color: var(--border); }
.hwf-modus .hwf-wrap > .hwf-liste { flex: 0 0 auto; }
/* 09.11. e: Luftbild unten links, Felder als helle Fläche mit weißem Rand, „Heute“ als Arbeitsblöcke (von–bis, „seit“) */
.hwf-heute-karte .hwk-karte { background: #3d4a38; }
.hwf-heute-form { stroke: #ffffff; stroke-width: 2; fill: rgba(76, 212, 113, .32); }
.hwf-heute-form--hof { stroke: #ffffff; fill: rgba(255, 255, 255, .25); }
.hwf-heute-karte .leaflet-control-attribution { font-size: 9px; background: rgba(255, 255, 255, .7); }
.hwf-pin { border-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.hwf-pin--an { border-color: transparent; }
.hwf-pin--an b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #34c759; vertical-align: 1px; }
.hwf-pin--zahl { border: 2px solid #fff; }
.hwf-pin--zahl.hwf-pin--an { background: #2f8f46; }
.hwf-h-tabelle .hwf-p-tag { width: 104px; }
.hwf-h-laeuft .hwf-p-tag { color: #2f8f46; }
html.dark .hwf-h-laeuft .hwf-p-tag { color: #4cd471; }
.hwf-heute-karte .leaflet-control-attribution { font-size: 8.5px; line-height: 1.3; }
/* 10.11.: ruhige graue Karte statt Luftbild – Felder grün gefüllt mit dunklerem Rand, Hof grau, Schilder weiß */
.hwf-heute-karte .hwk-karte, .hwf-heute-karte.leaflet-container, .hwf-heute-karte .leaflet-container { background: #eceef0; }
.hwf-heute-form { stroke: #2f8f46; stroke-width: 1.5; fill: rgba(52, 168, 83, .30); }
.hwf-heute-form--hof { stroke: #6b7682; stroke-width: 1.5; fill: rgba(107, 118, 130, .16); }
.hwf-pin { border: 1px solid rgba(15, 23, 42, .10); box-shadow: 0 1px 4px rgba(15, 23, 42, .14); }
.hwf-pin--zahl { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18); }
.hwf-heute-karte .leaflet-control-attribution { background: rgba(255, 255, 255, .8); color: #64748b; }
.hwf-pin--oben { transform: translate(-50%, calc(-100% - 8px)); }
/* 10.11. (Lars: „die Farben hier vielleicht wieder orange, um die Schichtwerk-Handwerk-Farben reinzubekommen“): was gerade läuft in
   Handwerk-Orange (#E0913A; als Schrift #A85F17 für 4,9:1 auf Weiß) – „seit …“ unter „Heute“, der Punkt am Schild, die Zahl auf der kleinen Karte */
.hwf-h-laeuft .hwf-p-tag { color: #A85F17; }
.hwf-pin--an b::before { background: #E0913A; }
.hwf-pin--zahl.hwf-pin--an { background: #A85F17; }
/* 10.11. b (Lars: „Einsatzorte mehr im Felder-Design“): flache Zeilen mit Trennlinien statt Kästchen, Umriss statt Kürzel,
   gewählter Ort mit Orange-Strich links, „Heute vor Ort“ als Zeilen nach Uhrzeit, ruhige Überschriften. Nur im Felder-Modus. */
#tab-baustellen.hwf-orte-an .dash-card { box-shadow: none; border: 1px solid var(--border); border-radius: 12px; }
#tab-baustellen.hwf-orte-an .bau-liste-karte .dash-card-header { display: none; }
#tab-baustellen.hwf-orte-an .bau-liste-karte .dash-card-body { padding-top: 6px; }
#tab-baustellen.hwf-orte-an .bau-zeile { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; padding: 12px 10px 12px 12px;
  background: none; gap: 14px; }
#tab-baustellen.hwf-orte-an .bau-zeile:last-of-type { border-bottom: 0; }
#tab-baustellen.hwf-orte-an .bau-zeile:hover { background: rgba(15, 23, 42, .025); }
#tab-baustellen.hwf-orte-an .bau-zeile--aktiv { background: rgba(15, 23, 42, .04); box-shadow: inset 3px 0 0 #E0913A; }
#tab-baustellen.hwf-orte-an .bau-zeile-name { font-size: 15px; font-weight: 700; }
#tab-baustellen.hwf-orte-an .bau-zeile-pfeil, #tab-baustellen.hwf-orte-an .bau-kuerzel { display: none; }
#tab-baustellen.hwf-orte-an .bau-detail-name { font-size: 20px; font-weight: 700; }
#tab-baustellen.hwf-orte-an .bau-notiz { background: none; padding: 0; color: var(--text-muted); margin-bottom: 14px; }
#tab-baustellen.hwf-orte-an .bau-abschnitt-titel { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
#tab-baustellen.hwf-orte-an .bau-stempel { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; background: none; gap: 0; }
#tab-baustellen.hwf-orte-an .bau-stempel:last-child { border-bottom: 0; }
#tab-baustellen.hwf-orte-an .bau-stempel--wartet { box-shadow: inset 3px 0 0 #E0913A; padding-left: 12px; }
#tab-baustellen.hwf-orte-an .bau-filter select { border-radius: 8px; padding: 6px 10px; }
#tab-baustellen.hwf-orte-an .bau-auffaellig-karte .dash-card-title { font-size: 15px; font-weight: 700; }
#tab-baustellen.hwf-orte-an .bau-grund { font-weight: 400; }
.bau-h-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.bau-h-tabelle td { padding: 8px 12px 8px 0; vertical-align: top; color: var(--text); }
.bau-h-tabelle tr + tr td { border-top: 1px solid var(--border); }
.bau-h-zeit { width: 56px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bau-h-wer { width: 30%; }
.bau-h-art { width: 22%; color: var(--text-muted); }
.bau-h-pruef .bau-grund { margin: 0; font-size: 14px; }
.bau-h-ok { color: var(--text-muted); }
#tab-baustellen.hwf-orte-an .bau-termin--alt { display: none; }
#tab-baustellen.hwf-orte-an .bau-termin[hidden], #tab-baustellen.hwf-orte-an .bau-h-tabelle tr[hidden] { display: none; }
#tab-baustellen.hwf-orte-an .bau-alle { margin-top: 6px; }
#tab-baustellen.hwf-orte-an .bau-zeile { padding-top: 9px; padding-bottom: 9px; }
#tab-baustellen.hwf-orte-an .bau-spalte > .bau-liste-karte { flex: 0 0 auto; max-height: none; }
#tab-baustellen.hwf-orte-an .bau-spalte > .bau-auffaellig-karte { flex: 1 1 auto; min-height: 0; }
#tab-baustellen.hwf-orte-an .bau-abschnitt-titel .bau-link { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--text-muted); text-decoration: underline; }
#tab-baustellen.hwf-orte-an .bau-termin { padding: 6px 0; }
#tab-baustellen.hwf-orte-an #hwf-orte-kopf { display: none; }
#tab-baustellen.hwf-orte-an .bau-alle { width: auto; align-self: flex-start; margin-top: 4px; }
#tab-baustellen.hwf-orte-an .bau-zeile-adr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-baustellen.hwf-orte-an .bau-abschnitt { margin-bottom: 12px; }
/* 10.11. c: Einsatzorte – wer jetzt vor Ort ist (Orange = läuft gerade) */
.bau-zeile-da { flex: 0 0 auto; margin-left: 8px; font-size: 13px; font-weight: 600; color: #A85F17; white-space: nowrap; }
.bau-jetzt-tabelle .bau-h-laeuft { color: #A85F17; white-space: nowrap; }
.bau-jetzt-tabelle .bau-h-zeit { width: 92px; }
/* 10.11. d: mehr als 4 Felder – Bereich mit 4 Zeilen, blättert je 4 (Höhe, Zeilenhöhe und Kopf-Abstand setzt _hwfBlaettern) */
.hwf-l-tabelle col.hwf-c1 { width: 32%; } .hwf-l-tabelle col.hwf-c2 { width: 24%; } .hwf-l-tabelle col.hwf-c3 { width: 28%; } .hwf-l-tabelle col.hwf-c4 { width: 16%; }
.hwf-blaettern { overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: thin; }
.hwf-blaettern thead th { position: sticky; top: 0; z-index: 2; background: var(--card-bg, #fff); }
html.dark .hwf-blaettern thead th { background: var(--card-bg, #1f2327); }
/* 02.12.2026 (Lars: beim Scrollen laufen die Zeilen durch die Überschrift): der Grundstil setzt Tabellenköpfe auf „background: none“ und
   gewinnt gegen die Zeile oben – hier fester, damit der mitlaufende Kopf deckt (Felder und Fahrzeuge) */
html:not(.dark) .app-content .hwf-blaettern thead th { background: var(--g-karte, #fff); }
.hwf-zeile-leer td { border-bottom: 0 !important; padding: 0 !important; }
.hwf-seite { float: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.hwf-hof-wrap { border-top: 1px solid var(--border); }
.hwf-hof-tabelle tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .hwf-blaettern { max-height: none !important; overflow: visible; scroll-snap-type: none; } .hwf-seite { display: none; } }
.hwf-blaettern .hwf-tabelle td, .hwf-blaettern td, .hwf-hof-tabelle td { padding-top: 8px; padding-bottom: 8px; }
/* 10.11. e: ohne Scrollbalken, Pfeile an „1–4 von 10“; breite Bildschirme: Spalten enger, „Steht an“ nimmt den Rest */
.hwf-blaettern { scrollbar-width: none; }
.hwf-blaettern::-webkit-scrollbar { display: none; }
/* Pfeile fest rechts in der Kopfzeile (der Kopf ist sticky und damit Bezugsrahmen), damit „Steht an“ nicht umbricht */
.hwf-seite-knoepfe { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; }
.hwf-seite-knoepfe .hwf-seite { float: none; min-width: 64px; text-align: center; }
.hwf-blaettern .hwf-l-tabelle col.hwf-c2 { width: 22%; } .hwf-blaettern .hwf-l-tabelle col.hwf-c3 { width: 26%; } .hwf-blaettern .hwf-l-tabelle col.hwf-c4 { width: 20%; }
.hwf-seite-pfeil { width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }
.hwf-seite-pfeil svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hwf-seite-pfeil:hover:not(:disabled) { border-color: #8a96a3; }
.hwf-seite-pfeil:disabled { opacity: .35; cursor: default; }
html.dark .hwf-seite-pfeil { background: transparent; }
@media (min-width: 1500px) {
  .hwf-l-tabelle col.hwf-c1, .hwf-blaettern .hwf-l-tabelle col.hwf-c1 { width: 380px; } .hwf-l-tabelle col.hwf-c2, .hwf-blaettern .hwf-l-tabelle col.hwf-c2 { width: 320px; }
  .hwf-l-tabelle col.hwf-c3, .hwf-blaettern .hwf-l-tabelle col.hwf-c3 { width: 380px; } .hwf-l-tabelle col.hwf-c4, .hwf-blaettern .hwf-l-tabelle col.hwf-c4 { width: auto; }
}
@media (max-width: 760px) { .hwf-seite-knoepfe { display: none; } }
/* 10.11. f (Lars: Pfeile „gefällt mir noch nicht“): ruhig ohne Kästen – graue Zahl, zwei schlichte Pfeile, beim Drüberfahren leicht hinterlegt */
.hwf-seite-knoepfe { gap: 2px; }
.hwf-seite-knoepfe .hwf-seite { min-width: 0; margin-right: 4px; font-size: 12px; color: var(--text-muted); }
.hwf-seite-pfeil { order: 2; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); }
.hwf-seite-pfeil svg { width: 13px; height: 13px; stroke-width: 1.8; }
.hwf-seite-pfeil:hover:not(:disabled) { background: rgba(0, 0, 0, .06); color: var(--text); }
html.dark .hwf-seite-pfeil:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.hwf-seite-pfeil:disabled { opacity: .3; }
.hwf-seite-pfeil:focus-visible { outline: 2px solid #E0913A; outline-offset: 1px; }
/* 10.11. g: kleine Karte bedienbar – Felder antippbar (Hand, beim Drüberfahren kräftiger), Name als kleines Schild am Mauszeiger */
.hwf-heute-karte .leaflet-interactive.hwf-heute-form { cursor: pointer; transition: fill-opacity .12s; }
.hwf-heute-karte .hwf-heute-form:hover { stroke-width: 2.5; fill: rgba(52, 168, 83, .5); }
.hwf-heute-karte .hwf-heute-form--hof:hover { fill: rgba(107, 118, 130, .32); }
.hwf-heute-karte .hwf-pin-huelle { cursor: pointer; }
.leaflet-tooltip.hwf-heute-tipp { background: #1f2327; color: #fff; border: 0; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.leaflet-tooltip.hwf-heute-tipp::before { display: none; }
/* 10.11. h: Feldseite ab 5 Feldern – „‹ Feld ▾ ›  3 von 10“ statt Reiter mit Scrollbalken; gleiche Fläche wie die Reiter */
.hwf-fs-wahl { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--app-bg, #eef1f5); border-radius: 8px; flex: 0 0 auto; }
.hwf-fs-wahl-pfeil { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-muted); cursor: pointer; }
.hwf-fs-wahl-pfeil svg, .hwf-fs-wahl-feld svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hwf-fs-wahl-pfeil:hover:not(:disabled) { background: rgba(0, 0, 0, .06); color: var(--text); }
.hwf-fs-wahl-pfeil:disabled { opacity: .3; cursor: default; }
.hwf-fs-wahl-feld { position: relative; display: inline-flex; align-items: center; }
.hwf-fs-wahl-feld select { appearance: none; -webkit-appearance: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--text);
  background: #fff; border-radius: 6px; padding: 6px 30px 6px 12px; min-width: 190px; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.hwf-fs-wahl-feld select:focus-visible { outline: 2px solid #E0913A; outline-offset: 1px; }
.hwf-fs-wahl-feld svg { position: absolute; right: 10px; pointer-events: none; color: var(--text-muted); }
.hwf-fs-wahl-zahl { font-size: 12px; color: var(--text-muted); padding: 0 10px 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hwf-fs-wahl-pfeil:focus-visible { outline: 2px solid #E0913A; outline-offset: 1px; }
html.dark .hwf-fs-wahl { background: rgba(255, 255, 255, .06); }
html.dark .hwf-fs-wahl-feld select { background: rgba(255, 255, 255, .12); color: var(--text); }
html.dark .hwf-fs-wahl-pfeil:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
@media (max-width: 760px) { .hwf-fs-wahl { order: 5; } .hwf-fs-wahl-feld select { min-width: 0; max-width: 52vw; } }

/* 11.11. Feldseite: Form des Felds im Kopf, eine Zeile Jahreszahlen (Kosten · Stunden · Gemäht · Gedüngt · Gewässert),
   Stunden je Arbeit bei „Wofür“, je Fläche wann zuletzt gemäht/gedüngt/gewässert */
.hwf-fs-kopf { display: flex; align-items: center; gap: 14px; }
.hwf-fs-kopf > .hwf-form { flex: 0 0 auto; }
.hwf-fs-kopfzeile { display: flex; align-items: flex-end; gap: 28px; }
.hwf-fs-kopfzeile .hwf-fs-kopfzahl { flex: 0 0 auto; }
.hwf-fs-zahlen { display: flex; gap: 22px; padding: 0 0 2px 28px; border-left: 1px solid var(--border); min-width: 0; }
.hwf-fs-zahl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hwf-fs-zahl small { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.hwf-fs-zahl b { font-size: 18px; font-weight: 400; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hwf-fs-art { grid-template-columns: 120px minmax(0, 1fr) 56px 84px; }
.hwf-fs-art-std { text-align: right; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hwf-fs-flaeche > .hwf-fs-flaeche-zuletzt { flex: 1 0 100%; margin-top: -8px; color: var(--text); }
@media (max-width: 1100px) {
  .hwf-fs-kopfzeile { gap: 18px; }
  .hwf-fs-zahlen { gap: 16px; padding-left: 18px; }
  .hwf-fs-zahl b { font-size: 16px; }
}
@media (max-width: 760px) {
  .hwf-fs-kopfzeile { flex-wrap: wrap; }
  .hwf-fs-zahlen { flex-wrap: wrap; border-left: 0; padding-left: 0; }
}

/* 11.11. b (Lars-Ja): Rückblick klein unter dem Verlauf, Monatsbalken flacher (mehr Verlauf am kleinen Mac), je Fläche „als Nächstes“ */
.hwf-fs-rueck { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; margin-top: auto; }
.hwf-fs-rueck-titel { font-size: 13px; color: var(--text-muted); }
.hwf-fs-rueck .hwf-fs-tage { margin-top: 0; gap: 4px; }
.hwf-fs-rueck .hwf-l-tag { font-size: 12px; padding: 3px 7px; border-radius: 6px; }
.hwf-fs-rueck .hwf-l-datum { font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.hwf-fs-monate { flex: 0 1 80px; min-height: 44px; }
.hwf-fs-faellig { font-weight: 400; color: var(--hwf-akzent-text); }
html.dark .hwf-fs-faellig { color: #fbbf24; }
@media (max-height: 760px) {
  .hwf-fs-monate { flex-basis: 52px; min-height: 40px; }
  .hwf-fs-monat { font-size: 12px; gap: 2px; }
  .hwf-fs-titel { padding-top: 8px; }
}
/* „Alle N anzeigen“ rechts in der Überschrift des Verlaufs (spart eine Zeile, 11.11.) */
.hwf-fs-titel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hwf-fs-titel-zeile .hwf-alle { margin: 0; padding: 3px 9px; font-size: 12px; }
.hwf-fs-flaeche > .hwf-fs-flaeche-zuletzt { white-space: normal; }
.hwf-fs-flaeche-zuletzt > i { font-style: normal; white-space: nowrap; width: auto; height: auto; border-radius: 0; }

/* 11.11. c (Lars: „so viele kleine Sachen, man muss suchen“): Überblick mit drei großen Zahlen, Kosten als eigene Ansicht.
   Größere Schrift, weniger Elemente; Rückblick = Datum am Verlauf oder Tag im Verlauf antippen. */
.hwf-fs-rumpf[hidden] { display: none !important; }
.hwf-fs-ueberblick { grid-template-rows: auto minmax(0, 1fr); row-gap: 18px; }
.hwf-fs-kacheln { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch;
  border-bottom: 1px solid var(--border); padding-bottom: 16px; position: relative; }
.hwf-fs-kachel { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 20px; border-left: 1px solid var(--border);
  text-align: left; font: inherit; color: inherit; background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.hwf-fs-kachel:first-child { padding-left: 0; border-left: 0; }
.hwf-fs-kachel small { font-size: 14px; color: var(--text-muted); }
.hwf-fs-k-gross { font-size: 24px; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-k-gross .hwf-l-eintrag { display: block; }
.hwf-fs-k-gross .hwf-l-gross { font-size: inherit; font-weight: 400; }
.hwf-fs-kacheln--tag .hwf-fs-k-gross { font-size: 18px; white-space: normal; }
.hwf-fs-k-klein { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-kachel--knopf { cursor: pointer; border-radius: 0; }
.hwf-fs-kachel--knopf .hwf-fs-k-klein { color: var(--hwf-akzent-text); }
.hwf-fs-kachel--knopf:hover .hwf-fs-k-klein, .hwf-fs-kachel--knopf:focus-visible .hwf-fs-k-klein { text-decoration: underline; }
.hwf-fs-heute { position: absolute; right: 0; top: 0; }
.hwf-fs-link { font: inherit; font-size: 14px; color: var(--hwf-akzent-text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.hwf-fs-link:hover { text-decoration: underline; }
.hwf-fs-ueberblick .hwf-fs-titel { font-size: 16px; padding-top: 0; }
.hwf-fs-titel-knoepfe { display: inline-flex; align-items: center; gap: 8px; }
.hwf-fs-titel-knoepfe .hwf-l-datum { font-size: 13px; padding: 3px 8px; }
.hwf-fs-ueberblick .hwf-fs-v-tabelle td { font-size: 15px; }
.hwf-fs-v-tagknopf { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hwf-fs-v-tagknopf:hover { text-decoration: underline; }
.hwf-fs-ueberblick .hwf-fs-flaechen { gap: 6px; }
.hwf-fs-ueberblick .hwf-fs-flaeche { flex-wrap: nowrap; font-size: 15px; }
.hwf-fs-ueberblick .hwf-fs-flaeche-name { font-size: 15px; min-width: 0; white-space: nowrap; }
.hwf-fs-ueberblick .hwf-fs-flaeche > span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-kostenseite { display: flex; flex-direction: column; gap: 8px; }
.hwf-fs-zurueck { align-self: flex-start; font-size: 15px; margin-bottom: 4px; }
.hwf-fs-kostenseite .hwf-fs-monate { flex: 1 1 120px; max-height: 160px; }
@media (max-height: 760px) { .hwf-fs-kostenseite .hwf-fs-monate { flex-basis: 70px; } }
@media (max-width: 1100px) {
  .hwf-fs-kachel { padding: 2px 14px; }
  .hwf-fs-k-gross { font-size: 21px; }
  .hwf-fs-ueberblick .hwf-fs-flaeche { flex-wrap: wrap; row-gap: 0; }
}
@media (max-width: 760px) {
  .hwf-fs-kacheln { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 12px; }
  .hwf-fs-kachel { border-left: 0; padding: 0; }
  .hwf-fs-heute { position: static; justify-self: start; }
}

/* 11.11. d (Design-Chat, Lars: „halb roh“): unten einspaltig (Flächen, dann Verlauf), beide als Tabellen mit Kopf und Linie unter
   jeder Zeile, Rasen-Wahl wie ein Auswahlfeld, Datum als Knopf „Anderer Tag“, „Alle N anzeigen“ unter der Liste, Kachel-Werte kräftiger */
.hwf-fs-ueberblick { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); row-gap: 20px; }
.hwf-fs-ueberblick .hwf-fs-links, .hwf-fs-ueberblick .hwf-fs-rechts { grid-column: 1 / -1; gap: 6px; }
.hwf-fs-ueberblick .hwf-fs-titel { font-size: 15px; font-weight: 700; }
.hwf-fs-k-gross { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hwf-fs-k-gross .hwf-l-gross { font-weight: 700; }
.hwf-fs-kacheln--tag .hwf-fs-k-gross { font-size: 17px; }
.hwf-fs-kachel small { font-size: 13px; }

.hwf-fs-f-tabelle, .hwf-fs-v-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hwf-fs-f-tabelle th, .hwf-fs-ueberblick .hwf-fs-v-tabelle th { font-size: 13px; font-weight: 400; color: var(--text-muted); text-align: left;
  padding: 0 16px 6px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hwf-fs-f-tabelle td { height: 44px; padding: 0 16px 0 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text); vertical-align: middle; white-space: nowrap; }
.hwf-fs-f-tabelle th:nth-child(1), .hwf-fs-f-tabelle td:nth-child(1) { width: 26%; }
.hwf-fs-f-tabelle th:nth-child(2), .hwf-fs-f-tabelle td:nth-child(2) { width: 230px; }
.hwf-fs-f-tabelle .hwf-fs-f-groesse { width: 80px; text-align: right; padding-right: 28px; }
.hwf-fs-f-tabelle tr.hwf-fs-flaeche { display: table-row; }
.hwf-fs-f-tabelle .hwf-fs-flaeche-name { font-size: 15px; padding: 0; min-width: 0; }
.hwf-fs-faellig, .hwf-fs-f-tabelle .hwf-fs-faellig { font-weight: 400; color: var(--hwf-akzent-text); }
/* Rasen-Wahl: Auswahlfeld statt Pille */
.hwf-fs-f-tabelle .hwf-ph { margin: 0; height: 32px; box-sizing: border-box; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface, #fff); color: var(--text); font-size: 14px; font-weight: 400; max-width: 210px; }
.hwf-fs-f-tabelle .hwf-ph i { border-radius: 50%; }
.hwf-fs-f-tabelle .hwf-ph select { font-size: 14px; }
.hwf-fs-f-tabelle .hwf-ph--ohne { color: var(--text-muted); }
html.dark .hwf-fs-f-tabelle .hwf-ph { background: var(--surface, #1f1f1f); }

.hwf-fs-ueberblick .hwf-fs-v-tabelle td { height: 40px; padding: 0 16px 0 0; border-top: 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 15px; white-space: nowrap; }
.hwf-fs-ueberblick .hwf-fs-v-tabelle tr.hwf-p-neu td { border-top: 0; }
.hwf-fs-ueberblick .hwf-fs-v-tabelle .hwf-fs-v-menge { text-align: right; }
.hwf-fs-ueberblick .hwf-fs-v-tabelle .hwf-fs-v-tag { width: 18%; }
.hwf-fs-ueberblick .hwf-p-wer { color: var(--text) !important; }
.hwf-fs-textknopf { align-self: flex-start; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; }
.hwf-fs-textknopf:hover, .hwf-fs-textknopf:focus-visible { text-decoration: underline; }
.hwf-fs-tagwahl { position: relative; display: inline-flex; }
.hwf-fs-tagknopf { display: inline-flex; align-items: center; gap: 6px; }
.hwf-fs-tagknopf svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.hwf-fs-datum-versteckt { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 0; border: 0; pointer-events: none; }
@media (max-height: 760px) {
  .hwf-fs-f-tabelle td { height: 38px; }
  .hwf-fs-ueberblick .hwf-fs-v-tabelle td { height: 36px; }
  .hwf-fs-ueberblick { row-gap: 14px; }
}
@media (max-width: 1100px) { .hwf-fs-f-tabelle th:nth-child(2), .hwf-fs-f-tabelle td:nth-child(2) { width: 210px; } .hwf-fs-f-tabelle td { font-size: 14px; } }
@media (max-width: 760px) {
  .hwf-fs-f-tabelle td, .hwf-fs-ueberblick .hwf-fs-v-tabelle td { white-space: normal; }
  .hwf-fs-f-tabelle .hwf-fs-f-groesse { padding-right: 12px; }
}
@media (max-height: 760px) { .dash-live-modal.hwf-fs-fenster { max-height: calc(94vh / var(--ui-zoom, 1)); } }

/* 13.11. Feldseite als ganze Seite (Lars: „die ganze Seite wird zu dem Teil, nicht nur ein neues Fenster“): sie füllt den Reiter.
   Solange sie offen ist (#tab-baustellen.hwf-fs-an), sind Kopf des Reiters, Liste und Karte ausgeblendet. Oben eine Zeile mit
   „‹ Felder & Hof“, Name des Felds, Feldwahl und „Auf der Karte“; darunter ein Panel mit dem Inhalt wie bisher. */
#tab-baustellen.hwf-fs-an .bau-panel > .dash-header,
#tab-baustellen.hwf-fs-an #hwf-bereich > .hwf-wrap { display: none; }
.hwf-fs-seite { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.hwf-fs-oben { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; min-height: 52px; }
.hwf-fs-liste { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hwf-fs-liste svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hwf-fs-oben .hwf-fs-kopf { flex: 1 1 auto; min-width: 0; margin-left: 6px; }
.hwf-fs-oben .hwf-fs-kopf > div { min-width: 0; }
.hwf-fs-oben .dlm-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-oben .dlm-subtitle { font-size: 14px; font-weight: 400; margin-top: 1px; }
.hwf-fs-oben .hwf-fs-reiter { max-width: 55%; }
.dash-card.hwf-fs-fenster { flex: 0 1 auto; min-height: 0; margin: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden;
  width: auto; height: auto; max-height: none; border-radius: var(--radius, 12px); }
.hwf-fs-seite .hwf-fs-rumpf { flex: 0 1 auto; min-height: 0; padding: 20px 24px 22px; }   /* Panel so hoch wie der Inhalt, keine leere Fläche */
@media (max-width: 760px) {
  .hwf-fs-oben { flex-wrap: wrap; }
  .hwf-fs-oben .hwf-fs-reiter { order: 5; max-width: 100%; }
  .dash-card.hwf-fs-fenster { overflow: visible; }
  .hwf-fs-oben .hwf-fs-kopf { order: 4; flex-basis: 100%; margin-left: 0; }
  .hwf-fs-oben .dlm-title { white-space: normal; }
  .hwf-fs-seite .hwf-fs-rumpf { padding: 14px 16px 18px; overflow: visible; }
}

/* 13.11. b (Lars: Karte, wer da ist, als eigene Liste): links Zahlen, Flächen und Verlauf, rechts die Karte des Felds und die Leute */
.hwf-fs-seite .hwf-fs-ueberblick { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 28px; }
.hwf-fs-haupt { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); row-gap: 20px; }
.hwf-fs-haupt > * { grid-column: 1 / -1; }
.hwf-fs-seitenteil { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.hwf-fs-karte { position: relative; flex: 0 0 auto; height: clamp(180px, 40vh, 360px); border-radius: var(--radius-sm, 8px); overflow: hidden; border: 1px solid var(--border); background: #f3f3f0; }
.hwf-fs-karte .hwk-karte { background: #eceef0; }
.hwf-fs-karte .leaflet-control-zoom a { width: 28px; height: 28px; line-height: 28px; }
.hwf-fs-leute { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.hwf-fs-p-kopf { display: flex; align-items: center; gap: 8px; }
.hwf-fs-p-kopf--weg { margin-top: 10px; }
.hwf-fs-p-zahl { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--app-bg, #eef1f5); color: var(--text); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.hwf-fs-p-liste { list-style: none; margin: 0; padding: 0; }
.hwf-fs-p { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hwf-fs-p-kreis { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--app-bg, #eef1f5); color: var(--text); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.hwf-fs-p--da .hwf-fs-p-kreis { box-shadow: inset 0 0 0 2px var(--hwf-akzent); }
.hwf-fs-p-wer, .hwf-fs-p-zeit { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hwf-fs-p-wer { flex: 1 1 auto; }
.hwf-fs-p-wer b, .hwf-fs-p-zeit b { font-size: 15px; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-p-wer b { font-weight: 700; }
.hwf-fs-p-wer span, .hwf-fs-p-zeit span { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwf-fs-p-zeit { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
.hwf-fs-p-liste--weg .hwf-fs-p { padding: 5px 0; }
.hwf-fs-p-liste--weg .hwf-fs-p-kreis { width: 28px; height: 28px; font-size: 12px; color: var(--text-muted); }
.hwf-fs-p-liste--weg b { color: var(--text-muted) !important; font-size: 14px !important; }
html.dark .hwf-fs-karte { background: #1d2126; }
@media (max-width: 1100px) { .hwf-fs-seite .hwf-fs-ueberblick { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); column-gap: 20px; } }
@media (max-width: 760px) {
  .hwf-fs-seite .hwf-fs-ueberblick { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 20px; }
  .hwf-fs-seitenteil, .hwf-fs-leute { overflow: visible; }
  .hwf-fs-seitenteil { order: -1; }
  .hwf-fs-karte { height: 220px; }
}
/* 13.11. b: Knopf „Auswertung (PDF)“ und seine Wahl (Aussehen der Wahl aus hw-felder-import.css .hwi-wahl) */
.hwf-fs-pdf { display: inline-flex; align-items: center; gap: 6px; }
.hwf-fs-pdf svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hwf-fs-pdf.hwa-laedt { opacity: .6; cursor: progress; }
.hwa-wahl { width: 260px; }
.hwa-wahl-titel { padding: 8px 12px 4px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.hwf-fs-leute--offen { overflow-y: auto; }
.hwf-fs-leute-alle { align-self: flex-start; margin: 8px 0 0; }

/* 14.11. Feldkosten vollständig: „Kosten nach Art“ (Lohn, Pacht, Dünger, Wasser) neben „Lohn nach Arbeit“ in der Kosten-Ansicht,
   fehlender Betrag als Link in der Akzent-Textfarbe (kein Rot: nichts ist kaputt, es fehlt nur eine Angabe). */
.hwf-fs-k-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hwf-fs-k-zwei > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hwf-fs-teile { gap: 10px; }
.hwf-fs-art.hwf-fs-teil { grid-template-columns: 170px minmax(0, 1fr) 84px; }
.hwf-fs-teil .hwf-fs-art-name { display: flex; flex-direction: column; gap: 1px; white-space: normal; }
.hwf-fs-teil .hwf-fs-art-name small, .hwf-fs-teil .hwf-fs-art-name small .hwf-fs-link { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.hwf-fs-teil .hwf-fs-art-name small .hwf-fs-link:hover { color: var(--text); }
.hwf-fs-teil .hwf-fs-art-name small .hwf-fs-fehlt, .hwf-fs-teil .hwf-fs-art-name small .hwf-fs-fehlt:hover { color: var(--hwf-akzent-text); }
.hwf-fs-teil-ohne { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--text-muted); padding-top: 2px; }
.hwf-fs-teil-ohne span { width: 170px; flex: 0 0 auto; }
.hwf-fs-teil-ohne .hwf-fs-link { font-size: 13px; }
.hwf-f-hinweis { display: block; margin: -6px 0 4px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 900px) { .hwf-fs-k-zwei { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* 15.11. Feldseite (Lars, Bild): ab 5 Feldern ist der Feldname oben selbst die Auswahl – unsichtbares select über Name und ▾,
   daneben ‹ ›; „1 von 10“ klein unter dem Namen. Und keine Lücke mehr unten: die Seite füllt die Höhe bis zur Leiste,
   der Verlauf zeigt so viele Tage, wie hineinpassen, die Karte wächst mit. */
.hwf-fs-kopf-text { min-width: 0; }
.hwf-fs-titelzeile { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hwf-fs-titelwahl { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 8px 2px 0; border-radius: 8px; cursor: pointer; }
.hwf-fs-titelwahl > svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
.hwf-fs-titelwahl select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.hwf-fs-titelwahl:hover > svg, .hwf-fs-titelwahl:focus-within > svg { color: var(--text); }
.hwf-fs-titelwahl:focus-within { outline: 2px solid #E0913A; outline-offset: 2px; }
.hwf-fs-wahl-pfeile { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.hwf-fs-oben .dlm-subtitle .hwf-fs-wahl-zahl { font-size: inherit; padding: 0; color: inherit; }
@media (min-width: 761px) {
  .dash-card.hwf-fs-fenster { flex: 1 1 auto; }
  .hwf-fs-seite .hwf-fs-rumpf { flex: 1 1 auto; }
  .hwf-fs-seite .hwf-fs-ueberblick .hwf-fs-verlauf:not(.hwf-alle-offen) { flex: 1 1 0; }
  .hwf-fs-seite .hwf-fs-karte { flex: 1 1 auto; height: auto; min-height: clamp(140px, 24vh, 300px); }   /* 16.11. b: am kleinen Laptop niedriger, damit „Jetzt da“ mehr Leute zeigt */
  .hwf-fs-seite .hwf-fs-leute { flex: 0 1 auto; }
}
@media (max-width: 760px) {
  /* schmal: Panel und Inhalt so hoch wie der Inhalt, nichts schrumpft (sonst schob sich „Jetzt da“ über „Als Nächstes“), der Bereich scrollt */
  .dash-card.hwf-fs-fenster, .hwf-fs-seite .hwf-fs-rumpf { flex: none; }
  .hwf-fs-seite .hwf-fs-ueberblick { grid-template-rows: auto auto; }
  .hwf-fs-seite .hwf-fs-haupt { grid-template-rows: auto auto auto; }
  .hwf-fs-titelzeile .dlm-title { white-space: normal; }
}
/* 15.11. b: Blättern als Gruppe rechts „‹ 2 von 10 ›“ – gleiche Höhe und Rand wie die Knöpfe daneben */
.hwf-fs-blaettern { display: inline-flex; align-items: center; flex: 0 0 auto; height: 34px; padding: 0 2px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--card-bg, #fff); }
.hwf-fs-blaettern .hwf-fs-wahl-pfeil { width: 30px; height: 30px; }
.hwf-fs-blaettern .hwf-fs-wahl-zahl { font-size: 13px; color: var(--text); padding: 0 4px; min-width: 64px; text-align: center; }
html.dark .hwf-fs-blaettern { background: transparent; }
.hwf-fs-titelwahl { padding-right: 4px; }
@media (max-width: 760px) { .hwf-fs-blaettern { order: 3; } }
/* 15.11. c (Lars: Name „mit dem Zurück-Knopf integriert“): Kopf als Pfad in einer Zeile – „‹ Felder & Hof / Feld … ▾  9,5 ha“.
   Zurück ist ein leiser Text-Knopf, der Feldname groß, die Größe klein daneben. Kein oranger Rahmen nach dem Anklicken (nur bei Tastatur). */
.hwf-fs-pfad { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; }
.hwf-fs-pfad-zurueck { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--text-muted); padding: 6px 10px 6px 8px; margin-left: -8px; border-radius: var(--radius-sm, 8px); cursor: pointer; }
.hwf-fs-pfad-zurueck:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.hwf-fs-pfad-zurueck:focus-visible { outline: 2px solid #E0913A; outline-offset: 1px; }
.hwf-fs-pfad-zurueck svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.dark .hwf-fs-pfad-zurueck:hover { background: rgba(255, 255, 255, .08); }
.hwf-fs-pfad-trenner { flex: 0 0 auto; font-size: 20px; color: var(--border); padding: 0 6px 0 2px; }
.hwf-fs-oben .hwf-fs-pfad .hwf-fs-kopf { flex: 0 1 auto; margin-left: 0; min-width: 0; }
.hwf-fs-titelzeile { align-items: center; gap: 12px; }
.hwf-fs-titelwahl { align-self: center; padding: 2px 6px; margin-left: -6px; }
.hwf-fs-titelwahl:hover { background: rgba(0, 0, 0, .05); }
html.dark .hwf-fs-titelwahl:hover { background: rgba(255, 255, 255, .08); }
.hwf-fs-titelwahl:focus-within { outline: none; }
.hwf-fs-titelwahl:has(select:focus-visible) { outline: 2px solid #E0913A; outline-offset: 2px; }
.hwf-fs-oben .hwf-fs-ha { flex: 0 0 auto; margin: 3px 0 0; font-size: 15px; line-height: 1; white-space: nowrap; }
@media (max-width: 760px) {
  .hwf-fs-oben .hwf-fs-pfad { order: 4; flex-basis: 100%; flex-wrap: wrap; row-gap: 2px; }
  .hwf-fs-pfad-trenner { display: none; }
  .hwf-fs-oben .hwf-fs-pfad .hwf-fs-kopf { flex-basis: 100%; }
}
/* 16.11. (Lars: „Felder & Hof und Feld Bickenbach in einem Knopf, dass man einfach wieder zurück kann“): ein großer Zurück-Knopf
   mit Pfeil, oben klein das Ziel, darunter der Name; daneben leise die Größe. Feldwahl „1 von 10 ▾“ in der Blätter-Gruppe rechts. */
.hwf-fs-zurueckknopf { display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; max-width: 60%; border: 1px solid var(--border);
  background: var(--card-bg, #fff); border-radius: var(--radius-sm, 8px); padding: 6px 18px 6px 12px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.hwf-fs-zurueckknopf:hover { background: var(--app-bg, #eef1f5); border-color: #c3ccd6; }
.hwf-fs-zurueckknopf:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .hwf-fs-zurueckknopf:active { transform: none; } }
.hwf-fs-zurueckknopf:focus-visible { outline: 2px solid #E0913A; outline-offset: 2px; }
.hwf-fs-zurueckknopf > svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
.hwf-fs-zurueckknopf:hover > svg { color: var(--text); }
.hwf-fs-zk-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hwf-fs-zk-text small { overflow: visible; }
.hwf-fs-zk-text small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.hwf-fs-oben .hwf-fs-zk-text .dlm-title { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .hwf-fs-zurueckknopf { background: transparent; }
html.dark .hwf-fs-zurueckknopf:hover { background: rgba(255, 255, 255, .06); }
.hwf-fs-oben-luecke { flex: 1 1 auto; }
.hwf-fs-zahlwahl { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text); white-space: nowrap; }
.hwf-fs-zahlwahl:hover { background: rgba(0, 0, 0, .05); }
.hwf-fs-zahlwahl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
.hwf-fs-zahlwahl select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.hwf-fs-zahlwahl:has(select:focus-visible) { outline: 2px solid #E0913A; outline-offset: 1px; }
.hwf-fs-blaettern .hwf-fs-zahlwahl .hwf-fs-wahl-zahl { min-width: 0; padding: 0; }
@media (max-width: 760px) {
  .hwf-fs-zurueckknopf { order: 4; max-width: 100%; flex-basis: auto; }
  .hwf-fs-oben-luecke { display: none; }
}
/* 16.11. b: Größe des Felds bei „Flächen · 7,2 ha“ (vorher lose neben dem Zurück-Knopf) */
.hwf-fs-titel-ha { font-weight: 400; color: var(--text-muted); }

/* 16.11.: Ansicht „Geschält {jahr}“ – m² je Rasen (Balken in der Rasenfarbe) und die Aufträge des Jahres */
.hwf-fs-art.hwf-fs-g-art { grid-template-columns: 140px minmax(0, 1fr) 100px; }
.hwf-fs-g-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hwf-fs-g-tabelle th { font-size: 13px; font-weight: 400; color: var(--text-muted); text-align: left; padding: 0 16px 6px 0; border-bottom: 1px solid var(--border); }
.hwf-fs-g-tabelle td { height: 40px; padding: 0 16px 0 0; border-top: 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 15px; }
.hwf-fs-g-tabelle .hwf-fs-v-menge { text-align: right; padding-right: 0; white-space: nowrap; }
.hwf-fs-g-tabelle .hwf-fs-v-tag { white-space: nowrap; }
.hwf-fs-g-tabelle td:nth-child(2), .hwf-fs-g-tabelle td:nth-child(3) { overflow-wrap: anywhere; }
.hwf-fs-geschaeltseite { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.hwf-fs-geschaeltseite .hwf-alle { align-self: flex-start; margin-top: 6px; }
/* 23.11.: schmal (Seite scrollt): „Heute“ höchstens etwa 7 Zeilen hoch, darin scrollen und einrasten wie am Mac */
@media (max-width: 760px) {
  .hwf-heute #hwf-protokoll { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; }
  .hwf-heute #hwf-protokoll tr { scroll-snap-align: start; }
}

/* 02.12.2026 (Lars: „die weiße Karte durch eine ersetzen wie auf dem Dashboard“): farbige Grundkarte wie im Dashboard, gleich blass */
html:not(.dark) .hwf-heute-karte .leaflet-tile-pane { filter: saturate(.6) contrast(.88) brightness(1.05); }
.hwf-heute-karte .hwk-karte, .hwf-heute-karte .leaflet-container { background: var(--g-flaeche, #f4f5f7); }
.hwf-heute-feld { cursor: pointer; }
