/* Firmenwerk Grundlayout. Farben, Schriften und Rundungen kommen ausschließlich aus dem Design (design.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 16px/1.55 var(--schrift); min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.sym { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Rahmen ---------- */
.rahmen { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; border-bottom: 1px solid var(--linie); }
.kopf .marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.kopf .marke img { height: 46px; width: auto; display: block; }
.kopf .marke b { font-weight: 800; font-size: 24px; letter-spacing: -1px; }
.kopf .mitte { font-size: 13px; color: var(--leise); display: flex; align-items: center; gap: 9px; }
.kopf .mitte i { width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); display: inline-block; }
.kopf .rechts { display: flex; align-items: center; gap: 10px; }
.kopf .wer { font-size: 13px; font-weight: 600; }
.haupt { padding: 30px 0 64px; }
.fuss { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 40px; font-size: 12px; color: var(--leise); border-top: 1px solid var(--linie); }

/* ---------- Bausteine ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-klein); font-size: 14px; font-weight: 600; text-decoration: none; }
.knopf:hover { border-color: var(--leise); }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.knopf.ruhig { background: transparent; border-color: transparent; color: var(--leise); }
.knopf.ruhig:hover { color: var(--tinte); }
.knopf:disabled { opacity: .55; cursor: not-allowed; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linie);
  background: var(--erhoeht); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.avatare { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.etikett { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: var(--erhoeht); color: var(--tinte); }
.oberzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; letter-spacing: 1.6px; font-weight: 600;
  text-transform: uppercase; color: var(--leise); margin-bottom: 16px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .3px; }
.leise { color: var(--leise); }
.leer { color: var(--leise); font-size: 14px; padding: 22px 0; }
.meldung { padding: 12px 16px; border-radius: var(--rund-klein); background: var(--erhoeht); border: 1px solid var(--linie); font-size: 14px; margin: 0 0 18px; }
.meldung.fehler { border-color: var(--fehler); color: var(--fehler); }

/* Bereichsfarben (Projekte, Abteilungen) */
.farbe-1 { --b: var(--farbe-1); --bh: var(--farbe-1-hauch); } .farbe-2 { --b: var(--farbe-2); --bh: var(--farbe-2-hauch); }
.farbe-3 { --b: var(--farbe-3); --bh: var(--farbe-3-hauch); } .farbe-4 { --b: var(--farbe-4); --bh: var(--farbe-4-hauch); }
.farbe-5 { --b: var(--farbe-5); --bh: var(--farbe-5-hauch); } .farbe-6 { --b: var(--farbe-6); --bh: var(--farbe-6-hauch); }
.farbe-0 { --b: var(--tinte); --bh: var(--erhoeht); }
.etikett.bereich { background: var(--bh); color: var(--b); }
.punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--b, var(--akzent)); display: inline-block; flex-shrink: 0; }

/* ---------- Anmeldung ---------- */
.anmeldung { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 7vw, 110px); align-items: center; padding: 48px 0 64px; min-height: calc(100vh - 89px); }
.geschichte { position: relative; min-height: 560px; border-radius: 28px; background: var(--firma); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--linie); }
.geschichte::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 65% 20%, color-mix(in srgb, var(--akzent) 14%, transparent), transparent 60%); }
.geschichte .zeichen { position: absolute; top: 40px; right: 40px; width: min(52%, 280px); opacity: .95; }
.geschichte h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -2.4px; font-weight: 600; }
.geschichte p { color: var(--firma-leise); margin-top: 16px; max-width: 360px; font-size: 15px; }
.formular { display: grid; gap: 20px; max-width: 420px; width: 100%; }
.formular h2 { font-size: 34px; letter-spacing: -1.2px; font-weight: 600; }
.feld { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.feld input, .feld textarea, .feld select { font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
  border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche); }
.feld input:focus, .feld textarea:focus { border-color: var(--akzent); outline: none; }
.formular .knopf.primaer { min-height: 52px; }
.hinweis { font-size: 12px; color: var(--leise); }

/* ---------- Startseite ---------- */
.gruss { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 26px; }
.gruss h1 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; }
.gruss p { font-size: 12px; color: var(--leise); }
.portal { position: relative; display: flex; justify-content: space-between; gap: 24px; width: 100%; min-height: 320px; padding: clamp(26px, 3.5vw, 42px);
  border-radius: var(--rund-gross); background: var(--firma); border: 1px solid color-mix(in srgb, var(--tinte) 14%, transparent);
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s, border-color .25s; }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 78% 35%, color-mix(in srgb, var(--leise) 22%, transparent), transparent 55%); }

.portal .text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; position: relative; z-index: 2; }
.portal .stufe { font-size: 12px; color: var(--firma-leise); display: flex; gap: 10px; align-items: center; }
.portal .stufe .mono { border: 1px solid color-mix(in srgb, var(--tinte) 24%, transparent); padding: 3px 8px; border-radius: 5px; }
.portal h2 { font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -3.5px; font-weight: 600; margin: 22px 0 10px; overflow-wrap: anywhere; }
.portal .unter { color: var(--firma-leise); font-size: 15px; max-width: 460px; }
.portal .unten { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.portal .los { display: inline-flex; align-items: center; gap: 18px; background: var(--akzent); color: var(--auf-akzent); border-radius: 9px; padding: 11px 17px; font-size: 13px; font-weight: 700; min-height: 44px; }
.zahl { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--firma-leise); }
.zahl strong { font-size: 25px; font-weight: 500; color: var(--tinte); }
.portal .zeichen { position: absolute; right: clamp(24px, 6vw, 90px); top: 40%; transform: translateY(-50%); width: clamp(120px, 13vw, 170px); z-index: 1; transition: transform .6s; }
.portal:hover .zeichen { transform: translateY(-43%) rotate(-6deg); }
.portal .leute { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--firma-leise); z-index: 2; }
.baum { margin: 0 0 0 23px; padding-left: 34px; border-left: 1px solid var(--linie); }
.baum-kopf { position: relative; display: flex; justify-content: space-between; gap: 15px; padding: 26px 0 18px; font-size: 13px; color: var(--leise); }
.baum-kopf::before { content: ""; position: absolute; left: -35px; top: 35px; width: 22px; height: 1px; background: var(--linie); }
.baum-kopf strong { color: var(--tinte); font-weight: 600; font-size: 14px; }
.tore { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tor { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 22px; text-align: left; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; isolation: isolate; transition: transform .2s, border-color .2s; }
.tor:hover { transform: translateY(-4px); border-color: var(--b, var(--akzent)); }
.tor .reihe { display: flex; align-items: center; gap: 8px; color: var(--leise); }
.tor h3 { font-size: 28px; line-height: 1.12; letter-spacing: -1.1px; font-weight: 500; margin-top: 16px; overflow-wrap: anywhere; }
.tor .tor-unter { margin-top: -4px; color: var(--leise); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tor.mit-bild .tor-unter { color: var(--tinte); opacity: .85; }
.tor .buchstabe { position: absolute; right: 16px; top: 4px; z-index: -1; font-size: 128px; line-height: 1; font-weight: 600; letter-spacing: -8px;
  color: color-mix(in srgb, var(--b, var(--akzent)) 11%, var(--flaeche)); }
.tor .fuss2 { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--leise); }
.pfeil { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--erhoeht); }
.tor.neu { background: transparent; border-style: dashed; justify-content: center; }
.tor.neu .pfeil { color: var(--akzent); }
.tor.neu h3 { font-size: 18px; letter-spacing: -.3px; margin: 6px 0 0; }

