/* ================================================================
   TEAM · neues Design (Etappe 1: Grundgerüst, 03.10.2026)
   Eigene Ebene über team.css — abschaltbar, indem man den <link> in app.html entfernt.
   Reihenfolge: Grundwerte → obere Leiste → Navigation links → Flora-Knopf → Aufklappmenüs
   ================================================================ */

:root {
  --r-karte: 12px;          /* Karten */
  --r-feld: 9px;            /* Knöpfe, Eingabefelder */
  --flora: #1e5631;         /* Flora-Grün (Knopf, Kopfzeilen) */
  --flora-hell: #f3efe2;    /* Hintergrund hinter dem Flora-Bild */
  --schatten-pop: 0 12px 32px rgba(24, 24, 22, .14), 0 2px 6px rgba(24, 24, 22, .06);
  --oben-h: 52px;           /* Höhe obere Leiste */
  --nav-b: 78px;            /* Breite Navigation links */
}

/* ── Obere Leiste ─────────────────────────────────────────────── */
.topbar { height: var(--oben-h); padding: 0 14px; border-bottom: 0; }
.t-logo { font-size: 12.5px; color: #fff; letter-spacing: .18em; padding: 4px 10px 4px 4px; }
.t-logo:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.t-logo-icon { width: 26px; height: 26px; border-radius: 7px; }
.t-div { height: 18px; background: rgba(255, 255, 255, .18); }
.t-tool, .bo-main-btn {
  padding: 6px 13px !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important;
  color: #fff !important; background: rgba(255, 255, 255, .12) !important; border: 1px solid transparent !important;
}
.t-tool:hover, .bo-main-btn:hover { background: rgba(255, 255, 255, .2) !important; }
.t-tool.on, .bo-main-btn.on { background: rgba(255, 255, 255, .26) !important; border-color: rgba(255, 255, 255, .2) !important; }
.t-tool svg, .bo-main-btn svg { width: 15px !important; height: 15px !important; }
.t-search {
  height: 34px; max-width: 280px; padding: 0 12px 0 34px; border-radius: 9px; font-size: 13px;
  color: #fff; background: rgba(255, 255, 255, .14) no-repeat 11px 50% / 15px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.75' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  border: 1px solid transparent;
}
.t-search::placeholder { color: rgba(255, 255, 255, .72); }
.t-search:focus { background-color: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .3); }
.t-icon { width: 36px; height: 36px; border-radius: 9px; color: rgba(255, 255, 255, .9); }
.t-icon:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.t-icon svg { width: 19px; height: 19px; }
.nbadge { background: #e0a12b !important; border: 2px solid var(--bar); top: -2px !important; right: -2px !important; }
.t-av { width: 32px; height: 32px; font-size: 13px; background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .25); }

