/* Edles Design: Graphit/Schwarz, Gold, Blau-Dunkeltürkis.
   Standard ist das dunkle Abend-Design; „hell“ per Umschalter oben rechts.
   Soll = Gold/Champagner, Ist = Türkis, Kosten = Bordeaux. */
:root {
  color-scheme: dark;
  /* Rahmen */
  --rahmen: #0b0c0e;
  --rahmen-2: #121417;
  --rahmen-linie: rgba(255, 255, 255, .06);
  --rahmen-text: #c9c3b6;
  --rahmen-text-2: #7f7a71;
  /* Flächen */
  --flaeche: #111316;
  --flaeche-glanz: rgba(201, 162, 74, .07);
  --karte: #181b1f;
  --karte-2: #1d2125;
  --karte-hover: #22272c;
  --feld: #0f1114;
  --linie: #2a2f35;
  --linie-2: #3a4148;
  --text: #ebe6da;
  --text-2: #b3ad9f;
  --text-3: #837d72;
  /* Gold */
  --gold: #c9a24a;
  --gold-hell: #e0c47f;
  --gold-glanz: #f0dfaf;
  --gold-text: #dcbd72;
  --gold-verlauf: linear-gradient(135deg, #efdcab 0%, #caa75a 42%, #9b7a33 100%);
  --gold-linie: rgba(201, 162, 74, .38);
  /* Türkis */
  --teal: #145e66;
  --teal-2: #1b7480;
  --teal-tief: #0b3c42;
  --teal-text: #6cc9d4;
  /* Soll/Ist-Flächen */
  --soll-flaeche: rgba(201, 162, 74, .09);
  --soll-flaeche-2: rgba(201, 162, 74, .14);
  --soll-kopf: #3a3020;
  --ist-flaeche: rgba(27, 116, 128, .13);
  --ist-flaeche-2: rgba(27, 116, 128, .2);
  --ist-kopf: #145e66;
  --kosten-flaeche: rgba(255, 255, 255, .025);
  --tabelle-kopf: #0d0f11;
  --zeile-2: rgba(255, 255, 255, .022);
  --summe: #20252a;
  /* Zustände */
  --rot: #e57a72;
  --rot-flaeche: rgba(229, 122, 114, .12);
  --rot-linie: rgba(229, 122, 114, .4);
  --hinweis: rgba(201, 162, 74, .1);
  --hinweis-linie: rgba(201, 162, 74, .35);
  /* Diagramme (geprüft mit dem Farbprüfskript für dunkle Flächen) */
  --serie-soll: #b58e3d;
  --serie-ist: #1aa0b3;
  --serie-kosten: #cf5f78;
  --serie-bilanz: #1aa0b3;
  --diagramm-gitter: #262b31;
  --diagramm-achse: #3a4148;
  --diagramm-text: #8a8478;
  --radius: 12px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .25);
  /* Markierungsfarben (Rechtsklick in der Monatstabelle) – gedeckt, lasierend über dem Grund */
  --mark-champagner: rgba(214, 178, 96, .30);
  --mark-sand: rgba(196, 176, 138, .24);
  --mark-salbei: rgba(128, 164, 120, .30);
  --mark-petrol: rgba(26, 150, 160, .32);
  --mark-taubenblau: rgba(110, 138, 184, .32);
  --mark-altrosa: rgba(196, 132, 148, .30);
  --mark-bordeaux: rgba(160, 52, 76, .42);
  --mark-graphit: rgba(170, 170, 170, .20);
  --mark-gruen: rgba(70, 175, 120, .30);
  --schrift-rot: #f07a72;
  --schrift-blau: #7fb2ff;
  /* Chips (Produkt, Status, Plattform) und Benutzer-Bubbles – Farben der Google-Antragsliste, edel abgetönt */
  --c-saphir-bg: #1f4f86; --c-saphir-fg: #dcebfa; --c-saphir-rand: #2d64a3;
  --c-himmel-bg: rgba(120, 170, 225, .20); --c-himmel-fg: #aed0f2; --c-himmel-rand: rgba(120, 170, 225, .38);
  --c-wolke-bg: rgba(170, 190, 220, .13); --c-wolke-fg: #c7d4e6; --c-wolke-rand: rgba(170, 190, 220, .28);
  --c-stahl-bg: rgba(105, 145, 195, .36); --c-stahl-fg: #dbe6f4; --c-stahl-rand: rgba(105, 145, 195, .55);
  --c-tanne-bg: #1d6a49; --c-tanne-fg: #d8f0d0; --c-tanne-rand: #27805a;
  --c-salbei-bg: rgba(150, 200, 135, .18); --c-salbei-fg: #b7dcab; --c-salbei-rand: rgba(150, 200, 135, .36);
  --c-violett-bg: #5b3e82; --c-violett-fg: #ecdcf7; --c-violett-rand: #6f4f99;
  --c-apricot-bg: rgba(232, 160, 110, .20); --c-apricot-fg: #f2c39f; --c-apricot-rand: rgba(232, 160, 110, .40);
  --c-cognac-bg: #74461f; --c-cognac-fg: #f6dcc5; --c-cognac-rand: #8a5629;
  --c-gold-bg: rgba(201, 162, 74, .22); --c-gold-fg: #ecd59a; --c-gold-rand: rgba(201, 162, 74, .45);
  --c-koralle-bg: rgba(225, 115, 95, .26); --c-koralle-fg: #f5b6a8; --c-koralle-rand: rgba(225, 115, 95, .45);
  --c-rose-bg: rgba(225, 140, 152, .20); --c-rose-fg: #f1bfc6; --c-rose-rand: rgba(225, 140, 152, .38);
  --c-orchidee-bg: rgba(205, 130, 205, .22); --c-orchidee-fg: #ebc2e8; --c-orchidee-rand: rgba(205, 130, 205, .40);
  --c-petrol-bg: rgba(27, 140, 155, .30); --c-petrol-fg: #bfe6ea; --c-petrol-rand: rgba(27, 140, 155, .50);
  --c-grau-bg: rgba(255, 255, 255, .06); --c-grau-fg: #b3ad9f; --c-grau-rand: rgba(255, 255, 255, .12);
  /* Feiertage in den Kalendern: rot schraffiert */
  --ft-flaeche: rgba(229, 122, 114, .14); --ft-strich: rgba(229, 122, 114, .55); --ft-rand: rgba(229, 122, 114, .65);
  font-size: 14px;
}
:root[data-thema="hell"] {
  color-scheme: light;
  --flaeche: #f1eee8;
  --flaeche-glanz: rgba(184, 147, 63, .10);
  --karte: #fffdf9;
  --karte-2: #faf7f1;
  --karte-hover: #f7f0e1;
  --feld: #ffffff;
  --linie: #e6e0d5;
  --linie-2: #d3cbbd;
  --text: #1b1c1f;
  --text-2: #57534c;
  --text-3: #8f897e;
  --gold: #b8933f;
  --gold-text: #86672a;
  --gold-linie: rgba(184, 147, 63, .45);
  --teal: #0f4f56;
  --teal-2: #17666f;
  --teal-text: #0d4a51;
  --soll-flaeche: rgba(236, 223, 194, .32);
  --soll-flaeche-2: rgba(236, 223, 194, .5);
  --ist-flaeche: rgba(205, 225, 223, .38);
  --ist-flaeche-2: rgba(205, 225, 223, .58);
  --ist-kopf: #0f4f56;
  --kosten-flaeche: #f3efe8;
  --tabelle-kopf: #1e2125;
  --zeile-2: #faf7f1;
  --summe: #ece6da;
  --rot: #a4332d;
  --rot-flaeche: #f8e7e4;
  --rot-linie: #e7c1bb;
  --hinweis: #fbf4e4;
  --hinweis-linie: #e7d3a3;
  --serie-soll: #a8852f;
  --serie-ist: #00869f;
  --serie-kosten: #963f4b;
  --serie-bilanz: #00869f;
  --diagramm-gitter: #ebe5da;
  --diagramm-achse: #d3cbbd;
  --diagramm-text: #8f897e;
  --schatten: 0 1px 2px rgba(25, 20, 10, .04), 0 10px 28px rgba(25, 20, 10, .06);
  --mark-champagner: #f0e1b8;
  --mark-sand: #ebe2cf;
  --mark-salbei: #dbe7d4;
  --mark-petrol: #cde6e9;
  --mark-taubenblau: #d8e0ee;
  --mark-altrosa: #f0d8de;
  --mark-bordeaux: #e8c9d0;
  --mark-graphit: #e0e0e0;
  --mark-gruen: #cdebd9;
  --schrift-rot: #c62828;
  --schrift-blau: #1155cc;
  --c-saphir-bg: #24548a; --c-saphir-fg: #eef5fc; --c-saphir-rand: #24548a;
  --c-himmel-bg: #dcebf8; --c-himmel-fg: #1d4f86; --c-himmel-rand: #c3dbf1;
  --c-wolke-bg: #eaf0f8; --c-wolke-fg: #3a4a5e; --c-wolke-rand: #d8e2ef;
  --c-stahl-bg: #b9cfe6; --c-stahl-fg: #16233d; --c-stahl-rand: #a5c1de;
  --c-tanne-bg: #23704f; --c-tanne-fg: #eef8ea; --c-tanne-rand: #23704f;
  --c-salbei-bg: #e2f1da; --c-salbei-fg: #2d6a3c; --c-salbei-rand: #cde5c1;
  --c-violett-bg: #5e3f86; --c-violett-fg: #f5ecfb; --c-violett-rand: #5e3f86;
  --c-apricot-bg: #fbe2d0; --c-apricot-fg: #7a3f12; --c-apricot-rand: #f2cdb1;
  --c-cognac-bg: #7d4a1f; --c-cognac-fg: #fbeadb; --c-cognac-rand: #7d4a1f;
  --c-gold-bg: #f5e7bf; --c-gold-fg: #4d3d1c; --c-gold-rand: #e8d398;
  --c-koralle-bg: #f7cdc2; --c-koralle-fg: #7d1a12; --c-koralle-rand: #efb3a4;
  --c-rose-bg: #f9dfe2; --c-rose-fg: #9b1c24; --c-rose-rand: #f0c4ca;
  --c-orchidee-bg: #f5dbf3; --c-orchidee-fg: #8a2d55; --c-orchidee-rand: #e9bfe5;
  --c-petrol-bg: #cfe7ea; --c-petrol-fg: #0f4f56; --c-petrol-rand: #b4d8dc;
  --c-grau-bg: #ecebe8; --c-grau-fg: #4a4740; --c-grau-rand: #dcd9d3;
  --ft-flaeche: #fbeeec; --ft-strich: rgba(164, 51, 45, .38); --ft-rand: rgba(164, 51, 45, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--rahmen); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
[v-cloak] { display: none; }
::selection { background: rgba(201, 162, 74, .3); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--linie-2); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ Grundlayout */
/* Fenster = genau die Bildschirmhöhe: Kopfleiste und Logo stehen fest, Menü und Inhalt scrollen je für sich */
.app { display: grid; grid-template-rows: 64px minmax(0, 1fr); grid-template-columns: 232px minmax(0, 1fr); height: 100vh; overflow: hidden; }

.navi {
  grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0; padding: 22px 0 0;
  background: linear-gradient(180deg, #111316 0%, #0a0b0d 100%); border-right: 1px solid var(--rahmen-linie);
}
/* Menüpunkte unter dem Logo: eigener Scrollbereich, verschwindet beim Scrollen unter dem goldenen Strich */
.navi-liste { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 16px; scrollbar-width: thin; }
.navi-liste::-webkit-scrollbar { width: 7px; }
.navi-liste::-webkit-scrollbar-thumb { background: rgba(201, 162, 74, .28); border: 2px solid transparent; background-clip: content-box; }
.marke-logo { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 6px 22px; margin: 0 14px;
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold-linie), transparent) 1; }
.marke-logo img { width: 96px; height: auto; filter: drop-shadow(0 6px 18px rgba(201, 162, 74, .2)); }
.marke-logo .wort { margin-top: 12px; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-weight: 300;
  font-size: 17px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-glanz); padding-left: .28em; }
.marke-logo .unter { margin-top: 4px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--rahmen-text-2); }
.navi button {
  text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; color: var(--rahmen-text); letter-spacing: .02em; position: relative;
  transition: background .15s, color .15s;
}
.navi button:hover { background: rgba(255, 255, 255, .04); color: #f2ede2; }
.navi button.aktiv { background: linear-gradient(90deg, rgba(201, 162, 74, .16), rgba(201, 162, 74, .03)); color: var(--gold-glanz); }
.navi button.aktiv::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gold-verlauf); }
.navi button.aktiv svg { color: var(--gold-hell); }
.navi .abstand { flex: 1 0 8px; }
/* Bereich (Leads, Antragslisten, später Bestandsarbeit): größer, unterstrichen, einklappbar; die Punkte darunter eingerückt */
.navi button.navi-bereich { margin: 6px 0 8px; padding: 2px 8px 2px 14px; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 18px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-glanz);
  justify-content: space-between; border-radius: 6px; }