/* ---------- Bereich ---------- */
.pfad { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--leise); margin-bottom: 18px; }
.pfad a { text-decoration: none; padding: 10px 0; }
.pfad a:hover { color: var(--tinte); }
.pfad [aria-current] { color: var(--tinte); font-weight: 700; }
.pfad svg.sym { width: 13px; height: 13px; }
.held { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--linie); }
.held h1 { font-size: clamp(40px, 6vw, 59px); line-height: 1.06; letter-spacing: -2.6px; font-weight: 600; overflow-wrap: anywhere; }
.held .unter { color: var(--leise); font-size: 14px; margin-top: 12px; max-width: 640px; }
.held .leute { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--leise); }
.held .signatur { font-size: clamp(64px, 9vw, 108px); font-weight: 600; letter-spacing: -7px; line-height: .9; color: var(--b, var(--akzent)); opacity: .85; flex-shrink: 0; }
.reiter { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--linie); margin-bottom: 28px; }
.reiter a { white-space: nowrap; text-decoration: none; padding: 13px 16px; min-height: 48px; display: inline-flex; align-items: center; color: var(--leise); font-size: 13px; border-bottom: 2px solid transparent; }
.reiter a:hover { color: var(--tinte); }
.reiter a[aria-current] { color: var(--akzent); border-bottom-color: var(--akzent); }
.abschnitt { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 30px 0 16px; }
.abschnitt h2 { font-size: 23px; letter-spacing: -.8px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.zaehler { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--erhoeht); font-size: 12px; font-weight: 600; color: var(--leise); }
.aufgaben { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 0 20px; }
.aufgabe { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 80px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe .haken { width: 44px; height: 44px; display: grid; place-items: center; }
.aufgabe .haken input { width: 20px; height: 20px; accent-color: var(--akzent); margin: 0; cursor: pointer; }
.aufgabe .haken input:disabled { cursor: not-allowed; opacity: .45; }
.aufgabe .titel { font-size: 15px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.aufgabe .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--leise); }
.aufgabe .datum { font-size: 12px; color: var(--leise); white-space: nowrap; }
.aufgabe .datum.dringend { color: var(--fehler); }
.aufgabe.erledigt .titel { color: var(--leise); text-decoration: line-through; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; }
.kachel { display: flex; flex-direction: column; gap: 18px; min-height: 170px; padding: 20px 19px; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); transition: border-color .2s, transform .2s; }
.kachel:hover { border-color: var(--akzent); transform: translateY(-2px); }
.kachel .symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--erhoeht); color: var(--akzent); }
.kachel strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.kachel small { margin-top: auto; font-size: 11px; color: var(--leise); }
.kachel.platzhalter .symbol { color: var(--leise); }
.feld-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); gap: 16px; }
.neu-aufgabe { background: var(--flaeche); border: 1px solid var(--akzent); border-radius: var(--rund); padding: 22px; margin-bottom: 16px; display: grid; gap: 16px; }
.waehler { display: flex; gap: 8px; flex-wrap: wrap; }
.waehler button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 22px; border: 1px solid var(--linie); background: var(--erhoeht); font-size: 13px; }
.waehler button[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent); color: var(--auf-akzent); font-weight: 700; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.platz { border: 1px solid var(--linie); background: var(--flaeche); border-radius: var(--rund); padding: clamp(32px, 6vw, 64px) 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.platz .symbol { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--erhoeht); color: var(--akzent); margin-bottom: 8px; }
.platz .symbol svg { width: 26px; height: 26px; }
.platz h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 600; }
.platz p { color: var(--leise); font-size: 14px; max-width: 460px; }

/* ---------- Dialog ---------- */
dialog { background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 26px; width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { font-size: 24px; letter-spacing: -.6px; margin-bottom: 18px; font-weight: 600; }
dialog form { display: grid; gap: 16px; }

/* ---------- Dateiablage ---------- */
.knopf.gefahr { background: transparent; border-color: var(--fehler); color: var(--fehler); }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: 12px; }
.ablage-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.krumen { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
.krumen a, .krumen .aktuell { text-decoration: none; color: var(--leise); padding: 8px 0; overflow-wrap: anywhere; }
.krumen a:hover { color: var(--tinte); }
.krumen [aria-current], .krumen .aktuell { color: var(--tinte); }
.krumen svg.sym { width: 14px; height: 14px; color: var(--leise); }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.speicher { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--leise); margin-bottom: 16px; }
.speicher .balken { flex: 0 1 220px; height: 6px; border-radius: 3px; background: var(--erhoeht); overflow: hidden; }
.speicher .balken i { display: block; height: 100%; min-width: 2px; background: var(--akzent); }
.speicher.knapp .balken i { background: var(--fehler); }
.abstand { margin-bottom: 16px; }
.ablage-liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 0 8px; transition: border-color .2s; }
.ablage-liste.ziehen { border-color: var(--akzent); border-style: dashed; background: var(--hauch); }
.eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 72px; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.eintrag:last-child { border-bottom: 0; }
.eintrag .oeffnen { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; background: none; border: 0;
  padding: 6px 0; min-height: 52px; text-decoration: none; border-radius: 10px; }
.eintrag .oeffnen:hover .name { color: var(--akzent); }
.eintrag .name { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.eintrag .meta { display: block; font-size: 12px; color: var(--leise); margin-top: 3px; }
.eintrag.geloescht .name { color: var(--leise); }
.datei-symbol { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--erhoeht); color: var(--leise); flex-shrink: 0; }
.datei-symbol .endung { position: absolute; right: -6px; bottom: -5px; font: 700 8px/1 var(--mono); letter-spacing: .4px; padding: 3px 4px; border-radius: 4px;
  background: var(--papier); border: 1px solid var(--linie); color: var(--tinte); }
.art-ordner { color: var(--akzent); background: var(--hauch); }
.art-pdf { color: var(--farbe-4); } .art-bild, .art-heic { color: var(--farbe-3); } .art-tabelle { color: var(--farbe-6); }
.art-dokument, .art-iwork, .art-text { color: var(--farbe-2); }
.version-marke { font: 600 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--hauch); color: var(--akzent); }
.zeilen-knoepfe { display: flex; gap: 4px; align-items: center; }
.symbol-knopf { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--leise); }
.symbol-knopf:hover { background: var(--erhoeht); color: var(--tinte); }
.ablage-leer { text-align: center; padding: 56px 20px; color: var(--leise); display: grid; justify-items: center; gap: 8px; font-size: 14px; }
.ablage-leer strong { color: var(--tinte); font-size: 17px; font-weight: 600; }
.ablage-leer .symbol, .keine-vorschau .symbol { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--erhoeht); color: var(--akzent); margin-bottom: 6px; }
.hochlade-liste { display: grid; gap: 8px; }
.hochlade-liste:not(:empty) { margin-bottom: 14px; }
.hochlade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 160px); gap: 6px 14px; align-items: center; padding: 12px 16px;
  border: 1px solid var(--linie); border-radius: var(--rund-klein); background: var(--flaeche); font-size: 13px; }