/* ── Navigation links ─────────────────────────────────────────── */
.bar { width: var(--nav-b); padding: 10px 0 8px; border-right: 0; gap: 2px; }
.bar-sep { width: 34px; margin: 2px auto 6px; background: rgba(255, 255, 255, .16); }
.bicon {
  width: 66px; height: auto; padding: 8px 0 7px; gap: 4px; border-radius: 11px; margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
}
.bicon svg { width: 20px; height: 20px; }
.bicon .lbl { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.1; }
.bicon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bicon.on { background: rgba(255, 255, 255, .2); color: #fff; }
.bicon.on::before { display: none; }
.bicon .bb { top: 3px; right: 10px; background: #e0a12b; font-size: 9.5px; min-width: 16px; text-align: center; }
.bar-bottom { padding: 4px 0 0; }

/* Flora oben in der Navigation */
.flora-pill {
  width: 62px; padding: 6px 0 7px; margin: 0 0 6px; gap: 4px;
  background: rgba(255, 255, 255, .14); border-radius: 14px;
}
.flora-pill:hover { background: rgba(255, 255, 255, .22); }
.flora-pill.on { background: rgba(255, 255, 255, .3); box-shadow: none; }
.flora-pill-img {
  position: static; width: 40px; height: 40px; border-radius: 12px;
  object-fit: contain; object-position: center bottom; background: var(--flora-hell);
}
.flora-pill-lbl { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #fff; }
.flora-pill-pulse { top: 7px; right: 9px; width: 8px; height: 8px; background: #7dd3a0; box-shadow: 0 0 0 2px var(--bar); z-index: 1; }

/* Fester App-Rahmen (z. B. Werkzeug-Ansichten) an die neuen Maße anpassen */
.app-shell { top: var(--oben-h); left: var(--nav-b); }

/* ── Aufklappmenüs ────────────────────────────────────────────── */
.notif-panel { top: calc(var(--oben-h) + 6px); border-radius: 14px; box-shadow: var(--schatten-pop); border-color: var(--border2); }
#userMenu { top: calc(var(--oben-h) + 6px) !important; border-radius: 12px !important; box-shadow: var(--schatten-pop) !important; }

/* ================================================================
   Etappe 2 · Dateien & Dokumente (03.10.2026)
   ================================================================ */
:root { --accent-d: #3a5c4a; }

/* Typ-Kennzeichen (W / X / P / PDF …) — überall gleich */
.fx-typ {
  display: inline-grid; place-items: center; flex: none; min-width: 26px; height: 20px; padding: 0 5px;
  border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.t-word { background: #e7eef8; color: #2b579a; }
.t-excel { background: #e6f2eb; color: #217346; }
.t-ppt { background: #fbede8; color: #b7472a; }
.t-pdf { background: #fbeaea; color: #b3261e; }
.t-csv { background: #eef0e6; color: #5c6b2e; }
.t-bild { background: #efe9f4; color: #7d5a99; }
.t-zip { background: #fbf1dc; color: #9a6a12; }
.t-sonst { background: var(--bg); color: var(--text2); }

/* ── Seitenleiste ── */
.finder-sidebar { width: 228px; background: var(--surface2); padding: 8px 10px 12px; }
.finder-sb-section { font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--text3); padding: 14px 10px 6px; }
.finder-sb-section:first-child { padding-top: 8px; }
.finder-sb-sep { margin: 4px 0; }
.finder-sb-item { gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.finder-sb-item:hover { background: var(--border); color: var(--text); }
.finder-sb-item.active { background: var(--accent-s); color: var(--accent-d); font-weight: 600; }
.finder-sb-icon { width: 18px; height: 18px; color: var(--accent); }
.finder-sb-trash { color: var(--text2); }
.finder-sb-trash .finder-sb-icon { color: var(--text3); }
.finder-sb-trash-cnt { margin-left: auto; font-size: 11.5px; color: var(--text3); background: none !important; }

/* ── Kopf: Pfadleiste · Titel · Suche · Ansicht · Hochladen · Neu ── */
.finder-toolbar.fx-kopf { display: block; padding: 18px 26px 10px; background: var(--bg); border-bottom: 0; }
.fx-pfad { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 22px; font-size: 12.5px; color: var(--text2); }
.fx-pfad button { border: 0; background: none; padding: 2px 6px; border-radius: 6px; font: inherit; color: var(--text2); cursor: pointer; }
.fx-pfad button:hover { background: var(--border); color: var(--text); }
.fx-pfad span { padding: 2px 6px; color: var(--text); }
.fx-pfad svg { width: 13px; height: 13px; color: var(--text3); flex: none; }
.fx-kopfzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.fx-kopf .finder-nav-btns { gap: 4px; }
.fx-kopf .finder-nav-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border2); background: var(--surface);
  color: var(--text2); display: grid; place-items: center;
}
.fx-kopf .finder-nav-btn svg { width: 16px; height: 16px; }
.fx-kopf .finder-nav-btn:hover:not(:disabled) { background: var(--surface); color: var(--text); border-color: var(--text3); }
.fx-kopf .finder-toolbar-title {
  flex: 1; min-width: 120px; margin: 0 0 0 4px; font-size: 24px; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-kopf .finder-toolbar-right { gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 1; }
@media (max-width: 1150px) { .fx-kopf .finder-toolbar-right { flex-basis: 100%; justify-content: flex-start; } }
.fx-suche {
  display: flex; align-items: center; gap: 8px; width: 230px; height: 34px; padding: 0 12px; cursor: text;
  border: 1px solid var(--border2); border-radius: var(--r-feld); background: var(--surface); color: var(--text3);
}
.fx-suche svg { width: 15px; height: 15px; flex: none; }
.fx-suche input { width: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--text); }
.fx-suche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-s); }
.fx-kopf .finder-view-group { border: 1px solid var(--border2); border-radius: var(--r-feld); background: var(--surface); }
.fx-kopf .finder-view-btn { width: 36px; height: 32px; display: grid; place-items: center; background: none; color: var(--text2); border-right-color: var(--border2); }
.fx-kopf .finder-view-btn svg { width: 17px; height: 17px; }
.fx-kopf .finder-view-btn:hover { background: var(--surface2); }
.fx-kopf .finder-view-btn.active { background: var(--accent-s); color: var(--accent-d); }
.fx-kopf .finder-size-group { border: 1px solid var(--border2); border-radius: var(--r-feld); overflow: hidden; background: var(--surface); }
.fx-kopf .finder-size-btn { min-width: 30px; height: 32px; border: 0; background: none; color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer; }
.fx-kopf .finder-size-btn.active { background: var(--accent-s); color: var(--accent-d); }
.fx-kopf .finder-upload-btn, .fx-leer-aktionen .finder-upload-btn {
  height: 34px; padding: 0 14px; gap: 7px; border-radius: var(--r-feld); font-size: 13.5px; font-weight: 500;
}
.fx-kopf .finder-upload-btn svg, .fx-leer-aktionen .finder-upload-btn svg { width: 16px; height: 16px; }
.finder-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border2) !important; }
.finder-btn-secondary:hover { background: var(--surface) !important; border-color: var(--text3) !important; }
.finder-upload-btn.fx-neu { background: var(--accent); color: #fff; font-weight: 600; border: 0; }
.finder-upload-btn.fx-neu:hover { background: var(--accent-d); opacity: 1; }
.finder-newdoc-menu {
  top: calc(100% + 6px); width: 260px; padding: 6px; border-radius: 12px;
  background: var(--surface); border-color: var(--border2); box-shadow: var(--schatten-pop);
}
.finder-newdoc-menu button { gap: 11px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; }
.finder-newdoc-menu button:hover { background: var(--bg); }
.finder-newdoc-menu small { display: block; font-size: 11.5px; color: var(--text3); }
.finder-newdoc-menu .fx-menu-ordner { width: 24px !important; height: 22px !important; color: var(--accent); }
.fx-menu-trenner { height: 1px; margin: 5px 4px; background: var(--border); }
#finder-col-header { display: none !important; }

/* ── Inhalt ── */
.finder-content { background: var(--bg); }
.fx-inhalt { padding: 4px 26px 48px; }
.fx-sektion { margin-top: 18px; }
.fx-sektion:first-child { margin-top: 4px; }
.fx-sektion-kopf { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.fx-sektion-kopf h2 { margin: 0; font-size: 13px; font-weight: 650; color: var(--text2); }
.fx-sektion-kopf span { font-size: 12px; color: var(--text3); }

.fx-zuletzt { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fx-zk {
  display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 58px; padding: 11px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte);
}
.fx-zk:hover { border-color: var(--border2); }
.fx-zk-text { display: flex; flex-direction: column; min-width: 0; }
.fx-zk-text b { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-zk-text small { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-zk-lade { cursor: default; background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: fx-schimmer 1.2s linear infinite; }
@keyframes fx-schimmer { to { background-position: -200% 0; } }

.fx-ordner { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.fx-okachel {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte);
}
.fx-okachel:hover { border-color: var(--border2); }
.fx-okachel > svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.fx-otext { display: flex; flex-direction: column; min-width: 0; }
.fx-otext b { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-otext small { font-size: 12px; color: var(--text3); }

.fx-raster { display: grid; gap: 14px; }
.fx-raster.fx-gS { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fx-raster.fx-gM { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.fx-raster.fx-gL { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); }
.fx-karte {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.fx-karte:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24, 24, 22, .06); }
.fx-bild { position: relative; height: 150px; overflow: hidden; background: #efeee9; border-bottom: 1px solid var(--border); }
.fx-gS .fx-bild { height: 112px; }
.fx-gL .fx-bild { height: 190px; }
.fx-thumb { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fx-bild-typ { display: none; position: absolute; inset: 0; place-items: center; }
.fx-bild-typ .fx-typ { transform: scale(1.7); }
.fx-bild.leer .fx-bild-typ { display: grid; }
.fx-info { padding: 10px 12px 11px; }
.fx-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 550; }
.fx-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-meta { margin-top: 3px; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-aktionen { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.fx-karte:hover .fx-aktionen, .fx-karte:focus-within .fx-aktionen { opacity: 1; }
.fx-aktionen button {
  width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border2); border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--text2);
}
.fx-aktionen button:hover { color: var(--text); border-color: var(--text3); }
.fx-aktionen svg { width: 15px; height: 15px; }

.fx-liste { margin-top: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte); }
.fx-sektion + .fx-liste { margin-top: 18px; }
.fx-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px 110px 110px; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; cursor: pointer;
}
.fx-zeile:last-child { border-bottom: 0; }
.fx-zeile:hover { background: var(--surface2); }
.fx-zeile-kopf { min-height: 36px; cursor: default; background: var(--surface2); }
.fx-zeile-kopf button { padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 12px; font-weight: 600; color: var(--text2); cursor: pointer; }
.fx-zeile-kopf button span { color: var(--accent); }
.fx-z-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-z-name > span:not(.fx-typ) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-z-name small { margin-left: 2px; font-size: 12px; color: var(--text3); white-space: nowrap; }
.fx-z-name > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.fx-z-datum, .fx-z-groesse { font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.fx-z-akt { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; }
.fx-zeile:hover .fx-z-akt, .fx-zeile:focus-within .fx-z-akt { opacity: 1; }
.fx-z-akt button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text2); cursor: pointer; }
.fx-z-akt button:hover { background: var(--bg); color: var(--text); }
.fx-z-akt button.gefahr:hover { background: #fbeaea; color: #b3261e; }
.fx-z-akt svg { width: 16px; height: 16px; }
.finder-empty { color: var(--text2); font-size: 14px; }
.fx-leer-aktionen { display: flex; gap: 8px; margin-top: 14px; }
@media (max-width: 1100px) { .fx-zeile { grid-template-columns: minmax(0, 1fr) 110px 90px 84px; } .fx-suche { width: 180px; } }
@media (prefers-reduced-motion: reduce) { .fx-karte, .fx-aktionen { transition: none; } .fx-zk-lade { animation: none; } }

/* ── Dokument geöffnet: helle Kopfzeile wie in Teams ── */
.collab-view-bar { height: 48px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.collab-view-bar.doc-open { height: 54px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.collab-view-title, .collab-view-bar.doc-open .collab-view-title { gap: 10px; color: var(--text); font-size: 15px; }
.collab-view-bar.doc-open .collab-view-title svg, .collab-view-title svg { stroke: currentColor; }
.collab-view-actions { gap: 8px; }
.collab-view-btn, .collab-view-bar.doc-open .collab-view-btn, .collab-view-bar.doc-open .collab-saveas-bar-btn {
  height: 34px; padding: 0 12px; gap: 7px; border-radius: var(--r-feld); font-size: 13px;
  background: var(--surface); border: 1px solid var(--border2); color: var(--text);
}
.collab-view-btn:hover, .collab-view-bar.doc-open .collab-view-btn:hover, .collab-view-bar.doc-open .collab-saveas-bar-btn:hover {
  background: var(--surface); border-color: var(--text3); color: var(--text); filter: none;
}
.collab-view-btn svg, .collab-view-bar.doc-open .collab-view-btn svg { width: 16px; height: 16px; }
.collab-view-bar.doc-open .collab-close-btn.has-changes { background: var(--surface) !important; border-color: var(--border2) !important; color: var(--text) !important; animation: none; }
.collab-view-bar.doc-open .collab-dirty-dot { display: none !important; }
#collab-filename { font-weight: 600; }
.collab-modal-hint { font-size: 12px; color: var(--text3); }
.collab-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; max-width: none !important;
}
.collab-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.collab-status.st-ok { background: #e6f2eb; color: #2f6b47; }
.collab-status.st-aenderung, .collab-status.st-speichert { background: #fbf1dc; color: #9a6a12; }
.collab-status.st-fehler { background: #fbeaea; color: #b3261e; }
.collab-view-title .fx-typ { max-width: none; }

/* Obere Leiste: Symbole an den Bereichs-Knöpfen */
.t-tool-ic { width: 15px; height: 15px; flex: none; }

/* Flora-Knopf nicht über dem Dokument-Editor (verdeckte Tabellen-Reiter/Zoom) und nicht auf der Flora-Seite (verdeckte „Senden“) */
body:has(#v-dokument.doc-fs) #fa-fab, body:has(#v-flora.on) #fa-fab { display: none !important; }
/* Papierkorb ruhig statt rot — die Anzahl steht daneben */
.finder-sb-trash.has-items { color: var(--text2) !important; }
/* Pfadleiste bricht nicht um — mittlere Ordner kürzen sich mit „…“ */
.fx-pfad { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.fx-pfad button, .fx-pfad span { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.fx-pfad > :last-child { flex-shrink: 0; max-width: 60%; }
/* „Neu“-Menü: steht der Knopf links (schmales Fenster), klappt das Menü nach rechts auf */
@media (max-width: 1150px) { .finder-newdoc-menu { left: 0; right: auto; } }

/* ================================================================
   Etappe 3 · Dashboard (03.10.2026): Tageskarte mit Feldern, Wetter-Glaskarte, Kennzahlen, zwei Spalten, Bereiche
   ================================================================ */
#home-shell { background: var(--bg) !important; }
.dash-wrap.nd { max-width: 1240px; padding: 22px 28px 64px; }

/* ── Tageskarte (Blickfang) ── */
.nd-hero {
  position: relative; display: flex; align-items: stretch; gap: 18px; min-height: 248px; margin-bottom: 16px;
  padding: 26px 26px 22px; border-radius: 18px; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 42, 28, .86) 0%, rgba(18, 42, 28, .62) 38%, rgba(18, 42, 28, .14) 70%, rgba(18, 42, 28, 0) 100%),
    url('/assets/img/hero_felder.jpg') center 38% / cover no-repeat;
  background:
    linear-gradient(90deg, rgba(18, 42, 28, .86) 0%, rgba(18, 42, 28, .62) 38%, rgba(18, 42, 28, .14) 70%, rgba(18, 42, 28, 0) 100%),
    image-set(url('/assets/img/hero_felder.webp') type('image/webp'), url('/assets/img/hero_felder.jpg') type('image/jpeg')) center 38% / cover no-repeat;
}
.nd-hero-text { display: flex; flex-direction: column; gap: 6px; max-width: 560px; min-width: 0; }
.nd-hero-datum { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.nd-hero-datum b { color: #fff; font-weight: 700; }
.nd-hero-gruss { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); text-wrap: balance; }
.nd-hero-tag { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.nd-hero-tag b { color: #fff; font-weight: 650; }
.nd-hero-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.nd-hero .dash-btn {
  height: 36px; padding: 0 14px; gap: 7px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: none; transform: none;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nd-hero .dash-btn:hover { background: rgba(255, 255, 255, .26); transform: none; box-shadow: none; }
.nd-hero .dash-btn.primary { background: #fff; border-color: #fff; color: var(--accent-d); font-weight: 650; }
.nd-hero .dash-btn.primary:hover { background: #f2f5f1; }
.nd-hero .dash-btn svg { width: 16px; height: 16px; stroke: currentColor; }

/* Wetter als Glaskarte auf der Tageskarte */
.nd-wetter {
  position: relative; margin-left: auto; align-self: flex-start; flex: none; width: 330px; padding: 14px 16px; border-radius: 15px;
  background: rgba(16, 38, 26, .5); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(8, 24, 16, .22);
}
.nd-wetter .hm-widget-loading { min-height: 150px; }
.nd-w-kopf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.nd-w-kopf > svg { width: 13px; height: 13px; }
.nd-w-sonne { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.nd-w-cog { width: 26px; height: 26px; margin-left: 4px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.nd-w-cog:hover { background: rgba(255, 255, 255, .22); }
.nd-w-cog svg { width: 14px; height: 14px; }
.nd-w-jetzt { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; }
.nd-w-grad { font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nd-w-icon svg { width: 44px; height: 44px; display: block; }
.nd-w-besch { font-size: 14.5px; font-weight: 650; }
.nd-w-klein { font-size: 12px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.nd-w-stunden { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0; text-align: center; }
.nd-w-stunden > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 11px; color: rgba(255, 255, 255, .78); }
.nd-w-stunden .wi svg { width: 20px; height: 20px; display: block; }
.nd-w-stunden b { font-size: 13.5px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.nd-w-hinweis { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 550; }
.nd-w-hinweis svg { width: 15px; height: 15px; flex: none; }
.nd-w-hinweis.ok { background: rgba(125, 211, 160, .2); color: #c9f2d8; }
.nd-w-hinweis.warn { background: rgba(240, 190, 90, .22); color: #ffe2a6; }
.nd-w-hinweis.neutral { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); }

/* ── Kennzahlen ── */
.nd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.nd-kpis:empty { display: none; }
.nd-kpi {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte);
}
.nd-kpi:hover { border-color: var(--border2); }
.nd-kpi-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.nd-kpi-ic svg { width: 20px; height: 20px; }
.nd-kpi-ic.warn { background: #fbf1dc; color: #9a6a12; }
.nd-kpi-ic.ok { background: #e6f2eb; color: #2f6b47; }
.nd-kpi-ic.neutral { background: var(--accent-s); color: var(--accent-d); }
.nd-kpi-ic.blau { background: #e8effa; color: #3a6fb8; }
.nd-kpi-ic.rot { background: #fbeaea; color: #b3261e; }
.nd-kpi-t { display: flex; flex-direction: column; min-width: 0; }
.nd-kpi-t b { font-size: 21px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nd-kpi-t small { font-size: 12.5px; color: var(--text2); }

/* ── Zwei Spalten mit Karten ── */
.nd-raster { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nd-spalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nd-karte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-karte); padding: 4px 14px 14px; }
.nd-kh { display: flex; align-items: center; gap: 8px; padding: 12px 2px 8px; cursor: pointer; }
.nd-kh > svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.nd-kh h3 { margin: 0; font-size: 14px; font-weight: 650; }
.nd-mehr { margin-left: auto; font-size: 12.5px; font-weight: 550; color: var(--accent-d); padding: 3px 8px; border-radius: 7px; }
.nd-kh:hover .nd-mehr { background: var(--accent-s); }

/* Woche */
.nd .dash-week { gap: 6px; margin: 4px 0 8px; }
.nd .dash-day { padding: 7px 0 6px; border-radius: 11px; }
.nd .dash-day .dow { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text3); }
.nd .dash-day .num { width: auto; height: auto; border-radius: 0; background: none; font-size: 15px; font-weight: 650; color: var(--text); }
.nd .dash-day.today { background: var(--accent); }
.nd .dash-day.today .dow { color: rgba(255, 255, 255, .85); }
.nd .dash-day.today .num { background: none; color: #fff; }
.nd .dash-day.today .dot { background: transparent; }
.nd .dash-day.today.has .dot { background: #fff; }
.nd .dash-entry { padding: 9px 8px; border-radius: 10px; border: 0; background: none; }
.nd .dash-entry + .dash-entry { margin-top: 2px; }
.nd .dash-entry:hover { background: var(--bg); }
.nd .dash-entry .auto { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--text2); border: 1px solid var(--border); }

/* Zuletzt verwendet (Dateien) */
.nd .dash-files-grid { gap: 8px; }
.nd .dash-file { padding: 10px 11px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); }
.nd .dash-file:hover { background: #fff; border-color: var(--border2); }
.nd .dash-file.up { background: transparent; border-style: dashed; }

/* Nachrichten / Posteingang */
.nd .dash-chat, .nd-mailzeile { padding: 9px 6px; border-radius: 10px; }
.nd .dash-chat:hover, .nd-mailzeile:hover { background: var(--bg); }
.nd .dash-chat + .dash-chat { border-top: 0; }
.nd .dash-ava { width: 34px; height: 34px; font-size: 12.5px; }
.nd-mailzeile { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.nd-mailzeile .ct { flex: 1; min-width: 0; }
.nd-mailzeile .ct .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-mailzeile .ct .p { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-mailzeile.neu .ct .n { font-weight: 700; }
.nd-mailzeile .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.nd-mailzeile .t { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.nd-punkt { width: 8px; height: 8px; border-radius: 50%; background: #3a6fb8; }
.nd .dash-empty-mini { padding: 10px 6px; color: var(--text2); font-size: 12.5px; }

/* ── Bereiche ── */
.nd-ueber { display: flex; align-items: baseline; gap: 10px; margin: 24px 2px 10px; }
.nd-ueber h2 { margin: 0; font-size: 13px; font-weight: 650; color: var(--text2); }
.nd-bereiche.dash-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.nd .dash-tool { position: relative; padding: 15px 16px; border-radius: var(--r-karte); border: 1px solid var(--border); box-shadow: none; }
.nd .dash-tool:hover { transform: none; border-color: var(--border2); box-shadow: none; }
.nd .dash-tool h3 { margin: 10px 0 2px; font-size: 14.5px; font-weight: 650; }
.nd .dash-tool .desc { margin: 0 0 10px; font-size: 12.5px; color: var(--text2); }
.nd .dash-tool .arrow { top: 14px; right: 14px; border: 0; background: none; }
.nd .dash-tic { width: 36px; height: 36px; border-radius: 11px; }
.nd .dash-kpis { gap: 6px; }
.nd .dash-kpi { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }

@media (max-width: 1080px) {
  .nd-raster { grid-template-columns: 1fr; }
  .nd-hero { flex-direction: column; }
  .nd-wetter { margin-left: 0; width: 100%; max-width: 420px; }
}
@media (max-width: 640px) { .nd-hero-gruss { font-size: 28px; } .dash-wrap.nd { padding: 16px 16px 48px; } }

.nd-w-leer { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.nd-w-leer b { font-size: 14px; color: #fff; }

/* ================================================================
   Etappe 4 · Flora (03.10.2026): Flora-Seite hell, Flora-Fenster als angedockte Leiste
   ================================================================ */
/* Flora-Seite */
.fl-sidebar { width: 270px; background: var(--surface2); border-right: 1px solid var(--border); }
.fl-sb-top { padding: 14px 12px 10px; }
.fl-new-btn { justify-content: center; height: 38px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; }
.fl-new-btn:hover { background: var(--accent-d); color: #fff; }
.fl-new-btn svg { width: 15px; height: 15px; }
.fl-sb-tabs { margin: 0 12px 8px; padding: 3px; gap: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.fl-sb-tab { padding: 6px 0; border-radius: 8px; font-size: 13px; background: none; color: var(--text2); }
.fl-sb-tab:hover { background: var(--surface); color: var(--text); }
.fl-sb-tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fl-conv-list { padding: 2px 10px 12px; color: var(--text3); }
.fl-conv-sec { padding: 10px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--text3); }
.fl-conv-item { padding: 8px 10px; border-radius: 9px; }
.fl-conv-item:hover { background: var(--border); }
.fl-conv-item.on { background: var(--accent-s); }
.fl-conv-title { font-size: 13.5px; font-weight: 550; color: var(--text); }
.fl-conv-item.on .fl-conv-title { color: var(--accent-d); }
.fl-conv-date { font-size: 12px; color: var(--text3); }
.fl-conv-del:hover { background: var(--bg); }
.fl-conv-del svg { stroke: var(--text3); }
.fl-main { background: var(--bg); }
.fl-header { height: 60px; padding: 0 20px; }
.fl-header-av { width: 38px; height: 38px; border-radius: 50%; background: var(--flora-hell); }
.fl-header-name { font-size: 15px; font-weight: 650; }
.fl-chip { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }
.fl-chip-ai { background: var(--bg); color: var(--text2); border-color: var(--border); }
.fl-messages { background: var(--bg); }
.fl-welcome { padding: 48px 24px 24px; }
.fl-welcome-av { width: 96px; height: 96px; margin-bottom: 16px; background: var(--flora-hell); box-shadow: 0 10px 30px rgba(30, 86, 49, .18); }
.fl-welcome-name { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.fl-welcome-sub { margin-bottom: 26px; font-size: 14px; color: var(--text2); }
.fl-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.fl-suggestion {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border);
}
.fl-suggestion::after { content: '→'; margin-left: auto; color: var(--text3); }
.fl-suggestion:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }
.fl-bubble { border-radius: 14px; }
.fl-msg.me .fl-bubble { background: var(--flora); }
.fl-input-wrap { background: var(--surface); border-top: 1px solid var(--border); }
.fl-input-box { max-width: 860px; margin-left: auto; margin-right: auto; border-radius: 14px; border-color: var(--border2); }
.fl-input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-s); }
.fl-send-btn { background: var(--flora); border-radius: 10px; }
.fl-input-hint { text-align: center; }
@media (max-width: 760px) { .fl-suggestions { grid-template-columns: 1fr; } }

/* Flora-Fenster → angedockte Leiste rechts (wie Copilot in Teams); Inhalt rückt zur Seite */
html body .fa2-bf { background: #fff; border: 1px solid var(--border); }
html body #fa-log { background: var(--surface2); }
@media (min-width: 900px) {
  html body #fa-panel {
    top: var(--oben-h); right: 0; bottom: 0; width: 400px; height: auto;
    border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: -8px 0 30px rgba(24, 24, 22, .08);
  }
  html body #fa-panel .fa2-grid { grid-template-columns: repeat(2, 1fr); }
  body.flora-dock .body { padding-right: 400px; }
  body.flora-dock #fa-fab { display: none !important; }
}

/* ================================================================
   Etappe 3b · Dashboard-Feinschliff (03.10.2026): breiter, Spalten enden bündig, TEAM-Logo hervorgehoben
   ================================================================ */
.dash-wrap.nd { max-width: 1680px; padding: 24px clamp(20px, 2.6vw, 44px) 64px; }
.nd-hero { min-height: 290px; padding: 30px 30px 24px; }
.nd-hero-text { max-width: 660px; }
.nd-hero-gruss { font-size: clamp(32px, 2.4vw, 40px); }
.nd-hero-tag { font-size: 15.5px; }
.nd-wetter { width: 350px; }

/* Beide Spalten enden unten bündig: die letzte Karte je Spalte (.nd-fueller, setzt team.js) füllt auf */
.nd-raster { align-items: stretch; }
.nd-karte { display: flex; flex-direction: column; }
.nd-karte.nd-fueller { flex: 1 1 auto; }
.nd-mail-mehr { margin-top: auto; padding: 10px 6px 2px; font-size: 12.5px; font-weight: 550; color: var(--accent-d); cursor: pointer; }
.nd-mail-mehr:hover { text-decoration: underline; }

/* TEAM oben links = Weg zurück zum Dashboard: größer, kräftiger, klar als Knopf erkennbar */
.t-logo {
  gap: 10px; margin-left: 5px; padding: 4px 14px 4px 4px; border-radius: 12px;
  font-size: 15px; font-weight: 800; letter-spacing: .16em; color: #fff;
}
.t-logo-icon { width: 32px; height: 32px; border-radius: 9px; filter: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.t-logo:hover, .t-logo:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.t-logo:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.t-left > .t-div:first-of-type { margin: 0 10px 0 6px; height: 22px; }

/* Kennzahlen: alle in einer Reihe; mittelbreit 2 × 2 statt 3 + 1 */
.nd-kpis { grid-template-columns: repeat(var(--nd-kpi-n, 4), minmax(0, 1fr)); }
@media (max-width: 1180px) { .nd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nd-kpis { grid-template-columns: 1fr; } }

/* Titelbild (03.10.2026, vom User gewählt: Variante C – generierte Felder-Grafik statt der agroserv-Illustration).
   Neuer Dateiname, damit kein Browser das alte Bild aus dem Zwischenspeicher zeigt. */
.nd-hero {
  background:
    linear-gradient(90deg, rgba(18, 42, 28, .86) 0%, rgba(18, 42, 28, .62) 38%, rgba(18, 42, 28, .14) 70%, rgba(18, 42, 28, 0) 100%),
    url('/assets/img/titel_felder.jpg') center 45% / cover no-repeat;
  background:
    linear-gradient(90deg, rgba(18, 42, 28, .86) 0%, rgba(18, 42, 28, .62) 38%, rgba(18, 42, 28, .14) 70%, rgba(18, 42, 28, 0) 100%),
    image-set(url('/assets/img/titel_felder.webp') type('image/webp'), url('/assets/img/titel_felder.jpg') type('image/jpeg')) center 45% / cover no-repeat;
}

/* Etappe 4b (03.10.2026) · Flora-Bibliothek: Ordner-Navigation war für die alte dunkle Leiste gebaut (weiß auf weiß) */
.fl-lib-nav { padding: 0 10px; }
.fl-lib-sidebar-item { gap: 9px; margin: 1px 0; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text2); }
.fl-lib-sidebar-item svg { width: 15px; height: 15px; }
.fl-lib-sidebar-item:hover { background: var(--border); color: var(--text); }
.fl-lib-sidebar-item.active { background: var(--accent-s); color: var(--accent-d); font-weight: 600; }
.fl-lib-sidebar-all { margin: 2px 0 6px; padding: 8px 10px; border-bottom: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.fl-lib-sidebar-cnt {
  padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums;
  opacity: 1; color: var(--text3); background: var(--surface); border: 1px solid var(--border);
}
.fl-lib-sidebar-item.active .fl-lib-sidebar-cnt { opacity: 1; color: var(--accent-d); background: var(--surface); border-color: transparent; }
.fl-lib-sidebar-group-head { padding: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--text3); }
.fl-lib-sidebar-footer { margin: auto -10px 0; padding: 10px 20px 12px; border-top: 1px solid var(--border); }
.fl-lib-index-status { font-size: 11.5px; line-height: 1.5; color: var(--text3); }

/* Wissensdatenbank-Fundament (03.10.2026): Fundstellen mit Seite, Teiltreffer, Fehlerhinweis */
.fl-lib-stelle { display: flex; gap: 9px; align-items: baseline; margin: 6px -6px 0; padding: 6px; border-radius: 8px; cursor: pointer; }
.fl-lib-stelle:hover { background: var(--accent-s); }
.fl-lib-seite {
  flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--accent-d); background: var(--surface); border: 1px solid var(--border);
}
.fl-lib-stelle .fl-lib-card-snippet { margin: 0; }
.fl-lib-card-snippet em { font-style: normal; font-weight: 650; color: var(--text); background: #fbecc0; border-radius: 3px; padding: 0 2px; }
.fl-lib-teil { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; color: #8a5a00; background: #fbf1dc; }
.fl-bk-fehler {
  position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%;
  font-size: 11px; font-weight: 800; color: #fff; background: #c27a12; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