.navi button.navi-bereich:hover { background: rgba(255, 255, 255, .03); color: var(--gold-glanz); }
.navi-bereich .titel { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.navi-bereich .pfeil { font-size: 11px; color: var(--gold); transition: transform .15s; letter-spacing: 0; }
.navi-bereich.zu .pfeil { transform: rotate(-90deg); }
.navi-bereich.zu .titel { text-decoration-color: rgba(201, 162, 74, .35); }
.navi-bereich .navi-zahl { letter-spacing: 0; text-transform: none; font-family: "Segoe UI", sans-serif; }
.navi-bereich .navi-zahl + .pfeil { margin-left: 6px; }
.navi .navi-bereich-zeile ~ .navi-bereich-zeile { margin-top: 18px; }
/* Überpunkte je Benutzer verschiebbar: per Drag & Drop */
.navi-bereich-zeile { position: relative; display: flex; align-items: center; border-radius: 6px; }
.navi-bereich-zeile > .navi-bereich { flex: 1; min-width: 0; }
.navi-bereich-zeile.ziehen { opacity: .45; }
.navi-bereich-zeile.ziel { box-shadow: 0 -2px 0 var(--gold) inset; }
.navi button.unterpunkt { padding-left: 24px; }
.navi button.unterpunkt.aktiv::before { left: 10px; }
/* Unterpunkt mit eigenen Seiten (Verwaltung → Zeiterfassung → …) */
.navi button.unterpunkt.gruppe .pfeil { margin-left: auto; font-size: 10px; color: var(--gold); transition: transform .15s; }
.navi button.unterpunkt.gruppe .navi-zahl + .pfeil { margin-left: 6px; }
.navi button.unterpunkt.gruppe.zu .pfeil { transform: rotate(-90deg); }
.navi button.unterpunkt.tief { padding-left: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 13.5px; }
.navi button.unterpunkt.tief.aktiv::before { left: 30px; }
.navi button.unterpunkt.tief svg { width: 16px; height: 16px; }
.navi svg { width: 18px; height: 18px; flex: none; color: var(--rahmen-text-2); }
.navi .version { font-size: 10.5px; color: #57534c; text-align: center; letter-spacing: .08em; margin-top: 10px; }

.kopf {
  grid-column: 2; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--rahmen-2); color: var(--rahmen-text); border-bottom: 1px solid rgba(201, 162, 74, .2);
}
.suche { position: relative; flex: 0 1 1040px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.suche > input {
  flex: 1 1 340px; min-width: 220px; height: 38px; border-radius: 19px; border: 1px solid rgba(255, 255, 255, .08); padding: 0 16px 0 40px; color: #f2ede2;
  background: #1b1e22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
  transition: border-color .15s, box-shadow .15s;
}
.suche > input::placeholder { color: #7a756c; }
.suche > input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
.plus {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gold-verlauf); color: #1a1508;
  font-size: 22px; line-height: 1; cursor: pointer; font-weight: 500; box-shadow: 0 4px 14px rgba(201, 162, 74, .25);
}
.plus:hover { filter: brightness(1.07); }
.treffer {
  position: absolute; top: 46px; left: 0; right: 0; background: var(--karte); color: var(--text);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); z-index: 50; overflow: hidden; border: 1px solid var(--linie);
}
.treffer div { padding: 10px 16px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.treffer div.aktiv, .treffer div:hover { background: var(--soll-flaeche-2); }
.treffer small { color: var(--text-3); }
.treffer a { color: var(--teal-text); }
/* Suche oben: Filter-Chips je Bereich (an/aus, Strg+Klick = nur dieser) und Treffer nach Bereichen (3.3.0) */
.such-chips { flex: 0 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.such-chips::-webkit-scrollbar { display: none; }
.such-chip { flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .14); background: transparent;
  color: #6f6a61; font-size: 12px; letter-spacing: .02em; cursor: pointer; white-space: nowrap; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .18); }
.such-chip:hover { color: #f2ede2; border-color: rgba(201, 162, 74, .5); }
.such-chip.an { border-style: solid; border-color: rgba(201, 162, 74, .45); background: rgba(201, 162, 74, .12); color: var(--gold-glanz); text-decoration: none; }
.such-chip.an:hover { background: rgba(201, 162, 74, .2); }
.such-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.kopf-treffer { right: auto; width: min(100%, 720px); max-height: calc(100vh - 90px); overflow-y: auto; }
.treffer-gruppe + .treffer-gruppe { border-top: 1px solid var(--linie); }
.treffer-gruppe h4 { margin: 0; padding: 8px 16px 2px; display: flex; gap: 8px; align-items: baseline; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.treffer-gruppe h4 .zahl { color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; letter-spacing: .02em; }
.punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #3fb3a8; margin-right: 7px; box-shadow: 0 0 0 3px rgba(63, 179, 168, .15); }
.punkt.fehler { background: #d9574f; box-shadow: 0 0 0 3px rgba(217, 87, 79, .18); }
.kopf .wer { white-space: nowrap; border: 1px solid rgba(201, 162, 74, .4); color: var(--gold-glanz); padding: 5px 12px; border-radius: 14px; cursor: pointer; letter-spacing: .06em; }
.kopf .wer:hover { background: rgba(201, 162, 74, .1); }
.thema { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: var(--gold-hell); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.thema:hover { border-color: var(--gold); }
.thema svg { width: 16px; height: 16px; }

.inhalt {
  grid-column: 2; overflow: auto; padding: 22px 28px 48px;
  background: radial-gradient(1200px 380px at 75% -120px, var(--flaeche-glanz), transparent 70%), var(--flaeche);
}
/* Feste Seiten (Listen, Selektionen, Wiki, Verwaltung, Einstellungen): die Seite füllt genau den Inhaltsbereich,
   gescrollt wird in den Tabellen/Fenstern (.fuellen = nimmt die Resthöhe). Reicht das Fenster gar nicht, scrollt der Bereich als Notlösung doch. */
.inhalt.fest { display: flex; flex-direction: column; padding-bottom: 22px; }
.inhalt.fest > * { flex: none; }
.inhalt.fest > :last-child, .inhalt.fest .fuellen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.inhalt.fest .tabelle-huelle { max-height: none; min-height: 120px; flex: 0 1 auto; }
/* Selektion: Filterfenster links und Tabelle rechts scrollen je für sich */
.inhalt.fest .sel-raster { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.inhalt.fest .sel-raster > * { max-height: 100%; min-height: 0; }
.inhalt.fest .sel-raster > .filter { overflow-y: auto; }
/* Wiki: Spalten füllen die Resthöhe statt der festen Rechnung 100vh − 210px */
.inhalt.fest .wiki-raster { height: auto; flex: 1 1 auto; min-height: 360px; grid-template-rows: minmax(0, 1fr); }
/* Einstellungen: Reiter-Inhalt als eigenes Fenster; Formeln: Liste links und Editor rechts scrollen je für sich */
.inhalt.fest .einst-flaeche { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px 8px; }
.inhalt.fest .einst-flaeche.formeln { overflow: hidden; display: flex; flex-direction: column; }
.inhalt.fest .einst-flaeche.formeln > .formel-raster { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.inhalt.fest .formel-raster > * { max-height: 100%; min-height: 0; overflow-y: auto; }
/* Verwaltung → Mitarbeiter: Liste links und Details rechts scrollen je für sich */
.inhalt.fest .ma-raster { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.inhalt.fest .ma-raster > * { max-height: 100%; min-height: 0; }
.inhalt.fest .ma-detail { overflow-y: auto; padding-right: 4px; }
/* Mein Bereich → Übersicht: Diagramm und „Meine Anträge“ nehmen die Resthöhe, die Anträge scrollen für sich */
.inhalt.fest .mein-unten { flex: 1 1 auto; min-height: 260px; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.inhalt.fest .mein-unten > .karte { overflow-y: auto; min-height: 0; }
.inhalt.fest .mein-unten > .diagramm { display: flex; flex-direction: column; min-height: 0; }
.inhalt.fest .mein-unten .flaeche { flex: 1 1 auto; height: auto; min-height: 150px; }
h1 { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 26px; font-weight: 300; margin: 0; letter-spacing: .01em; }
h2 { font-size: 13px; font-weight: 600; margin: 0 0 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
h3 { font-size: 11px; font-weight: 600; margin: 0 0 8px; color: var(--gold-text); text-transform: uppercase; letter-spacing: .14em; }
.vorzeile { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 4px; font-weight: 600; }
.zeile-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.zeile-kopf .luecke { flex: 1; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--schatten); }
.leise { color: var(--text-3); }
.klein { font-size: 12px; }
.zahl { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.neg { color: var(--rot); }

/* ------------------------------------------------------------ Knöpfe & Felder */
.knopf {
  border: 1px solid var(--linie-2); background: var(--karte-2); border-radius: 8px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: border-color .15s, background .15s;
}
.knopf:hover { border-color: var(--gold); background: var(--karte-hover); }
.knopf.primaer { background: var(--gold-verlauf); border: 0; color: #1a1508; font-weight: 600; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(155, 122, 51, .25); padding: 8px 16px; }
.knopf.primaer:hover { filter: brightness(1.06); }
.knopf.gefahr { color: var(--rot); border-color: var(--rot-linie); }
.knopf.gefahr:hover { background: var(--rot-flaeche); border-color: var(--rot); }
.knopf.klein { padding: 4px 10px; font-size: 12px; }
.knopf:disabled { opacity: .45; cursor: default; filter: none; }
.knopf-text { border: 0; background: none; color: var(--teal-text); cursor: pointer; padding: 2px 4px; }
.knopf-text:hover { text-decoration: underline; text-decoration-color: var(--gold); }
input.feld, select.feld, textarea.feld {
  border: 1px solid var(--linie-2); border-radius: 8px; padding: 7px 10px; background: var(--feld); min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input.feld:focus, select.feld:focus, textarea.feld:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
input.feld.fehler, textarea.feld.fehler { border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-flaeche); background: var(--rot-flaeche); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select option { background: var(--karte); color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--teal-2); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
label.f > span { font-weight: 600; letter-spacing: .02em; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.raster3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.monatswahl { display: flex; align-items: center; gap: 8px; }
.monatswahl .titel { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 26px; font-weight: 300; min-width: 210px; text-align: center; letter-spacing: .01em; }
.monatswahl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linie-2); background: var(--karte); cursor: pointer; font-size: 13px; color: var(--gold-text); }
.monatswahl button:hover { border-color: var(--gold); background: var(--soll-flaeche-2); }
.info {
  display: inline-flex; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold-linie);
  font-size: 9.5px; align-items: center; justify-content: center; color: var(--gold-text); cursor: help;
  margin-left: 5px; vertical-align: middle; font-style: italic; font-weight: 600; position: relative; font-family: Georgia, serif;
}
.info:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
/* Blasen (Formel-Info, Beginn-Liste) liegen über allem: fest positioniert direkt im <body>, im Fenster gehalten */
.schwebe-blase {
  position: fixed; z-index: 5000; max-width: min(460px, calc(100vw - 24px)); pointer-events: none;
  background: #0d0f11; color: #ece6d8; padding: 10px 12px; border-radius: 8px; border: 1px solid #2f353b; border-left: 2px solid #c9a24a;
  font: 12px/1.5 Consolas, "Cascadia Mono", monospace; white-space: pre-wrap; text-align: left; font-style: normal; font-weight: 400;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); overflow-wrap: anywhere;
}
.schwebe-blase.text { font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif; font-size: 12.5px; white-space: normal; }
.schwebe-blase table { border-collapse: collapse; }
.schwebe-blase td { padding: 2px 14px 2px 0; white-space: nowrap; }
.schwebe-blase td.leise { color: #8f897e; }
.schwebe-blase .titel { color: #f0dfaf; font-weight: 600; margin-bottom: 4px; }
.marke { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; background: var(--karte-2); color: var(--text-2); border: 1px solid var(--linie); white-space: nowrap; letter-spacing: .02em; }
.marke.gelb, .marke.lila { background: var(--soll-flaeche-2); border-color: var(--gold-linie); color: var(--gold-text); }
.marke.rot { background: var(--rot-flaeche); border-color: var(--rot-linie); color: var(--rot); }
.marke.gruen { background: var(--ist-flaeche); border-color: rgba(27, 116, 128, .45); color: var(--teal-text); }

/* ------------------------------------------------------------ Hinweise */
.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; margin-bottom: 10px;
  border: 1px solid var(--hinweis-linie); border-left: 3px solid var(--gold); background: var(--hinweis); font-size: 13px; }
.hinweis.rot { background: var(--rot-flaeche); border-color: var(--rot-linie); border-left-color: var(--rot); }
.hinweis.blau { background: var(--ist-flaeche); border-color: rgba(27, 116, 128, .45); border-left-color: var(--teal-2); }
.hinweis .text { flex: 1; }
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { background: #0d0f11; color: #efe9dc; padding: 11px 16px; border-radius: 10px; max-width: 460px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-size: 13px; border: 1px solid var(--linie); border-left: 3px solid var(--gold); }
.toast.fehler { border-left-color: #d9574f; }
.toast.ok { border-left-color: #3fb3a8; }

/* ------------------------------------------------------------ Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 16px; margin-bottom: 18px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px 16px; position: relative; box-shadow: var(--schatten); overflow: hidden; }
.kachel .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; font-weight: 600; }
.kachel .wert { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 30px; font-weight: 300; margin-top: 10px; white-space: nowrap; letter-spacing: -.005em; }
.kachel .unter { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.45; }
.kachel .streifen { position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 0 0 2px 2px; }
.kachel.held { background: linear-gradient(150deg, #17666f 0%, #105057 40%, #0a363b 100%); color: #fff; border: 1px solid rgba(224, 196, 127, .35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.kachel.held::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 190px; height: 170px;
  background: url("/static/logo_gold.png") no-repeat center / contain; opacity: .14; pointer-events: none; }
.kachel.held .label { color: var(--gold-hell); }
.kachel.held .unter { color: rgba(236, 230, 216, .75); }
.kachel.held .wert { font-size: 34px; color: var(--gold-glanz); }
.kachel.held .info { color: var(--gold-hell); border-color: rgba(224, 196, 127, .6); }
.diagramme { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diagramm { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--schatten); }
.diagramm .flaeche { position: relative; height: 270px; }
.diagramme.gross .diagramm .flaeche { height: 340px; }
.legende { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; flex-wrap: wrap; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legende i.linie { height: 2px; width: 16px; vertical-align: 3px; }

/* ------------------------------------------------------------ Monat */
/* oben die Tabelle über die volle Breite, darunter links die Diagramme und rechts die Zahlenblöcke nebeneinander */
.monat-unten { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 16px; }
.monat-diagramme { display: grid; gap: 12px; min-width: 0; }
.zahlen-bereich { min-width: 0; font-size: 13px; }
.zahlen-kopf { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.zahlen-kopf .knopf-text { font-size: 11.5px; letter-spacing: .02em; text-transform: none; font-weight: 400; }
.bloecke { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; align-items: start; }
.bloecke.einzeln { grid-template-columns: minmax(215px, 380px); }
.zahlen-bereich .block { padding: 4px 12px 10px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); box-shadow: var(--schatten); min-width: 0; }
.zahlen-bereich .block.lila { background: linear-gradient(var(--soll-flaeche), var(--soll-flaeche)), var(--karte); border-top: 2px solid var(--serie-soll); }
.zahlen-bereich .block.gruen { background: linear-gradient(var(--ist-flaeche), var(--ist-flaeche)), var(--karte); border-top: 2px solid var(--serie-ist); }
.zahlen-bereich .block.orange { background: linear-gradient(var(--kosten-flaeche), var(--kosten-flaeche)), var(--karte); border-top: 2px solid var(--serie-kosten); }
.zahlen-bereich .block-titel { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0 4px; color: var(--gold-text); }
.zahlen-bereich .block.gruen .block-titel { color: var(--teal-text); }
.zahlen-bereich .block-titel.klapp { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  margin: 0 -12px; padding: 8px 12px 6px; border-radius: 9px 9px 0 0; }
.zahlen-bereich .block-titel.klapp:hover { background: var(--karte-hover); }
.zahlen-bereich .block-titel.klapp .zahl { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 700; }
.zahlen-bereich .z { display: flex; justify-content: space-between; align-items: center; padding: 2.5px 0; gap: 8px; }
.zahlen-bereich .z.summe { font-weight: 700; border-top: 1px solid var(--linie-2); margin-top: 4px; padding-top: 6px; }
.zahlen-bereich .z .n { display: flex; align-items: center; min-width: 0; }
.zahlen-bereich .z.unterzeile { font-size: 11.5px; color: var(--text-3); padding-top: 0; margin-top: -2px; }
.zahlen-bereich .z.wartend { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.zahlen-bereich .kosten-z { cursor: pointer; border-radius: 6px; margin: 0 -6px; padding: 3px 6px; }
.zahlen-bereich .kosten-z:hover { background: var(--karte-hover); }
.zahlen-bereich .kosten-z.offen .zahl { color: var(--text-3); }
.zahlen-bereich .kosten-form .knopf.klein { padding: 4px 8px; }
.kosten-form { background: var(--karte-2); border: 1px solid var(--linie-2); border-radius: 8px; padding: 10px; margin: 4px 0 8px; display: grid; gap: 8px; }
.quelle { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-left: 7px; }

.tabelle-huelle { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 182px); box-shadow: var(--schatten); }
table.daten { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.daten th {
  position: sticky; top: 0; z-index: 2; background: var(--tabelle-kopf); color: #e9e3d6; font-weight: 600; font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase; padding: 10px 7px; text-align: left; white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .05); border-bottom: 1px solid var(--gold-linie);
}
table.daten th.soll { background: var(--soll-kopf); color: var(--gold-glanz); }
table.daten th.ist { background: var(--ist-kopf); color: #dff1ee; }
table.daten th.zahl { text-align: right; }
table.daten td { padding: 0 7px; height: 31px; border-bottom: 1px solid var(--linie); border-right: 1px solid rgba(127, 127, 127, .07); white-space: nowrap; }
table.daten tbody tr:nth-child(even) td { background: var(--zeile-2); }
table.daten td.soll { background: var(--soll-flaeche); }
table.daten tbody tr:nth-child(even) td.soll { background: var(--soll-flaeche-2); }
table.daten td.ist { background: var(--ist-flaeche); }
table.daten tbody tr:nth-child(even) td.ist { background: var(--ist-flaeche-2); }
table.daten tbody tr:hover td { box-shadow: inset 0 1px 0 var(--gold-linie), inset 0 -1px 0 var(--gold-linie); }
table.daten td.bearbeitbar { cursor: cell; }
table.daten td:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
table.daten td.name { cursor: pointer; color: var(--teal-text); font-weight: 600; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
table.daten td.name:hover { color: var(--gold-hell); }
table.daten td.notiz { max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
table.daten td input, table.daten td select {
  width: 100%; height: 26px; border: 1px solid var(--gold); border-radius: 4px; padding: 0 6px; text-align: inherit; background: var(--feld);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); outline: none;
}
table.daten tr.storniert td { color: var(--text-3); text-decoration: line-through; }
table.daten tr.storniert td.name { color: var(--text-3); }
table.daten td.vertrag-storno { color: var(--text-3); text-decoration: line-through; }
table.daten tfoot td { position: sticky; bottom: 0; background: var(--summe); font-weight: 700; border-top: 1px solid var(--gold-linie); z-index: 1; }
table.daten tr.klickbar { cursor: pointer; }
table.daten tr.klickbar:hover td { background: var(--karte-hover); }
table.daten tr.alt td { color: var(--text-2); font-style: italic; }
.schalter { display: inline-block; min-width: 40px; text-align: center; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; border: 1px solid var(--linie-2); background: transparent; color: var(--text-3); cursor: pointer; }
.schalter.an { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.offen-punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 7px; box-shadow: 0 0 0 2px rgba(201, 162, 74, .2); }

/* ------------------------------------------------------------ Dialoge */
.dialog-hg { position: fixed; inset: 0; background: rgba(4, 5, 6, .62); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 16px; overflow: auto; }
.dialog { background: var(--karte); border: 1px solid var(--linie); border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); width: 100%; max-width: 1000px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); position: relative; overflow: hidden; }
.dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-verlauf); }
.dialog.schmal { max-width: 580px; }
.dialog-kopf { padding: 18px 22px 14px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 12px; }
.dialog-kopf h1 { flex: 1; font-size: 21px; }
.dialog-inhalt { padding: 18px 22px; overflow: auto; }
.dialog-fuss { padding: 14px 22px; border-top: 1px solid var(--linie); display: flex; gap: 10px; justify-content: flex-end; align-items: center; background: var(--karte-2); }
.dialog-fuss .links { margin-right: auto; }
.x { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--text-3); line-height: 1; }
.x:hover { color: var(--gold-hell); }
.abschnitt { margin-bottom: 20px; }
table.liste { width: 100%; border-collapse: collapse; font-size: 13px; }
table.liste th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--linie-2); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
table.liste td { padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.liste td input.feld, table.liste td select.feld { width: 100%; padding: 4px 7px; }
.verlauf td { font-size: 12px; }
.verlauf tr.konflikt td { background: var(--hinweis); }
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin-bottom: 18px; flex-wrap: wrap; }
.reiter button { border: 0; background: none; padding: 10px 16px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: .02em; }
.reiter button:hover { color: var(--text); }
.reiter button.aktiv { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.ist-berechnet { background: var(--ist-flaeche); border: 1px solid rgba(27, 116, 128, .4); border-radius: 8px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.soll-berechnet { background: var(--soll-flaeche); border: 1px solid var(--gold-linie); border-radius: 8px; padding: 7px 10px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Selektion */
.sel-raster { display: grid; grid-template-columns: 310px 1fr; gap: 16px; align-items: start; }
.filter { display: flex; flex-direction: column; gap: 12px; }
.filter .gruppe { display: flex; flex-direction: column; gap: 5px; }
.filter .gruppe > span { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--linie-2); background: var(--feld); border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip.an { background: var(--soll-flaeche-2); border-color: var(--gold); color: var(--gold-glanz); }
:root[data-thema="hell"] .chip.an { background: #1e2125; color: var(--gold-glanz); }
.chip.nicht { background: var(--rot-flaeche); border-color: var(--rot-linie); color: var(--rot); text-decoration: line-through; }
.von-bis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ------------------------------------------------------------ Einstellungen / Formeln */
.formel-raster { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
/* Formeln → Tabelle (Produktvorgaben): kompakte Eingabezellen, MAZ-Haken neben dem GP-Feld */
.vorgabe-karte { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1 1 auto; }
.vorgabe-karte .vorgabe-leiste { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vorgabe-karte .tabelle-huelle { flex: 1 1 auto; min-height: 0; max-height: none; align-self: start; max-width: 100%; }
table.vorgabe-tabelle { width: auto; }
table.vorgabe-tabelle th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px; }
table.vorgabe-tabelle th.gruppe-gp { text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .15); }
table.vorgabe-tabelle td { height: 34px; padding: 0 6px; vertical-align: middle; }
table.vorgabe-tabelle tr.produkt-anfang td { border-top: 2px solid var(--linie-2); }
table.vorgabe-tabelle td.produkt { min-width: 150px; }
table.vorgabe-tabelle td.produkt .knopf-text { visibility: hidden; margin-left: 6px; }
table.vorgabe-tabelle tr:hover td.produkt .knopf-text { visibility: visible; }
table.vorgabe-tabelle td.eingabe { text-align: right; }
table.vorgabe-tabelle input.feld { width: 64px; padding: 4px 7px; text-align: right; font-variant-numeric: tabular-nums; }
table.vorgabe-tabelle input.feld::placeholder { color: var(--text-3); opacity: .6; }
table.vorgabe-tabelle .gp-zelle { display: inline-flex; align-items: center; gap: 6px; }
table.vorgabe-tabelle .maz-haken { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-2); cursor: pointer; }
table.vorgabe-tabelle .maz-haken input { width: 14px; height: 14px; margin: 0; }
table.vorgabe-tabelle tr.inaktiv td { opacity: .5; }
table.vorgabe-tabelle .vorgabe-fehlt { display: block; font-size: 11px; font-weight: 600; color: var(--rot); line-height: 1.2; }
.vorgabe-karte .vorgabe-fehlt-filter { color: var(--rot); font-weight: 600; }
.vorgabe-karte .vorgabe-jahre { margin: -4px 0 0; }
table.vorgabe-tabelle .vorgabe-ab { display: block; font-size: 10px; font-weight: 600; color: var(--gold); text-align: right; line-height: 1.1; cursor: help; }
table.vorgabe-dialog-tabelle td { height: 38px; }
.formel-liste { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); max-height: calc(100vh - 210px); overflow: auto; box-shadow: var(--schatten); padding-bottom: 8px; }
.formel-liste .gruppe { padding: 12px 16px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); font-weight: 700; }
.formel-liste button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 16px 6px 24px; cursor: pointer; font-size: 13px; position: relative; }
.formel-liste button:hover { background: var(--karte-hover); }
.formel-liste button.aktiv { background: var(--soll-flaeche-2); font-weight: 600; }
.formel-liste button.aktiv::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--gold); border-radius: 2px; }
.formel-liste button .geaendert { color: var(--gold); font-size: 11px; margin-left: 5px; }
textarea.formel { width: 100%; font: 14px/1.6 Consolas, "Cascadia Mono", monospace; min-height: 76px; resize: vertical; }
.variablen { display: flex; flex-wrap: wrap; gap: 5px; max-height: 180px; overflow: auto; }
.variablen button { border: 1px solid var(--linie-2); background: var(--karte-2); border-radius: 6px; padding: 2px 8px; font: 12px Consolas, monospace; cursor: pointer; }
.variablen button:hover { background: var(--soll-flaeche-2); border-color: var(--gold); }
.fehlermeldung { color: var(--rot); font-size: 13px; margin-top: 6px; }
.okmeldung { color: var(--teal-text); font-size: 13px; margin-top: 6px; }
.listen-editor td { padding: 4px 6px; }
code, .code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; }
.bericht td, .bericht th { padding: 5px 8px; font-size: 13px; }
.leer { padding: 32px; text-align: center; color: var(--text-3); }
details.erweitert { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 10px; }
details.erweitert summary { cursor: pointer; color: var(--text-2); font-size: 12.5px; }

/* ------------------------------------------------------------ Startseite: Monat / Insgesamt */
.segment { display: inline-flex; padding: 3px; border-radius: 22px; background: var(--karte); border: 1px solid var(--linie-2); box-shadow: var(--schatten); }
.segment button { border: 0; background: none; cursor: pointer; padding: 7px 20px; border-radius: 18px; color: var(--text-2);
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 18px; font-weight: 300; letter-spacing: .01em; transition: background .15s, color .15s; }
.segment button:hover { color: var(--text); }
.segment button.aktiv { background: var(--gold-verlauf); color: #1a1508; font-weight: 400; }
.kacheln.vier { grid-template-columns: repeat(4, 1fr); }
.offen-punkt.teal { background: var(--teal-text); box-shadow: 0 0 0 2px rgba(108, 201, 212, .2); }
.offen-punkt.rot { background: var(--rot); box-shadow: 0 0 0 2px var(--rot-flaeche); }
table.daten td.beginn { color: var(--text-2); }
table.daten td.angenommen { color: var(--text-3); font-style: italic; }
table.daten td.laeuft { color: var(--teal-text); }
/* Auswahl direkt in Listen (Selektion): MAZ, Bearbeiter */
table.daten select.inline { font-size: 12.5px; padding: 3px 22px 3px 7px; border-radius: 6px; border: 1px solid var(--linie-2);
  background-color: var(--feld); color: var(--text); min-width: 112px; max-width: 200px; cursor: pointer; }
table.daten select.inline.kurz { min-width: 68px; }
table.daten select.inline:hover, table.daten select.inline:focus { border-color: var(--gold); outline: none; }
table.daten .schalter:disabled { cursor: default; }

/* ------------------------------------------------------------ Farbmarkierungen */
table.daten tbody td.mark-champagner, .farb-punkt.mark-champagner { background: var(--mark-champagner) !important; }
table.daten tbody td.mark-sand, .farb-punkt.mark-sand { background: var(--mark-sand) !important; }
table.daten tbody td.mark-salbei, .farb-punkt.mark-salbei { background: var(--mark-salbei) !important; }
table.daten tbody td.mark-petrol, .farb-punkt.mark-petrol { background: var(--mark-petrol) !important; }
table.daten tbody td.mark-taubenblau, .farb-punkt.mark-taubenblau { background: var(--mark-taubenblau) !important; }
table.daten tbody td.mark-altrosa, .farb-punkt.mark-altrosa { background: var(--mark-altrosa) !important; }
table.daten tbody td.mark-bordeaux, .farb-punkt.mark-bordeaux { background: var(--mark-bordeaux) !important; }
table.daten tbody td.mark-graphit, .farb-punkt.mark-graphit { background: var(--mark-graphit) !important; }
table.daten tbody td.mark-gruen, .farb-punkt.mark-gruen { background: var(--mark-gruen) !important; }
table.daten tbody td.schrift-rot, .farb-punkt.schrift-rot { color: var(--schrift-rot) !important; }
table.daten tbody td.schrift-blau, .farb-punkt.schrift-blau { color: var(--schrift-blau) !important; }
.farb-punkt.schrift-rot, .farb-punkt.schrift-blau { font-weight: 700; font-size: 12px; line-height: 1; font-family: Georgia, serif; }
.farbwahl { position: fixed; z-index: 4500; display: grid; gap: 8px; padding: 10px 12px 12px; min-width: 300px;
  background: var(--karte); border: 1px solid var(--linie-2); border-top: 2px solid var(--gold); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--text); }
.farbwahl .titel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text);
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farb-zeile { display: flex; align-items: center; gap: 6px; }
.farb-zeile .was { width: 112px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farb-punkt { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--linie-2); cursor: pointer; padding: 0;
  background-color: var(--karte); transition: transform .1s; }
.farb-punkt:hover { transform: scale(1.15); border-color: var(--gold); }
.farb-punkt.an { box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px var(--gold); }
/* Spalten ein-/ausblenden (Knopf mit Filtersymbol + Auswahl) */
.spalten-wahl { display: inline-flex; }
.knopf.symbol { position: relative; width: 40px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.knopf.symbol svg { width: 17px; height: 17px; }
.knopf.symbol.aktiv { border-color: var(--gold); color: var(--gold-hell); }
.knopf.symbol .zaehler { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold-verlauf); color: #1a1508; font-size: 10.5px; font-weight: 700; line-height: 18px; }
.spalten-box { position: fixed; z-index: 4500; display: grid; gap: 7px; padding: 10px 14px 12px; min-width: 250px; max-height: 70vh; overflow: auto;
  background: var(--karte); border: 1px solid var(--linie-2); border-top: 2px solid var(--gold); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--text); font-size: 13px; }
.spalten-box .titel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 2px; }
.spalten-box .fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 2px; }
.farb-punkt.keine { background: transparent; color: var(--text-3); font-size: 14px; line-height: 1; }
:root:not([data-thema="hell"]) .farbwahl .farb-punkt:not(.keine) { filter: saturate(1.5) brightness(1.6); }  /* im Dunkeln gut unterscheidbar */
.farb-punkt.keine:disabled { opacity: .35; cursor: default; transform: none; }
table.daten td.mehrere { color: var(--gold-text); text-decoration: underline dotted; text-underline-offset: 3px; }
table.daten th.name-kopf { min-width: 150px; }

/* ------------------------------------------------------------ Anmeldung */
.anmeldung-hg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(900px 460px at 50% -10%, rgba(201, 162, 74, .14), transparent 70%),
              radial-gradient(700px 400px at 50% 110%, rgba(20, 94, 102, .28), transparent 70%), var(--rahmen); }
.anmeldung { width: 100%; max-width: 380px; display: grid; gap: 12px; padding: 34px 30px 28px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #16191d, #111316); border: 1px solid rgba(201, 162, 74, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); color: var(--text); }
.anmeldung::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-verlauf); }
.anmeldung img { width: 92px; height: auto; justify-self: center; filter: drop-shadow(0 6px 18px rgba(201, 162, 74, .25)); }
.anmeldung .wort { text-align: center; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-weight: 300; font-size: 19px;
  letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; color: var(--gold-glanz); }
.anmeldung .unter { text-align: center; margin-top: -8px; margin-bottom: 8px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--rahmen-text-2); }
.anmeldung p { margin: 0; color: var(--text-2); line-height: 1.5; }
.anmeldung input.feld { background: #0d0f11; border-color: #2f353b; color: #ebe6da; }
.anmeldung label.f { color: #b3ad9f; }
.anmeldung .knopf.primaer { margin-top: 6px; padding: 10px; font-size: 14px; }
/* Servermodus: Zwei-Faktor-Anmeldung (Code bzw. Einrichtung der Authenticator-App per QR-Code) */
.anmeldung.breit { max-width: 440px; }
.anmeldung .zweifaktor-schritte { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.5; }
.anmeldung .zweifaktor-qr { width: 216px; height: 216px; justify-self: center; border-radius: 8px; }
.anmeldung .zweifaktor-schluessel { justify-self: center; font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px;
  letter-spacing: .08em; color: var(--gold-glanz); user-select: all; text-align: center; }
.anmeldung .zweifaktor-schluessel + .leise { text-align: center; margin-top: -6px; }
.anmeldung input.code-feld { font-family: Consolas, "Cascadia Mono", monospace; font-size: 20px; letter-spacing: .3em; text-align: center; }
.anmeldung .hinweis-anmeldung { color: var(--gold-glanz); line-height: 1.5; }
.anmeldung .knopf-text { justify-self: center; color: var(--text-2); }

/* ------------------------------------------------------------ Benutzermenü, wer ist online */
.menue-huelle { position: relative; }
.menue { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 50; padding: 8px; display: grid; gap: 2px;
  background: var(--karte); border: 1px solid var(--linie-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--text); }
.menue > div { padding: 6px 10px 8px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; }
.menue button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menue button:hover { background: var(--karte-hover); color: var(--gold-hell); }
.online { display: inline-flex; align-items: center; }
.online-kuerzel { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 13px;
  font-size: 11px; letter-spacing: .06em; color: #dff1ee; background: var(--teal); border: 2px solid var(--rahmen-2); margin-left: -6px; }
.online-kuerzel:first-child { margin-left: 0; }
.online-kuerzel.mehr { background: var(--rahmen-2); color: var(--gold-hell); border-color: rgba(201, 162, 74, .45); }
fieldset.ohne-rahmen { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.ohne-rahmen:disabled input, fieldset.ohne-rahmen:disabled select, fieldset.ohne-rahmen:disabled textarea { opacity: .75; cursor: default; }

/* ------------------------------------------------------------ Chips & Bubbles (Antragsliste, Bearbeiter) */
.pille { display: inline-flex; align-items: center; padding: 0 8px; height: 20px; border-radius: 10px; font-size: 11.5px;
  border: 1px solid var(--c-grau-rand); background: var(--c-grau-bg); color: var(--c-grau-fg); white-space: nowrap;
  letter-spacing: .01em; vertical-align: middle; font-weight: 500; }
.pille + .pille { margin-left: 4px; }
.pille.person { font-weight: 600; padding: 0 10px; letter-spacing: .02em; }
.pille.leer { background: transparent; border-style: dashed; color: var(--text-3); }
.c-saphir { background: var(--c-saphir-bg); color: var(--c-saphir-fg); border-color: var(--c-saphir-rand); }
.c-himmel { background: var(--c-himmel-bg); color: var(--c-himmel-fg); border-color: var(--c-himmel-rand); }
.c-wolke { background: var(--c-wolke-bg); color: var(--c-wolke-fg); border-color: var(--c-wolke-rand); }
.c-stahl { background: var(--c-stahl-bg); color: var(--c-stahl-fg); border-color: var(--c-stahl-rand); }
.c-tanne { background: var(--c-tanne-bg); color: var(--c-tanne-fg); border-color: var(--c-tanne-rand); }
.c-salbei { background: var(--c-salbei-bg); color: var(--c-salbei-fg); border-color: var(--c-salbei-rand); }
.c-violett { background: var(--c-violett-bg); color: var(--c-violett-fg); border-color: var(--c-violett-rand); }
.c-apricot { background: var(--c-apricot-bg); color: var(--c-apricot-fg); border-color: var(--c-apricot-rand); }
.c-cognac { background: var(--c-cognac-bg); color: var(--c-cognac-fg); border-color: var(--c-cognac-rand); }
.c-gold { background: var(--c-gold-bg); color: var(--c-gold-fg); border-color: var(--c-gold-rand); }
.c-koralle { background: var(--c-koralle-bg); color: var(--c-koralle-fg); border-color: var(--c-koralle-rand); }
.c-rose { background: var(--c-rose-bg); color: var(--c-rose-fg); border-color: var(--c-rose-rand); }
.c-orchidee { background: var(--c-orchidee-bg); color: var(--c-orchidee-fg); border-color: var(--c-orchidee-rand); }
.c-petrol { background: var(--c-petrol-bg); color: var(--c-petrol-fg); border-color: var(--c-petrol-rand); }
.c-grau { background: var(--c-grau-bg); color: var(--c-grau-fg); border-color: var(--c-grau-rand); }
/* Auswahl in Listen als Bubble (Bearbeiter in der Selektion) */
table.daten select.inline.pille-wahl { border-radius: 11px; font-weight: 600; height: 24px; padding: 0 22px 0 10px; }
table.daten select.inline.pille-wahl:not(.c-leer) { border-width: 1px; }
/* Chip-Auswahl (mehrere Werte) als schwebende Box */
.chip-box { position: fixed; z-index: 4500; display: grid; gap: 4px; padding: 10px 12px 12px; min-width: 240px; max-width: 360px;
  max-height: 70vh; overflow: auto; background: var(--karte); border: 1px solid var(--linie-2); border-top: 2px solid var(--gold);
  border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--text); font-size: 13px; }
.chip-box .titel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 4px; }
.chip-box .optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-box .optionen .pille { cursor: pointer; opacity: .55; height: 24px; padding: 0 10px; }
.chip-box .optionen .pille:hover { opacity: .85; }
.chip-box .optionen .pille.an { opacity: 1; box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px var(--gold); }
.chip-box .optionen .pille + .pille { margin-left: 0; }
.chip-box .fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 6px; }
/* Chip-Schalter im Dialog */
.chip-raster { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-raster .pille { cursor: pointer; opacity: .5; height: 26px; padding: 0 11px; font-size: 12px; }
.chip-raster .pille:hover { opacity: .8; }
.chip-raster .pille.an { opacity: 1; box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px var(--gold); }
.chip-raster .pille + .pille { margin-left: 0; }
fieldset.ohne-rahmen:disabled .chip-raster .pille { cursor: default; }
/* Antragsliste */
table.daten td.chipzelle { max-width: 260px; overflow: hidden; text-overflow: clip; }
table.daten td.text-wert { font-style: italic; color: var(--text-2); }
table.daten td.lang { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
table.daten th.sortierbar { cursor: pointer; user-select: none; }
table.daten th.sortierbar:hover { color: var(--gold-glanz); }
table.daten th .sort { font-size: 9px; margin-left: 4px; color: var(--gold-hell); }
.lead-marke { display: inline-block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px;
  margin-left: 6px; border: 1px solid var(--gold-linie); color: var(--gold-text); vertical-align: 1px; font-weight: 700; }
@keyframes fokus-blitz { 0%, 35% { box-shadow: inset 0 0 0 9999px rgba(201, 162, 74, .38); } 100% { box-shadow: inset 0 0 0 9999px rgba(201, 162, 74, 0); } }
table.daten tr.fokus td { animation: fokus-blitz 2.6s ease-out 1; }
/* Suche: woher stammt der Treffer */
.quelle-marke { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 1px 7px; border-radius: 8px;
  margin-right: 8px; font-weight: 700; vertical-align: 1px; }
.quelle-marke.leads { background: var(--soll-flaeche-2); color: var(--gold-text); border: 1px solid var(--gold-linie); }
.quelle-marke.antrag { background: var(--ist-flaeche-2); color: var(--teal-text); border: 1px solid rgba(27, 116, 128, .45); }
.treffer .gruppe-titel { padding: 6px 16px 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  cursor: default; background: var(--karte-2); }
.treffer .gruppe-titel:hover { background: var(--karte-2); }
/* Übersicht Antragslisten */
.balken-ziel { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 12px; }
.kachel.held .balken-ziel { background: rgba(255, 255, 255, .14); }
.balken-ziel > i { display: block; height: 100%; border-radius: 4px; background: var(--gold-verlauf); }
table.ziele { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.ziele th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 6px 6px; text-align: right; font-weight: 600; }
table.ziele th:first-child, table.ziele td:first-child { text-align: left; white-space: nowrap; color: var(--text-2); font-weight: 600; }
table.ziele td { padding: 5px 6px; text-align: right; border-top: 1px solid var(--linie); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ziele td.pos { color: var(--teal-text); }
table.ziele td.neg { color: var(--rot); }
table.ziele td.zukunft { color: var(--text-3); }
table.ziele input { width: 84px; text-align: right; padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; background: transparent;
  font-variant-numeric: tabular-nums; }
table.ziele input:hover { border-color: var(--linie-2); }
table.ziele input:focus { outline: none; border-color: var(--gold); background: var(--feld); }
table.ziele input.automatisch { color: var(--text-3); font-style: italic; }
.mitarbeiter-tabelle td .pille { min-width: 70px; justify-content: center; }
.liste-farbe { display: flex; align-items: center; gap: 8px; }
.liste-farbe select { min-width: 140px; }

@media (max-width: 1180px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .monat-unten, .sel-raster, .formel-raster { grid-template-columns: minmax(0, 1fr); }
  .diagramme { grid-template-columns: minmax(0, 1fr); }
  /* schmales Fenster: Filter bzw. Formelliste über der Tabelle – dann scrollt der Bereich als Ganzes */
  .inhalt.fest .sel-raster, .inhalt.fest .einst-flaeche.formeln > .formel-raster { flex: none; grid-template-rows: none; }
  .inhalt.fest .sel-raster > *, .inhalt.fest .formel-raster > * { max-height: none; }
  .inhalt.fest .einst-flaeche.formeln { overflow-y: auto; display: block; }
  .inhalt.fest .sel-raster .tabelle-huelle { max-height: 75vh; }
}

/* ------------------------------------------------------------ Neuer Antrag: Kategorien, Verträge, Periode/Tarif */
.dialog.neu-antrag .dialog-inhalt { padding-top: 14px; }
.chips-zeile { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pille.wahl { cursor: pointer; opacity: .5; height: 26px; padding: 0 11px; font-size: 12px; margin-left: 0 !important; }
.pille.wahl:hover { opacity: .8; }
.pille.wahl.an { opacity: 1; box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px var(--gold); }
.pille.wahl.aus { opacity: .25; cursor: not-allowed; }
.ziel-zeile { margin: -4px 0 14px; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; color: var(--text-2);
  background: var(--ist-flaeche); border: 1px solid rgba(27, 116, 128, .35); }
.ziel-zeile.lead { background: var(--soll-flaeche); border-color: var(--gold-linie); }
.ziel-zeile b { color: var(--text); }
.vertrag-alle { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 8px 12px; margin-bottom: 10px;
  border: 1px dashed var(--gold-linie); border-radius: 10px; background: var(--soll-flaeche); }
.vertrag-alle .was { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.vertrag-alle .gruppe { display: inline-flex; gap: 6px; align-items: center; }
.kategorie { border: 1px solid var(--linie); border-radius: 10px; margin-bottom: 8px; background: var(--karte); }
.kategorie.offen { border-color: var(--linie-2); }
.kategorie-kopf { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; cursor: pointer;
  padding: 8px 12px; text-align: left; color: var(--text); border-radius: 10px; }
.kategorie-kopf:hover { background: var(--karte-hover); }
.kategorie-kopf .pfeil { width: 12px; color: var(--text-3); }
.kategorie-kopf .marke { margin-left: auto; }
.vertrag-raster { display: grid; grid-template-columns: minmax(150px, 1.4fr) 110px auto auto 130px 64px 100px; gap: 6px 10px; align-items: center;
  padding: 2px 12px 12px; }
.vertrag-raster.bearbeiten { grid-template-columns: minmax(170px, 1.5fr) 105px auto auto 135px minmax(110px, 1fr) 60px 90px 24px; padding: 0; }
.vertrag-raster .kopfzeile { font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding-top: 4px; }
.vertrag-raster .kopfzeile.zahl, .vertrag-raster .zahl { text-align: right; }
.vertrag-raster .produkt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.vertrag-raster .produkt small { font-weight: 400; margin-left: 6px; }
.vertrag-raster .produkt.gefuellt { color: var(--gold-hell); }
.vertrag-raster .feld { padding: 5px 8px; }
.mini-wahl { display: inline-flex; border: 1px solid var(--linie-2); border-radius: 8px; overflow: hidden; background: var(--feld); }
.mini-wahl:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.mini-wahl button { border: 0; background: none; cursor: pointer; padding: 4px 8px; font-size: 12px; color: var(--text-3); border-right: 1px solid var(--linie); }
.mini-wahl button:last-child { border-right: 0; }
.mini-wahl button:hover { color: var(--text); background: var(--karte-hover); }
.mini-wahl button.an { background: var(--gold-verlauf); color: #1a1508; font-weight: 600; }
.werte-karte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 16px; padding: 12px 16px; background: var(--soll-flaeche); border-color: var(--gold-linie); }
.werte-karte > div { display: grid; gap: 2px; }
.werte-karte b { font-variant-numeric: tabular-nums; font-size: 15px; }
/* Antragsliste: Erstprovision, fehlende Formel */
table.daten td.berechnet { color: var(--gold-text); cursor: pointer; }
table.daten td.aus-lead { cursor: pointer; font-style: italic; }  /* Provision/Bewertung aus der Leadliste */
.formel-fehlt { display: inline-block; margin-left: 5px; width: 14px; height: 14px; line-height: 14px; text-align: center; border-radius: 50%;
  font-size: 10px; font-weight: 700; background: var(--rot-flaeche); color: var(--rot); border: 1px solid var(--rot-linie); }
/* Übersicht / Geschäftsplan */
.kacheln.uebersicht { grid-template-columns: 1.3fr repeat(5, 1fr); }
.diagramm.ohne-rahmen { border: 0; box-shadow: none; padding: 0; background: none; }
table.ziele tr.ist-zeile td.pos { color: var(--teal-text); }
table.ziele tr.quote-zeile td { border-top: 0; font-size: 11.5px; padding-top: 0; }
table.ziele tr.trenner td { border-top: 2px solid var(--linie-2); padding: 0; height: 4px; }
table.ziele.plan tr.formel-zeile td:first-child { color: var(--gold-text); }
.reiter.gross button { font-size: 16px; padding: 10px 22px; }
/* Einstellungen → Formeln → Produkte */
.formel-liste button.gruppe.klapp { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--text-2); }
.formel-liste button.gruppe.klapp:hover { background: none; color: var(--text); }
.formel-liste button.inaktiv { color: var(--text-3); }
table.produkt-editor tr.gruppen-zeile td { padding-top: 12px; border-bottom: 0; }
table.produkt-editor tr.storniert td input { opacity: .6; }
/* Benutzer & Rechte: Unterseiten */
table.benutzer-tabelle td.seiten-zelle { white-space: nowrap; }
table.benutzer-tabelle td.seiten-zelle label { display: block; margin: 1px 0; }
table.benutzer-tabelle td.seiten-zelle label.bereich { border-bottom: 1px solid var(--linie); padding-bottom: 2px; margin-bottom: 3px; }
table.benutzer-tabelle td.seiten-zelle .unterpunkt-titel { display: block; font-size: 11.5px; color: var(--text-3); margin: 3px 0 1px; }
table.benutzer-tabelle td.seiten-zelle label.tief { padding-left: 12px; }
label.gesperrt { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) {
  .vertrag-raster { grid-template-columns: minmax(120px, 1fr) 100px auto auto 120px 56px 80px; }
  .werte-karte { grid-template-columns: repeat(3, 1fr); }
  .kacheln.uebersicht { grid-template-columns: repeat(3, 1fr); }
}
.dialog.kundenkarte { max-width: 1220px; }
.dialog.kundenkarte table.liste td select.feld { min-width: 96px; }
.vorschau-band { margin: -6px 0 14px; padding: 8px 14px; border-radius: 10px; font-weight: 600; letter-spacing: .02em;
  background: repeating-linear-gradient(135deg, rgba(229, 122, 114, .16) 0 14px, rgba(229, 122, 114, .08) 14px 28px); border: 1px solid var(--rot-linie); color: var(--rot); }
/* Neuer Antrag: Ansicht anpassen (Spalten und Produkte je Benutzer) */
.ansicht-filter { border: 1px solid var(--gold-linie); border-radius: 10px; background: var(--karte-2); padding: 10px 14px; margin-bottom: 10px; font-size: 13px; }
.ansicht-zeile { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 5px 0; border-top: 1px solid var(--linie); }
.ansicht-zeile:first-of-type { border-top: 0; }
.ansicht-zeile .was { min-width: 120px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.ansicht-zeile .check { white-space: nowrap; }/* Suche in der Kopfzeile: Filter „Suchen in“ (Leads / Antragsliste) */
.such-filter { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); background: #1b1e22;
  color: #7a756c; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.such-filter svg { width: 16px; height: 16px; }
.such-filter:hover { color: #f2ede2; border-color: rgba(201, 162, 74, .5); }
.such-filter.aktiv { color: var(--gold-hell); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .15); }
.such-wo { position: absolute; top: 46px; right: 0; z-index: 60; min-width: 210px; display: grid; gap: 7px; padding: 10px 14px 12px;
  background: var(--karte); color: var(--text); border: 1px solid var(--linie-2); border-top: 2px solid var(--gold); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 13px; }
.such-wo .titel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }.navi .version-nr { font-size: 10px; color: #4a4741; text-align: left; letter-spacing: .06em; margin: 6px 0 -6px 2px; }
/* Abgleich-Anzeige oben rechts */
.abgleich { cursor: help; white-space: nowrap; }
.punkt.laeuft { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); animation: abgleich-puls 1.6s ease-in-out infinite; }
.punkt.allein { background: #7a756c; box-shadow: 0 0 0 3px rgba(122, 117, 108, .18); }
.punkt.warnung { background: #e0a64a; box-shadow: 0 0 0 3px rgba(224, 166, 74, .22); }
.abgleich.warnung { color: #f0c27a; }
.abgleich.fehler { color: #f0928a; font-weight: 600; }@keyframes abgleich-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* ============================================================ WIKI: Allgemeinwissen & Fremdbedingungen */
.wiki { display: flex; flex-direction: column; gap: 14px; }
.wiki-kopf { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wiki-titel { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wiki-titel .vorzeile { margin: 0; }
.wiki-umschalter { display: inline-flex; padding: 3px; border-radius: 22px; background: var(--karte); border: 1px solid var(--linie-2); box-shadow: var(--schatten); }
.wiki-umschalter button { border: 0; background: none; cursor: pointer; padding: 6px 16px 6px 12px; border-radius: 18px; color: var(--text-2);
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 17px; font-weight: 300; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s; white-space: nowrap; }
.wiki-umschalter button svg { width: 18px; height: 18px; }
.wiki-umschalter button:hover { color: var(--text); }
.wiki-umschalter button.aktiv { background: var(--gold-verlauf); color: #1a1508; font-weight: 400; }
.wiki-suche { position: relative; flex: 1 1 420px; max-width: 760px; display: flex; align-items: center; gap: 8px; }
.wiki-suche > input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--linie-2); background: var(--feld); padding: 0 40px 0 44px;
  font-size: 15px; box-shadow: var(--schatten); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.wiki-suche > input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2), var(--schatten); }
.wiki-suche .lupe { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; display: flex; }
.wiki-suche .lupe svg { width: 18px; height: 18px; }
.wiki-suche .leeren { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-3);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.wiki-suche .leeren:hover { color: var(--gold-hell); }
.wiki-suche .such-filter { width: auto; min-width: 44px; height: 44px; border-radius: 22px; padding: 0 13px; gap: 6px; background: var(--karte);
  border-color: var(--linie-2); color: var(--text-3); }
.wiki-suche .such-filter:hover { color: var(--text); }
.wiki-suche .such-filter .filter-text { font-size: 12px; white-space: nowrap; }
.wiki-suche .such-wo { top: 50px; }
.knopf .knopf-sym { display: inline-flex; }
.knopf .knopf-sym svg { width: 15px; height: 15px; }
.wiki-kopf > .knopf.primaer { height: 44px; padding: 0 18px; border-radius: 22px; }

.wiki-raster { display: grid; grid-template-columns: 236px minmax(290px, 370px) minmax(0, 1fr); gap: 14px; height: calc(100vh - 210px); min-height: 460px; }
.wiki-raster.such-raster { grid-template-columns: minmax(330px, 460px) minmax(0, 1fr); }
.wiki-spalte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); min-height: 0; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden; }
.spalten-titel { padding: 14px 16px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.ordner-scroll { flex: 1; overflow: auto; padding: 0 8px 8px; }
.ordner-knopf { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
  padding: 6px 8px; border-radius: 8px; color: var(--text); font-size: 13.5px; position: relative; }
.ordner-knopf:hover { background: var(--karte-hover); }
.ordner-knopf.aktiv { background: var(--soll-flaeche-2); color: var(--text); font-weight: 600; }
.ordner-knopf.aktiv::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--gold-verlauf); }
.ordner-knopf.unter { font-size: 13px; }
.ordner-knopf .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordner-knopf .zahl { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.ordner-zeile { position: relative; }
.ordner-zeile .ordner-stift { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--linie-2); background: var(--karte); color: var(--text-3); cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.ordner-zeile .ordner-stift svg { width: 13px; height: 13px; }
.ordner-zeile:hover .ordner-stift { display: inline-flex; }
.ordner-zeile .ordner-stift:hover { color: var(--gold-hell); border-color: var(--gold); }
.kat-sym { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid; }
.kat-sym svg { width: 15px; height: 15px; }
.kat-sym.gross { width: 44px; height: 44px; border-radius: 12px; }
.kat-sym.gross svg { width: 24px; height: 24px; }
.ordner-knopf.unter .kat-sym { width: 22px; height: 22px; border-radius: 6px; }
.ordner-knopf.unter .kat-sym svg { width: 13px; height: 13px; }
.wiki-ordner .trenner { height: 1px; background: var(--linie); margin: 8px 6px; }
.spalten-fuss { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--linie); background: var(--karte-2); }
.spalten-fuss .knopf-text { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.spalten-fuss .knopf-text svg { width: 14px; height: 14px; }
.spalten-fuss .knopf-text.leise { color: var(--text-3); }

.liste-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--linie); }
.liste-kopf b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.liste-kopf .luecke { flex: 1; }
.liste-kopf .mini-wahl button { padding: 3px 8px; }
.zahl-marke { font-size: 11px; padding: 1px 8px; border-radius: 9px; background: var(--karte-2); border: 1px solid var(--linie); color: var(--text-3); }
.liste-scroll { flex: 1; overflow: auto; padding: 6px; }
.gruppe-titel { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2); position: sticky; top: -6px; background: var(--karte); z-index: 1; }
.gruppe-titel .leise { font-weight: 400; letter-spacing: 0; }
.gruppe-titel svg { width: 14px; height: 14px; color: var(--gold); }
.gruppe-titel.gesellschaft { text-transform: none; letter-spacing: .01em; font-size: 12.5px; color: var(--text); }
.kat-punkt { width: 9px; height: 9px; border-radius: 3px; flex: none; border: 1px solid; }
.eintrag-karte, .treffer-karte { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 1px solid transparent; background: none;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; color: var(--text); position: relative; }
.eintrag-karte:hover, .treffer-karte:hover { background: var(--karte-hover); }
.eintrag-karte.aktiv, .treffer-karte.aktiv { background: var(--soll-flaeche-2); border-color: var(--gold-linie); }
.eintrag-karte .t, .treffer-karte .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: flex; gap: 6px; align-items: flex-start; }
.eintrag-karte .v, .treffer-karte .v { font-size: 12.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.eintrag-karte .m { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-3); }
.eintrag-karte .m .luecke { flex: 1; }
.eintrag-karte .kat-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-text); }
.anh { display: inline-flex; align-items: center; gap: 2px; }
.anh svg { width: 12px; height: 12px; }
.stern { display: inline-flex; color: var(--gold); flex: none; }
.stern svg { width: 13px; height: 13px; fill: currentColor; }
.treffer-karte .pfad-zeile { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--gold-text); flex-wrap: wrap; }
.treffer-karte .t { display: block; }
.treffer-karte.alt .t { color: var(--text-2); }
.filter-hinweis { padding: 10px 12px; }
mark { background: rgba(201, 162, 74, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
:root[data-thema="hell"] mark { background: #f3df9f; }
.leer-sym { color: var(--gold); opacity: .7; margin-bottom: 10px; }
.leer-sym svg { width: 34px; height: 34px; }

/* Lesebereich */
.wiki-leser { overflow: auto; }
.leser { padding: 22px 30px 34px; max-width: 920px; }
.leser-kopf { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--linie); }
.kat-pille { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border-radius: 12px; border: 1px solid;
  font-size: 12px; cursor: pointer; font-weight: 600; letter-spacing: .01em; }
.kat-pille svg { width: 14px; height: 14px; }
.kat-pille:hover { filter: brightness(1.1); }
.leser-zeile { display: flex; align-items: flex-start; gap: 14px; }
.leser-zeile h1 { flex: 1; font-size: 25px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.leser-aktionen { display: flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.symbol-knopf { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--linie-2); background: var(--karte-2); color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; font-size: 18px; line-height: 1; }
.symbol-knopf svg { width: 17px; height: 17px; }
.symbol-knopf:hover { border-color: var(--gold); color: var(--gold-hell); }
.symbol-knopf.an { color: var(--gold); border-color: var(--gold-linie); background: var(--soll-flaeche); }
.symbol-knopf.an svg { fill: currentColor; }
.symbol-knopf.gefahr:hover { color: var(--rot); border-color: var(--rot-linie); background: var(--rot-flaeche); }
.symbol-knopf:disabled { opacity: .4; cursor: default; }
.leser-kopf .meta { font-size: 12px; color: var(--text-3); }
.wiki-text { font-size: 14.5px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.wiki-text p { margin: 0 0 12px; }
.wiki-text h3 { font-size: 15px; text-transform: none; letter-spacing: .01em; color: var(--gold-text); margin: 20px 0 8px; font-weight: 700; }
.wiki-text ul, .wiki-text ol { margin: 0 0 12px; padding-left: 24px; }
.wiki-text li { margin: 3px 0; }
.wiki-text li::marker { color: var(--gold); }
.wiki-text a { color: var(--teal-text); text-decoration: underline; text-decoration-color: rgba(108, 201, 212, .4); text-underline-offset: 3px; }
:root[data-thema="hell"] .wiki-text a { text-decoration-color: rgba(13, 74, 81, .35); }
.wiki-text a:hover { color: var(--gold-hell); text-decoration-color: var(--gold); }
.wiki-text hr { border: 0; border-top: 1px solid var(--linie-2); margin: 18px 0; }
.wiki-text strong { font-weight: 700; color: var(--text); }
.anhaenge { margin-top: 26px; }
.datei-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.datei-karte { display: flex; align-items: center; gap: 6px; border: 1px solid var(--linie-2); border-radius: 10px; background: var(--karte-2); padding: 6px 8px 6px 6px; }
.datei-karte:hover { border-color: var(--gold-linie); }
.datei-karte.fehlt { opacity: .6; }
.datei-haupt { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); min-width: 0; padding: 2px; }
.datei-sym { flex: none; width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-grau-bg); color: var(--c-grau-fg); }
.datei-sym svg { width: 20px; height: 20px; }
.datei-sym.typ-pdf { background: var(--c-koralle-bg); color: var(--c-koralle-fg); }
.datei-sym.typ-bild { background: var(--c-violett-bg); color: var(--c-violett-fg); }
.datei-sym.typ-tabelle { background: var(--c-tanne-bg); color: var(--c-tanne-fg); }
.datei-sym.typ-text { background: var(--c-saphir-bg); color: var(--c-saphir-fg); }
.datei-sym.typ-post { background: var(--c-gold-bg); color: var(--c-gold-fg); }
.datei-sym.gross { width: 48px; height: 48px; border-radius: 12px; }
.datei-sym.gross svg { width: 26px; height: 26px; }
.datei-text { display: flex; flex-direction: column; min-width: 0; }
.datei-text b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei-text small { color: var(--text-3); font-size: 11.5px; }
.schlagworte { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.schlagworte .pille { cursor: pointer; height: 24px; margin-left: 0 !important; }
.schlagworte .pille:hover { border-color: var(--gold); color: var(--gold-hell); }

/* Willkommen (nichts gewählt) */
.wiki-willkommen { padding: 26px 30px; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.wiki-willkommen.leise, .wiki-willkommen:has(> .leer-sym) { align-items: center; justify-content: center; text-align: center; height: 100%; }
.willkommen-kopf { display: flex; gap: 16px; align-items: center; }
.willkommen-kopf h1 { font-size: 28px; }
.gross-sym { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center; flex: none;
  background: var(--soll-flaeche-2); border: 1px solid var(--gold-linie); color: var(--gold-hell); }
.gross-sym svg { width: 30px; height: 30px; }
.kat-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kat-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--karte-2); cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.kat-kachel:hover { border-color: var(--gold-linie); transform: translateY(-2px); box-shadow: var(--schatten); }
.kat-kachel .n { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.zuletzt h3 { margin-bottom: 6px; }
.zuletzt-zeile { display: flex; justify-content: space-between; gap: 14px; width: 100%; border: 0; border-bottom: 1px solid var(--linie); background: none;
  padding: 8px 4px; cursor: pointer; color: var(--text); text-align: left; }
.zuletzt-zeile:hover { color: var(--gold-hell); }
.zuletzt-zeile span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zuletzt-zeile .klein { white-space: nowrap; }

/* Fremdbedingungen */
.facetten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--linie); background: var(--karte-2); }
.facetten select.feld { padding: 5px 8px; font-size: 12.5px; min-width: 0; }
.facetten select.feld.an { border-color: var(--gold); color: var(--gold-text); font-weight: 600; }
.facetten-zeile { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.facetten .mini-wahl button { padding: 3px 8px; font-size: 11.5px; }
.monogramm { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 8px;
  border: 1px solid; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.monogramm.mini { min-width: 22px; height: 20px; border-radius: 6px; font-size: 9.5px; padding: 0 4px; }
.monogramm.gross { min-width: 48px; height: 48px; border-radius: 12px; font-size: 15px; padding: 0 7px; }
.dok-zeile { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; color: var(--text); }
.dok-zeile:hover { background: var(--karte-hover); }
.dok-zeile.aktiv { background: var(--soll-flaeche-2); border-color: var(--gold-linie); }
.dok-zeile.alt { opacity: .62; }
.dok-zeile.alt.aktiv, .dok-zeile.alt:hover { opacity: 1; }
.dok-sym { flex: none; color: var(--c-koralle-fg); display: inline-flex; width: 32px; height: 32px; border-radius: 8px; background: var(--c-koralle-bg);
  align-items: center; justify-content: center; }
.dok-sym svg { width: 18px; height: 18px; }
.dok-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dok-text b { font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; overflow: hidden; text-overflow: ellipsis; }
.dok-text small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-zeile .marke { flex: none; font-size: 10px; padding: 1px 7px; }
.pdf-spalte { overflow: hidden; }
.dok-ansicht { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dok-ansicht .leser-kopf { padding: 16px 20px 12px; margin: 0; }
.dok-titel { flex: 1; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.dok-titel h1 { font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.dok-angaben { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 5px; font-size: 13px; color: var(--text-2); }
.dok-angaben b { color: var(--text); }
.dok-angaben span + span::before, .dok-angaben b + span::before { content: "·"; margin-right: 12px; color: var(--text-3); }
.dok-angaben .marke::before { content: none !important; }
.notiz { font-size: 13px; color: var(--text-2); background: var(--karte-2); border-left: 2px solid var(--gold); border-radius: 6px; padding: 7px 11px; white-space: pre-wrap; }
.fassungen { font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fassungen .pille { cursor: pointer; margin-left: 0 !important; }
.fassungen .pille:hover { border-color: var(--gold); }
.pdf-flaeche { flex: 1; min-height: 300px; background: #2a2d31; border-top: 1px solid var(--linie); display: flex; }
:root[data-thema="hell"] .pdf-flaeche { background: #e8e4dc; }
.pdf-flaeche iframe { flex: 1; width: 100%; height: 100%; border: 0; background: transparent; }
.pdf-flaeche .leer { margin: auto; max-width: 420px; }
.datei-gross { max-width: min(1400px, 96vw); height: calc(100vh - 60px); max-height: none; }
.dialog-hg:has(.datei-gross) { padding: 24px 16px; }
.datei-gross .dialog-kopf { gap: 10px; }
.datei-gross .dialog-kopf h1 { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.datei-gross-inhalt { flex: 1; display: flex; min-height: 0; background: #2a2d31; }
:root[data-thema="hell"] .datei-gross-inhalt { background: #e8e4dc; }
.datei-gross-inhalt iframe { flex: 1; border: 0; }
.datei-gross-inhalt img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.datei-gross-inhalt .leer { margin: auto; }

/* Masken */
.wiki-dialog { max-width: 980px; }
.wiki-dialog.schmaler { max-width: 760px; }
.wiki-formular { display: grid; gap: 14px; }
.wiki-formular > .f, .wiki-formular .raster2 > .f { min-width: 0; }
div.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
div.f > span { font-weight: 600; letter-spacing: .02em; }
.titel-feld { font-size: 17px !important; padding: 9px 12px !important; }
.ordner-wahl-zeile, .neu-ordner { display: flex; gap: 6px; }
.ordner-wahl-zeile select { flex: 1; min-width: 0; }
.neu-ordner input { flex: 1.3; min-width: 0; border-color: var(--gold) !important; }
.neu-ordner select { flex: 1; min-width: 0; }
.ablage-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 18px; border-radius: 14px;
  border: 2px dashed var(--gold-linie); background: var(--soll-flaeche); cursor: pointer; text-align: center; color: var(--text);
  transition: border-color .15s, background .15s; }
.ablage-zone:hover, .ablage-zone.ziel { border-color: var(--gold); background: var(--soll-flaeche-2); }
.ablage-zone.voll { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; border-style: solid; padding: 14px 18px; }
.ablage-zone.klein { flex-direction: row; padding: 10px 14px; gap: 8px; font-size: 12.5px; color: var(--text-2); border-width: 1px; }
.ablage-zone.klein svg { width: 16px; height: 16px; }
.anhang-liste { display: grid; gap: 6px; margin-bottom: 6px; }
.anhang-zeile { display: flex; align-items: center; gap: 8px; }
.anhang-zeile .datei-sym { width: 28px; height: 28px; border-radius: 7px; }
.anhang-zeile .datei-sym svg { width: 16px; height: 16px; }
.anhang-zeile input { flex: 1; min-width: 0; }
.anhang-zeile .symbol-knopf { width: 28px; height: 28px; }
.wiki-editor { border: 1px solid var(--linie-2); border-radius: 10px; background: var(--feld); overflow: hidden; }
.wiki-editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
.wiki-editor .werkzeuge { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 5px 6px; border-bottom: 1px solid var(--linie); background: var(--karte-2); }
.wiki-editor .werkzeuge button { border: 1px solid transparent; background: none; border-radius: 6px; padding: 3px 9px; cursor: pointer; color: var(--text-2); font-size: 12.5px; min-width: 30px; }
.wiki-editor .werkzeuge button:hover { border-color: var(--gold-linie); color: var(--text); background: var(--karte); }
.wiki-editor .werkzeuge .trenn { width: 1px; height: 18px; background: var(--linie-2); margin: 0 4px; }
.wiki-editor .editierbar { min-height: 260px; max-height: 52vh; overflow: auto; padding: 12px 16px; outline: none; color: var(--text); }
.wiki-editor .editierbar:empty::before { content: attr(data-platzhalter); color: var(--text-3); }
.wiki-editor .editierbar h3 { margin-top: 10px; }
.wiki-editor .editierbar div { min-height: 1.65em; }

@media (max-width: 1320px) {
  .wiki-raster { grid-template-columns: 210px minmax(260px, 320px) minmax(0, 1fr); }
  .leser { padding: 18px 22px 28px; }
}
@media (max-width: 1100px) {
  .wiki-raster { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); height: auto; }
  .wiki-raster > .wiki-ordner { grid-column: 1 / -1; max-height: 220px; }
  .wiki-raster > .wiki-liste, .wiki-raster > .wiki-leser { height: calc(100vh - 210px); }
  /* schmales Fenster: Kategorien oben, darunter Liste und Text – dann scrollt die Seite als Ganzes */
  .inhalt.fest .wiki-raster { flex: none; grid-template-rows: none; }
}
/* Suche oben: Treffer aus dem Wiki */
.quelle-marke.wiki_allgemein { background: var(--c-violett-bg); color: var(--c-violett-fg); border: 1px solid var(--c-violett-rand); }
.quelle-marke.wiki_fremd { background: var(--c-koralle-bg); color: var(--c-koralle-fg); border: 1px solid var(--c-koralle-rand); }
.datei-gross-inhalt video { max-width: 100%; max-height: 100%; margin: auto; background: #000; }
.datei-sym.typ-video { background: var(--c-petrol-bg); color: var(--c-petrol-fg); }
/* Screenshots im Eintrag */
.bild-galerie { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.bild-vorschau { border: 1px solid var(--linie-2); border-radius: 10px; padding: 4px; background: var(--karte-2); cursor: zoom-in; max-width: 100%;
  transition: border-color .15s, box-shadow .15s; }
.bild-vorschau:hover { border-color: var(--gold); box-shadow: var(--schatten); }
.bild-vorschau img { display: block; max-width: min(100%, 640px); max-height: 360px; border-radius: 7px; }

/* ============================================================ ZEITERFASSUNG (Mein Bereich, Verwaltung) */
:root { --soll-balken: rgba(255, 255, 255, .09); --an-gruen: #3fbf8a; --an-gruen-flaeche: rgba(63, 191, 138, .14); }
:root[data-thema="hell"] { --soll-balken: rgba(30, 33, 37, .09); --an-gruen: #1f8a5b; --an-gruen-flaeche: rgba(31, 138, 91, .12); }
.navi-zahl { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-verlauf); color: #1a1508;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* Stempeluhr in der Kopfzeile */
.stempel { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.stempel-info { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.stempel-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--an-gruen); box-shadow: 0 0 0 0 var(--an-gruen); animation: stempel-puls 2s infinite; }
@keyframes stempel-puls { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 138, .55); } 70% { box-shadow: 0 0 0 7px rgba(63, 191, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 138, 0); } }
.stempel-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; cursor: pointer; font-size: 12.5px;
  border: 1px solid var(--linie-2); background: var(--karte-2); color: var(--text); letter-spacing: .02em; }
.stempel-btn svg { width: 14px; height: 14px; }
.stempel-btn.kommen { background: var(--gold-verlauf); color: #1a1508; border-color: transparent; font-weight: 600; }
.stempel-btn.kommen:hover { filter: brightness(1.06); }
.stempel-btn.gehen:hover { border-color: var(--rot-linie); color: var(--rot); }
.stempel-btn.pause { padding: 0 9px; }
.stempel-btn.pause:hover { border-color: var(--gold); color: var(--gold-hell); }
.stempel-btn.warnung { background: var(--rot-flaeche); border-color: var(--rot-linie); color: var(--rot); }
.stempel-btn:disabled { opacity: .5; cursor: default; }
/* Übersicht */
.zeit h1 { line-height: 1.25; }
.zeit-kopfraster { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.zeit-raster2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.zeit-raster3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.kachel .wert small { font-size: 15px; color: var(--text-3); }
.stempeluhr { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--linie-2); }
.stempeluhr.anwesend { border-top-color: var(--an-gruen); background: linear-gradient(180deg, var(--an-gruen-flaeche), transparent 60%), var(--karte); }
.stempeluhr.pause { border-top-color: var(--gold); }
.stempeluhr.offen_alt { border-top-color: var(--rot); }
.su-kopf { display: flex; gap: 12px; align-items: center; }
.su-sym { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--karte-2); color: var(--gold); border: 1px solid var(--linie); }
.su-sym svg { width: 22px; height: 22px; }
.stempeluhr.anwesend .su-sym { color: var(--an-gruen); }
.su-status { font-size: 16px; font-weight: 600; }
.su-zeit .gross { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 34px; font-weight: 300; font-variant-numeric: tabular-nums; }
.su-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.su-knoepfe .knopf { min-width: 120px; justify-content: center; }
.su-gehen:hover { border-color: var(--rot-linie); color: var(--rot); }
.su-buchungen { display: flex; gap: 6px; flex-wrap: wrap; }
.diag-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.diag-kopf h2 { margin: 0; }
.diag-kopf .luecke { flex: 1; }
.diag-zahl { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.diag-zahl b { font-size: 18px; font-weight: 600; }
select.klein-feld { padding: 4px 8px; font-size: 12.5px; width: auto; }
.antrag-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--linie); }
.antrag-zeile:last-child { border-bottom: 0; }
.az-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.anwesend-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 2px 14px; }
.anwesend-liste.gross { grid-template-columns: 1fr; }
.anwesend-zeile { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 8px; font-size: 13px; }
.anwesend-zeile.klickbar { cursor: pointer; }
.anwesend-zeile.klickbar:hover { background: var(--karte-hover); }
.anwesend-zeile .an-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anwesend-zeile .an-status { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.anwesend-zeile .an-zeit { font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 42px; text-align: right; color: var(--text-2); }
.anwesend-zeile.anwesend .monogramm { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--an-gruen); }
.anwesend-zeile.anwesend .an-status { color: var(--an-gruen); }
.anwesend-zeile.pause .an-status { color: var(--gold-text); }
.anwesend-zeile.abwesend .an-status { color: var(--teal-text); }
.anwesend-zeile.offen_alt .an-status { color: var(--rot); }
.anwesend-zeile.frei, .anwesend-zeile.nicht_da { opacity: .78; }
/* Arbeitszeiten (Woche / Monat) */
.klein-seg button { font-size: 14px; padding: 5px 14px; }
.monatswahl .titel.klein-titel { font-size: 19px; min-width: 150px; }
.zeit-summe { font-variant-numeric: tabular-nums; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--karte); border: 1px solid var(--linie); }
.zeit-summe.neg, .neg { color: var(--rot); }
.tage-karte { padding: 6px 0; }
.tag-zeile { display: grid; grid-template-columns: 130px 1fr 92px 76px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--linie); }
.tag-zeile:last-child { border-bottom: 0; }
.tag-zeile.kompakt { padding: 5px 16px; }
.tag-zeile.heute { background: var(--soll-flaeche); box-shadow: inset 3px 0 0 var(--gold); }
.tag-zeile.frei { background: var(--zeile-2); color: var(--text-3); }
.tag-zeile.zukunft .tz-summe { opacity: .6; }
.tz-datum { display: flex; flex-direction: column; font-size: 13px; }
.tz-datum b { font-weight: 600; }
.tz-datum.klickbar { cursor: pointer; }
.tz-datum.klickbar:hover b { color: var(--gold-text); }
.tz-inhalt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 26px; }
.buchung { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--ist-flaeche); border: 1px solid rgba(27, 116, 128, .35); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.buchung.laeuft { background: var(--an-gruen-flaeche); border-color: var(--an-gruen); }
.buchung .bd { color: var(--text-3); }
.buchung .bb { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symbol-knopf.mini { width: 24px; height: 24px; border-radius: 7px; }
.symbol-knopf.mini svg { width: 13px; height: 13px; }
.buchung .symbol-knopf.mini { border-color: transparent; background: none; }
.tz-warn { display: inline-flex; align-items: center; gap: 4px; color: var(--rot); font-size: 12px; }
.tz-warn svg { width: 14px; height: 14px; flex: none; }
.tz-summe { text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; }
.tz-summe small { font-size: 11.5px; color: var(--text-3); }
.tz-summe small.pos { color: var(--teal-text); }
.tz-summe small.neg { color: var(--rot); }
.tz-aktion { display: flex; gap: 4px; justify-content: flex-end; }
.tz-aktion .symbol-knopf { width: 30px; height: 30px; }
.schloss { font-size: 13px; opacity: .55; cursor: help; }
.buchung-form { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--karte-2); border: 1px solid var(--gold-linie); }
input.zeit-feld { width: 96px; font-variant-numeric: tabular-nums; }
.pille.gestrichelt { border-style: dashed; }
/* Änderungsanträge zu Arbeitszeiten: vorgemerkt (gestrichelt, gold), abgelehnt (rot, durchgestrichen) */
.buchung.beantragt { opacity: .7; }
.aend-antrag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 14px; border: 1px dashed var(--gold); background: var(--soll-flaeche); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.aend-antrag .aa-text { white-space: nowrap; }
.aend-antrag .aa-diff { color: var(--text-3); }
.aend-antrag.abgelehnt { border-color: var(--rot); background: var(--rot-flaeche); }
.aend-antrag.abgelehnt .aa-text { text-decoration: line-through; text-decoration-color: rgba(229, 122, 114, .7); }
.aend-antrag .symbol-knopf.mini { border-color: transparent; background: none; }
.aend-antrag .knopf.klein { padding: 2px 8px; }
/* Abwesenheiten */
.urlaub-kacheln { grid-template-columns: repeat(4, 1fr) 1.35fr; }
table.jahres-kalender { border-collapse: separate; border-spacing: 2px; font-size: 10.5px; width: 100%; min-width: 760px; }
table.jahres-kalender th { color: var(--text-3); font-weight: 600; text-align: center; padding: 2px; }
table.jahres-kalender tbody th { text-align: left; padding-right: 8px; font-size: 11.5px; color: var(--text-2); }
:where(table.jahres-kalender) td { height: 22px; min-width: 20px; text-align: center; border-radius: 4px; background: var(--karte-2); border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 9.5px; }
table.jahres-kalender td.leer-tag { background: none; cursor: default; }
:where(table.jahres-kalender) td.frei { background: var(--zeile-2); opacity: .55; cursor: default; }
/* Feiertage: rot schraffiert mit rotem Rand – halbe Feiertage (Arbeitstag) dünner und gestrichelt; eine Abwesenheit
   am halben Feiertag behält ihre Farbe, nur die Schraffur liegt darüber */
table.jahres-kalender td.feiertag, table.team-kalender td.feiertag { background-image: repeating-linear-gradient(135deg, var(--ft-strich) 0 2px, transparent 2px 6px); border-color: var(--ft-rand); opacity: 1; cursor: default; }
table.jahres-kalender td.feiertag:not([class*="c-"]), table.team-kalender td.feiertag:not([class*="c-"]) { background-color: var(--ft-flaeche); }
table.jahres-kalender td.feiertag.halb, table.team-kalender td.feiertag.halb { background-image: repeating-linear-gradient(135deg, var(--ft-strich) 0 1px, transparent 1px 7px); border-style: dashed; cursor: pointer; }
table.jahres-kalender td.offen, table.team-kalender td.offen { border-style: dashed; border-width: 1.5px; opacity: .85; }
table.jahres-kalender td.heute, table.team-kalender td.heute { outline: 2px solid var(--gold); outline-offset: -1px; }
.legende i.feiertag-i { background: repeating-linear-gradient(135deg, var(--ft-strich) 0 2px, transparent 2px 5px) var(--ft-flaeche); border: 1px solid var(--ft-rand); }
.legende i.frei-i { background: var(--zeile-2); border: 1px solid var(--linie); }
/* Mein Bereich → Urlaubsplan aller als Jahresübersicht: je Monat ein Block, eine Zeile je Mitarbeiter */
table.team-jahr td, table.team-jahr td.feiertag.halb { cursor: default; }
table.team-jahr td.aus { background: none; }
table.team-jahr th.tj-monat-name { vertical-align: top; padding-top: 4px; color: var(--text-2); }
table.team-jahr th.tj-monat-name.aktuell { color: var(--gold-text); }
table.team-jahr th.tj-name { font-weight: 500; font-size: 11px; white-space: nowrap; color: var(--text-2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.team-jahr tr.eigene th.tj-name { color: var(--gold-glanz); font-weight: 700; }
table.team-jahr tr.tj-abstand td { height: 5px; padding: 0; background: none; border: 0; border-top: 1px solid var(--linie); border-radius: 0; }
.legende i[class^="c-"] { border: 1px solid; }
[class*=" c-"].offen, [class^="c-"].offen { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .08) 4px 8px); }
.grund-wahl { display: grid; gap: 6px; }
.grund-gruppe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.grund-gruppe small { width: 100%; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.abw-dialog { max-width: 620px; }
.ziel-zeile b.neg { color: var(--rot); }
.knopf.ok-knopf { border-color: rgba(63, 191, 138, .5); color: var(--an-gruen); }
.knopf.ok-knopf:hover { background: var(--an-gruen-flaeche); }
/* Verwaltung */
.antrag-karte { padding: 10px 12px; border: 1px solid var(--gold-linie); background: var(--soll-flaeche); border-radius: 10px; margin-bottom: 8px; display: grid; gap: 5px; }
.ak-kopf { display: flex; gap: 8px; align-items: center; }
.ak-kopf .leise { margin-left: auto; }
.ak-knoepfe { display: flex; gap: 6px; margin-top: 2px; }
.balken-zeile { display: grid; grid-template-columns: 130px 1fr 74px; gap: 10px; align-items: center; padding: 5px 2px; font-size: 13px; }
.balken-zeile.klickbar { cursor: pointer; border-radius: 6px; }
.balken-zeile.klickbar:hover { background: var(--karte-hover); }
.balken-zeile.doppelt { grid-template-columns: 130px 1fr 110px; }
.bz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-balken { position: relative; height: 10px; border-radius: 5px; background: var(--karte-2); overflow: hidden; }
.bz-balken i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.bz-balken i.pos { background: var(--serie-ist); }
.bz-balken i.neg { background: var(--serie-kosten); }
.bz-balken i.soll { background: var(--soll-balken); }
.bz-balken i.ist { background: var(--serie-ist); height: 6px; top: 2px; }
.bz-wert { text-align: right; font-variant-numeric: tabular-nums; }
.ma-raster { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.ma-liste { padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 170px); overflow: auto; }
.ma-knopf { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: none; cursor: pointer; padding: 8px; border-radius: 10px; text-align: left; color: var(--text); }
.ma-knopf:hover { background: var(--karte-hover); }
.ma-knopf.aktiv { background: var(--soll-flaeche); border-color: var(--gold-linie); }
.mk-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mk-text small { font-size: 11.5px; }
.status-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--linie-2); flex: none; }
.status-punkt.an { background: var(--an-gruen); }
.status-punkt.pause { background: var(--gold); }
.status-punkt.abw { background: var(--teal-text); }
.status-punkt.warn { background: var(--rot); }
.ma-detail { min-width: 0; }
.ma-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.kachel.mini-kachel { padding: 10px 16px; box-shadow: none; }
.kachel.mini-kachel .wert { font-size: 22px; margin-top: 4px; }
table.konto-tabelle td, table.konto-tabelle th { white-space: nowrap; }
table.liste.kompakt th, table.liste.kompakt td { padding-left: 6px; padding-right: 6px; }
table.liste.kompakt th { letter-spacing: .04em; }
.korr-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
table.regel-tabelle td, table.regel-tabelle th { text-align: center; }
table.regel-tabelle td:first-child, table.regel-tabelle th:first-child { text-align: left; }
table.regel-tabelle input.zeit-feld { width: 64px; text-align: center; padding: 4px; }
.regel-zeile { display: flex; gap: 6px; flex-wrap: wrap; }
.regel-zeile label { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.regel-zeile input.zeit-feld { width: 62px; text-align: center; }
.stamm-form h3 { margin-bottom: 8px; }
table.team-kalender { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
table.team-kalender th { font-weight: 600; color: var(--text-3); text-align: center; min-width: 26px; padding: 2px 0; line-height: 1.15; }
table.team-kalender th.we { color: var(--gold-text); }
table.team-kalender th.ft { color: var(--rot); text-decoration: underline wavy var(--ft-rand); text-underline-offset: 3px; }
table.team-kalender th.tk-name { text-align: left; white-space: nowrap; padding-right: 12px; color: var(--text); font-size: 12.5px; min-width: 140px; }
:where(table.team-kalender) td { height: 28px; min-width: 26px; text-align: center; border-radius: 5px; background: var(--karte-2); border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 10px; }
table.team-kalender td:hover { border-color: var(--gold-linie); }
:where(table.team-kalender) td.frei { background: var(--zeile-2); opacity: .5; }
table.team-kalender td.aus { background: none; cursor: default; }
table.team-kalender td sup { font-size: 8px; }
/* Urlaubsplan in Mein Bereich: nur ansehen, eigene Zeile hervorgehoben */
table.team-kalender tr.eigene th.tk-name { color: var(--gold-glanz); }
.diag-kopf .monatswahl { margin-left: 12px; }
@media (max-width: 1350px) {
  .zeit-kopfraster { grid-template-columns: 1fr 1fr; }
  .zeit-raster2, .zeit-raster3 { grid-template-columns: 1fr; }
  .urlaub-kacheln { grid-template-columns: repeat(3, 1fr); }
  /* schmales Fenster: Diagramm und Anträge untereinander – dann scrollt die Übersicht als Ganzes */
  .inhalt.fest .mein-unten { flex: none; grid-template-rows: none; }
  .inhalt.fest .mein-unten .flaeche { height: 270px; flex: none; }
}
/* ============================================================ Handyansicht (handy.js) – Hochformat, Symbole unten
   html.handy setzt app.js (Breite bis 760 px oder „Handy-Ansicht“ im Profil). Die Seite scrollt als Ganzes (wie eine
   App am iPhone), Kopfleiste und Symbolleiste stehen fest; Safe-Area für Notch und Home-Balken. */
html.handy, html.handy body { height: auto; min-height: 100%; }
html.handy body { background: var(--flaeche); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.handy body.h-gesperrt { overflow: hidden; }
html.handy .nur-pc { display: none !important; }
.h-app { min-height: 100vh; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.h-kopf { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: calc(16px + env(safe-area-inset-top)) 14px 8px; background: var(--rahmen-2); color: var(--rahmen-text);
  border-bottom: 1px solid rgba(201, 162, 74, .25); }
.h-logo { width: 30px; height: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(201, 162, 74, .25)); }
.h-titel { flex: 1; min-width: 0; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 19px;
  letter-spacing: .02em; color: #f2ede2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-kuerzel { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid rgba(201, 162, 74, .5); background: rgba(201, 162, 74, .08);
  color: var(--gold-glanz); font-size: 12px; font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.h-kuerzel.gross { width: 46px; height: 46px; font-size: 14px; }
.h-stempel { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid rgba(63, 179, 168, .45);
  background: rgba(63, 179, 168, .1); color: #bfe6ea; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; flex: none; }
.h-stempel.pause { border-color: var(--gold-linie); background: rgba(201, 162, 74, .1); color: var(--gold-glanz); }
.h-stempel.pause .punkt { background: var(--gold); box-shadow: none; }
.h-stempel.offen_alt { border-color: var(--rot-linie); background: var(--rot-flaeche); color: var(--rot); }
.h-stempel.offen_alt .punkt { background: var(--rot); box-shadow: none; }
.h-band { padding: 8px 14px; font-size: 13px; text-align: center; }
.h-band.rot { background: var(--rot-flaeche); color: var(--rot); }
.h-inhalt { padding: 14px 14px 22px; }
.h-inhalt > .leer { padding: 60px 16px; }
.h-nur-knopf { padding: 20px 0; }
.h-breit { width: 100%; height: 48px; font-size: 16px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Symbolleiste unten: Lupe in der Mitte als goldener Knopf */
.h-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: flex-end;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(18, 20, 23, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(201, 162, 74, .22); }
.h-leiste button { flex: 1 1 0; min-width: 0; border: 0; background: none; color: var(--rahmen-text-2); display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 4px 0; cursor: pointer; }
.h-leiste .h-sym { width: 26px; height: 26px; display: inline-flex; }
.h-leiste .h-sym svg { width: 100%; height: 100%; }
.h-leiste .h-name { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }
.h-leiste button.aktiv { color: var(--gold-hell); }
.h-leiste button.lupe .h-sym { width: 54px; height: 54px; margin-top: -24px; padding: 14px; border-radius: 50%; background: var(--gold-verlauf); color: #1a1508;
  box-shadow: 0 6px 18px rgba(201, 162, 74, .35), 0 0 0 4px var(--rahmen-2); }
.h-leiste button.lupe .h-name { color: var(--gold-text); }

/* Übersichten des PCs im Hochformat: Neuer Antrag oben, Kacheln zu zweit, Diagramme untereinander */
html.handy .h-inhalt .zeile-kopf { gap: 10px; margin-bottom: 14px; }
html.handy .h-inhalt .zeile-kopf > .knopf.primaer { order: -1; width: 100%; height: 48px; font-size: 16px; border-radius: 14px; }
html.handy .h-inhalt .zeile-kopf .luecke { display: none; }
html.handy .h-inhalt .zeile-kopf h1 { font-size: 22px; }
html.handy .segment { max-width: 100%; overflow-x: auto; }
html.handy .segment button { padding: 7px 14px; white-space: nowrap; }
html.handy .monatswahl { flex: 1 1 200px; }
html.handy .monatswahl .titel { font-size: 20px; min-width: 0; flex: 1; }
html.handy .kacheln, html.handy .kacheln.vier, html.handy .kacheln.uebersicht { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
html.handy .kachel { padding: 13px 13px 12px; }
html.handy .kachel .label { font-size: 10px; letter-spacing: .1em; }
html.handy .kachel .wert { font-size: 21px; margin-top: 6px; }
html.handy .kachel .unter { font-size: 11px; }
html.handy .kachel.held { grid-column: 1 / -1; }
html.handy .kachel.held .wert { font-size: 28px; }
html.handy .kacheln.uebersicht > .kachel:last-child { grid-column: 1 / -1; }
html.handy .diagramme, html.handy .diagramme.gross { grid-template-columns: 1fr; gap: 12px; }
html.handy .diagramm { padding: 12px 12px 10px; }
html.handy .diagramm .flaeche, html.handy .diagramme.gross .diagramm .flaeche { height: 230px; }
html.handy .legende { flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
html.handy .karte { padding: 14px; }

/* Dialoge (Neuer Antrag, Kundenkarte, Antrag, Urlaub …) als Vollbild */
html.handy .dialog-hg { padding: 0; align-items: stretch; z-index: 120; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.handy .dialog { max-width: none !important; width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
html.handy .dialog-kopf { padding: calc(20px + env(safe-area-inset-top)) 16px 12px; flex-wrap: wrap; }
html.handy .dialog-kopf h1 { font-size: 18px; }
html.handy .dialog-kopf > .leise.klein { display: none; }
html.handy .dialog-kopf .x { font-size: 30px; padding: 0 4px; }
html.handy .dialog-inhalt { flex: 1 1 auto; padding: 14px 16px 20px; -webkit-overflow-scrolling: touch; }
html.handy .dialog-fuss { flex-wrap: wrap; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
html.handy .dialog-fuss .links { flex-basis: 100%; margin: 0 0 4px; font-size: 12px; }
html.handy .dialog-fuss .knopf { flex: 1; height: 46px; font-size: 15px; }
html.handy .raster2, html.handy .raster3 { grid-template-columns: 1fr; gap: 12px; }
html.handy .raster2 > *, html.handy .raster3 > * { grid-column: 1 / -1 !important; }
html.handy input.feld, html.handy select.feld, html.handy textarea.feld { font-size: 16px; min-height: 42px; }  /* 16 px: iOS zoomt nicht */
html.handy .pille.wahl { height: 34px; padding: 0 14px; font-size: 13px; }
html.handy .neu-antrag .zeile-kopf .leise, html.handy .neu-antrag .zeile-kopf .knopf-text, html.handy .neu-antrag .zeile-kopf .knopf.symbol,
html.handy .vertrag-alle, html.handy .ansicht-filter { display: none; }
html.handy .neu-antrag .dialog-fuss .knopf:nth-last-child(2) { display: none; }  /* „Speichern und weiteren anlegen“ */
html.handy .kategorie-kopf { min-height: 46px; }
html.handy .vertrag-raster { grid-template-columns: 1fr 1fr !important; gap: 6px 8px; padding: 6px 10px 12px; }
html.handy .vertrag-raster .kopfzeile, html.handy .vertrag-raster > span.zahl.leise { display: none; }
html.handy .vertrag-raster .produkt { grid-column: 1 / -1; white-space: normal; margin-top: 8px; }
html.handy .toasts { left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); align-items: stretch; }
html.handy .toast { max-width: none; }
html.handy .anmeldung { margin: 0 14px; }

/* Vollbild (Suche, Wiki-Eintrag, Formulare) */
.h-vollbild { position: fixed; inset: 0; z-index: 90; background: var(--flaeche); display: flex; flex-direction: column; }
.h-such-kopf { display: flex; align-items: center; gap: 10px; padding: calc(18px + env(safe-area-inset-top)) 14px 10px; background: var(--rahmen-2);
  border-bottom: 1px solid rgba(201, 162, 74, .25); }
.h-such-feld { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 12px; border-radius: 21px; background: var(--feld);
  border: 1px solid var(--linie-2); color: var(--gold); }
.h-such-kopf .h-such-feld { background: #1b1e22; border-color: rgba(255, 255, 255, .1); }
.h-such-feld > span { width: 18px; height: 18px; display: inline-flex; flex: none; }
.h-such-feld svg { width: 100%; height: 100%; }
.h-such-feld input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; }
.h-such-kopf .h-such-feld input { color: #f2ede2; }
.h-such-feld input::-webkit-search-cancel-button { display: none; }
.h-such-feld.gross { height: 46px; margin-bottom: 6px; box-shadow: var(--schatten); }
.h-feld-x { border: 0; background: none; color: var(--text-3); width: 30px; height: 30px; padding: 6px; flex: none; }
.h-text-knopf { border: 0; background: none; color: var(--gold-hell); font-size: 16px; padding: 6px 2px; cursor: pointer; }
.h-chips { display: flex; gap: 8px; padding: 10px 14px 4px; overflow-x: auto; flex: none; }
.h-chip { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--linie-2); background: var(--karte); color: var(--text-2); font-size: 13px; }
.h-chip.an { border-color: var(--gold); background: var(--soll-flaeche-2); color: var(--gold-text); }
.h-liste { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 14px calc(20px + env(safe-area-inset-bottom)); }
.h-karte { display: block; width: 100%; text-align: left; border: 1px solid var(--linie); background: var(--karte); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px; color: var(--text); box-shadow: var(--schatten); cursor: pointer; }
.h-karte b { font-size: 15px; }
.h-karte small { display: block; color: var(--text-3); margin-top: 4px; font-size: 12.5px; }
.h-karte .quelle-marke { display: table; margin: 0 0 6px; }
.quelle-marke.q-aufgaben { background: var(--ist-flaeche-2); color: var(--teal-text); border: 1px solid rgba(27, 116, 128, .45); }
/* Handy-Suche: Bereiche und aufklappbare Treffergruppen */
.h-such-kopf .h-zurueck { padding: 6px 0; }
.h-such-titel { flex: 1; font-size: 17px; font-weight: 600; color: #f2ede2; }
.h-bereich, .h-such-gruppe-kopf { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--linie);
  background: var(--karte); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; color: var(--text); box-shadow: var(--schatten); cursor: pointer; }
.h-bereich-sym { width: 38px; height: 38px; border-radius: 19px; padding: 9px; flex: none; display: inline-flex;
  background: var(--soll-flaeche-2); color: var(--gold-text); }
.h-bereich-sym.b-aufgaben, .h-bereich-sym.b-listen { background: var(--ist-flaeche-2); color: var(--teal-text); }
.h-bereich-sym.b-wiki { background: var(--c-violett-bg); color: var(--c-violett-fg); }
.h-bereich-sym svg, .h-bereich-pfeil svg { width: 100%; height: 100%; }
.h-bereich-text { flex: 1; min-width: 0; }
.h-bereich-text b { display: block; font-size: 15.5px; }
.h-bereich-text small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.h-bereich-pfeil { width: 20px; height: 20px; flex: none; display: inline-flex; color: var(--text-3); transition: transform .15s; }
.h-such-gruppe-kopf b { flex: 1; font-size: 15.5px; }
.h-such-zahl { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--soll-flaeche-2); color: var(--gold-text);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.h-such-gruppe.auf .h-such-gruppe-kopf { margin-bottom: 8px; border-color: var(--gold-linie); }
.h-such-gruppe.auf .h-bereich-pfeil { transform: rotate(180deg); }
.h-such-gruppe-inhalt { padding: 0 0 8px 14px; border-left: 2px solid var(--gold-linie); margin: 0 0 14px 18px; }
.h-such-mehr { border: 0; background: none; color: var(--gold-text); font-size: 14px; padding: 4px 2px; cursor: pointer; }
.h-blatt { z-index: 95; }
.h-blatt-kopf { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: calc(16px + env(safe-area-inset-top)) 10px 8px;
  background: var(--rahmen-2); color: #f2ede2; border-bottom: 1px solid rgba(201, 162, 74, .25); }
.h-zurueck { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--gold-hell); font-size: 16px; padding: 6px 4px; flex: none; cursor: pointer; }
.h-zurueck span { width: 22px; height: 22px; display: inline-flex; }
.h-zurueck svg { width: 100%; height: 100%; }
.h-blatt-titel { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; padding-right: 64px; }
.h-blatt-inhalt { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
.h-blatt-fuss { display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); background: var(--karte-2); }
.h-blatt-fuss .knopf { height: 48px; }
.h-blatt .leser { padding: 0; max-width: none; }
.h-blatt .leser-zeile h1, .h-blatt .dok-titel h1 { font-size: 20px; }
.h-blatt .leser-aktionen .knopf, .h-blatt .leser-aktionen .gefahr, .h-blatt .leser-aktionen [title="Groß anzeigen"] { display: none; }
.h-blatt .dok-ansicht { height: auto; }
.h-blatt .dok-ansicht .leser-kopf { padding: 0 0 12px; }
.h-blatt .pdf-flaeche { background: none; border: 0; min-height: 0; padding-top: 6px; }
.h-blatt .wiki-text { font-size: 15.5px; }
.h-blatt .wiki-text img { max-width: 100%; height: auto; }
.h-blatt .datei-raster { grid-template-columns: 1fr; }

/* Wiki: Kacheln */
.h-abschnitt-titel { display: flex; gap: 8px; margin: 18px 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.h-kacheln { display: grid; grid-template-columns: 1fr; gap: 8px; }
.h-wiki-kachel { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; text-align: left; border: 1px solid var(--linie);
  background: var(--karte); border-radius: 12px; padding: 12px 14px; color: var(--text); box-shadow: var(--schatten); cursor: pointer; }
.h-wiki-kachel > :not(.h-wiki-sym) { grid-column: 2; }
.h-wiki-sym { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 9px; padding: 7px; display: inline-flex; background: var(--soll-flaeche-2); color: var(--gold-text); }
.h-wiki-sym svg { width: 100%; height: 100%; }
.h-wiki-sym.fremd { background: var(--ist-flaeche-2); color: var(--teal-text); }
.h-wiki-kachel b { font-size: 15px; line-height: 1.3; }
.h-wiki-kachel small { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.h-wiki-kachel .v { margin-top: 4px; font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-wiki-kachel.alt { opacity: .7; }
.h-wiki-kachel mark, .h-karte mark { background: rgba(201, 162, 74, .3); color: inherit; border-radius: 3px; }

/* Mein Bereich: Stempeluhr, Anträge, diese Woche */
.h-uhr { text-align: center; padding: 18px 16px 16px; }
.h-uhr-status { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.h-uhr-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.h-uhr.anwesend .h-uhr-punkt { background: #3fb3a8; box-shadow: 0 0 0 4px rgba(63, 179, 168, .18); }
.h-uhr.pause .h-uhr-punkt { background: var(--gold); }
.h-uhr.offen_alt .h-uhr-punkt { background: var(--rot); }
.h-uhr-zeit { margin: 10px 0 14px; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 44px; font-weight: 300; font-variant-numeric: tabular-nums; }
.h-uhr-zeit small { font-size: 14px; color: var(--text-3); }
.h-uhr-knoepfe { display: flex; gap: 10px; }
.h-gross { flex: 1; height: 54px; font-size: 16px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.h-gross span { width: 20px; height: 20px; display: inline-flex; }
.h-gross svg { width: 100%; height: 100%; }
.h-uhr .gehen { border-color: var(--rot-linie); color: var(--rot); }
.h-uhr-buchungen { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.h-uhr-buchungen .pille + .pille, .h-tag-buchungen .pille + .pille { margin-left: 0; }
.h-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.h-aktionen .h-gross { height: auto; min-height: 60px; padding: 8px 10px; font-size: 14px; flex-direction: column; gap: 4px; }
.h-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-zwei .breit { grid-column: 1 / -1; }
.h-antraege { padding: 6px 12px; }
.h-antrag { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.h-antrag:last-child { border-bottom: 0; }
.h-antrag-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-antrag-text b { font-size: 13.5px; }
.h-mini { width: 32px; height: 32px; flex: none; padding: 7px; border-radius: 50%; border: 1px solid var(--linie-2); background: var(--karte-2); color: var(--text-3);
  display: inline-flex; cursor: pointer; }
.h-mini svg { width: 100%; height: 100%; }
.h-mini.plus { color: var(--gold); border-color: var(--gold-linie); }
.h-woche { padding: 4px 12px; }
.h-tag { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.h-tag:last-child { border-bottom: 0; }
.h-tag.heute .h-tag-kopf b { color: var(--gold-text); }
.h-tag-kopf { display: flex; align-items: baseline; gap: 8px; }
.h-tag-summe { margin-left: auto; font-variant-numeric: tabular-nums; }
.h-tag-buchungen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.h-tag-buchungen .pille { height: 30px; padding: 0 12px; font-size: 13px; }
.h-formular label.f { margin-bottom: 14px; font-size: 13px; }
.h-zwei-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Profil (Benutzername oben rechts): Blatt von unten */
.h-schleier { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; background: rgba(4, 5, 6, .55); }
.h-unterblatt { width: 100%; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--karte);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); max-height: 92vh; overflow-y: auto; }
.h-griff { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--linie-2); }
.h-person { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--linie); }
.h-zeile { display: block; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--linie); background: none; text-align: left; font-size: 16px; color: var(--text); cursor: pointer; }
.h-zeile.gefahr { color: var(--rot); border-bottom: 0; }
.h-version { margin-top: 10px; text-align: center; }
.h-push { padding: 12px 4px 14px; border-bottom: 1px solid var(--linie); }
.h-push-titel { font-size: 16px; margin-bottom: 4px; }

/* ============================================================ Mitteilungszentrale (mitteilungen.js): Glocke, Panel, Push */
.glocke { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: transparent;
  color: var(--gold-hell); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.glocke:hover, .glocke.offen { border-color: var(--gold); }
.glocke-sym { width: 17px; height: 17px; display: inline-flex; }
.glocke-sym svg { width: 100%; height: 100%; }
.glocke-zahl { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-verlauf);
  color: #1a1508; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--rahmen-2); }
.h-kopf .glocke { width: 36px; height: 36px; border-color: rgba(201, 162, 74, .5); background: rgba(201, 162, 74, .08); }
.h-kopf .glocke-sym { width: 19px; height: 19px; }

.m-schleier { position: fixed; inset: 0; z-index: 92; display: flex; justify-content: flex-end; background: rgba(4, 5, 6, .45); }
.m-zentrale { width: min(420px, 100vw); height: 100%; display: flex; flex-direction: column; background: var(--karte); color: var(--text);
  border-left: 1px solid var(--linie); box-shadow: -18px 0 40px rgba(0, 0, 0, .35); }
html.handy .m-schleier { background: var(--flaeche); }
html.handy .m-zentrale { width: 100%; border-left: 0; box-shadow: none; background: var(--flaeche); }
.m-kopf { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--linie); flex: none; }
html.handy .m-kopf { padding: calc(16px + env(safe-area-inset-top)) 12px 8px 8px; background: var(--rahmen-2); color: #f2ede2; border-bottom-color: rgba(201, 162, 74, .25); }
.m-titel { flex: 1; min-width: 0; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 18px; letter-spacing: .02em; }
.m-alle { border: 0; background: none; color: var(--gold-text); font-size: 13.5px; cursor: pointer; padding: 6px 4px; }
html.handy .m-alle { color: var(--gold-hell); font-size: 15px; }
.m-alle:disabled { opacity: .35; cursor: default; }
.m-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; padding: 7px; }
.m-x:hover { background: var(--karte-hover); }
.m-x span, .m-x svg { width: 100%; height: 100%; display: block; }
.m-reiter { display: flex; border-bottom: 1px solid var(--linie); flex: none; }
.m-reiter button { flex: 1; border: 0; background: none; padding: 12px 8px 10px; color: var(--text-2); font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.m-reiter button.aktiv { color: var(--gold-text); border-bottom-color: var(--gold); }
.m-zahl { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--gold-verlauf); color: #1a1508; font-size: 11px; font-weight: 700; line-height: 19px; }
.m-liste { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 10px 12px; }
.m-liste > .leer { padding: 50px 16px; }
.m-eintrag { display: flex; gap: 11px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--linie); background: none; padding: 12px 8px;
  color: var(--text-2); cursor: pointer; border-radius: 0; font: inherit; }
.m-eintrag:hover { background: var(--karte-hover); }
.m-wisch { position: relative; overflow: hidden; }
.m-wisch .m-eintrag { padding-right: 34px; transition: transform .18s ease, opacity .18s ease; touch-action: pan-y; }
html.handy .m-wisch .m-eintrag { padding-right: 8px; }
.m-eintrag.weg { opacity: 0; }
.m-weg { position: absolute; top: 8px; right: 4px; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 6px; background: none;
  color: var(--text-3); cursor: pointer; opacity: 0; }
.m-weg svg { width: 100%; height: 100%; display: block; }
.m-wisch:hover .m-weg, .m-weg:focus-visible { opacity: 1; }
.m-weg:hover { background: var(--karte-hover); color: var(--text); }
.m-punkt { width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; }
.m-eintrag.neu .m-punkt { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
.m-inhalt { flex: 1; min-width: 0; }
.m-zeile1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.m-eintrag b { font-weight: 500; color: var(--text); font-size: 14.5px; }
.m-eintrag.neu b { font-weight: 700; }
.m-zeit { font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-text { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; }
html.handy .m-eintrag b { font-size: 15.5px; }
html.handy .m-text { font-size: 14px; }
.m-fuss { flex: none; max-height: 55%; overflow-y: auto; border-top: 1px solid var(--linie); padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
.m-einstellungen-knopf { border: 0; background: none; color: var(--text-2); font-size: 13.5px; cursor: pointer; padding: 6px 0; }
.m-hinweis { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; padding: 10px 34px 10px 12px;
  border-radius: 10px; background: var(--hinweis); border: 1px solid var(--hinweis-linie); font-size: 13px; line-height: 1.45; }
.m-hinweis-weg { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.push-einstellungen { display: grid; gap: 10px; padding: 6px 0 4px; font-size: 13.5px; }
.push-einstellungen p { margin: 0; line-height: 1.45; }
.push-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
html.handy .push-knoepfe .knopf { min-height: 42px; font-size: 15px; }
.push-an { color: var(--teal-text); display: flex; align-items: center; }
.push-arten { display: grid; gap: 6px; }
.push-arten label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
html.handy .push-arten label { font-size: 15px; padding: 4px 0; }
.push-arten input { width: 18px; height: 18px; accent-color: var(--gold); }
.push-geraet { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linie); }
.push-geraet .marke { margin-left: 7px; }
.rot-text { color: var(--rot); }

/* ================================================================== AUFGABEN (aufgaben.js, löst Asana ab)
   Asana-Bedienung im eigenen Stil: rot = überfällig, grün = heute/morgen bzw. erledigt, Projekt-/Feldfarben über die
   Chip-Farben (c-…). Eigene Variablen, damit sich die Bedeutung an einer Stelle ändern lässt. */
:root { --asana-rot: var(--rot); --asana-gruen: var(--an-gruen); --asana-gruen-flaeche: var(--an-gruen-flaeche);
  --a-zeile-hoehe: 38px; }
.inhalt.fest > .aufgaben { display: grid; flex-direction: initial; }
.aufgaben { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; min-height: 520px; height: 100%;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; position: relative; }
.a-leiste { border-right: 1px solid var(--linie); background: var(--karte-2); padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.a-suche { display: grid; gap: 6px; padding: 0 4px 10px; border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.a-suche input[type=text], .a-suche input:not([type]) { width: 100%; background: var(--feld); border: 1px solid var(--linie-2); border-radius: 8px; padding: 6px 10px; }
.a-suche input:focus { outline: none; border-color: var(--gold); }
.a-suche label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.a-ort { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: var(--text-2); }
.a-ort:hover { background: var(--karte-hover); color: var(--text); }
.a-ort.aktiv { background: var(--soll-flaeche-2); color: var(--text); box-shadow: inset 3px 0 0 var(--gold); }
.a-ort-sym { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.a-ort-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-schloss { font-size: 10px; opacity: .6; }
.a-zahl { margin-left: auto; font-size: 11px; min-width: 20px; padding: 0 6px; height: 18px; border-radius: 9px; background: var(--c-grau-bg); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.a-leiste-titel { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.a-punkt { width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; flex: none; display: inline-block; padding: 0; }
.a-punkt.gross { width: 22px; height: 22px; border-radius: 6px; cursor: pointer; }
.a-punkt.gross.an { box-shadow: 0 0 0 2px var(--karte), 0 0 0 3.5px var(--gold); }
.a-plus { border: 0; background: none; color: var(--text-3); cursor: pointer; width: 24px; height: 24px; border-radius: 6px; font-size: 16px; line-height: 1; }
.a-plus:hover { background: var(--karte-hover); color: var(--text); }
.a-leer-klein { padding: 6px 10px; }

.a-haupt { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.a-kopf { padding: 16px 22px 0; border-bottom: 1px solid var(--linie); }
.a-titel-zeile { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.a-titel-zeile h1 { margin: 0; font-size: 22px; cursor: text; border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.a-titel-zeile h1:hover { background: var(--karte-hover); }
.a-titel-zeile .luecke, .a-leiste-werkzeug .luecke { flex: 1; }
.a-titel-feld { font-size: 22px; font-weight: 600; background: var(--feld); border: 1px solid var(--gold); border-radius: 6px; padding: 2px 6px; min-width: 300px; }
.a-kachel { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; border: 1px solid; cursor: pointer; }
.a-mitglieder { display: inline-flex; margin-left: 6px; }
.a-mitglieder .a-bubble + .a-bubble { margin-left: -6px; box-shadow: 0 0 0 2px var(--karte); }
.a-reiter { display: flex; gap: 4px; margin-top: 10px; }
.a-reiter button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.a-reiter button:hover:not(:disabled) { color: var(--text); }
.a-reiter button.an { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.a-reiter button:disabled { opacity: .4; cursor: default; }
.a-leiste-werkzeug { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border-bottom: 1px solid var(--linie); }
.a-leiste-werkzeug .knopf.an { border-color: var(--gold); color: var(--gold-hell); }
.a-menue-huelle { position: relative; display: inline-flex; }
.a-menue { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 200px; background: var(--karte); border: 1px solid var(--linie-2); border-radius: 10px; box-shadow: var(--schatten); padding: 6px; display: grid; gap: 2px; }
.a-menue.rechts { left: auto; right: 0; }
.a-menue select { width: 100%; background: var(--feld); border: 1px solid var(--linie-2); border-radius: 6px; padding: 5px 8px; }
.a-menue-titel { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px 2px; white-space: normal; max-width: 260px; }
.a-menue-wahl { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.a-menue-wahl:hover { background: var(--karte-hover); }
.a-menue-wahl.an { color: var(--gold-hell); font-weight: 600; }
.a-menue-wahl.gefahr { color: var(--rot); }
.a-menue-fuss { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 6px; }
.a-farben { grid-template-columns: repeat(7, 22px); gap: 8px; padding: 10px; min-width: 0; }

.a-liste { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 0 40px; }
.a-zeile-raster { display: grid; align-items: stretch; }
.a-spalten { position: sticky; top: 0; z-index: 3; background: var(--karte); border-bottom: 1px solid var(--linie); font-size: 12px; color: var(--text-3); }
.a-spalten > span { padding: 8px 10px; border-left: 1px solid var(--linie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.a-spalten > span:first-child { border-left: 0; padding-left: 52px; }
.a-hinweis { margin: 10px 22px 0; padding: 8px 12px; border-radius: 8px; background: var(--hinweis); border: 1px solid var(--hinweis-linie); }
.a-gruppe { margin-top: 6px; }
.a-gruppe-kopf { display: flex; align-items: center; gap: 6px; padding: 12px 16px 6px; }
.a-gruppe-kopf:hover .a-plus { opacity: 1; }
.a-gruppe-kopf .a-plus { opacity: .35; }
.a-pfeil { border: 0; background: none; cursor: pointer; color: var(--text-3); width: 22px; height: 22px; border-radius: 6px; transition: transform .15s; }
.a-pfeil.zu { transform: rotate(-90deg); }
.a-pfeil:hover { background: var(--karte-hover); color: var(--text); }
.a-gruppe-titel { font-weight: 650; font-size: 15px; cursor: text; padding: 2px 6px; border-radius: 6px; }
.a-gruppe-titel:hover { background: var(--karte-hover); }
.a-gruppe-zahl { color: var(--text-3); font-size: 12px; }
.a-abschnitt-feld { font-weight: 650; font-size: 15px; background: var(--feld); border: 1px solid var(--gold); border-radius: 6px; padding: 2px 6px; }
.a-zeile { min-height: var(--a-zeile-hoehe); border-bottom: 1px solid var(--linie); transition: background .12s, opacity .35s; cursor: pointer; }
.a-zeile:first-of-type { border-top: 1px solid var(--linie); }
.a-zeile:hover { background: var(--karte-hover); }
.a-zeile.fertig { opacity: .45; }
/* erledigte Aufgaben im Projekt: gräulich an ihrem Platz (wie Asana) */
.a-zeile.erledigt:not(.fertig) { opacity: .55; }
.a-zeile.erledigt .a-name { color: var(--text-3); }
.a-zelle { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-left: 1px solid var(--linie); min-width: 0; position: relative; cursor: pointer; }
.a-zelle:first-child { border-left: 0; }
.a-zelle:hover { box-shadow: inset 0 0 0 1px var(--linie-2); }
.a-name-zelle { padding-left: 22px; cursor: default; position: relative; }
.a-name-zelle:hover { box-shadow: none; }
.a-name { flex: 0 1 auto; min-width: 60px; border: 1px solid transparent; background: none; padding: 4px 6px; border-radius: 6px; text-overflow: ellipsis; field-sizing: content; max-width: 100%; }
.a-name:hover { border-color: var(--linie-2); }
.a-name:focus { outline: none; border-color: var(--gold); background: var(--feld); }
.a-tag { flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-haken { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.a-haken svg { width: 12px; height: 12px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.a-haken:hover { border-color: var(--asana-gruen); background: var(--asana-gruen-flaeche); }
.a-haken:hover svg { opacity: 1; stroke: var(--asana-gruen); }
.a-haken.an { background: var(--asana-gruen); border-color: var(--asana-gruen); }
.a-haken.an svg { opacity: 1; stroke: #fff; }
.a-bubble { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; letter-spacing: -.02em; }
.a-bubble.ohne { border: 1.5px dashed var(--linie-2); color: var(--text-3); background: none; font-size: 11px; }
.a-wahl { flex: 1; min-width: 0; border: 0; padding: 4px 2px; cursor: pointer; color: var(--text-2); appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.a-wahl:not(.pille) { background: none; }
.a-wahl:focus { outline: none; }
.a-wahl option { background: var(--karte); color: var(--text); }
.a-wahl-pille.pille { flex: 0 1 auto; height: 22px; padding: 0 10px; border: 1px solid; font-size: 12px; }
.a-zust:hover .a-wahl { color: var(--text); }
.a-faellig { font-size: 13px; color: var(--text-2); }
.a-rot { color: var(--asana-rot) !important; }
.a-gruen { color: var(--asana-gruen) !important; }
.a-leer-zelle { color: var(--text-3); opacity: 0; font-size: 12px; }
.a-zeile:hover .a-leer-zelle { opacity: .7; }
.a-feld { width: 100%; background: var(--feld); border: 1px solid var(--gold); border-radius: 6px; padding: 4px 6px; font-size: 13px; }
.a-feld:focus { outline: none; }
.a-text-wert { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-2); }
.a-zahl-wert { text-align: right; font-variant-numeric: tabular-nums; }
.a-feld-zelle .pille + .pille, .a-projekte .pille + .pille { margin-left: 0; }
.a-mehrfach { flex: 1; min-width: 0; display: flex; gap: 4px; overflow: hidden; align-items: center; min-height: 26px; }
.a-mehrfach .a-menue { min-width: 220px; max-height: 300px; overflow-y: auto; }
/* offenes Auswahlmenü nicht am Feld abschneiden (overflow: hidden schnitt es weg – Feld „Bearbeiter“ nicht änderbar) */
.a-mehrfach:has(.a-menue) { overflow: visible; flex-wrap: wrap; }
.a-d-wert .a-mehrfach { flex-wrap: wrap; overflow: visible; cursor: pointer; }
.a-personen { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 26px; }
.a-person-neu { flex: 0 0 auto; width: auto; color: var(--text-3); }
.a-projekte { gap: 4px; overflow: hidden; }
.a-projekte .pille { cursor: pointer; border: 1px solid; white-space: nowrap; }
.a-neu { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 22px; background: var(--soll-flaeche); }
.a-hinzu { display: block; border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 8px 10px 8px 50px; text-align: left; width: 100%; }
.a-hinzu:hover { color: var(--text); background: var(--karte-hover); }
.a-abschnitt-hinzu { padding-left: 22px; margin-top: 14px; font-weight: 600; }
.a-treffer { display: grid; grid-template-columns: 18px 1fr auto 90px; gap: 12px; align-items: center; padding: 0 22px; cursor: pointer; }
.a-treffer-ort { justify-self: end; max-width: 220px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 18px; }
.a-treffer-name.erledigt { color: var(--text-3); text-decoration: line-through; }
.a-rueck { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--karte); border: 1px solid var(--linie-2); border-radius: 12px; padding: 10px 14px; box-shadow: var(--schatten); }

/* --- Detail-Panel rechts (Etappe 4) --- */
.a-details { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); box-shadow: var(--schatten); border: 1px solid var(--linie-2); background: var(--karte); color: var(--text-2); border-radius: 6px; font-size: 11.5px; padding: 2px 8px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.a-zeile:hover .a-details, .a-zeile.offen .a-details { opacity: 1; }
.a-details:hover { color: var(--text); border-color: var(--gold); }
.a-zeile.offen { background: var(--soll-flaeche); }
.a-detail { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 62%); z-index: 40; display: flex; flex-direction: column;
  background: var(--karte); border-left: 1px solid var(--linie-2); box-shadow: -12px 0 32px rgba(0,0,0,.12); animation: a-rein .16s ease-out; }
@keyframes a-rein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.a-detail.ziehen { outline: 2px dashed var(--gold); outline-offset: -8px; }
.a-d-leiste { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--linie); container-type: inline-size; }
.a-d-leiste > .knopf { white-space: nowrap; flex: none; }
.a-d-umbruch { display: none; }
/* schmales Detail: oben Erledigt + Symbole (📎 ⋯ ×), darunter Wiedervorlage, Folgen, Für alle – nichts wird abgeschnitten */
@container (max-width: 620px) {
  .a-d-leiste > .a-d-erledigt { order: 0; }
  .a-d-leiste > .luecke { order: 1; }
  .a-d-leiste > .a-d-sym, .a-d-leiste > .a-d-sym-huelle { order: 2; }
  .a-d-leiste > .a-d-umbruch { display: block; order: 3; flex-basis: 100%; height: 0; }
  .a-d-leiste > .a-d-wv, .a-d-leiste > .a-d-folgen, .a-d-leiste > .a-d-privat { order: 4; }
}
.a-d-banner.gold { background: var(--c-gold-bg); color: var(--gold-text); border: 1px solid var(--c-gold-rand); }
.a-d-erledigt { display: inline-flex; align-items: center; gap: 6px; }
.a-d-erledigt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-d-erledigt:hover { border-color: var(--asana-gruen); color: var(--asana-gruen); }
.a-d-erledigt.an { background: var(--asana-gruen-flaeche); border-color: var(--asana-gruen); color: var(--asana-gruen); }
.a-d-sym { border: 0; background: none; color: var(--text-2); cursor: pointer; min-width: 30px; height: 30px; border-radius: 8px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.a-d-sym span { font-size: 12px; font-weight: 600; }
.a-d-sym:hover { background: var(--karte-hover); color: var(--text); }
.a-d-sym.an { color: var(--gold-text); background: var(--soll-flaeche); }
.a-d-sym.klein { min-width: 24px; height: 24px; font-size: 13px; opacity: .7; }
.a-d-sym.klein:hover, .a-d-sym.klein.an { opacity: 1; }
.a-d-inhalt { flex: 1; overflow-y: auto; padding: 14px 24px 24px; }
.a-d-banner { background: var(--asana-gruen-flaeche); color: var(--asana-gruen); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; }
.a-d-eltern { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0; margin-bottom: 4px; }
.a-d-eltern:hover { color: var(--text); text-decoration: underline; }
.a-d-name { font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: normal; font-family: inherit; color: var(--text); margin: 0 0 14px -8px; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; cursor: text; width: calc(100% + 16px); line-height: 1.3; }
h2.a-d-name:hover { border-color: var(--linie-2); }
textarea.a-d-name { background: var(--feld); border-color: var(--gold); resize: none; font-family: inherit; color: var(--text); }
.a-d-name.erledigt { color: var(--text-3); }
.a-d-felder { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.a-d-label { color: var(--text-2); font-size: 13px; align-self: start; padding-top: 6px; line-height: 20px; }
.a-d-wert { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.a-d-wert .a-wahl { flex: 0 1 auto; }
.a-d-klick { cursor: pointer; padding: 4px 6px; border-radius: 6px; margin-left: -6px; }
.a-d-klick:hover { background: var(--karte-hover); }
.a-d-datum .a-feld, .a-d-wert > .a-feld { max-width: 220px; }
.a-d-projekte, .a-d-abh { flex-direction: column; align-items: flex-start; gap: 4px; }
.a-d-projekt, .a-d-abh-zeile { display: flex; align-items: center; gap: 6px; }
.a-d-dazu { color: var(--text-3); font-size: 13px; }
.a-haken.klein { width: 14px; height: 14px; cursor: default; }
.a-haken.klein svg { width: 9px; height: 9px; }
.erledigt.knopf-text, .a-d-unter-name.erledigt { color: var(--text-3); text-decoration: line-through; }
.a-d-suche { min-width: 300px; }
.a-d-suche input { width: 100%; background: var(--feld); border: 1px solid var(--linie-2); border-radius: 6px; padding: 6px 8px; }
.a-d-tags .pille { display: inline-flex; align-items: center; gap: 2px; }
.a-pille-weg { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 0 0 0 2px; }
.a-pille-weg:hover { opacity: 1; }
.a-d-abschnitt { font-weight: 700; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.a-d-beschreibung { width: 100%; background: var(--feld); border: 1px solid var(--linie-2); border-radius: 10px; padding: 10px 12px; font-family: inherit; color: var(--text); resize: vertical; }
.a-d-text { line-height: 1.5; overflow-wrap: anywhere; }
div.a-d-beschreibung { background: none; border-color: transparent; cursor: text; min-height: 48px; }
div.a-d-beschreibung:hover { border-color: var(--linie-2); }
.a-d-unter { border-top: 1px solid var(--linie); }
.a-d-unter-zeile { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-height: 36px; border-bottom: 1px solid var(--linie); }
.a-d-unter-zeile:hover { background: var(--karte-hover); }
.a-d-unter-zeile .a-name { flex: 1; }
.a-d-unter-name { flex: 1; min-width: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); padding: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-d-unter-zust { display: flex; align-items: center; gap: 4px; width: 110px; }
.a-d-unter .a-hinzu { padding-left: 34px; }
.a-d-anhaenge { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.a-d-anhang { display: flex; align-items: center; border: 1px solid var(--linie-2); border-radius: 10px; background: var(--karte-2); min-height: 54px; }
.a-d-anhang:hover { border-color: var(--gold); }
.a-d-anhang-knopf { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 8px 4px 8px 10px; text-align: left; color: var(--text); }
.a-d-anhang-sym { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--soll-flaeche); color: var(--gold-text); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.a-d-anhang-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; font-size: 13px; }
.a-d-anhang-laden { color: inherit; text-decoration: none; }
.a-d-anhang-laden:hover { text-decoration: underline; color: var(--text); }
@media (pointer: coarse) { .a-d-anhang { min-height: 60px; } .a-d-anhang-laden { display: inline-block; padding: 8px 6px; } }
.a-d-anhang-neu { justify-content: center; border-style: dashed; background: none; color: var(--text-3); cursor: pointer; padding: 8px; font-size: 13px; }
.a-d-reiter { margin-top: 26px; border-bottom: 1px solid var(--linie); }
.a-d-aktivitaet { display: grid; gap: 12px; padding-top: 14px; }
.a-d-kommentar { display: flex; gap: 10px; align-items: flex-start; }
.a-d-k-inhalt { flex: 1; min-width: 0; }
.a-d-k-kopf { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.a-d-k-knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.a-d-ereignis { padding-left: 34px; }
.a-d-fuss { border-top: 1px solid var(--linie); background: var(--karte-2); padding: 12px 20px; display: grid; gap: 10px; }
.a-d-schreiben { display: flex; gap: 10px; align-items: flex-start; }
.a-d-k-bearbeiten { width: 100%; margin-bottom: 6px; }
.a-d-schreiben textarea, .a-d-k-bearbeiten textarea { flex: 1; background: var(--feld); border: 1px solid var(--linie-2); border-radius: 10px; padding: 8px 10px; font-family: inherit; color: var(--text); resize: vertical; }
/* @-Erwähnung: Personenliste beim Tippen von „@“, Spiegel legt die Hervorhebung deckungsgleich über das Feld */
.a-erw { position: relative; flex: 1; min-width: 0; display: flex; }
.a-erw > textarea { flex: 1; width: 100%; min-width: 0; }
.a-erw-spiegel { position: absolute; inset: 0; pointer-events: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; border-style: solid; border-color: transparent; }
.a-erwaehnung { background: var(--c-saphir-bg); color: var(--c-saphir-fg); border-radius: 4px; padding: 0 2px; }
.a-erw-spiegel mark.a-erwaehnung { background: rgba(59, 111, 216, .2); color: transparent; padding: 0; border-radius: 3px; }
.a-erw-liste { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 60; min-width: 220px; max-width: 100%; max-height: 260px; overflow-y: auto; background: var(--karte); border: 1px solid var(--linie-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 4px; }
.a-erw-liste button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.a-erw-liste button.an, .a-erw-liste button:hover { background: var(--feld); }
.a-d-schreiben textarea:focus, .a-d-beschreibung:focus { outline: none; border-color: var(--gold); }
.a-d-follower { display: flex; align-items: center; gap: 6px; }
.a-d-follower .a-bubble { cursor: pointer; }
.a-d-follower .a-d-dazu { flex: 0 0 auto; width: 34px; }

/* --- Board, Projekte durchsuchen, neues Projekt (Etappe 5) --- */
.a-ort.gezogen, .a-spalte.gezogen, .a-karte.gezogen { opacity: .4; }
.a-ort.ziel-oben { box-shadow: inset 0 2px 0 var(--gold); }
.a-ort.ziel-unten { box-shadow: inset 0 -2px 0 var(--gold); }
.a-durchsuchen { margin-top: 6px; color: var(--text-3); }
.a-board { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px 18px; overflow: auto; background: var(--karte-2); }
.a-spalte { flex: 0 0 280px; max-height: 100%; display: flex; flex-direction: column; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; position: relative; }
.a-spalte.ziel-links::before, .a-spalte.ziel-rechts::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--gold); }
.a-spalte.ziel-links::before { left: -8px; }
.a-spalte.ziel-rechts::after { right: -8px; }
.a-spalte-kopf { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px 14px; cursor: grab; }
.a-spalte-kopf .a-plus { opacity: .4; }
.a-spalte:hover .a-spalte-kopf .a-plus { opacity: 1; }
.a-spalte-kopf .a-abschnitt-feld { flex: 1; min-width: 0; }
.a-spalte-inhalt { display: flex; flex-direction: column; gap: 8px; padding: 2px 8px 8px; overflow-y: auto; min-height: 40px; }
.a-spalte-inhalt .a-hinzu { padding: 8px 10px; border-radius: 8px; }
.a-karte { background: var(--karte); border: 1px solid var(--linie-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .12s, border-color .12s, opacity .35s; }
.a-karte:hover { border-color: var(--gold); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.a-karte.offen { border-color: var(--gold); background: var(--soll-flaeche); }
.a-karte.fertig { opacity: .45; }
.a-karte-zeile { display: flex; align-items: flex-start; gap: 8px; }
.a-karte-zeile .a-haken { margin-top: 1px; flex: none; }
.a-karte-name { flex: 1; min-width: 0; line-height: 1.35; word-break: break-word; }
.a-karte-pillen { display: flex; flex-wrap: wrap; gap: 4px; }
.a-karte-fuss { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.a-karte-neu textarea { width: 100%; border: 0; background: none; resize: none; font: inherit; color: inherit; outline: none; }
.a-karte-neu { border-color: var(--gold); cursor: text; }
.a-ablage { height: 3px; border-radius: 2px; background: var(--gold); margin: -5px 2px; }
.a-spalte-neu { flex: 0 0 240px; border: 1px dashed var(--linie-2); background: none; color: var(--text-3); padding: 14px; cursor: pointer; text-align: left; }
.a-spalte-neu:hover { color: var(--text); border-color: var(--gold); background: var(--karte); }

.a-p-suche { width: 260px; }
.a-segment { display: inline-flex; border: 1px solid var(--linie-2); border-radius: 8px; overflow: hidden; }
.a-segment button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--text-2); }
.a-segment button + button { border-left: 1px solid var(--linie-2); }
.a-segment button.an { background: var(--soll-flaeche-2); color: var(--text); font-weight: 600; }
.a-p-raster { flex: 1; overflow-y: auto; padding: 16px 22px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-content: start; }
.a-p-raster .leer { grid-column: 1 / -1; }
.a-p-karte { border: 1px solid var(--linie); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: var(--karte); transition: border-color .12s, box-shadow .12s; }
.a-p-karte:hover { border-color: var(--linie-2); box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.a-p-karte.mitglied { box-shadow: inset 3px 0 0 var(--gold); }
.a-p-karte-kopf { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.a-p-name { display: grid; gap: 2px; min-width: 0; }
.a-p-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-p-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.a-p-fuss { display: flex; align-items: center; gap: 8px; }
.a-p-fuss .luecke { flex: 1; }
.a-beigetreten span + span { display: none; }
.a-beigetreten:hover span { display: none; }
.a-beigetreten:hover span + span { display: inline; color: var(--rot); }
.a-farben-wahl { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.a-sicht { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--linie-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; margin-top: 6px; }
.a-sicht.an { border-color: var(--gold); background: var(--soll-flaeche); }
.a-sicht > span { display: grid; gap: 2px; }

/* Meine Aufgaben – Übersicht (wie Asana-Home), Zurückstellen (Etappe 5b) */
.a-zahl-gold { background: var(--c-gold-bg); color: var(--c-gold-fg); margin-left: 6px; }
.a-zurueckstellen { right: 76px; }
.a-uebersicht { padding: 16px 22px 30px; overflow: auto; }
.a-ue-zahlen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.a-ue-zahl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text-2); cursor: pointer; text-align: left; }
.a-ue-zahl b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.a-ue-zahl.rot b { color: var(--asana-rot); }
.a-ue-zahl.gold { background: var(--c-gold-bg); border-color: var(--c-gold-rand); }
.a-ue-zahl.gold b { color: var(--c-gold-fg); }
.a-ue-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.a-ue-karte { border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); padding: 14px 16px; }
.a-ue-karte h2 { font-size: 15px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.a-ue-karte > p { margin: 0 0 10px; }
.a-ue-zeile { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-top: 1px solid var(--linie); background: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.a-ue-zeile:hover, .a-ue-zeile.offen { background: var(--c-grau-bg); }
.a-ue-zeile.rueckfrage { box-shadow: inset 3px 0 0 var(--c-gold-rand); }
.a-ue-zeile.rueckfrage .a-ue-name { font-weight: 600; }
.a-ue-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Aufgaben: Export/Import/Drucken (Projekt-Pfeil) */
.a-menue-trenner { height: 1px; background: var(--linie-2); margin: 4px 2px; }
.dialog.a-import { width: min(980px, 96vw); max-height: 90vh; display: flex; flex-direction: column; }
.a-import .dialog-inhalt { overflow-y: auto; display: grid; gap: 10px; }
.a-import h3 { margin: 6px 0 0; font-size: 14px; }
.a-import-datei { display: grid; gap: 4px; }
.a-import-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-import-tab th, .a-import-tab td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--linie-2); vertical-align: top; }
.a-import-tab td .feld { width: 100%; }
.a-import-warnung { color: var(--gold-hell); font-size: 13px; }
.a-menue.a-menue-rechts { left: auto; right: 0; max-height: 360px; overflow-y: auto; }
.a-p-karte.gesperrt { opacity: .7; }
.a-p-karte.gesperrt .a-p-karte-kopf { cursor: default; }
.a-import-ok { color: var(--gruen, #2e7d32); font-weight: 600; }
.a-druck { display: none; }
@media print {
  body.a-drucken * { visibility: hidden !important; }
  body.a-drucken .a-druck, body.a-drucken .a-druck * { visibility: visible !important; }
  body.a-drucken .a-druck { display: block; position: absolute; left: 0; top: 0; width: 100%; color: #000; background: #fff; font-size: 11pt; }
  .a-druck h1 { font-size: 16pt; margin: 0 0 4pt; }
  .a-druck table { width: 100%; border-collapse: collapse; }
  .a-druck th, .a-druck td { border-bottom: 1px solid #bbb; padding: 3pt 5pt; text-align: left; vertical-align: top; }
  .a-druck .a-druck-abschnitt { background: #eee; font-weight: 700; }
  .a-druck tr { break-inside: avoid; }
}

/* ================================================================== Handy: Aufgaben (handy.js) */
.h-segment { display: flex; gap: 4px; padding: 4px; margin: 4px 0 6px; border-radius: 12px; background: var(--karte-2); border: 1px solid var(--linie); }
.h-segment button { flex: 1; height: 40px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.h-segment button.an { background: var(--karte); color: var(--gold-text); box-shadow: var(--schatten); }
.h-au-zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.h-au-zahlen .kachel { text-align: left; cursor: pointer; padding: 12px; }
.h-au-zahlen .kachel .wert { font-size: 26px; }
.h-au-zahlen .kachel.rot .wert { color: var(--asana-rot); }
.h-au-zahlen .kachel.gold .wert { color: var(--gold-text); }
.h-au-chips { padding: 6px 0 2px; }
.h-au-filter { padding-top: 2px; }
.h-au-filter .h-chip.ueber.an { border-color: #d9574f; background: rgba(217, 87, 79, .12); color: #d9574f; }
.h-au-tipp { margin: 4px 2px 8px; }
.h-au-leer { color: var(--text-3); font-size: 14px; padding: 10px 4px; }
.h-au-wisch { position: relative; margin-bottom: 8px; border-radius: 12px; overflow: hidden; }
.h-au-hinter { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; color: #fff; }
.h-au-wisch.rechts .h-au-hinter { display: flex; background: var(--an-gruen); }
.h-au-wisch.links .h-au-hinter { display: flex; background: var(--gold); color: #1a1508; }
.h-au-wisch.rechts .h-au-hinter span:last-child, .h-au-wisch.links .h-au-hinter span:first-child { visibility: hidden; }
.h-au-wisch .h-au-zeile { margin: 0; position: relative; }
.h-au-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--linie);
  border-radius: 12px; background: var(--karte); box-shadow: var(--schatten); color: var(--text); text-align: left; touch-action: pan-y; }
button.h-au-zeile { cursor: pointer; }
.h-au-zeile.rueckfrage { border-color: var(--gold); }
.h-au-haken { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 2px solid var(--linie-2); background: none; color: var(--text-3); cursor: pointer; display: inline-flex; }
.h-au-haken svg, .h-au-zurueck svg, .h-au-pfeil svg, .h-au-plus svg, .h-au-foto svg, .h-au-fertig svg, .h-au-anhang svg { width: 100%; height: 100%; }
.h-au-haken:active, .h-au-haken.an { background: var(--an-gruen); border-color: var(--an-gruen); color: #fff; }
.h-au-text { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.h-au-zeile > .h-au-text, .h-au-text > b, .h-au-mitte { display: block; }
.h-au-mitte { flex: 1; min-width: 0; }
.h-au-text b { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.h-au-text small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.h-au-text small .pille { margin-left: 6px; }
.h-au-text.fertig b { text-decoration: line-through; color: var(--text-3); }
.h-au-text .a-rot, .h-au-felder .a-rot { color: var(--asana-rot); }
.h-au-text .a-gruen, .h-au-felder .a-gruen { color: var(--asana-gruen); }
.h-au-zurueck { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; border: 1px solid var(--linie-2); background: var(--karte-2); color: var(--text-2); cursor: pointer; display: inline-flex; }
.h-au-farbe { flex: none; width: 14px; height: 14px; border-radius: 4px; background: currentColor; border: 1px solid; }
.h-au-pfeil { flex: none; width: 20px; height: 20px; color: var(--text-3); display: inline-flex; }
.h-au-plus { position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; padding: 16px; border: 0; border-radius: 50%;
  background: var(--gold-verlauf); color: #1a1508; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); cursor: pointer; display: inline-flex; }
.h-blatt .h-au-plus { bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 96; }
.h-au-rueck { position: fixed; left: 14px; right: 88px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 97; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: var(--rahmen-2); color: #f2ede2; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 14px; }
.h-au-rueck span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-au-rueck button { border: 0; background: none; color: var(--gold-hell); font-weight: 700; font-size: 14px; cursor: pointer; }
.h-au-neu { display: flex; flex-direction: column; gap: 10px; max-height: 88vh; overflow-y: auto; }
.h-au-neu .f, .h-au-felder .f { margin: 0; }
.h-au-name { font-size: 18px; height: 50px; }
.h-au-detail .h-blatt-inhalt { padding-bottom: 20px; }
.h-au-eltern { border: 0; background: none; color: var(--gold-text); padding: 0 0 6px; font-size: 14px; cursor: pointer; text-align: left; }
.h-au-titel { margin: 0 0 12px; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.h-au-fertig { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.h-au-fertig span { width: 22px; height: 22px; display: inline-flex; }
.h-au-fertig.an { background: var(--an-gruen); border-color: var(--an-gruen); color: #fff; }
.h-au-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.h-au-projekte { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.h-au-beschreibung { padding: 10px 12px; border-radius: 10px; background: var(--karte-2); border: 1px solid var(--linie); cursor: text; }
.h-au-anhaenge { display: flex; flex-direction: column; gap: 8px; }
.h-au-anhang { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.h-au-anhang span { flex: none; width: 22px; height: 22px; display: inline-flex; color: var(--text-3); }
.h-au-anhang-weg { margin-left: auto; flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--text-3); font-size: 18px; cursor: pointer; }
.h-au-foto { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; cursor: pointer; }
.h-au-foto span { width: 24px; height: 24px; display: inline-flex; }
.h-au-kommentar { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.h-au-kommentar > div { flex: 1; min-width: 0; }
.h-au-kommentar .wiki-text { font-size: 15px; overflow-wrap: anywhere; }
.h-au-k-kopf { margin-bottom: 2px; }
.h-au-schreiben { align-items: flex-end; }
.h-au-schreiben textarea { flex: 1; min-height: 48px; max-height: 40vh; resize: none; font-size: 16px; }
.h-au-knopf b { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; display: block; }
.h-au-knopf small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.h-au-knopf small .pille { margin-left: 6px; }
.h-au-knopf .a-rot { color: var(--asana-rot); }
.h-au-knopf .a-gruen { color: var(--asana-gruen); }
.h-aufgaben { padding-bottom: 80px; }

/* ---- Aufgaben: Rückmeldungen Test-Instanz (29.10.2026) ---- */
.a-leiste-platz { position: relative; min-height: 0; display: flex; }
.a-leiste-platz > .a-leiste { flex: 1; min-width: 0; position: relative; }
.a-leiste-knopf { align-self: flex-end; border: 0; background: none; color: var(--text-3, var(--text-2)); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 6px; margin: -4px 0 4px; }
.a-leiste-knopf:hover { background: var(--feld); color: var(--text); }
.aufgaben.a-leiste-zu { grid-template-columns: 48px minmax(0, 1fr); }
/* Zugeklappt: nur Symbole. Alles behält seinen Platz (visibility statt display), damit beim Ausfahren nichts springt
   und die Leiste dann genau wie die normale aussieht (gleiche Breite, gleicher Rand, kein Schatten). */
.aufgaben.a-leiste-zu .a-leiste { position: absolute; top: 0; bottom: 0; left: 0; width: 48px; z-index: 45; overflow: hidden; transition: width .14s ease; }
.aufgaben.a-leiste-zu .a-leiste:not(:hover) > :not(.a-leiste-knopf):not(.a-ort),
.aufgaben.a-leiste-zu .a-leiste:not(:hover) .a-ort > :not(.a-ort-sym):not(.a-punkt) { visibility: hidden; }
.aufgaben.a-leiste-zu .a-leiste:not(:hover) .a-ort { background: none; }
.aufgaben.a-leiste-zu .a-leiste:not(:hover) .a-ort.aktiv .a-ort-sym, .aufgaben.a-leiste-zu .a-leiste:not(:hover) .a-ort.aktiv .a-punkt { box-shadow: 0 0 0 2px var(--karte-2), 0 0 0 3.5px var(--gold); }
.aufgaben.a-leiste-zu .a-leiste:hover { width: 236px; overflow-y: auto; }
.a-f-suche { position: relative; display: inline-flex; align-items: center; }
.a-f-suche .feld { width: 220px; padding: 4px 26px 4px 10px; font-size: 13px; }
.a-f-suche .a-plus { position: absolute; right: 2px; }
.a-zeile input, .a-zeile select { cursor: auto; }
.a-zeile-knoepfe { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; align-items: center; }
.a-zeile-knoepfe .a-details { position: static; transform: none; }
.a-zeile:hover .a-zeile-knoepfe .a-details, .a-zeile.offen .a-zeile-knoepfe .a-details { opacity: 1; }
.a-zeile-knoepfe .a-menue-huelle { position: relative; }
/* offenes Menü über den folgenden Zeilen (transform der Knopfleiste bildet sonst eine eigene Ebene darunter) */
.a-zeile-knoepfe:has(.a-menue), .a-zelle:has(.a-menue) { z-index: 60; }
.a-g-sort { width: auto; min-width: 24px; padding: 0 4px; font-size: 14px; }
.a-g-sort small { font-size: 11.5px; }
.a-gruppe-kopf .a-g-sort.an { opacity: 1; color: var(--gold-hell); }
.a-d-beschreibung-editor .wiki-editor .editierbar { min-height: 180px; max-height: none; }
.a-mehr { color: var(--gold); }
.a-spalte-inhalt > .a-karte { flex: none; }
.a-karte-pillen .pille { max-width: none; white-space: normal; }
.pille.a-feldpille { font-weight: 600; letter-spacing: .03em; cursor: copy; box-shadow: inset 0 0 0 1px currentColor; }  /* Textfeld „als Pille“ (EVB) */
.a-d-wv { margin-right: 6px; white-space: nowrap; }
.a-d-wv.an { border-color: var(--gold); color: var(--gold); }
.a-d-folgen { margin-right: 6px; white-space: nowrap; }
.a-d-folgen.an { border-color: var(--gold); color: var(--gold); }
.a-d-privat { margin-right: 6px; white-space: nowrap; }
.a-d-privat.an { border-color: var(--gold); color: var(--gold); }
.a-ue-reiter { margin: 0 0 6px; }
/* Handy: Aufgaben – Suche, Wiedervorlage-Knopf, Feld-Knöpfe, Beschreibung (29.10.2026) */
.h-au-suche { padding: 0 2px 10px; }
.h-au-suche .feld { width: 100%; }
.h-au-wv-knopf { flex: none; border: 1px solid var(--linie-2); background: var(--karte); color: var(--text-2); border-radius: 999px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.h-au-wv { margin-top: 8px; }
.h-au-wv.an { border-color: var(--gold); color: var(--gold); }
.h-au-feldknoepfe { display: grid; gap: 10px; margin: 12px 0; }
.h-au-feld-name { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.h-au-feld-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h-au-opt { border: 1px solid transparent; padding: 6px 11px; font-size: 13px; opacity: 1; cursor: pointer; }
.h-au-opt.an { border-color: transparent; font-weight: 600; box-shadow: 0 0 0 2px var(--karte), 0 0 0 3px var(--gold); }
.h-au-beschr-feld { width: 100%; min-height: 110px; }
.h-au-beschr-neu { width: 100%; text-align: left; border: 1px dashed var(--linie-2); border-radius: 10px; background: none; padding: 10px 12px; }
/* Board: beim Ziehen öffnet sich an der Ablagestelle eine kleine Lücke, die anderen Karten rücken weich zur Seite */
.a-spalte-inhalt > .a-ablage.a-luecke { height: 22px; margin: 0; flex: none; border-radius: 10px; background: var(--soll-flaeche);
  border: 2px dashed var(--gold); animation: a-luecke-auf .14s ease-out; }
@keyframes a-luecke-auf { from { height: 0; opacity: 0; } }  /* bis zur Höhe der gezogenen Karte (Stil am Element) */
.a-karte.gezogen { opacity: .35; transform: scale(.98); }
.a-board.zieht .a-karte:not(.gezogen) { transition: transform .14s ease, box-shadow .12s, border-color .12s; }
/* Kleiner Monatskalender am Fälligkeitsdatum (PC) */
.a-kal { position: fixed; z-index: 200; width: 252px; background: var(--karte); border: 1px solid var(--linie-2); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 10px; cursor: default; }
.a-kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; }
.a-kal-kopf button { border: 0; background: none; font-size: 18px; line-height: 1; padding: 2px 8px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.a-kal-kopf button:hover { background: var(--feld); color: var(--text); }
.a-kal-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.a-kal-wt { font-size: 11px; color: var(--text-2); text-align: center; padding: 2px 0 4px; }
.a-kal-tag { border: 0; background: none; height: 30px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.a-kal-tag:hover { background: var(--feld); }
.a-kal-tag.we { color: var(--text-2); }
.a-kal-tag.fremd { opacity: .38; }
.a-kal-tag.heute { box-shadow: inset 0 0 0 1px var(--gold); font-weight: 600; }
.a-kal-tag.an { background: var(--gold); color: #fff; font-weight: 600; }
.a-kal-fuss { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--linie); }
.a-kal-fuss button { border: 0; background: var(--feld); border-radius: 6px; padding: 3px 7px; font-size: 11.5px; cursor: pointer; color: var(--text); }
.a-kal-fuss button.gefahr { background: none; color: var(--rot, #c0392b); }
.a-kal-huelle { display: inline-flex; position: relative; }
/* Handy: Datumsfeld als Knopf, Kalender mittig mit großen Tagen */
.h-datum { display: block; width: 100%; text-align: left; cursor: pointer; }
.h-datum.leer { color: var(--text-2); }
.h-datum-schleier { z-index: 210; align-items: center; justify-content: center; padding: 16px; }
.h-datum-schleier .a-kal { position: static; width: min(340px, 100%); padding: 14px; }
.h-datum-schleier .a-kal-kopf { font-size: 16px; }
.h-datum-schleier .a-kal-kopf button { font-size: 26px; padding: 4px 14px; }
.h-datum-schleier .a-kal-wt { font-size: 12.5px; }
.h-datum-schleier .a-kal-tag { height: 42px; font-size: 15px; }
.h-datum-schleier .a-kal-fuss button { padding: 8px 9px; font-size: 13px; }
.a-reaktionen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.a-reaktion { border: 1px solid var(--linie-2); background: var(--feld); color: var(--text-2); border-radius: 12px; height: 24px; min-width: 30px; padding: 0 7px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.a-reaktion span { font-size: 12px; font-weight: 600; }
.a-reaktion:hover { background: var(--karte-hover); color: var(--text); }
.a-reaktion.leer { background: none; border-color: transparent; opacity: .7; }
.a-reaktion.leer:hover { opacity: 1; }
.a-reaktion.an { border-color: var(--gold); background: var(--soll-flaeche); color: var(--gold-text); opacity: 1; }
.a-treffer-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 22px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.a-treffer-person:hover { background: var(--karte-hover); }
.a-person-gruppe { padding: 14px 22px 6px; font-weight: 600; font-size: 13.5px; }
.h-au-opt:not(.an) { background: none !important; color: var(--text-2) !important; border: 1px solid var(--linie-2); font-weight: 400; }
.h-au-feld .feld { width: 100%; }
.h-au-neu-beschr { width: 100%; margin-top: 8px; }
.h-au-folgen { margin-top: 8px; }
.h-au-folgen.an { border-color: var(--gold); color: var(--gold); }
.h-au-folgen-text { margin: 4px 2px 0; }
.aufgaben.a-leiste-zu .a-leiste:not(:hover) .a-ort.aktiv { box-shadow: none; }

/* ---- Aufgaben, Fehlerrunde 2: Priorität, ungelesen, Spalten anpassen, eigene Schlagworte ---- */
.a-prio { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 6px; font-size: 11px; font-weight: 800; border: 1px solid; }
.a-prio::before { content: "P"; font-weight: 700; opacity: .75; }
.a-prio.p1 { background: var(--c-koralle-bg); color: var(--c-koralle-fg); border-color: var(--c-koralle-rand); }
.a-prio.p2 { background: var(--c-apricot-bg); color: var(--c-apricot-fg); border-color: var(--c-apricot-rand); }
.a-prio.p3 { background: var(--c-himmel-bg); color: var(--c-himmel-fg); border-color: var(--c-himmel-rand); }
select.a-prio-wahl.a-prio { height: auto; padding: 2px 6px; font-size: 12px; }
select.a-prio-wahl.a-prio::before { content: none; }
.a-d-prio { display: flex; gap: 6px; flex-wrap: wrap; }
.a-prio-knopf { border: 1px solid var(--linie-2); background: var(--karte); border-radius: 8px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.a-prio-knopf:hover { border-color: var(--gold); }
.a-prio-knopf.an.p1 { background: var(--c-koralle-bg); color: var(--c-koralle-fg); border-color: currentColor; font-weight: 700; }
.a-prio-knopf.an.p2 { background: var(--c-apricot-bg); color: var(--c-apricot-fg); border-color: currentColor; font-weight: 700; }
.a-prio-knopf.an.p3 { background: var(--c-himmel-bg); color: var(--c-himmel-fg); border-color: currentColor; font-weight: 700; }
.a-ungelesen { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2f7ae5; box-shadow: 0 0 0 2px var(--karte); }
.a-ungelesen-zahl { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; background: #2f7ae5; color: #fff; }
.a-neu-hinweis { margin-left: 6px; }
.a-spalten > span.a-menue-huelle { overflow: visible; }
.a-sp-titel { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.a-sp-titel:hover { color: var(--text); }
.a-sp-pfeil { opacity: 0; font-size: 10px; }
.a-sp-kopf:hover .a-sp-pfeil { opacity: .7; }
.a-sp-kopf .a-feld { width: 100%; padding: 2px 6px; font-size: 12px; }
.a-spalten > span.a-sp-plus { padding: 4px 6px; display: flex; align-items: center; justify-content: center; }
.a-menue-wahl:disabled { opacity: .4; cursor: default; }
.a-menue-neu { padding: 4px 4px 2px; border-top: 1px solid var(--linie); margin-top: 4px; }
.a-menue-neu .a-feld { width: 100%; }
/* Filter › Schlagworte: Untermenü links neben dem Filtermenü */
.a-filter-sw { margin-top: 6px; }
.a-filter-pfeil { color: var(--text-3); }
.a-menue.a-filter-sw-menue { top: 0; left: auto; right: calc(100% + 4px); max-height: 320px; overflow-y: auto; }
.a-schlagworte { cursor: pointer; display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 22px; }
.a-d-zurueck { margin-left: auto; font-weight: 500; }
.a-karte-zeile .a-prio, .a-karte-zeile .a-ungelesen { margin-top: 2px; }
.h-au-text .a-prio, .h-au-mitte .a-prio { vertical-align: 1px; margin-right: 4px; }
.h-au-punkt { display: inline-block; vertical-align: 2px; margin-right: 6px; }
.h-au-prio .a-prio-knopf { padding: 6px 14px; }

.a-sp-zeile { display: flex; align-items: center; gap: 4px; min-width: 0; cursor: grab; border-radius: 4px; }
.a-sp-zeile.ziel-links { box-shadow: inset 3px 0 0 var(--gold); }
.a-sp-sort { flex: none; border: 0; background: none; padding: 0 3px; font-size: 12px; color: var(--text-3); cursor: pointer; opacity: .55; border-radius: 4px; }
.a-sp-sort:hover, .a-sp-sort.an { opacity: 1; color: var(--gold-text); }
/* Spaltenbreite ziehen (Griff am rechten Rand des Kopfs), weitergegebene Aufgabe 15 s grau, ganzer Name beim Überfahren */
.a-sp-griff { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
.a-sp-griff:hover, .a-breite-zieh .a-sp-griff:hover { background: linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat; }
body.a-breite-zieh, body.a-breite-zieh * { cursor: col-resize !important; user-select: none; }
.a-zeile.weg { opacity: .45; background: var(--c-grau-bg); filter: grayscale(1); transition: opacity .3s; }
.a-tipp { position: fixed; z-index: 60; max-width: 500px; padding: 6px 10px; border-radius: 6px; background: var(--karte); color: var(--text);
  border: 1px solid var(--linie); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); font-size: 13px; white-space: normal; pointer-events: none; }
.a-ue-spalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Schlagworte: ein Menü zum Anhaken, Anlegen, Umbenennen, Farbe wechseln, Löschen */
.a-sw-menue { min-width: 300px; cursor: default; }
.a-sw-zeile { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; }
.a-sw-zeile:hover { background: var(--karte-hover); }
.a-sw-zeile .a-feld { flex: 1; min-width: 0; }
.a-sw-zeile .a-sw-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; margin-right: auto; }
.a-sw-zeile .a-plus { opacity: 0; }
.a-sw-zeile:hover .a-plus, .a-sw-zeile .a-plus:focus { opacity: 1; }
.a-sw-zeile .a-punkt { flex: none; width: 14px; height: 14px; border-radius: 50%; cursor: pointer; border: 0; padding: 0; }
.a-d-wert .a-schlagworte, .a-feld-zelle > .a-schlagworte { overflow: visible; }
.a-feld-zelle > .a-schlagworte { align-self: stretch; flex: 1; flex-wrap: nowrap; }
.a-sw-knopf { gap: 6px; }
.a-feld-zelle > .a-schlagworte > .pille { flex: none; }
.a-sw-mehr { font-weight: 600; }
.a-sw-palette { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 6px 32px; }
.a-sw-palette .a-punkt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; }
.a-sw-palette .a-punkt:hover, .a-sw-palette .a-punkt.an { border-color: var(--text); }
/* Felder anpassen (Projektfelder wie Asana „Customize“) */
.a-felder-dialog { width: min(760px, 96vw); }
.a-felder-dialog .dialog-inhalt { display: grid; gap: 8px; max-height: 70vh; overflow: auto; }
.a-felder-knopf { margin-left: auto; }
.a-fd-feld { border: 1px solid var(--linie-2); border-radius: 10px; padding: 6px 8px; background: var(--karte); }
.a-fd-feld.offen { border-color: var(--gold); }
.a-fd-feld.ziel:hover { box-shadow: inset 0 2px 0 var(--gold); }
.a-fd-zeile, .a-fd-option, .a-fd-neu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a-fd-griff { cursor: grab; color: var(--text-2); padding: 0 2px; user-select: none; }
.a-fd-name { flex: 1 1 180px; min-width: 120px; }
.a-fd-typ { font-size: 11px; }
.a-fd-schalter { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.a-fd-optionen { display: grid; gap: 6px; padding: 8px 0 4px 22px; }
.a-fd-option.aus .pille { opacity: .45; text-decoration: line-through; }
.a-fd-oname { flex: 0 1 200px; min-width: 100px; }
.a-fd-punkt { width: 20px; height: 20px; min-width: 20px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.a-fd-punkt.an, .a-fd-punkt:hover { border-color: var(--text); }
.a-fd-palette { display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; padding: 8px; }
.a-fd-schnell { width: 100%; margin-top: 4px; }
.a-fd-neu { padding-top: 6px; }
.h-au-opt-neu { border-style: dashed !important; }
/* „… hinzufügen“ im Detail-Panel: gleiche Farbe und Höhe wie das Label davor */
.a-d-hinzu { border: 0; background: none; color: var(--teal-text); font: inherit; font-size: 13px; line-height: 20px; padding: 6px 0; margin: 0; cursor: pointer; text-align: left; white-space: nowrap; }
.a-d-hinzu:hover { text-decoration: underline; text-decoration-color: var(--gold); }
select.a-d-hinzu { appearance: none; -webkit-appearance: none; padding-right: 4px; }
select.a-d-hinzu option { color: var(--text); }
.h-au-sw-neu { margin: 6px 0 4px; }
.h-au-sw-neu .feld { width: 100%; }

/* ============================================================ AUSSCHREIBUNG (ausschreibung.js) */
.ausschreibung { max-width: 1120px; }
.ausschreibung h2 { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 19px; font-weight: 400; margin: 0; letter-spacing: .01em; }
.aus-abschnitt { margin-bottom: 26px; }
.aus-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.aus-summe { font-size: 14px; font-weight: 600; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.aus-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 14px; }
.aus-kachel { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); transition: border-color .15s, background .15s; }
.aus-kachel:hover { border-color: var(--gold-linie); background: var(--karte-hover); }
.aus-kachel.statisch, .aus-kachel.statisch:hover { cursor: default; border-color: var(--linie); background: var(--karte); }
.aus-kachel-text { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.aus-kachel-punkte { font-size: 12px; color: var(--text-3); }
.aus-kachel-stand { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.aus-kachel-stand b { font-size: 26px; font-weight: 300; color: var(--gold-text); font-variant-numeric: tabular-nums; margin-right: 2px; }
.aus-kachel-klick { font-size: 12px; color: var(--teal-text); }
.aus-kachel-knoepfe { display: flex; gap: 6px; margin-top: 6px; }
.aus-kachel-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.aus-kachel-form .aus-breit { flex: 1 1 260px; }
.aus-produkte { flex: 1 1 100%; display: grid; gap: 8px; }
.aus-produkt-gruppe { display: grid; gap: 4px; }
.aus-oben { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 16px; }
.aus-oben .hinweis { margin: 0; }
.aus-stufen { display: grid; grid-template-columns: repeat(4, minmax(118px, auto)); gap: 8px; }
.aus-stufen > .knopf { grid-column: 1 / -1; justify-self: end; }
.aus-stufe { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.aus-stufe b { font-size: 12.5px; color: var(--text); }
.aus-stufe.an { background: var(--soll-flaeche); border-color: var(--gold-linie); }
.aus-stufe .feld { width: 100%; text-align: right; }
.aus-stufe label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.aus-stufe label .feld { width: 58px; }
@media (max-width: 860px) { .aus-oben { grid-template-columns: minmax(0, 1fr); } .aus-stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aus-maske h2 { margin-bottom: 14px; }
.aus-eingabe { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.aus-fest { display: flex; flex-direction: column; gap: 4px; min-width: 210px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.aus-fest b { font-size: 14px; font-weight: 600; color: var(--text); padding: 6px 12px; border: 1px dashed var(--linie-2); border-radius: 8px; font-variant-numeric: tabular-nums; }
.aus-bewertung { flex: 0 1 240px; }
.aus-ergebnisse { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.aus-ergebnis { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 10px; background: var(--kosten-flaeche); border: 1px solid var(--linie); font-size: 12px; color: var(--text-2); }
.aus-ergebnis b { font-size: 24px; font-weight: 300; color: var(--text); font-variant-numeric: tabular-nums; }
.aus-ergebnis.gold { background: var(--soll-flaeche); border-color: var(--gold-linie); }
.aus-ergebnis.gold b { color: var(--gold-text); }
.aus-ergebnis.teal { background: var(--ist-flaeche); }
.aus-ergebnis.teal b { color: var(--teal-text); }
.aus-maske p { margin: 10px 0 0; }
.aus-liste { display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.aus-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--linie); }
.aus-zeile-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.aus-zeile.gueltig { background: var(--mark-gruen); border-color: rgba(70, 175, 120, .55); }
.aus-zeile.ungueltig { background: var(--rot-flaeche); border-color: var(--rot-linie); }
.aus-ma { margin-bottom: 14px; }
.aus-ma-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.aus-ma-raster { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.aus-stand { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.aus-ma-raster { grid-template-areas: "stand zahlen" "geprueft zahlen"; row-gap: 12px; }
.aus-ma-raster > .aus-stand:not(.aus-geprueft) { grid-area: stand; }
.aus-geprueft { grid-area: geprueft; }
.aus-ma-zahlen { grid-area: zahlen; }
.aus-stand p, .aus-vorschlag { grid-column: 1 / -1; margin: 0; }
.aus-vorschlag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.aus-ma-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; }
.aus-ma-zahlen div { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-3); }
.aus-ma-zahlen b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.aus-gruppe { margin-top: 14px; display: grid; gap: 4px; }
.aus-gruppe-kopf { font-weight: 600; font-size: 13px; }
.aus-mark { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--linie-2); background: var(--karte-2); color: var(--text-3); cursor: pointer; font-size: 13px; line-height: 1; }
.aus-mark.gruen:hover, .aus-mark.gruen.an { color: #fff; background: #2f9e6b; border-color: #2f9e6b; }
.aus-mark.rot:hover, .aus-mark.rot.an { color: #fff; background: #c9544b; border-color: #c9544b; }
@media (max-width: 860px) { .aus-ma-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stand" "geprueft" "zahlen"; } }

/* ------------------------------------------------------------ Aufgaben: eigenständige Seite (ohne Seitenmenü), Anmeldung
   mit Zahlencode, Freigabe-Dialog und PIN in „Mein Bereich“ */
.app.allein { grid-template-columns: minmax(0, 1fr); }
.app.allein > .kopf, .app.allein > .inhalt { grid-column: 1; }
.kopf .seitenname { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-glanz); }
.kopf .seitenname img { width: 28px; height: 28px; border-radius: 7px; }
.anmeldung img.symbol { width: 72px; border-radius: 16px; }
.anmeldung .mitte { text-align: center; }
.anmeldung .zahl-gross { justify-self: center; font-family: Consolas, "Cascadia Mono", monospace; font-size: 64px; font-weight: 300;
  letter-spacing: .12em; padding-left: .12em; color: var(--gold-glanz); line-height: 1.1; }
.allein-menue { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); }
.allein-menue .menue { position: absolute; top: calc(56px + env(safe-area-inset-top)); right: 12px; }
.dialog.freigabe { max-width: 420px; text-align: center; }
.dialog.freigabe .dialog-inhalt { display: grid; gap: 14px; }
.freigabe-zahlen { display: flex; justify-content: center; gap: 14px; }
.freigabe-zahlen .knopf { width: 84px; height: 68px; font-size: 28px; font-weight: 300; border-radius: 14px; }
.freigabe-warnung { color: var(--gold-glanz); font-size: 13px; margin: 0; }
.freigabe-nein { justify-self: center; color: #d9574f; border-color: rgba(217, 87, 79, .45); }
.aufgaben-pin { margin-bottom: 14px; }
.aufgaben-pin .ap-kopf { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.aufgaben-pin .ap-form { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 10px 14px; margin-top: 12px; align-items: end; }
.aufgaben-pin .ap-form .fehlermeldung, .aufgaben-pin .ap-knoepfe { grid-column: 1 / -1; }
.aufgaben-pin .ap-knoepfe { display: flex; gap: 10px; }
.aufgaben-sperre { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.aufgaben-sperre .knopf { margin-left: auto; }
@media (max-width: 760px) {
  .aufgaben-pin .ap-kopf { flex-direction: column; align-items: stretch; }
  .aufgaben-pin .ap-form { grid-template-columns: minmax(0, 1fr); }
  .freigabe-zahlen .knopf { width: 76px; height: 64px; }
}