.hochlade strong { overflow-wrap: anywhere; font-weight: 600; }
.hochlade progress { width: 100%; height: 6px; accent-color: var(--akzent); }
.hochlade .status { grid-column: 1 / -1; font-size: 12px; color: var(--leise); }
.hochlade.fertig { border-color: var(--akzent); }
.hochlade.fehler { border-color: var(--fehler); }
.hochlade.fehler .status { color: var(--fehler); }
.hinweis-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px);
  background: var(--erhoeht); border: 1px solid var(--linie); padding: 12px 18px; border-radius: var(--rund-klein); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hinweis-toast.fehler { border-color: var(--fehler); color: var(--fehler); }

/* Ansicht einer Datei */
dialog.ansicht { width: min(1240px, calc(100vw - 32px)); max-width: none; height: calc(100vh - 32px); max-height: none; padding: 0; overflow: hidden; }
dialog.ansicht[open] { display: flex; flex-direction: column; }
.ansicht-kopf { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--linie); }
.ansicht-kopf .titel { flex: 1; min-width: 180px; }
.ansicht-kopf h2 { font-size: 19px; letter-spacing: -.4px; margin: 0; overflow-wrap: anywhere; }
.ansicht-kopf .meta { font-size: 12px; color: var(--leise); margin-top: 3px; }
dialog.ansicht .hochlade-liste:not(:empty) { margin: 12px 16px 0; }
.ansicht-koerper { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.ansicht-flaeche { position: relative; overflow: auto; background: var(--papier); padding: 24px; display: flex; flex-direction: column; align-items: center; }
.ansicht-flaeche.voll { padding: 0; }
.ansicht-flaeche iframe { flex: 1; width: 100%; border: 0; background: var(--blatt); }
.ansicht-flaeche .neues-fenster { position: absolute; right: 16px; bottom: 16px; }
.ansicht-flaeche img { max-width: 100%; height: auto; border-radius: 8px; margin: auto; }
.versionen { border-left: 1px solid var(--linie); overflow: auto; padding: 18px 14px; display: grid; align-content: start; gap: 6px; }
.versionen h3 { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--leise); margin: 0 0 6px 8px; font-weight: 600; }
.version { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: none; font-size: 13px; }
.version:hover { background: var(--erhoeht); }
.version[aria-current] { border-color: var(--akzent); background: var(--hauch); }
.version small { color: var(--leise); font-size: 11px; }
.versionen .info { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linie); display: grid; gap: 6px; font-size: 12px; color: var(--leise); }
.versionen .info p { margin: 0 8px; overflow-wrap: anywhere; }
.keine-vorschau { margin: auto; text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--leise); max-width: 420px; font-size: 14px; }
.papier { background: var(--blatt); color: var(--blatt-tinte); width: 100%; max-width: 820px; padding: clamp(24px, 6vw, 64px); border-radius: 6px; font-size: 15px; line-height: 1.6; }
.papier h1 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 14px; }
.papier h2 { font-size: 21px; margin: 22px 0 8px; } .papier h3 { font-size: 17px; margin: 18px 0 6px; }
.papier p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.papier p.leerzeile { min-height: 10px; }
.papier ul { margin: 0 0 12px; padding-left: 22px; }
.papier .tabelle-rahmen { overflow-x: auto; margin: 0 0 14px; }
.papier table { border-collapse: collapse; font-size: 13px; }
.papier td { border: 1px solid var(--blatt-linie); padding: 6px 9px; vertical-align: top; white-space: pre-wrap; }
.papier.text pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--mono); }
.papier .leise, .papier .hinweis { color: color-mix(in srgb, var(--blatt-tinte) 60%, var(--blatt)); }
.tabellen { width: 100%; align-self: stretch; }
.blatt-reiter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.blatt-reiter button { min-height: 36px; padding: 6px 14px; border-radius: 18px; border: 1px solid var(--linie); background: var(--flaeche); font-size: 13px; }
.blatt-reiter button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 700; }
.raster-rahmen { overflow: auto; border: 1px solid var(--linie); border-radius: var(--rund-klein); }
.raster-rahmen .hinweis { padding: 10px 12px; }
table.raster { border-collapse: collapse; font-size: 13px; background: var(--flaeche); }
table.raster th, table.raster td { border: 1px solid var(--linie); padding: 6px 10px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
table.raster th { background: var(--erhoeht); color: var(--leise); font: 600 11px var(--mono); position: sticky; top: 0; }
table.raster td.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Galerie ---------- */
.galerie { border-radius: var(--rund); transition: background .2s; }
.galerie.ziehen { background: var(--hauch); outline: 2px dashed var(--akzent); outline-offset: 8px; }
.galerie-leiste { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.galerie-leiste .suche { flex: 1 1 260px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 22px; background: var(--flaeche); font-size: 14px; }
.galerie-leiste .suche:focus { border-color: var(--akzent); outline: none; }
.filter, .sammlungen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.sammlungen svg.sym { width: 14px; height: 14px; color: var(--leise); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 18px; border: 1px solid var(--linie);
  background: transparent; font-size: 13px; color: var(--leise); }
.chip svg.sym { width: 15px; height: 15px; }
.chip:hover { color: var(--tinte); border-color: var(--leise); }
.chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 700; }
.chip.aktiv svg.sym { color: var(--auf-akzent); }
.chip.sammlung { background: var(--flaeche); color: var(--tinte); }
.chip.sammlung.aktiv { background: var(--hauch); border-color: var(--akzent); color: var(--akzent); }
.chip small { font-size: 11px; color: var(--leise); }
.chip.neu { border-style: dashed; }
.sammlungen .trenner { width: 1px; height: 22px; background: var(--linie); margin: 0 4px; }
.sammlungen .symbol-knopf { width: 36px; height: 36px; }
.zeit-titel { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--leise); font-weight: 600; margin: 22px 0 12px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
.karte { position: relative; display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, transform .2s; }
.karte:hover { border-color: var(--leise); transform: translateY(-2px); }
.karte.ungesehen { border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie)); }
.karte-bild { position: relative; aspect-ratio: 4 / 3; background: var(--erhoeht); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.karte-bild.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte-bild .gross-symbol { color: var(--leise); }
.karte-bild .gross-symbol svg.sym { width: 34px; height: 34px; stroke-width: 1.4; }
.karte-bild .gross-endung { position: absolute; bottom: 10px; left: 12px; color: var(--leise); }
.gruppe-pdf .karte-bild .gross-symbol { color: var(--farbe-4); }
.gruppe-tabellen .karte-bild .gross-symbol { color: var(--farbe-6); }
.gruppe-texte .karte-bild .gross-symbol { color: var(--farbe-2); }
.mini-blatt { position: absolute; inset: 36px 14px 0; background: var(--blatt); color: var(--blatt-tinte); border-radius: 6px 6px 0 0; padding: 12px 12px 0;
  font-size: 9px; line-height: 1.45; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.mini-blatt b { font-size: 11px; line-height: 1.25; }
.mini-blatt span { overflow-wrap: anywhere; }
.mini-blatt.text span { font-family: var(--mono); white-space: pre-wrap; }
.mini-raster { position: absolute; inset: 38px 10px auto; border-collapse: collapse; font-size: 9px; background: var(--blatt); color: var(--blatt-tinte); table-layout: fixed; width: calc(100% - 20px); }
.mini-raster td { border: 1px solid var(--blatt-linie); padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 18px; }
.karte-bild.ton { cursor: default; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 16px;
  background: linear-gradient(160deg, var(--farbe-5-hauch), var(--erhoeht)); }
.abspielen { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--akzent); color: var(--auf-akzent); display: grid; place-items: center; }
.abspielen svg.sym { width: 22px; height: 22px; fill: currentColor; }
.ton-info { width: 100%; display: grid; gap: 6px; }
.ton-balken { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--tinte) 15%, transparent); overflow: hidden; }
.ton-balken i { display: block; height: 100%; width: 0; background: var(--akzent); }
.ton-zeit { color: var(--leise); text-align: center; min-height: 14px; }
.karte-marken { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; pointer-events: none; }
.karte-marken .version-marke { margin-left: auto; }
.marke-neu { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); }
.marke-zahl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 7px; border-radius: 10px; background: var(--papier); color: var(--tinte); }
.marke-zahl svg.sym { width: 12px; height: 12px; }
.karte-fuss { padding: 10px 12px 12px; display: grid; gap: 6px; }
.karte-titel { border: 0; background: none; padding: 0; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; min-height: 22px; }
.karte-titel:hover { color: var(--akzent); }
.karte-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--leise); min-width: 0; }
.karte-meta .avatar { width: 22px; height: 22px; font-size: 9px; }
.karte-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ton-gross { margin: auto; display: grid; gap: 20px; justify-items: center; width: min(520px, 100%); }
.ton-gross .symbol { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--farbe-5-hauch); color: var(--farbe-5); }
.ton-gross .symbol svg { width: 42px; height: 42px; }
.ton-gross audio { width: 100%; }
.feld.klein { font-size: 12px; margin: 8px 8px 0; color: var(--leise); }
.feld.klein select { min-height: 40px; font-size: 14px; padding: 8px 10px; color: var(--tinte); }

