/* Protokollsystem RTW Mitte Los 2: helles Glas-Design über die volle Fensterbreite.
   Unschärfe (backdrop-filter) nur auf wenigen großen Flächen, nie je Eintrag. */
:root {
  --rot: #e30613; --rot-dunkel: #b30510; --text: #14181d; --text-2: #4f5661; --text-3: #848b96; --blau: #0b4fd0;
  --linie: rgba(20, 26, 36, .09); --linie-2: rgba(20, 26, 36, .14);
  --glas: rgba(255, 255, 255, .58); --glas-stark: rgba(255, 255, 255, .80); --glas-rand: rgba(255, 255, 255, .78);
  --feld: rgba(255, 255, 255, .78); --feld-fokus: #fff;
  --schatten: 0 1px 1px rgba(20, 26, 36, .04), 0 10px 32px rgba(20, 26, 36, .07);
  --schatten-hoch: 0 18px 50px rgba(20, 26, 36, .16), 0 2px 6px rgba(20, 26, 36, .06);
  --glanz: inset 0 1px 0 rgba(255, 255, 255, .85);
  --grau-mark: rgba(105, 110, 118, .15); --gruen: #18853a; --gelb: #e5a800;
  --r-gross: 18px; --r: 12px; --r-klein: 9px;
  --rand-x: clamp(14px, 2vw, 34px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #eef1f5; min-height: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 102% -8%, rgba(227, 6, 19, .075), transparent 62%),
    radial-gradient(900px 640px at -8% 108%, rgba(60, 110, 190, .085), transparent 60%),
    radial-gradient(700px 500px at 40% 40%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, #f5f7fa 0%, #edf0f4 100%);
  background-attachment: fixed;
}
a { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
.linie-oben { height: 3px; background: linear-gradient(90deg, var(--rot), #ff4d5a 60%, var(--rot)); flex: none; }

/* Glasflächen */
.glas, .karte, .kopf, .leiste, .dialog, .anmeldung, .v-pop {
  background: var(--glas);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--schatten), var(--glanz);
}
/* Unschärfe nur dort, wo Inhalt darunter durchläuft oder etwas über der Seite liegt (Kopfzeile, Leiste, Fenster).
   Die Karten und Bereichsblöcke tragen sie seit dem 24.11.2026 nicht mehr: Hinter ihnen liegt nur der weiche
   Farbverlauf, der Unterschied ist kaum zu sehen, aber eine über 20.000 Bildpunkte hohe Karte „Protokollpunkte“
   mit Unschärfe ließ das Blättern ruckeln. Nicht wieder an .karte oder .glas hängen. */
.kopf, .leiste, .dialog, .anmeldung, .v-pop {
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
}

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 40; border-width: 0 0 1px; border-radius: 0; display: flex; align-items: center; gap: 28px; padding: 0 var(--rand-x); height: 98px; background: rgba(255, 255, 255, .72); }
.marke { flex: none; }
.marke img { height: 60px; display: block; }
/* Logos der ARGE neben dem RTW-Mitte-Logo, durch einen feinen Strich getrennt */
.partner { flex: none; display: flex; align-items: center; gap: 30px; padding-left: 28px; border-left: 1px solid var(--linie-2); height: 60px; }
.partner img { display: block; width: auto; }
.partner .p-stb { height: 56px; }
.partner .p-rk { height: 44px; }
.navi { display: flex; gap: 4px; flex: 1; align-items: center; overflow-x: auto; scrollbar-width: none; }
.navi a { text-decoration: none; padding: 9px 16px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background .15s, color .15s; }
.navi a:hover { background: rgba(255, 255, 255, .8); color: var(--text); }
.navi a.aktiv { color: var(--text); background: rgba(255, 255, 255, .95); box-shadow: 0 1px 3px rgba(20, 26, 36, .10), inset 0 -2px 0 var(--rot); }
.navi .rechts { margin-left: auto; color: var(--text-3); font-weight: 500; }
/* Hauptnavigation als rote Knöpfe (wie der Kontakt-Knopf der Firmenseite); der aktive Punkt ist anthrazit */
.navi { gap: 10px; padding: 14px 6px; }
.navi a { flex: none; }
.navi .rechts, .navi #abmelden { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1900px) { .navi .rechts .nach { display: none; } .navi a.haupt { padding-left: 18px; padding-right: 18px; } } /* bei wenig Platz nur der Vorname */
.navi .rechts { flex: 0 1 auto; min-width: 2.4em; overflow: hidden; text-overflow: ellipsis; } /* der Name gibt nach, Abmelden bleibt sichtbar */
.navi a.haupt { padding: 10px 21px; color: #fff; font-weight: 700; letter-spacing: .005em; background: linear-gradient(180deg, #dc1420, #b3060f); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 20px -6px rgba(227, 6, 19, .6), 0 1px 0 rgba(255, 255, 255, .24) inset; transition: background .15s, transform .12s, box-shadow .15s; }
.navi a.haupt:hover { color: #fff; background: linear-gradient(180deg, #f0262f, #c50a15); transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(227, 6, 19, .7), 0 1px 0 rgba(255, 255, 255, .28) inset; }
.navi a.haupt:active { transform: translateY(0); }
.navi a.haupt.aktiv { color: #fff; background: linear-gradient(180deg, #2f343c, #15181c); border-color: rgba(255, 255, 255, .14); box-shadow: 0 8px 20px -8px rgba(21, 24, 28, .65), inset 0 -3px 0 var(--rot); }
.navi a.haupt:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

main { flex: 1; width: 100%; max-width: none; margin: 0; padding: 20px var(--rand-x) 56px; display: flex; flex-direction: column; }
.laden { color: var(--text-3); }
h1 { font-size: 27px; letter-spacing: -0.015em; margin: 0 0 4px; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -0.005em; }
.unter { color: var(--text-2); margin: 0 0 18px; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pfad { font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.pfad a { color: var(--text-2); text-decoration: none; }
.pfad a:hover { text-decoration: underline; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--linie-2); background: rgba(255, 255, 255, .78); border-radius: var(--r-klein); padding: 8px 15px; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 14.5px; box-shadow: 0 1px 2px rgba(20, 26, 36, .05), var(--glanz); transition: background .15s, border-color .15s, transform .05s; }
.knopf:hover { background: #fff; border-color: rgba(20, 26, 36, .22); }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: linear-gradient(180deg, #2a2f37, #14181d); color: #fff; border-color: #14181d; box-shadow: 0 2px 8px rgba(20, 24, 29, .25); }
.knopf.haupt:hover { background: #000; }
.knopf.rot { background: linear-gradient(180deg, #f0262f, var(--rot)); color: #fff; border-color: var(--rot); box-shadow: 0 2px 10px rgba(227, 6, 19, .28); }
.knopf.rot:hover { background: var(--rot-dunkel); }
.knopf.klein { padding: 5px 11px; font-size: 13.5px; border-radius: 8px; }
.knopf.leise { background: transparent; box-shadow: none; border-style: dashed; color: var(--text-2); }
.knopf.leise:hover { background: rgba(255, 255, 255, .85); color: var(--text); border-style: solid; }
.knopf:disabled { opacity: .45; cursor: default; }
.ikon { border: 0; background: transparent; cursor: pointer; color: var(--text-3); padding: 4px 7px; border-radius: 7px; font-size: 13px; line-height: 1; }
.ikon:hover { background: rgba(255, 255, 255, .9); color: var(--text); }
.ikon.gefahr:hover { color: var(--rot); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Karten */
.karte { border-radius: var(--r-gross); padding: 18px 20px; margin-bottom: 16px; }
/* Jede Glaskarte ist eine eigene Ebene. Die Karte, in der gerade getippt wird, liegt oben,
   damit ihre Vorschlagsliste nicht hinter der nächsten Karte verschwindet. */
.karte:focus-within { position: relative; z-index: 6; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.karte-kopf h2 { margin: 0; }
.hinweis { color: var(--text-3); font-size: 13.5px; }
.warnung { color: var(--rot-dunkel); font-size: 13px; background: rgba(227, 6, 19, .06); border: 1px solid rgba(227, 6, 19, .14); border-radius: var(--r); padding: 8px 12px; margin: 0 0 14px; }

/* Übersicht: ein abgesetzter Block je Bereich, Klick auf den Kopf öffnet die Bereichsseite */
.bereichs-bloecke { display: flex; flex-direction: column; gap: 16px; }
.bereich-block { border-radius: var(--r-gross); overflow: hidden; }
.bb-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 18px; text-decoration: none; color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45)); border-bottom: 1px solid var(--linie-2); transition: background .15s; }
.bb-kopf:hover { background: rgba(255, 255, 255, .95); }
.bb-kopf:hover .bb-oeffnen { color: var(--rot); border-color: rgba(227, 6, 19, .45); }
.bb-text { display: flex; flex-direction: column; min-width: 0; }
.bb-text strong { font-size: 17px; letter-spacing: -0.01em; }
.bb-text .hinweis { overflow-wrap: anywhere; }
.bb-zahlen { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.bb-zahlen b { color: var(--text); }
.bb-oeffnen { font-size: 12.5px; font-weight: 700; color: var(--text-2); border: 1px solid var(--linie-2); border-radius: 999px; padding: 5px 12px; white-space: nowrap; transition: color .15s, border-color .15s; }
.bb-fuss { padding: 8px 18px 12px; border-top: 1px solid rgba(20, 26, 36, .045); }
.lb-nr { flex: none; width: 36px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(180deg, #f0262f, var(--rot)); box-shadow: 0 2px 8px rgba(227, 6, 19, .25); }
.lb-nr.gross { width: 52px; height: 42px; border-radius: 12px; font-size: 18px; }
.lb-reihe { display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 60px 180px; gap: 12px; align-items: center; padding: 9px 18px; cursor: pointer; transition: background .12s; border-top: 1px solid rgba(20, 26, 36, .045); }
.lb-reihe:first-of-type { border-top: 0; }
.lb-reihe:hover { background: rgba(255, 255, 255, .72); }
.lb-titel { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.lb-titel:hover { text-decoration: underline; }
.lb-stand { font-size: 13px; color: var(--text-2); }
.lb-aktion { text-align: right; }
.lb-leer { padding: 10px 18px; color: var(--text-3); font-size: 13px; }

/* Bereichsseite */
.bereich-kopf { margin-bottom: 18px; }
.bk-titel { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.bk-titel .unter { margin: 2px 0 0; overflow-wrap: anywhere; }
.reihe-karte h2 { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.protokoll-liste tr[data-href] { cursor: pointer; }
.protokoll-liste td.zahl, .protokoll-liste th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.marke-k { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--linie-2); background: rgba(255, 255, 255, .8); border-radius: 6px; padding: 1px 6px; margin-right: 6px; color: var(--text-2); text-align: center; }
.lb-reihe .marke-k { margin: 0; }
.zahl-offen { display: inline-block; background: rgba(245, 184, 0, .18); color: #7a5b00; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }

/* Tabellen */
table.liste { width: 100%; border-collapse: collapse; }
table.liste th { text-align: left; font-size: 11.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 7px 9px; border-bottom: 1px solid var(--linie); }
table.liste td { padding: 8px 9px; border-bottom: 1px solid var(--linie); vertical-align: top; overflow-wrap: anywhere; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr:hover td { background: rgba(255, 255, 255, .55); }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.status.entwurf { background: rgba(245, 160, 0, .16); color: #8a5a00; }
.status.festgeschrieben, .status.importiert { background: rgba(24, 133, 58, .13); color: #17652f; }
.tabellen-scroll { overflow-x: auto; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feld > span { font-size: 11.5px; color: var(--text-3); font-weight: 650; letter-spacing: .01em; }
.feld input, .feld select, .feld textarea, input.eingabe, select.eingabe, textarea.eingabe { border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 8px 10px; background: var(--feld); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(227, 6, 19, .55) !important; box-shadow: 0 0 0 3px rgba(227, 6, 19, .12); background: var(--feld-fokus) !important; }
input:disabled, select:disabled, textarea:disabled { background: rgba(255, 255, 255, .45); color: var(--text); }
.raster { display: grid; gap: 12px; }
.raster.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp2 { grid-column: span 2; }
.sp4 { grid-column: 1 / -1; }

/* Protokoll-Editor */
.leiste { position: sticky; top: 106px; z-index: 30; border-radius: var(--r-gross); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; background: rgba(255, 255, 255, .7); }
.leiste h1 { font-size: 18.5px; }
.speicherstand { font-size: 12.5px; color: var(--text-3); }
/* Restzeit bis zum Besprechungsende: bewusst klein und ruhig */
.restzeit { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 4px; }
/* Vollbild: nur die Protokollpunkte */
body.vollbild .kopf, body.vollbild .linie-oben, body.vollbild .k-neben, body.vollbild .leiste .pfad,
body.vollbild .leiste .knopfreihe > :not(#k-vollbild):not(.restzeit), body.vollbild .k-punkte > p.hinweis { display: none !important; }
body.vollbild main { padding-top: 10px; }
body.vollbild .leiste { position: sticky; top: 8px; padding: 7px 14px; margin-bottom: 10px; }
body.vollbild .leiste h1 { font-size: 16px; }
body.vollbild .leiste .knopf { padding: 5px 11px; font-size: 13px; }
.speicherstand.fehler { color: var(--rot); font-weight: 600; }
.personen-tabelle td { padding: 4px 6px; }
.personen-tabelle input { border: 1px solid transparent; background: transparent; padding: 5px 7px; border-radius: 8px; width: 100%; }
.personen-tabelle input:hover:not(:disabled) { border-color: var(--linie-2); background: rgba(255, 255, 255, .6); }
/* Anwesenheit: zwei Kästchen je Teilnehmer */
.personen-tabelle th.anw-kopf { width: 232px; }
.personen-tabelle td.anw { white-space: nowrap; vertical-align: middle; font-size: 13px; }
.personen-tabelle td.anw label { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; cursor: pointer; }
.personen-tabelle td.anw label:last-child { margin-right: 0; }
.personen-tabelle td.anw input { width: auto; padding: 0; }
.ohne-mail { color: var(--rot-dunkel); font-size: 12px; white-space: nowrap; }
.mit-mail { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }

.picker { position: relative; max-width: 560px; margin-top: 10px; }
.picker input { width: 100%; border: 1px dashed rgba(20, 26, 36, .28); border-radius: var(--r-klein); padding: 9px 12px; background: rgba(255, 255, 255, .6); }
.vorschlaege { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: rgba(255, 255, 255, .96); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten-hoch); max-height: 320px; overflow-y: auto; padding: 4px; }
.vorschlaege div { padding: 7px 10px; cursor: pointer; border-radius: 8px; }
.vorschlaege div.aktiv, .vorschlaege div:hover { background: rgba(227, 6, 19, .07); }
.vorschlaege small { color: var(--text-3); display: block; font-size: 12px; }
/* Erwähnungen mit @: Liste hängt an der Schreibstelle */
.vorschlaege.erw { position: fixed; left: 8px; top: 8px; right: auto; width: min(420px, calc(100vw - 16px)); max-height: 268px; z-index: 90; font-size: 14px; }
.vorschlaege.erw small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vorschlaege .erw-tn { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-left: 8px; }
.vorschlaege div.leer, .vorschlaege div.leer:hover { color: var(--text-3); cursor: default; background: none; }

.filterleiste { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: 13px; }
.filterleiste label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* Gliederung: Hauptpunkte und Unterpunkte, eingerückt nach Ebene */
.top { border: 1px solid rgba(20, 26, 36, .08); border-radius: 14px; margin-bottom: 10px; background: rgba(255, 255, 255, .72); box-shadow: 0 1px 2px rgba(20, 26, 36, .04); }
.top.e2 { margin-left: 26px; }
.top.e3 { margin-left: 52px; }
.top.e4 { margin-left: 78px; }
.top-kopf { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 13px 13px 0 0; }
/* Hauptpunkt: dunkler Balken mit roter Nummer, deutlich abgesetzt */
.top.e1 { margin-top: 20px; border-color: rgba(20, 24, 29, .2); }
#tops > .top.e1:first-child { margin-top: 0; }
.top.e1 > .top-kopf { background: linear-gradient(180deg, #2c3139, #1c2026); padding: 8px 10px; }
.top.e1 > .top-kopf input { color: #fff; -webkit-text-fill-color: #fff; }
.top.e1 > .top-kopf .top-nr { background: var(--rot); text-align: center; width: 58px; box-shadow: 0 2px 8px rgba(227, 6, 19, .35); }
.top.e1 > .top-kopf input:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.top.e1 > .top-kopf .top-nr:hover:not(:disabled) { background: #f0262f; }
.top.e1 > .top-kopf input:focus { color: var(--text); -webkit-text-fill-color: var(--text); }
.top.e1 > .top-kopf input:disabled { background: transparent; opacity: 1; }
.top.e1 > .top-kopf .top-nr:disabled { background: var(--rot); }
.top.e1 > .top-kopf .ikon { color: rgba(255, 255, 255, .72); }
.top.e1 > .top-kopf .ikon:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.top.e1 > .top-kopf .ikon.gefahr:hover { color: #ff6b70; }
.top.e1 .top-titel { text-transform: uppercase; letter-spacing: .03em; }
/* Unterpunkt: roter Akzent links, leicht rot getönt */
.top.e2 > .top-kopf { background: rgba(227, 6, 19, .075); box-shadow: inset 4px 0 0 var(--rot); }
.top.e2 > .top-kopf .top-nr { color: var(--rot-dunkel); -webkit-text-fill-color: var(--rot-dunkel); }
.top.e3 > .top-kopf, .top.e4 > .top-kopf { background: rgba(170, 175, 184, .16); box-shadow: inset 3px 0 0 rgba(227, 6, 19, .45); }
.top.e3 > .top-kopf .top-nr, .top.e4 > .top-kopf .top-nr { color: var(--rot-dunkel); -webkit-text-fill-color: var(--rot-dunkel); }
.top-kopf input { border: 1px solid transparent; background: transparent; font-weight: 700; padding: 4px 7px; border-radius: 8px; }
.top-kopf input:hover:not(:disabled) { border-color: rgba(20, 26, 36, .16); background: rgba(255, 255, 255, .5); }
.top-nr { width: 70px; flex: none; }
.top-titel { flex: 1; min-width: 0; }
.top-kopf .ikon { color: #3c424b; }
.top-werkzeuge { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.top-fuss { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 10px 9px; border-top: 1px solid rgba(20, 26, 36, .05); }
.eintraege:empty + .top-fuss { border-top: 0; }
.eintrag { border-top: 1px solid var(--linie); padding: 10px 12px 9px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 8px 16px; }
.eintrag:first-child { border-top: 0; }
.e-texte { display: flex; flex-direction: column; gap: 6px; }
.eintrag textarea { border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 8px 10px; width: 100%; resize: vertical; min-height: 44px; line-height: 1.45; background: rgba(255, 255, 255, .9); }
/* Neues aus dieser Besprechung in blauer Schrift, Erledigtes und Hinfälliges ausgegraut */
.eintrag textarea.neu { color: var(--blau); -webkit-text-fill-color: var(--blau); }
.eintrag.zu textarea, .eintrag.zu textarea.neu { color: #8d939c; -webkit-text-fill-color: #8d939c; background: rgba(236, 238, 241, .75); }
/* Hervorgehobener Eintrag: Textfelder gelb hinterlegt wie die Textzelle im PDF */
.eintrag.hervor textarea, .eintrag.hervor.zu textarea { background: #fff3a0; }
.neu-wort { color: var(--blau); font-weight: 600; }
.stand-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: start; padding-left: 14px; position: relative; }
.stand-block::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(227, 6, 19, .35); }
.stand-block textarea { min-height: 34px; }
/* Aufgabenverfolgung: Notizen am Eintrag und die Seite Aufgabennachverfolgung */
.e-aufgaben { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.e-aufgabe { border-left: 3px solid #5d6b82; background: rgba(93, 107, 130, .08); border-radius: 0 8px 8px 0; padding: 6px 10px; }
.e-aufgabe-weg { float: right; margin: -2px -4px 0 8px; }
.e-aufgabe.zu { color: #8d939c; }
.e-aufgabe.zu strong { color: inherit; }
.a-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.a-stand { margin-top: 2px; overflow-wrap: anywhere; }
.a-neu { display: flex; gap: 6px; margin-top: 8px; }
.a-neu input { flex: 1; min-width: 0; padding: 6px 9px; font-size: 13px; }
/* Seite Aufgabennachverfolgung: Filterleiste und knappe Liste. Ein Klick auf eine Zeile öffnet das Fenster der Aufgabe. */
.a-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 14px 18px; }
.a-filter .textknopf { padding: 9px 0; white-space: nowrap; }
.seitenkopf > #a-neu { margin-bottom: 18px; } /* gleicher Abstand zur Filterleiste wie der Text links */
.a-liste tr.a-zeile { cursor: pointer; }
.a-liste tr.a-zeile:focus-visible { outline: 2px solid var(--rot); outline-offset: -2px; }
.a-liste tr.a-zeile.zu td { color: #8d939c; }
.a-liste tr.a-zeile.zu strong, .a-liste tr.a-zeile.zu a, .a-liste tr.a-zeile.zu .a-kat { color: inherit; }
.a-frist { width: 112px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-frist.ueber { color: var(--rot-dunkel); font-weight: 700; }
.a-ueber { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rot-dunkel); }
.a-kat { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: rgba(93, 107, 130, .14); color: #3d4859; }
/* Stand einer Aufgabe als kleines Etikett: offen, überfällig, erledigt */
.a-stat { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: rgba(245, 160, 0, .16); color: #8a5a00; white-space: nowrap; }
.a-stat.ueber { background: rgba(227, 6, 19, .1); color: var(--rot-dunkel); }
.a-stat.zu { background: rgba(24, 133, 58, .13); color: #17652f; }
/* Reiter über der Liste: alle Aufgaben oder nur die eigenen offenen, mit Zahl */
.a-reiter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.a-reiter button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linie-2); background: rgba(255, 255, 255, .62); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.a-reiter button:hover { background: #fff; color: var(--text); }
.a-reiter button.aktiv { background: linear-gradient(180deg, #2f343c, #15181c); color: #fff; border-color: #15181c; box-shadow: inset 0 -3px 0 var(--rot); }
.a-zahl { display: inline-block; min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--rot); color: #fff; }
.a-zahl.null { background: rgba(20, 26, 36, .12); color: var(--text-2); }
.a-reiter button.aktiv .a-zahl.null { background: rgba(255, 255, 255, .22); color: #fff; }
.a-mailwahl { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.a-mailwahl input { width: 17px; height: 17px; flex: none; }
/* Fenster einer Aufgabe: oben der Titel zum Ändern, links der Inhalt, rechts die Angaben, darunter Stände und Erledigen */
.a-fenster .dialog { width: min(1040px, 100%); }
.a-fenster .dialog:focus { outline: none; }
.a-fenster .dialog-fuss .a-loeschen { margin-right: auto; color: var(--text-3); }
.a-fenster .dialog-fuss .a-loeschen:hover { color: var(--rot); }
.af { display: flex; flex-direction: column; gap: 20px; }
.af h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.af-titel { width: 100%; min-width: 0; border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 9px 12px; background: var(--feld); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.af-titel.fest { border: 0; background: none; padding: 0; } /* nur lesbar bei Zugängen mit der Rolle „nur eigene Aufgaben“ */
.af-raster { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.af-links { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.af-text { display: block; width: 100%; min-width: 0; min-height: 70px; border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 9px 11px; background: var(--feld); font-size: 15px; line-height: 1.5; resize: vertical; overflow: hidden; } /* Aufgabentext zum Ändern, wächst mit dem Inhalt */
.af-klein { font-size: 12.5px; margin-top: 4px; }
.af-punkt { max-height: 180px; overflow-y: auto; padding: 9px 11px; background: rgba(255, 255, 255, .6); border: 1px solid var(--linie); border-radius: 8px; font-size: 13.5px !important; color: var(--text-2); }
.af-anhaenge { display: flex; flex-direction: column; gap: 3px; font-size: 14px; overflow-wrap: anywhere; }
.af-rechts { display: flex; flex-direction: column; gap: 11px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .62); min-width: 0; }
.af-zeile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; overflow-wrap: anywhere; }
.af-zeile > span { font-size: 12.5px; color: var(--text-3); }
.af-zeile .hinweis { font-size: 12.5px; }
.af-zeile .textknopf { display: block; margin-top: 3px; }
.af-zeile input[type=date], .af-zeile select { width: 100%; min-width: 0; border: 1px solid var(--linie-2); border-radius: 8px; padding: 6px 9px; background: rgba(255, 255, 255, .85); }
.af-ende { border-top: 1px solid var(--linie); padding-top: 18px; }
.af-er { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.af-er textarea { resize: vertical; min-height: 62px; }
.af-er-fuss { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 10px; }
.af-er-fuss .knopf { flex: none; }
/* Anlagen zum Erledigungsvermerk: noch nicht gespeicherte als kleine Karten, gespeicherte Bilder als Vorschau */
.af-anl-kopf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.af-anl-liste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.af-anl-liste:empty { display: none; }
.af-anl { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 1px solid var(--linie-2); border-radius: 10px; background: rgba(255, 255, 255, .7); padding: 4px 4px 4px 8px; font-size: 13px; }
.af-anl img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; margin-left: -4px; }
.af-anl-name { overflow-wrap: anywhere; font-weight: 600; }
.af-bilder { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.af-bilder img { display: block; max-width: 240px; max-height: 170px; border: 1px solid var(--linie-2); border-radius: 8px; background: #fff; }
.af-bilder.klein img { max-width: 150px; max-height: 110px; }
.af-bild { position: relative; display: inline-block; }
.af-bild .ikon { position: absolute; top: 5px; right: 5px; background: rgba(255, 255, 255, .94); border: 1px solid var(--linie-2); border-radius: 8px; }
/* Bild groß in der Seite: dunkler Grund, Kreuz oben rechts, Esc oder ein Klick neben das Bild schließt */
.bild-gross { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 64px 20px 64px; background: rgba(12, 14, 18, .9); cursor: zoom-out; }
.bild-gross img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: default; }
.bg-zu { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.bg-zu:hover, .bg-zu:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.bg-fuss { position: fixed; left: 12px; right: 12px; bottom: 18px; display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: center; align-items: center; color: rgba(255, 255, 255, .8); font-size: 13.5px; cursor: default; }
.bg-fuss a { color: #fff; font-weight: 600; }
.af-anhaenge .ikon { margin-left: 4px; }
.a-neu .knopf { flex: none; }
@media (max-width: 1100px) { .a-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Handybreite: Filter zweispaltig, jede Aufgabe als Block, das Fenster einspaltig */
@media (max-width: 760px) {
  .a-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
  .a-filter .textknopf { grid-column: 1 / -1; padding: 6px 0; }
  .a-filter select { min-height: 40px; }
  .a-liste, .a-liste tbody { display: block; }
  .a-liste thead { display: none; }
  .a-liste tr.a-zeile { display: flex; flex-direction: column; gap: 3px; padding: 11px 4px; border-bottom: 1px solid var(--linie); }
  .a-liste tr.a-zeile td { display: block; padding: 0; border: 0; width: auto; }
  .a-liste tr.a-zeile td.a-titel { order: -1; } /* zuerst der Titel, darunter Frist, Kategorie, Person, Herkunft */
  .a-liste tr.a-zeile td:empty { display: none; }
  .a-liste tr.a-zeile:hover td { background: none; }
  .a-frist { width: auto; }
  .a-frist::before { content: "Frist "; color: var(--text-3); font-weight: 400; } /* ohne Spaltenkopf braucht das Datum sein Wort */
  .a-frist br { display: none; }
  .a-ueber { margin-left: 8px; }
  .a-neu { flex-wrap: wrap; }
  .a-neu input.eingabe { flex-basis: 100%; min-height: 40px; } /* das Feld bekommt die ganze Zeile, die Knöpfe stehen darunter */
  .a-neu .knopf, .a-reiter button, .af-zeile input[type=date], .af-zeile select { min-height: 40px; }
  .af-raster, .af-er { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .af-titel { font-size: 18px; }
  .af-er-fuss { flex-direction: column; align-items: stretch; }
  .a-fenster.dialog-hg { padding: 12px 8px; }
}
/* Dialog „Aufgabe an Person senden“: je ein Suchfeld für verantwortlich und in Kopie, darunter die Gewählten */
.a-block { display: flex; flex-direction: column; gap: 6px; }
.a-block .picker { margin-top: 0; max-width: none; }
.a-gewaehlt { display: flex; flex-direction: column; gap: 6px; }
.a-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 8px; align-items: center; padding: 6px 8px 6px 12px; border: 1px solid var(--linie-2); border-radius: 10px; background: rgba(11, 79, 208, .05); }
.a-pname { font-weight: 600; overflow-wrap: anywhere; }
.a-pname .hinweis { font-weight: 400; }
.a-person.a-datei { grid-template-columns: minmax(0, 1fr) auto auto; background: rgba(255, 255, 255, .7); }
.a-person input { border: 1px solid var(--linie-2); border-radius: 7px; padding: 5px 8px; width: 100%; min-width: 0; background: rgba(255, 255, 255, .9); }
@media (max-width: 640px) { .a-person { grid-template-columns: minmax(0, 1fr) auto; } .a-person input { grid-column: 1 / -1; grid-row: 2; } }
/* Bilder am Eintrag (eingefügte Bildschirmfotos) */
.e-bilder { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.e-bilder figure { margin: 0; position: relative; border: 1px solid var(--linie-2); border-radius: 10px; background: #fff; padding: 4px; max-width: 100%; }
.e-bilder img { display: block; height: auto; max-width: 100%; border-radius: 6px; } /* Breite und Seitenverhältnis stehen am Bild */
.e-bilder figure button { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .94); border: 1px solid var(--linie-2); border-radius: 8px; }
.e-links { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.e-oben { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.e-oben input.bespr { width: 96px; border: 1px solid var(--linie-2); border-radius: 7px; padding: 3px 7px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .8); }
.e-oben label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.e-rechts { display: flex; flex-direction: column; gap: 6px; }
.e-rechts .zeile { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.e-rechts .zeile.oben { align-items: start; }
.e-rechts .zeile.oben > span { padding-top: 6px; }
.e-rechts select, .e-rechts input[type=date] { border: 1px solid var(--linie-2); border-radius: 8px; padding: 5px 8px; width: 100%; min-width: 0; background: rgba(255, 255, 255, .85); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--linie-2); border-radius: 8px; padding: 3px 4px; background: rgba(255, 255, 255, .85); min-height: 32px; transition: border-color .15s, box-shadow .15s; }
.chips:focus-within { border-color: rgba(227, 6, 19, .55); box-shadow: 0 0 0 3px rgba(227, 6, 19, .12); background: #fff; }
.chip { background: rgba(20, 26, 36, .07); border-radius: 999px; padding: 2px 4px 2px 9px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 1px; color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--text-3); padding: 0 4px; border-radius: 999px; line-height: 1.2; }
.chip button:hover { color: var(--rot); background: rgba(255, 255, 255, .8); }
.chips input.v-eingabe { border: 0 !important; box-shadow: none !important; background: transparent !important; flex: 1; min-width: 80px; padding: 3px 4px !important; font-size: 12.5px; outline: none; }
.e-werkzeuge { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.v-zeile { display: flex; gap: 2px; align-items: center; min-width: 0; }
.v-zeile select { flex: 1; min-width: 0; }
.textknopf { background: none; border: 0; padding: 1px 0; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; justify-self: start; }
.textknopf:hover { color: var(--rot); }
.sym { display: inline-block; width: 14px; text-align: center; font-weight: 700; }
.sym.offen { color: var(--gelb); } .sym.erledigt { color: var(--gruen); } .sym.hinfaellig { color: #e06a6a; } .sym.zurueckgestellt { color: #555; }
.eintrag.zu .e-oben, .eintrag.zu .e-rechts { opacity: .6; }
.nur-offen .eintrag:not(.ist-offen) { display: none; }
.nur-offen .top:not(.hat-offen) { display: none; }
.nur-offen .top-fuss, .nur-offen .unter-leiste { display: none; }
.unter-leiste { margin: -2px 0 12px; }
.unter-leiste.e2 { margin-left: 26px; } .unter-leiste.e3 { margin-left: 52px; } .unter-leiste.e4 { margin-left: 78px; }
.blitz { animation: blitz 1.6s ease-out; }
@keyframes blitz { 0% { box-shadow: 0 0 0 3px rgba(227, 6, 19, .45); } 100% { box-shadow: 0 0 0 3px rgba(227, 6, 19, 0); } }

/* Auswahl Verantwortliche */
.v-pop { position: fixed; z-index: 80; border-radius: 14px; max-height: 340px; overflow-y: auto; padding: 5px; background: rgba(255, 255, 255, .86); box-shadow: var(--schatten-hoch), var(--glanz); }
.v-gruppe { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 7px 10px 3px; }
.v-z { padding: 6px 10px; border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; }
.v-z span { font-size: 13px; font-weight: 600; }
.v-z.v-k span { font-weight: 600; }
.v-z small { font-size: 11.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-z.v-f span { font-weight: 500; color: var(--text-2); }
.v-z:hover, .v-z.aktiv { background: rgba(227, 6, 19, .08); }
.v-leer { padding: 8px 10px; font-size: 12px; color: var(--text-3); }

.anlagen-zone { border: 1.5px dashed rgba(20, 26, 36, .22); border-radius: var(--r); padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; background: rgba(255, 255, 255, .35); }
.anlagen-zone.drueber { border-color: var(--rot); background: rgba(227, 6, 19, .05); }

/* Dialog */
.dialog-hg { position: fixed; inset: 0; background: rgba(28, 33, 42, .30); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.dialog { border-radius: 20px; width: min(900px, 100%); background: rgba(255, 255, 255, .86); box-shadow: var(--schatten-hoch), var(--glanz); }
.dialog-kopf { padding: 16px 20px; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; align-items: center; }
.dialog-kopf h2 { margin: 0; }
.dialog-inhalt { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.dialog-fuss { padding: 14px 20px; border-top: 1px solid var(--linie); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; background: rgba(255, 255, 255, .45); border-radius: 0 0 20px 20px; }
.empfaenger { max-height: 300px; overflow-y: auto; border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .5); }
.empfaenger table td { padding: 5px 8px; }
.empfaenger input[type=email] { border: 1px solid var(--linie-2); border-radius: 7px; padding: 4px 7px; width: 100%; background: rgba(255, 255, 255, .85); }

/* Anmeldung */
.anmeldung { max-width: 430px; width: 100%; margin: 9vh auto; border-radius: 22px; padding: 30px; }
.anmeldung img { height: 52px; margin-bottom: 18px; }
.anmeldung form { display: flex; flex-direction: column; gap: 12px; }
.anmeldung .knopf { justify-content: center; padding: 10px; }
.textlink { background: none; border: 0; color: var(--text-2); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }

.meldung { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(20, 24, 29, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); max-width: 90vw; }
.meldung.fehler { background: rgba(179, 5, 16, .92); }

@media (min-width: 1500px) {
  .eintrag { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1320px) {
  .navi a { padding: 8px 11px; font-size: 14.5px; }
  .navi { gap: 8px; }
  .navi a.haupt { padding: 9px 16px; }
  .kopf { gap: 18px; height: 88px; }
  .marke img { height: 52px; }
  .partner { gap: 20px; padding-left: 18px; height: 52px; }
  .partner .p-stb { height: 48px; }
  .partner .p-rk { height: 36px; }
  .leiste { top: 96px; }
}
@media (max-width: 1100px) {
  .navi .rechts { max-width: 8.5em; }
  .navi { gap: 5px; padding-left: 2px; padding-right: 2px; }
  .navi a.haupt { padding: 8px 11px; font-size: 13.5px; }
  .navi a { padding-left: 8px; padding-right: 8px; }
  .kopf { gap: 14px; height: 78px; }
  .marke img { height: 44px; }
  .partner { gap: 14px; padding-left: 14px; height: 44px; }
  .partner .p-stb { height: 38px; }
  .partner .p-rk { height: 28px; }
  .leiste { top: 86px; }
  .bb-kopf { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bb-oeffnen { display: none; }
  .lb-reihe { grid-template-columns: 64px minmax(0, 1fr) auto; padding-left: 18px; }
  .lb-stand { grid-column: 2; font-size: 12.5px; }
  .lb-offen { grid-column: 3; grid-row: 1; text-align: right; }
  .lb-aktion { grid-column: 3; grid-row: 2; }
  .lb-leer { padding-left: 18px; }
}
@media (max-width: 860px) {
  .eintrag { grid-template-columns: minmax(0, 1fr); }
  .raster.k4, .raster.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kopf { gap: 12px; }
  .marke img { height: 40px; }
  .kopf { height: 66px; }
  .partner { display: none; }
  .top.e2, .unter-leiste.e2 { margin-left: 12px; } .top.e3, .unter-leiste.e3 { margin-left: 24px; } .top.e4, .unter-leiste.e4 { margin-left: 36px; }
  .leiste { position: static; }
}
@media (max-width: 560px) {
  .raster.k4, .raster.k3, .raster.k2 { grid-template-columns: minmax(0, 1fr); }
  .sp2 { grid-column: auto; }
  main { padding: 14px 10px 48px; }
  input, select, textarea { font-size: 16px; }
  .bb-kopf { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px; }
  .bb-zahlen { grid-column: 2; white-space: normal; flex-wrap: wrap; }
  .lb-reihe { grid-template-columns: minmax(0, 1fr) auto; }
  .lb-reihe .marke-k { display: none; }
  .lb-titel, .lb-stand { grid-column: 1; }
  .lb-offen { grid-column: 2; }
  .lb-aktion { grid-column: 1 / -1; grid-row: auto; text-align: left; }
}
@media print { .kopf, .leiste, .linie-oben { display: none; } }

/* Leseansicht festgeschriebener Protokolle */
.nur-lesen .bearbeiten { display: none !important; }
.nur-lesen .chips input { display: none; }
code { font-size: 12px; background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

/* Zurück-Knopf in der Leiste des Protokolls */
.knopf.zurueck { display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; }
.knopf.zurueck svg { width: 15px; height: 15px; flex: none; }

/* Kopfzeile: Größen je Fensterbreite. Steht am Ende, damit es die Angaben weiter oben ersetzt.
   Maßgabe: Logos so groß wie möglich, aber „Abmelden“ muss immer ganz sichtbar bleiben. */
@media (max-width: 1720px) {
  .kopf { gap: 18px; height: 88px; } .marke img { height: 52px; }
  .partner { gap: 20px; padding-left: 18px; height: 52px; } .partner .p-stb { height: 48px; } .partner .p-rk { height: 36px; }
  .leiste { top: 96px; } .navi { gap: 5px; } .navi a.haupt { padding: 9px 11px; } /* fünf Knöpfe seit dem Reiter Aufgaben */
}
@media (max-width: 1480px) {
  .kopf { gap: 14px; } .partner { gap: 16px; padding-left: 14px; }
  .navi { gap: 5px; padding-left: 2px; padding-right: 2px; }
  .navi a { font-size: 14px; } .navi a.haupt { padding: 8px 8px; font-size: 13px; }
  .navi .rechts, .navi #abmelden { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 1300px) {
  .kopf { height: 78px; } .marke img { height: 44px; }
  .partner { gap: 14px; height: 44px; } .partner .p-stb { height: 38px; } .partner .p-rk { height: 28px; }
  .leiste { top: 86px; }
}
@media (max-width: 1200px) {
  .marke img { height: 38px; } .partner { gap: 10px; padding-left: 10px; } .partner .p-stb { height: 32px; } .partner .p-rk { height: 24px; }
  .navi .rechts { min-width: 0; }
  /* seit dem Reiter „Aufgaben“ stehen fünf Knöpfe in der Leiste: hier etwas enger, damit der Vorname lesbar bleibt */
  .navi { gap: 4px; } .navi a.haupt { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 1120px) { .partner { display: none; } }
@media (max-width: 860px) { .kopf { gap: 12px; height: 66px; } .marke img { height: 40px; } .leiste { position: static; } }