/* ---------- Gespräche ---------- */
.gespraeche { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0; height: max(560px, calc(100dvh - 210px)); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; }
.gespraeche.mit-faden { grid-template-columns: 230px minmax(0, 1fr) minmax(300px, 380px); }
.themen { border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--papier) 40%, var(--flaeche)); }
.themen-kopf, .faden-kopf, .verlauf-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--linie); min-height: 60px; }
.themen-kopf strong { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--leise); }
.themen-liste { overflow: auto; padding: 8px; display: grid; gap: 2px; align-content: start; }
.thema-knopf { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 9px; background: none;
  color: var(--leise); font-size: 14px; text-align: left; }
.thema-knopf:hover { background: var(--erhoeht); color: var(--tinte); }
.thema-knopf[aria-current] { background: var(--hauch); color: var(--akzent); font-weight: 700; }
.thema-knopf.ungelesen { color: var(--tinte); font-weight: 700; }
.thema-knopf .raute { opacity: .6; }
.thema-knopf .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thema-knopf .zahl { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); font-size: 11px;
  font-weight: 700; display: grid; place-items: center; }
.verlauf-spalte, .faden-spalte { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.faden-spalte { border-left: 1px solid var(--linie); }
.verlauf-kopf h2 { font-size: 18px; letter-spacing: -.3px; }
.verlauf-kopf p { font-size: 12px; margin-top: 2px; }
.faden-kopf > div { display: grid; }
.faden-kopf .leise { font-size: 12px; }
.verlauf { flex: 1; overflow: auto; padding: 12px 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.verlauf .mehr { text-align: center; padding: 6px; }
.verlauf .ablage-leer { margin: auto; }
.nachricht { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 8px 10px; border-radius: 12px; }
.nachricht:hover { background: var(--erhoeht); }
.nachricht.ziel { background: var(--hauch); }
.nachricht .avatar { width: 36px; height: 36px; }
.n-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.n-kopf time { font-size: 11px; color: var(--leise); }
.n-kopf .leise { font-size: 11px; }
.n-text { font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.n-text a { color: var(--akzent); }
.erwaehnung { color: var(--akzent); background: var(--hauch); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.erwaehnung.ich { background: var(--akzent); color: var(--auf-akzent); }
.nachricht.entfernt .n-inhalt > p { font-style: italic; font-size: 13px; }
.n-aktionen { position: absolute; top: -12px; right: 10px; display: none; gap: 2px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 2px; }
.n-aktionen .symbol-knopf { width: 34px; height: 34px; }
.nachricht:hover .n-aktionen, .nachricht:focus-within .n-aktionen { display: flex; }
.n-aktionen:empty { display: none !important; }
.faden-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 10px 4px 4px; border-radius: 9px; border: 1px solid transparent;
  background: none; font-size: 12px; color: var(--akzent); min-height: 36px; }
.faden-link:hover { border-color: var(--linie); background: var(--flaeche); }
.faden-link .avatar { width: 24px; height: 24px; font-size: 9px; }
.faden-link .leise { font-size: 11px; }
.neu-linie { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--fehler); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.neu-linie::before, .neu-linie::after { content: ""; flex: 1; height: 1px; background: var(--fehler); opacity: .5; }
.faden-trenner { display: flex; align-items: center; gap: 10px; margin: 6px 10px; color: var(--leise); font-size: 11px; }
.faden-trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.anhaenge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.anhang { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--linie); border-radius: 12px; background: var(--papier);
  text-decoration: none; max-width: 300px; }
.anhang:hover { border-color: var(--akzent); }
.anhang-bild { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--erhoeht); flex-shrink: 0; }
.anhang-bild img { width: 100%; height: 100%; object-fit: cover; }
.anhang-text { display: grid; min-width: 0; }
.anhang-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhang-text small { font-size: 11px; color: var(--leise); }
.eingabe { position: relative; margin: 0 12px 12px; border: 1px solid var(--linie); border-radius: 14px; background: var(--papier); padding: 8px 8px 4px 12px; }
.eingabe:focus-within { border-color: var(--akzent); }
.eingabe .hochlade-liste:not(:empty) { margin: 0 0 8px; }
.eingabe-zeile { display: flex; gap: 8px; align-items: flex-end; }
.eingabe textarea { flex: 1; resize: none; border: 0; background: transparent; font-size: 15px; line-height: 1.5; padding: 8px 0; min-height: 40px; max-height: 220px; outline: none; }
.eingabe .senden { background: var(--akzent); color: var(--auf-akzent); }
.eingabe .senden:hover { background: var(--akzent); color: var(--auf-akzent); filter: brightness(1.05); }
.eingabe-leiste { display: flex; align-items: center; gap: 6px; }
.eingabe-leiste .symbol-knopf { width: 36px; height: 36px; }
.eingabe-hinweis { font-size: 11px; color: var(--leise); }
.eingabe-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; }
.eingabe-anhaenge:not(:empty) { margin-bottom: 6px; }
.eingabe-anhang { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; border-radius: 14px; background: var(--erhoeht); font-size: 12px; }
.eingabe-anhang .symbol-knopf { width: 28px; height: 28px; }
.vorschlaege { position: absolute; left: 8px; bottom: calc(100% + 6px); z-index: 30; min-width: 240px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 12px; padding: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); display: grid; }
.vorschlag { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; min-height: 40px; }
.vorschlag[aria-selected="true"], .vorschlag:hover { background: var(--hauch); color: var(--akzent); }
.vorschlag .avatar { width: 26px; height: 26px; font-size: 10px; }
.lesend { padding: 14px 18px; border-top: 1px solid var(--linie); font-size: 13px; }
.portal-chats { display: grid; gap: 6px; margin-top: 18px; max-width: 560px; }
.chat-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 12px;
  text-decoration: none; background: color-mix(in srgb, var(--papier) 55%, transparent); border: 1px solid var(--linie); font-size: 13px; }
.chat-zeile:hover { border-color: var(--b, var(--akzent)); }
.chat-ort { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chat-ort .leise { font-size: 11px; }
.chat-text { color: var(--firma-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-zahl { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--akzent); color: var(--auf-akzent); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; }

/* ---------- Anmerkungen ---------- */
.ansicht-koerper { grid-template-columns: minmax(0, 1fr) 340px; }
.ansicht-buehne { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ansicht-buehne .ansicht-flaeche { flex: 1; }
.werkzeuge { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--linie); background: var(--flaeche); flex-wrap: wrap; }
.werkzeuge .symbol-knopf[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }
.werkzeuge .trenner { width: 1px; height: 24px; background: var(--linie); margin: 0 6px; }
.werkzeug-hinweis { font-size: 12px; color: var(--leise); margin-left: 8px; }
.farbknopf { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--fa); margin: 0 3px; }
.farbknopf[aria-pressed="true"] { border-color: var(--tinte); box-shadow: 0 0 0 2px var(--flaeche) inset; }
.farbe-akzent { --fa: var(--akzent); } .farbe-rot { --fa: var(--markierung-rot); } .farbe-blau { --fa: var(--markierung-blau); } .farbe-gelb { --fa: var(--markierung-gelb); }
.ansicht-flaeche.seiten { gap: 18px; }
.seite { position: relative; width: min(100%, 900px); background: var(--blatt); border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); flex-shrink: 0; user-select: none; }
.seite > img, .seite > canvas { display: block; width: 100%; height: 100%; border-radius: 4px; }
.seite > img { max-width: 100%; height: auto; margin: 0; }
.formen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.form rect, .form polyline { fill: none; stroke: var(--fa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form rect { fill: color-mix(in srgb, var(--fa) 12%, transparent); }
.form.vorlaeufig rect, .form.vorlaeufig polyline { stroke-dasharray: 6 5; }
.form.aktiv rect, .form.aktiv polyline { stroke-width: 5; }
.form.erledigt { opacity: .45; }
.nadeln { position: absolute; inset: 0; pointer-events: none; }
.nadel { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px;
  border: 2px solid var(--papier); background: var(--fa); color: var(--auf-akzent); font-size: 12px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.nadel:not(.punkt) { transform: translate(-40%, -60%); min-width: 22px; height: 22px; font-size: 11px; }
.nadel.punkt { border-radius: 14px 14px 14px 2px; transform: translate(0, -100%); }
.nadel.aktiv { outline: 3px solid var(--tinte); }
.nadel.erledigt { opacity: .5; }
.nadel.vorlaeufig { outline: 2px dashed var(--tinte); }
.zeichenebene { position: absolute; inset: 0; display: none; touch-action: none; }
.ansicht-buehne.zeichnen .zeichenebene { display: block; cursor: crosshair; }
.ansicht-buehne.zeichnen .nadel { pointer-events: none; }
.seitenspalte { border-left: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; }
.spalten-reiter-leiste { display: flex; border-bottom: 1px solid var(--linie); }
.spalten-reiter { flex: 1; min-height: 48px; border: 0; background: none; color: var(--leise); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.spalten-reiter[aria-pressed="true"] { color: var(--akzent); border-bottom-color: var(--akzent); }
.spalten-inhalt { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.spalten-inhalt .eingabe { margin: auto 0 0; }
.kommentar-kopf { display: flex; gap: 6px; }
.kommentare { display: grid; gap: 8px; }
.kommentar { position: relative; border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; background: var(--papier); display: grid; gap: 6px; cursor: pointer; }
.kommentar.aktiv { border-color: var(--akzent); }
.kommentar.erledigt { opacity: .6; }
.kommentar.neu::after, .antwort.neu::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.kommentar.entwurf { border: 1px dashed var(--akzent); cursor: default; }
.kommentar .eingabe { margin: 4px 0 0; }
.kommentar-zeile { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.kommentar-zeile time, .kommentar-zeile .leise { font-size: 11px; color: var(--leise); }
.kommentar-zeile .avatar { width: 22px; height: 22px; font-size: 9px; }
.kommentar-nummer { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--fa); color: var(--auf-akzent); font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center; }
.kommentar-nummer svg.sym { width: 13px; height: 13px; }
.erledigt-haken { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; }
.erledigt-haken input { width: 18px; height: 18px; accent-color: var(--akzent); }
.kommentar .n-text { font-size: 14px; }
.kommentar-aktionen { display: flex; gap: 2px; flex-wrap: wrap; margin-left: -8px; }
.kommentar-aktionen .knopf { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.antwort { position: relative; border-top: 1px solid var(--linie); padding-top: 8px; display: grid; gap: 4px; }
.karte-bild.blatt-oben img { object-position: top; }

/* ---------- Personen, Profil, Menü ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.klickbar { cursor: pointer; }
.avatar.klickbar:hover { border-color: var(--akzent); }
.avatar.gross { width: 72px; height: 72px; font-size: 22px; }
.avatar.riesig { width: 112px; height: 112px; font-size: 34px; }
.kopf-menue { position: relative; }
.ich-knopf { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; min-height: 44px; border-radius: 22px; }
.ich-knopf:hover .avatar { border-color: var(--akzent); }
.ich-knopf .avatar { pointer-events: none; }
.menue-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: grid; }
.menue-liste a, .menue-liste button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 9px; border: 0; background: none;
  text-decoration: none; font-size: 14px; text-align: left; }
.menue-liste a:hover, .menue-liste button:hover { background: var(--erhoeht); }
.neu-menue { position: relative; }
.neu-menue .menue-liste { right: auto; left: 0; }
dialog.person-karte { width: min(520px, calc(100vw - 24px)); padding: 0; }
.person-inhalt { padding: 22px; display: grid; gap: 18px; }
.person-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.person-kopf h2 { margin: 0; font-size: 22px; }
.person-kopf .leise { font-size: 14px; margin-top: 2px; }
.erreichbar { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.erreichbar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leise); }
.erreichbar.ja { color: var(--akzent); } .erreichbar.ja::before { background: var(--akzent); }
.erreichbar.nein { color: var(--leise); }
.kontakt { display: flex; gap: 8px; flex-wrap: wrap; }
.person-inhalt h3, .karte-block h3 { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--leise); margin: 0 0 8px; font-weight: 600; }
.vorformatiert { white-space: pre-wrap; font-size: 14px; }
table.zeiten { border-collapse: collapse; font-size: 14px; }
table.zeiten th { text-align: left; padding: 3px 16px 3px 0; font-weight: 600; color: var(--leise); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.klein { min-height: 30px; padding: 3px 10px; font-size: 12px; text-decoration: none; }
.profil-seite, .verwaltung-seite { display: grid; gap: 18px; }
.profil-held { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 6px 0 10px; }
.profil-held h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -1.6px; margin-bottom: 4px; }
.profil-held .oberzeile { margin-bottom: 8px; }
.profil-form { display: grid; gap: 18px; }
.karte-block { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.karte-block h2 { font-size: 20px; letter-spacing: -.4px; margin: 0; }
.karte-block .aktionen { margin-top: 4px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.abschnitt-kopf p { font-size: 13px; margin-top: 4px; max-width: 640px; }
.feld-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feld-stapel { display: grid; gap: 12px; }
.feld textarea { resize: vertical; }
.aktionen.links { justify-content: flex-start; }
.zeiten-editor { display: grid; gap: 4px; }
.zeiten-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--linie); }
.zeiten-zeile b { font-size: 14px; font-weight: 600; }
.spannen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spanne { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--erhoeht); }
.spanne input { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 7px; padding: 6px 8px; min-height: 36px; }
.spanne .symbol-knopf { width: 32px; height: 32px; }
.haken-zeile { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; min-height: 32px; cursor: pointer; }
.haken-zeile input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--akzent); flex-shrink: 0; }
.haken-zeile.klein { font-size: 12px; align-items: center; }
.ki-liste { display: grid; gap: 10px; }
.ki-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--linie);
  border-radius: 14px; background: var(--papier); }
.ki-zeile > div:first-child { display: grid; gap: 2px; }
.ki-zeile .leise { font-size: 12px; }
.ki-zeile .knoepfe, .ki-zeile > .hinweis { grid-column: 1 / -1; }
.ki-status { display: grid; gap: 4px; justify-items: end; text-align: right; }
.status-aktiv .ki-status .etikett { background: var(--hauch); color: var(--akzent); }
.status-gesperrt .ki-status .etikett, .status-abgelaufen .ki-status .etikett { color: var(--fehler); }
.fehler-text { color: var(--fehler); font-size: 12px; }
.ki-marke { display: inline-flex; align-items: center; font: 800 10px/1 var(--mono); padding: 3px 6px; border-radius: 5px; background: var(--farbe-2-hauch);
  color: var(--farbe-2); letter-spacing: .5px; vertical-align: middle; }
.kodex-details { border-top: 1px solid var(--linie); padding-top: 12px; }
.kodex-details summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; }
ol.kodex { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; }
dialog.assistent { width: min(620px, calc(100vw - 24px)); }
dialog.assistent form { gap: 14px; }
.schritte { display: flex; gap: 6px; }
.schritte span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--erhoeht); color: var(--leise); }
.schritte span.aktiv { background: var(--akzent); color: var(--auf-akzent); }
.schritte span.fertig { background: var(--hauch); color: var(--akzent); }
.anbieter-wahl, .bereich-wahl { display: flex; gap: 8px; flex-wrap: wrap; }
.bereich-wahl { display: grid; gap: 4px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--linie); border-radius: 10px; }
.anschluss { display: grid; gap: 6px; }
.code-zeile { display: flex; gap: 8px; align-items: center; }
.code-zeile code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12px/1.5 var(--mono); padding: 10px 12px; border-radius: 9px; background: var(--papier);
  border: 1px solid var(--linie); user-select: all; }
.tabelle-scroll { overflow: auto; }
table.verlauf-tabelle { border-collapse: collapse; width: 100%; font-size: 12px; }
table.verlauf-tabelle th, table.verlauf-tabelle td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.verlauf-tabelle th { color: var(--leise); font-weight: 600; }
tr.ergebnis-verstoss td, tr.ergebnis-abgelehnt td:last-child { color: var(--fehler); }

/* ---------- Bereich verwalten, Verwaltung ---------- */
.verwalten { display: grid; gap: 18px; }
.verwalten-oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 20px; align-items: start; }
.verwalten-oben .spalte { display: grid; gap: 12px; }
.bereich-bild { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--erhoeht); display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--linie);
  text-align: center; padding: 10px; }
.bereich-bild.mit { padding: 0; border-style: solid; }
.bereich-bild img { width: 100%; height: 100%; object-fit: cover; }
.bereich-bild .leise { display: grid; gap: 6px; justify-items: center; font-size: 12px; max-width: 240px; }
.mitglieder { display: grid; }
.mitglied { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.mitglied:last-child { border-bottom: 0; }
.mitglied.ohne .mitglied-info { opacity: .55; }
.mitglied-info { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mitglied-info > div { display: grid; min-width: 0; }
.mitglied-info .leise { font-size: 12px; }
.stufe-wahl { min-height: 40px; border: 1px solid var(--linie); border-radius: 9px; background: var(--papier); padding: 6px 10px; font-size: 13px; }
.feinrechte { grid-column: 1 / -1; font-size: 13px; }
.feinrechte summary { cursor: pointer; color: var(--leise); min-height: 28px; }
.fein-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; padding: 10px 0 4px; }
.fein-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; align-items: center; }
.gefahr-block { border-color: color-mix(in srgb, var(--fehler) 40%, var(--linie)); }
.verwalten-reiter { gap: 6px; }
.verwalten-reiter svg.sym { width: 16px; height: 16px; }
.rahmen-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.rahmen-chips .etikett { gap: 6px; }
.rahmen-chips svg.sym { width: 13px; height: 13px; }
.etikett.status-aktiv { background: var(--hauch); color: var(--akzent); }
.held-bild { width: clamp(160px, 26vw, 320px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--linie); flex-shrink: 0; }
.tor.mit-bild { color: var(--tinte); }
.tor .tor-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.tor.mit-bild::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--flaeche) 15%, transparent) 0%, color-mix(in srgb, var(--flaeche) 55%, transparent) 45%, var(--flaeche) 92%); }
.tor.mit-bild .buchstabe { display: none; }
.personen-liste { display: grid; gap: 10px; }
.person-zeile { display: grid; grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; }
.person-zeile.inaktiv { opacity: .55; }
.person-zeile select { min-height: 40px; border: 1px solid var(--linie); border-radius: 9px; background: var(--papier); padding: 6px 10px; }

/* ---------- Dokumente und Tabellen ---------- */
body.dok-modus .rahmen { max-width: 1600px; }
.dok { display: grid; gap: 12px; }
.dok-kopf { display: grid; gap: 10px; }
.dok-titelzeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dok-titel { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.8px; margin: 0; }
.dok-titel.klickbar { cursor: text; border-radius: 8px; padding: 0 6px; margin-left: -6px; }
.dok-titel.klickbar:hover { background: var(--erhoeht); }
.dok-status { font-size: 12px; color: var(--leise); }
.dok-status.ok { color: var(--akzent); }
.dok-anwesend { margin-left: auto; }
.dok-anwesend .avatar { outline: 2px solid var(--akzent); outline-offset: 1px; }
.dok-leiste { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.modus-wahl { display: flex; gap: 6px; }
.dok-werkzeuge { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--linie);
  border-radius: 12px; background: var(--flaeche); }
.dok-werkzeuge .trenner { width: 1px; height: 24px; background: var(--linie); margin: 0 6px; }
.art-wahl { min-height: 38px; border: 1px solid var(--linie); border-radius: 8px; background: var(--papier); padding: 4px 10px; font-size: 13px; }
.dok-koerper { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.dok-flaeche { min-width: 0; }
.dok-seitenspalte { position: sticky; top: 64px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--rund); overflow: hidden; }
.dok-papier { margin: 0 auto; max-width: 860px; min-height: 70vh; padding: clamp(28px, 6vw, 72px) clamp(20px, 7vw, 80px); }
.dblock { position: relative; border-radius: 6px; margin: 0 -10px; padding: 0 10px; }
.dblock:hover .drand .symbol-knopf, .drand .symbol-knopf.hat { opacity: 1; }
.dblock.markiert { background: color-mix(in srgb, var(--akzent) 22%, transparent); transition: background .6s; }
.dblock.gesperrt .dtext { background: color-mix(in srgb, var(--farbe-3) 12%, transparent); border-radius: 4px; }
.dtext { outline: none; min-height: 1.6em; white-space: pre-wrap; overflow-wrap: anywhere; padding: 2px 0; }
.dtext[contenteditable="true"]:focus { box-shadow: -10px 0 0 -7px var(--akzent); }
.dtext[data-leer]:empty::before { content: attr(data-leer); color: color-mix(in srgb, var(--blatt-tinte) 35%, var(--blatt)); }
.dtext a { color: var(--blatt-link); }
.art-h1 .dtext { font-size: 28px; font-weight: 700; letter-spacing: -.6px; margin: 18px 0 8px; line-height: 1.25; }
.art-h2 .dtext { font-size: 21px; font-weight: 700; margin: 16px 0 6px; line-height: 1.3; }
.art-h3 .dtext { font-size: 17px; font-weight: 700; margin: 12px 0 4px; }
.art-p .dtext { margin: 0 0 8px; }
.art-zitat .dtext { border-left: 3px solid var(--blatt-linie); padding-left: 14px; font-style: italic; color: color-mix(in srgb, var(--blatt-tinte) 75%, var(--blatt)); margin: 6px 0 10px; }
.art-punkt, .art-nummer { padding-left: 34px; }
.art-punkt::before { content: "•"; position: absolute; left: 18px; top: 2px; }
.art-nummer::before { content: attr(data-nummer); position: absolute; left: 10px; top: 2px; min-width: 18px; text-align: right; }
.drand { position: absolute; right: -46px; top: 0; }
.drand .symbol-knopf { width: 34px; height: 34px; opacity: 0; color: var(--leise); position: relative; }
.drand .symbol-knopf .zahl { position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 700; background: var(--akzent); color: var(--auf-akzent);
  min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
.sperre-marke { position: absolute; right: 4px; top: 2px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px 2px 2px;
  border-radius: 10px; background: var(--farbe-3); color: var(--auf-farbe); }
.sperre-marke .avatar { width: 18px; height: 18px; font-size: 8px; border: 0; }
.neu-absatz { margin-top: 18px; color: color-mix(in srgb, var(--blatt-tinte) 55%, var(--blatt)); }
.vorschlag { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; background: var(--flaeche); color: var(--tinte); display: grid; gap: 6px;
  margin: 4px 0 12px; font-size: 14px; }
.dok-papier .vorschlag { border-color: color-mix(in srgb, var(--farbe-4) 60%, var(--linie)); }
.vorschlag.klickbar { cursor: pointer; }
.vorschlag-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.vorschlag-kopf .avatar { width: 22px; height: 22px; font-size: 9px; }
.diff { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.diff del { color: var(--fehler); text-decoration: line-through; background: color-mix(in srgb, var(--fehler) 12%, transparent); }
.diff ins { color: var(--akzent); text-decoration: none; background: color-mix(in srgb, var(--akzent) 14%, transparent); }
.vorschlag-editor { border: 1px dashed var(--farbe-4); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; display: grid; gap: 8px; }
.vorschlag-editor .dtext { background: color-mix(in srgb, var(--farbe-4) 8%, transparent); border-radius: 6px; padding: 6px 8px; }
.kommentar-ziel { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--akzent); }
.kommentar.klickbar { cursor: pointer; }
.formelzeile { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.zellname { min-width: 56px; text-align: center; padding: 10px 8px; border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche); }
.formel-eingabe { flex: 1; min-height: 42px; border: 1px solid var(--linie); border-radius: 9px; background: var(--flaeche); padding: 8px 12px; font: 14px var(--mono); }
.formel-eingabe:focus { border-color: var(--akzent); outline: none; }
.dok-raster { max-height: 72vh; }
table.raster.editor { table-layout: fixed; outline: none; }
table.raster.editor col.nr { width: 46px; }
table.raster.editor th.aktiv { color: var(--akzent); background: var(--hauch); }
table.raster.editor td { position: relative; height: 32px; cursor: cell; user-select: none; }
table.raster.editor td.ausgewaehlt { outline: 2px solid var(--akzent); outline-offset: -2px; background: var(--hauch); }
table.raster.editor td.gesperrt { outline: 2px solid var(--farbe-3); outline-offset: -2px; }
table.raster.editor td.gesperrt::after { content: attr(data-wer); position: absolute; top: -1px; right: -1px; font: 700 9px/1 var(--mono); padding: 2px 4px;
  background: var(--farbe-3); color: var(--auf-farbe); }
table.raster.editor td.hat-vorschlag::before { content: ""; position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--farbe-4); }
table.raster.editor td.formel { color: var(--tinte); }
.zell-eingabe { position: absolute; inset: 0; width: 100%; height: 100%; border: 2px solid var(--akzent); background: var(--papier); padding: 4px 8px; font: 13px var(--mono); outline: none; }
.zell-vorschlag { margin-top: 12px; display: grid; gap: 6px; }
dialog.versionen-dialog { width: min(720px, calc(100vw - 24px)); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-kopf h2 { margin: 0; }
.versions-vorschau { margin-top: 8px; max-height: 50vh; overflow: auto; }
.versions-vorschau .papier { padding: 24px; }

@media print {
  body.drucken * { visibility: hidden; }
  body.drucken .dok-papier, body.drucken .dok-papier *, body.drucken .dok-raster, body.drucken .dok-raster * { visibility: visible; }
  body.drucken .dok-papier, body.drucken .dok-raster { position: absolute; left: 0; top: 0; width: 100%; max-width: none; max-height: none; overflow: visible;
    box-shadow: none; border: 0; padding: 0; background: #fff; color: #000; }
  body.drucken .drand, body.drucken .vorschlag, body.drucken .neu-absatz, body.drucken .sperre-marke { display: none !important; }
  body.drucken table.raster.editor td, body.drucken table.raster.editor th { color: #000; background: #fff; border-color: #999; outline: 0; }
  body.drucken { background: #fff; }
}

/* ---------- Eigene Seiten ---------- */
.eigene-seite-rahmen { border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; background: var(--flaeche); }
iframe.eigene-seite { display: block; width: 100%; height: max(600px, 75vh); border: 0; }

/* ---------- KI-Programm verbinden ---------- */
.oauth-seite { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.oauth-kopf { display: grid; gap: 8px; justify-items: start; padding: 10px 0; }
.oauth-kopf h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -1px; }
.oauth-paar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.oauth-symbol { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--erhoeht); color: var(--akzent); overflow: hidden; }
.oauth-symbol img { width: 36px; height: 36px; }
.oauth-pfeil { font-size: 22px; color: var(--leise); }
.oauth-form { display: grid; gap: 18px; }

/* ---------- Neuigkeiten und Glocke ---------- */
.glocke { position: relative; }
.glocke-knopf { position: relative; }
.glocke-zahl { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--akzent);
  color: var(--auf-akzent); font: 700 10px/18px var(--schrift); text-align: center; }
.glocke-feld { position: absolute; right: -60px; top: calc(100% + 10px); z-index: 40; width: min(400px, calc(100vw - 24px)); max-height: min(560px, 75vh); overflow: auto;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.glocke-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 8px 18px; border-bottom: 1px solid var(--linie); }
.glocke-kopf strong { font-size: 15px; }
.ereignisse { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 4px 8px; }
.ereignisse.kompakt { border: 0; border-radius: 0; background: transparent; }
.ereignis { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; min-height: 56px; text-decoration: none;
  border-radius: 12px; }
.ereignis:hover { background: var(--erhoeht); }
.ereignis + .ereignis { margin-top: 2px; }
.ereignis-symbol { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--erhoeht); color: var(--leise); }
.ereignis-symbol svg.sym { width: 17px; height: 17px; }
.ereignis.neu .ereignis-symbol { background: var(--hauch); color: var(--akzent); }
.ereignis .satz { display: block; font-size: 14px; color: var(--leise); overflow-wrap: anywhere; }
.ereignis .satz b { color: var(--tinte); font-weight: 600; }
.ereignis .satz strong { color: var(--tinte); font-weight: 600; }
.ereignis .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--leise); }
.ereignis .meta .etikett { padding: 2px 7px; font-size: 10px; }
.ereignis .grund { color: var(--akzent); }
.neu-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.zaehler.akzent { background: var(--akzent); color: var(--auf-akzent); }
.aktivitaet { margin-top: 12px; }
.neu-marke { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 12px;
  background: var(--akzent); color: var(--auf-akzent); }
.tor:has(.neu-marke) .reihe { padding-right: 60px; }
.portal .neues { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; }
.portal .neues-titel { font-size: 12px; color: var(--firma-leise); width: 100%; }
.neu-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 20px; text-decoration: none; font-size: 13px;
  background: color-mix(in srgb, var(--papier) 55%, transparent); border: 1px solid var(--linie); }
.neu-chip:hover { border-color: var(--b, var(--akzent)); }
.neu-chip b { color: var(--b, var(--akzent)); font-weight: 700; }
.portal .los { text-decoration: none; }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .anmeldung { grid-template-columns: 1fr; padding-top: 24px; min-height: 0; }
  .geschichte { min-height: 340px; }
  .geschichte .zeichen { width: 150px; top: 26px; right: 26px; }
  .kopf .mitte { display: none; }
}
@media (max-width: 640px) {
  .kopf { min-height: 72px; }
  .kopf .marke img { height: 32px; }
  .kopf .wer { display: none; }
  .glocke-feld { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; }
  .portal { flex-direction: column; min-height: 0; }
  .portal .zeichen { position: relative; right: auto; top: auto; transform: none; width: 92px; order: -1; align-self: flex-end; margin-bottom: -30px; }
  .portal:hover .zeichen { transform: none; }
  .portal .leute { position: static; margin-top: 18px; }
  .baum { margin-left: 8px; padding-left: 16px; }
  .baum-kopf::before { left: -17px; width: 10px; }
  .tor { min-height: 170px; }
  .held { flex-direction: column; align-items: flex-start; }
  .held .signatur { display: none; }
  .aufgabe { grid-template-columns: 44px minmax(0, 1fr); }
  .aufgabe { row-gap: 6px; }
  .aufgabe .datum, .aufgabe .avatare { grid-column: 2; }
  .aufgabe > span:empty { display: none; }
  .feld-zeile { grid-template-columns: 1fr; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel { min-height: 150px; }
  .ablage-leiste { align-items: flex-start; flex-direction: column; }
  .knoepfe .knopf { flex: 1 1 auto; }
  .eintrag { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 4px; }
  .eintrag .version-marke { display: none; }
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .verwalten-oben, .dok-koerper { grid-template-columns: 1fr; }
  .mitglied, .person-zeile { grid-template-columns: 1fr; }
  .fein-zeile { grid-template-columns: minmax(0, 1fr) 150px; }
  .zeiten-zeile { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .ki-zeile { grid-template-columns: 1fr; }
  .ki-status { justify-items: start; text-align: left; }
  .held-bild { width: 100%; }
  .dok-seitenspalte { position: static; max-height: none; }
  .dok-papier { padding: 24px 18px 40px; }
  .drand { right: -8px; }
  .drand .symbol-knopf { opacity: .7; }
  .kopf-menue .wer { display: none; }
  .gespraeche, .gespraeche.mit-faden { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 150px); }
  .themen { border-right: 0; border-bottom: 1px solid var(--linie); }

  .themen-liste { display: flex; overflow-x: auto; padding: 8px; gap: 6px; scrollbar-width: none; }
  .thema-knopf { flex-shrink: 0; border: 1px solid var(--linie); border-radius: 18px; min-height: 36px; }
  .faden-spalte { position: fixed; inset: 0; z-index: 45; background: var(--flaeche); border: 0; }
  .n-aktionen { position: static; display: flex; border: 0; background: none; grid-column: 2; padding: 0; }
  .nachricht:hover .n-aktionen { display: flex; }
  .eingabe-hinweis { display: none; }
  .chat-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .chat-text { grid-row: 2; }
  .galerie-leiste .knoepfe { width: 100%; }
  .filter, .sammlungen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; padding-left: 4px; }
  .chip { flex-shrink: 0; }
  .eintrag > span:empty { display: none; }
  .eintrag .oeffnen { gap: 12px; }
  dialog.ansicht { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .ansicht-kopf { padding: 10px 8px 12px 14px; }
  .ansicht-kopf .knoepfe { order: 3; width: 100%; }
  .ansicht-koerper { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); }
  .seitenspalte { border-left: 0; border-top: 1px solid var(--linie); }
  .werkzeug-hinweis { display: none; }
  .ansicht-flaeche { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (min-width: 641px) { .portal .text { max-width: calc(100% - clamp(160px, 18vw, 240px)); } }

/* Passwort ändern im Profil */
.passwort-form { display: grid; gap: 14px; max-width: 760px; }
.passwort-form .passwort-neu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.passwort-form .feld input { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .passwort-form .passwort-neu { grid-template-columns: 1fr; } }
.passwort-form .meldung { margin: 0; }
