/* Stilvorlage des Portals. Handgeschrieben, ohne Bauwerkzeug.
   Alle Farben sind Variablen. Ihre Werte stehen in genau zwei Sätzen (hell, dunkel) in /farben.css,
   die das Portal aus den Einstellungen erzeugt. Hier steht kein fester Farbwert.
   Regeln (tests/test_regeln_oberflaeche.py): nichts unter 13 px, keine Versalien mit Sperrung, keine Schatten,
   keine getönten Flächen, keine farbigen Randbalken. Feine Linien statt Schatten, Status als schlichtes Wort. */

@font-face { font-family: "Lato"; src: url("schriften/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("schriften/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("schriften/Lato-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("schriften/Montserrat-var.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
html[data-darstellung="dunkel"] { color-scheme: dark; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.5 Lato, system-ui, sans-serif; }
h1, h2, h3 { font-family: Montserrat, system-ui, sans-serif; margin: 0; line-height: 1.25; }
p { margin: 0 0 12px; }
a { color: var(--akzent); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sym { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zum-inhalt { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; border-radius: 9px; background: var(--karte); color: var(--text); border: 2px solid var(--akzent); }
.zum-inhalt:focus { left: 8px; }

/* Kürzel und Fotos: Firmen als Feld, Personen als Kreis mit feiner Linie, ohne Tönung */
.logo-kachel { width: 32px; height: 32px; border-radius: 8px; background: var(--marke); color: var(--auf-marke); font: 700 13px Montserrat, sans-serif; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.logo-kachel img { width: 100%; height: 100%; object-fit: contain; }
.logo-kachel.kunde { background: var(--kunde); }
.kz { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--kreis); display: grid; place-items: center; flex-shrink: 0; color: var(--text); font: 600 13px "IBM Plex Mono", ui-monospace, monospace; }
.foto { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Wortmarke: in der Leiste hell auf dunkel, auf hellen Seiten dunkel */
.wortmarke { display: block; text-decoration: none; color: var(--text); font: 800 19px/1.15 Montserrat, sans-serif; letter-spacing: -.01em; }
.wortmarke span { display: block; color: var(--akzent); font-weight: 600; }
.wortmarke img { display: block; max-width: 180px; max-height: 48px; }

/* Hülle: Seitenleiste und Inhalt */
.huelle { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.leiste { background: var(--leiste); color: var(--auf-leiste); border-right: 1px solid var(--leiste-rand); display: flex; flex-direction: column; min-height: 100vh; padding: 26px 18px 22px; }
.leiste :focus-visible { outline-color: var(--leiste-gold); }
.leiste .wortmarke { color: var(--leiste-text); padding: 0 8px; }
.leiste .wortmarke span { color: var(--leiste-gold); }
.leiste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.leiste-inhalt { display: flex; flex-direction: column; flex: 1; }
.menue-knopf { display: none; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--leiste-linie); border-radius: 9px; background: transparent; color: var(--leiste-text); font: 700 14px Montserrat, sans-serif; cursor: pointer; }
.firma { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; padding: 12px 10px; border-top: 1px solid var(--leiste-linie); border-bottom: 1px solid var(--leiste-linie); color: var(--leiste-text); font-weight: 700; font-size: 15px; line-height: 1.3; }
.firma .logo-kachel { width: 36px; height: 36px; font-size: 14px; }
.mandatwechsel { margin: 26px 0 20px; border-top: 1px solid var(--leiste-linie); border-bottom: 1px solid var(--leiste-linie); }
.mandatwechsel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 10px; color: var(--leiste-text); font-weight: 700; font-size: 15px; line-height: 1.3; }
.mandatwechsel summary::-webkit-details-marker { display: none; }
.mandatwechsel summary .sym { margin-left: auto; width: 16px; height: 16px; color: var(--auf-leiste-grau); }
.mandatwechsel ul { list-style: none; margin: 0; padding: 0 0 10px; }
.mandatwechsel li a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--auf-leiste); text-decoration: none; font-size: 15px; }
.mandatwechsel li a:hover, .mandatwechsel li a[aria-current="true"] { background: var(--leiste-aktiv); color: var(--leiste-text); }
.leiste nav { flex: 1; }
.leiste ul { list-style: none; margin: 0; padding: 0; }
.punkt { display: flex; width: 100%; align-items: center; gap: 13px; min-height: 44px; padding: 11px 12px; margin-bottom: 2px; border: 0; border-radius: 9px; background: none; color: var(--auf-leiste); font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.punkt:hover { background: var(--leiste-aktiv); color: var(--leiste-text); }
.punkt[aria-current="page"] { background: var(--leiste-aktiv); color: var(--leiste-text); font-weight: 700; }
.punkt[aria-current="page"] .sym { color: var(--gold); }
.zahl { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: var(--auf-gold); font: 600 13px/1 "IBM Plex Mono", ui-monospace, monospace; }
.ansprech { margin-top: auto; border-top: 1px solid var(--leiste-linie); padding: 20px 6px 0; }
.ansprech .wer { display: flex; align-items: center; gap: 12px; }
.ansprech .foto, .ansprech .kz { width: 46px; height: 46px; }
.ansprech .kz { color: var(--leiste-text); border-color: var(--auf-leiste-grau); }
.ansprech b { display: block; color: var(--leiste-text); font-size: 15px; }
.ansprech small { display: block; color: var(--auf-leiste-grau); font-size: 14px; }
.schreib { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 12px; border: 1px solid var(--gold-rand); border-radius: 9px; color: var(--leiste-gold); font: 700 14px Montserrat, sans-serif; text-decoration: none; }
.schreib .sym { width: 18px; height: 18px; }

/* Kopfzeile der Inhaltsfläche: Ort, Frage stellen, Menü der Person */
.haupt { min-width: 0; display: flex; flex-direction: column; }
.oben { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 44px; border-bottom: 1px solid var(--linie); }
.ort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--grau); font: 600 15px Montserrat, sans-serif; }
.ort a { color: var(--grau); text-decoration: none; }
.ort a:hover { text-decoration: underline; }
.ort b { color: var(--text); font-weight: 700; }
.ort .sym { width: 16px; height: 16px; }
.oben .frage { margin-left: auto; }
.ich { position: relative; }
.ich summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 12px 5px 6px; border: 1px solid var(--linie); border-radius: 999px; color: var(--text); font-size: 15px; }
.ich summary::-webkit-details-marker { display: none; }
.ich summary .kz { width: 32px; height: 32px; }
.ich summary .sym { width: 16px; height: 16px; color: var(--grau); }
.ich-menue { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 260px; padding: 8px; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; }
.ich-menue form { margin: 0; }
.ich-menue .wer { padding: 8px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--linie); }
.ich-menue .wer b { display: block; font-size: 15px; }
.ich-menue .wer span { display: block; color: var(--grau); font-size: 14px; overflow-wrap: anywhere; }
.ich-menue a, .ich-menue button { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.ich-menue a:hover, .ich-menue button:hover, .ich-menue a[aria-current="page"] { background: var(--auswahl); }
.ich-menue .sym { width: 18px; height: 18px; color: var(--grau); }
.ich-menue hr { border: 0; border-top: 1px solid var(--linie); margin: 6px 4px; }
.inhalt { padding: 40px 44px 56px; max-width: 1240px; width: 100%; }

/* Seitenkopf */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 30px; }
.seitenkopf h1, .karte-seite h1 { font-size: 34px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.seitenkopf > h1, .seitenkopf > .unter { flex-basis: 100%; }
.seitenkopf .unter { margin: 0; font-size: 17px; }
.seitenkopf .rechts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gruss { margin-bottom: 32px; }
.gruss h1 { font-size: 40px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.gruss p { margin: 8px 0 0; font-size: 18px; color: var(--grau); }
.unter { color: var(--grau); margin: 4px 0 0; }

/* Blöcke und Zeilen */
.block { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.block > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 22px; }
.block > header h2 { font-size: 16px; font-weight: 700; }
.block > header .n { margin-left: auto; font-size: 15px; color: var(--grau); }
.block > footer { border-top: 1px solid var(--linie-zart); padding: 14px 22px; }
.zeile { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 22px; border-top: 1px solid var(--linie-zart); }
.zeile .was { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.zeile.fertig .was { color: var(--grau); }
a.was { color: var(--text); text-decoration: none; }
a.was:hover { text-decoration: underline; }
.zeile .datum, .zeile time { font: 500 14px "IBM Plex Mono", ui-monospace, monospace; color: var(--grau); white-space: nowrap; }
.weiter { display: inline-flex; gap: 8px; align-items: center; color: var(--akzent); font: 700 14px Montserrat, sans-serif; text-decoration: none; }
.weiter .sym { width: 17px; height: 17px; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.leise-satz { margin: 0; font-size: 14px; color: var(--grau); }

/* Karten der bisherigen Seiten: dieselbe Fläche wie ein Block, mit Innenabstand */
.raster { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.karte, .karte-seite { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; margin-bottom: 24px; }
.karte h2, .karte h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.leer { color: var(--grau); margin: 0; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 10px 0; border-top: 1px solid var(--linie-zart); }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste li:last-child { padding-bottom: 0; }
.liste a { font-weight: 700; }
.liste .zeit { display: block; color: var(--grau); font-size: 14px; }

/* Tabellen wie im Explorer */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; vertical-align: middle; }
.tabelle th { padding: 13px 18px 13px 0; border-bottom: 1px solid var(--linie); color: var(--grau); font: 700 14px Lato, sans-serif; }
.tabelle td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--linie-zart); font-size: 16px; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 0; }
.tabelle .r { text-align: right; }
.tabelle td.mono, .tabelle td .mono { font-size: 14px; color: var(--grau); white-space: nowrap; }
.tabelle td.leise { color: var(--grau); font-size: 15px; }
.tabelle details summary { cursor: pointer; font-weight: 700; }
.tabelle tfoot th, .tabelle tfoot td { font-weight: 700; color: var(--text); border-top: 1px solid var(--linie); }
.block .tabelle th:first-child, .block .tabelle td:first-child { padding-left: 22px; }
.block .tabelle th:last-child, .block .tabelle td:last-child { padding-right: 22px; }
.name { display: inline-flex; align-items: center; gap: 12px; color: var(--akzent); font-weight: 700; text-decoration: none; }
.name .sym { color: var(--grau); }
.zelle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.neu { color: var(--akzent); font: 700 14px Lato, sans-serif; }

/* Knöpfe: gefüllt nur für die Handlung, umrandet für alles andere */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--marke-rand); border-radius: 9px; background: var(--marke); color: var(--auf-marke); font: 700 14px Montserrat, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.knopf:hover { filter: brightness(1.08); }
.knopf .sym { width: 17px; height: 17px; }
.knopf-zweit { background: transparent; color: var(--akzent); border-color: var(--akzent); }
.knopf-klein { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.knopf-voll { width: 100%; min-height: 48px; font-size: 15px; }
.knopf-text { display: inline; padding: 0; border: 0; background: none; color: var(--akzent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.wahl { display: inline-flex; border: 1px solid var(--linie); border-radius: 10px; padding: 3px; }
.wahl a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: 7px; color: var(--grau); font: 600 14px Montserrat, sans-serif; text-decoration: none; }
.wahl a[aria-current="page"] { background: var(--marke); color: var(--auf-marke); }

/* Status als schlichtes Wort: Gold liegt bei dir, Petrol bin ich dran, Grau geplant oder erledigt */
.status, .stand { color: var(--grau); font-size: 15px; white-space: nowrap; }
.status-achtung, .status-arbeit, .stand-arbeit { color: var(--akzent); font-weight: 700; }
.status-dir, .stand-dir { color: var(--gold-text); font-weight: 700; }
.status-gut { color: var(--grau); }
.status-fehler { color: var(--fehler); font-weight: 700; }

/* Formulare */
label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.feldgruppe { margin-bottom: 18px; }
input[type="email"], input[type="password"], input[type="text"], input[type="date"], select, textarea { display: block; width: 100%; max-width: 420px; min-height: 48px; padding: 0 14px; border: 1px solid var(--feld-rand); border-radius: 9px; background: var(--karte); color: var(--text); font: inherit; }
textarea { min-height: 120px; padding: 10px 14px; max-width: 680px; }
input[type="file"] { max-width: 100%; color: var(--text); font: inherit; }
.hilfe { color: var(--grau); font-size: 14px; margin: 6px 0 0; }
.hinweis { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); }
.hinweis-fehler { border-color: var(--fehler); color: var(--text); }
.hinweiszeile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 22px; }
.hinweiszeile p { margin: 0; flex: 1; font-size: 16px; }

/* Faden: die Beiträge eines Gesprächs als Zeitleiste */
.beitraege { list-style: none; margin: 0 0 16px; padding: 0; }
.beitrag { position: relative; padding: 0 0 22px; }
.beitrag-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; color: var(--grau); font-size: 14px; }
.beitrag-kopf b { color: var(--text); font-size: 16px; }
.beitrag-agentur .beitrag-kopf b { color: var(--akzent); }
.beitrag p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; max-width: 680px; }

/* Zeitleiste der Nachrichten */
.zeitleiste { max-width: 860px; }
.tageskopf { display: flex; gap: 10px; align-items: baseline; margin: 8px 0 18px; color: var(--text); font: 700 15px Montserrat, sans-serif; }
.tageskopf .mono { font-size: 14px; color: var(--grau); }
.eintrag { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 28px; }
.eintrag::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 1px; background: var(--linie); }
.eintrag:last-child::before { display: none; }
.eintrag .kz, .eintrag .foto { width: 44px; height: 44px; }
.eintrag .von { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.eintrag .von b { font-size: 16px; }
.eintrag .von .mono { font-size: 14px; color: var(--grau); }
.eintrag .bezug { margin-top: 2px; font-size: 15px; color: var(--grau); }
.eintrag .bezug a { color: var(--akzent); font-weight: 700; text-decoration: none; }
.eintrag .bezug .stand { margin-left: 18px; }
.eintrag p { margin: 10px 0 0; max-width: 680px; white-space: pre-line; overflow-wrap: anywhere; }

/* Fortschritt ohne Skript und ohne Inline-Stil: ein progress-Element */
.fortschritt { display: block; width: 100%; height: 6px; margin: 8px 0 12px; border: 0; border-radius: 99px; background: var(--spur); color: var(--akzent); accent-color: var(--akzent); -webkit-appearance: none; appearance: none; overflow: hidden; }
.fortschritt::-webkit-progress-bar { background: var(--spur); border-radius: 99px; }
.fortschritt::-webkit-progress-value { background: var(--akzent); border-radius: 99px; }
.fortschritt::-moz-progress-bar { background: var(--akzent); border-radius: 99px; }
.fortschritt-klein { min-width: 120px; margin: 0; }
.fort { width: 240px; flex-shrink: 0; font-size: 14px; color: var(--grau); }
.fort .mono { color: var(--text); }
.fort .fortschritt { margin-bottom: 0; }

/* Reiter über den Modulen eines Menüpunkts */
.reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 28px; border-bottom: 1px solid var(--linie); }
.einleitung { margin: -12px 0 24px; }
.reiter a { display: block; padding: 12px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--grau); font: 600 15px Montserrat, sans-serif; text-decoration: none; }
.reiter a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--akzent); }

/* Ziele im Kundenboard */
.ziel > header { align-items: flex-start; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--linie-zart); }
.ziel > header > div:first-child { flex: 1; min-width: 0; }
.ziel > header h2 { font-size: 18px; }
.ziel > header p { margin: 4px 0 0; color: var(--grau); font-size: 15px; }
.spaltenkopf { display: flex; justify-content: space-between; padding: 10px 22px; color: var(--grau); font-size: 14px; font-weight: 700; }
.ziel .zeile .was a, .abschnitt .zeile .was a, .zuletzt .zeile .was a { color: var(--text); text-decoration: none; }
.ziel .zeile .was a:hover, .abschnitt .zeile .was a:hover, .zuletzt .zeile .was a:hover { text-decoration: underline; }
.zeile.fertig .was a { color: var(--grau); }
.ziel .zeile .stand .status { font-size: 15px; }
.ziel details { border-top: 1px solid var(--linie-zart); }
.ziel details summary { cursor: pointer; padding: 14px 22px; color: var(--grau); font-size: 15px; font-weight: 700; }
.im-block { padding: 16px 22px; }
.karte details { margin-top: 12px; }
.karte details summary { cursor: pointer; font-weight: 700; }

/* Unterlagen und Zugänge: Kopf mit Fortschritt, Abschnitte, Zulieferungen */
.projektkopf { display: flex; align-items: center; gap: 28px; padding: 20px 22px; }
.projektkopf > div:first-child { flex: 1; min-width: 0; }
.projektkopf b { font: 700 17px Montserrat, sans-serif; }
.projektkopf p { margin: 4px 0 0; color: var(--grau); font-size: 15px; }
.projektkopf .fort { width: 280px; }
.datei-zeile .sym { color: var(--grau); }
.datei-zeile time, .datei-zeile .groesse { font: 500 14px "IBM Plex Mono", ui-monospace, monospace; color: var(--grau); white-space: nowrap; }
.datei-zeile time { width: 110px; }
.datei-zeile .groesse { width: 80px; text-align: right; }

/* Beiträge: Kalender im Monat, Spalten in der Woche, die Liste der laufenden Woche */
.kalender-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.kalender-kopf h2 { font-size: 18px; font-weight: 700; }
.pfeil { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 9px; color: var(--text); }
.pfeil .sym { width: 18px; height: 18px; }
.kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.wt { background: var(--karte); padding: 10px 12px; color: var(--grau); font-size: 14px; font-weight: 700; }
.tag { background: var(--karte); min-height: 122px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tag .nr { display: flex; gap: 8px; align-items: baseline; padding: 0 4px; color: var(--grau); font-size: 13px; }
.tag.heute .nr { color: var(--akzent); font-weight: 700; }
.chip { display: block; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--karte); color: var(--text); font-size: 13px; line-height: 1.35; text-decoration: none; }
.chip .k { display: block; color: var(--grau); }
.chip .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip .s { display: block; margin-top: 2px; font-weight: 700; }
.chip.dir { border-color: var(--gold-rand); }
.chip.dir .s { color: var(--gold-text); }
.chip.online .t, .chip.online .s { color: var(--grau); font-weight: 400; }
.legende { margin: 14px 0 28px; color: var(--grau); font-size: 15px; }
.woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.wtag { min-width: 0; }
.wtag h3 { display: flex; justify-content: space-between; gap: 6px; padding: 8px 2px 10px; margin-bottom: 12px; border-bottom: 1px solid var(--linie); color: var(--grau); font: 700 14px Lato, sans-serif; }
.wtag.heute h3 { color: var(--akzent); border-bottom-color: var(--akzent); }
.post-karte { margin-bottom: 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); }
.post-karte.dir { border-color: var(--gold-rand); }
.post-karte .txt { padding: 10px 12px 12px; font-size: 14px; }
.post-karte .k { display: flex; justify-content: space-between; color: var(--grau); font-size: 13px; }
.post-karte p { margin: 4px 0 8px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.post-karte .knopf, .post-karte .weiter { margin-top: 10px; }
.wochenliste .zeile { min-height: 58px; }
.wochenliste time { width: 96px; flex-shrink: 0; }
.zeile .wo { width: 150px; flex-shrink: 0; color: var(--grau); font-size: 15px; }
.wochenliste .stand { width: 150px; text-align: right; }

/* Ablage: Ordner links, Liste rechts */
.ablage { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.ordner { border-right: 1px solid var(--linie); padding: 14px; }
.ordner ul { list-style: none; margin: 0; padding: 0; }
.ordner a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; margin-bottom: 2px; border-radius: 9px; color: var(--text); font-size: 16px; text-decoration: none; }
.ordner a .sym { color: var(--grau); }
.ordner a[aria-current="page"] { background: var(--auswahl); font-weight: 700; }
.ordner a[aria-current="page"] .sym { color: var(--akzent); }
.ablage .leer { padding: 22px; }

/* Onboarding, Posten, Anleitungen */
.schritte { margin: 0; padding-left: 22px; }
.schritte li { margin-bottom: 6px; overflow-wrap: anywhere; }
.anleitung-bild { display: block; max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--linie); border-radius: 10px; }
.aenderung { margin-bottom: 24px; }

/* Anmeldeseite: links Formular, rechts ein festes Schaubild auf der Farbe der Leiste */
.anmeldung { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); }
.anm-links { display: flex; flex-direction: column; padding: 64px 96px; }
.anm-form { margin: auto 0; padding: 48px 0; max-width: 420px; }
.anm-form h1 { font-size: 40px; font-weight: 800; letter-spacing: -.015em; }
.anm-form .unter { font-size: 17px; margin: 10px 0 32px; }
.anm-form input[type="email"], .anm-form input[type="password"] { max-width: none; }
.anm-form .knopf { width: 100%; min-height: 48px; font-size: 15px; }
.anm-form form p { margin: 0 0 12px; }
.trenner { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; color: var(--grau); font-size: 15px; font-weight: 400; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.klein { color: var(--grau); font-size: 15px; margin-top: 18px; }
.anm-fuss { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.anm-fuss a { color: var(--grau); }
.anm-rechts { display: flex; flex-direction: column; justify-content: center; padding: 64px 72px; background: var(--leiste); color: var(--auf-leiste); }
.schaubild { border: 1px solid var(--leiste-linie); border-radius: 14px; padding: 26px 28px; }
.schaubild h2.schaubild-titel { margin: 0; }
.schaubild-titel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--leiste-text); font: 700 17px Montserrat, sans-serif; }
.schaubild-titel span { color: var(--leiste-gold); font: 400 15px Lato, sans-serif; }
.schaubild .fortschritt { margin: 12px 0 26px; background: var(--leiste-linie); }
.schaubild .fortschritt::-webkit-progress-bar { background: var(--leiste-linie); }
.schaubild .fortschritt::-webkit-progress-value { background: var(--gold); }
.schaubild .fortschritt::-moz-progress-bar { background: var(--gold); }
.schaubild h3 { color: var(--leiste-text); font-size: 15px; margin-bottom: 6px; }
.schaubild ul { list-style: none; margin: 0; padding: 0; }
.schaubild-zeile { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--leiste-linie); font-size: 16px; }
.schaubild-zeile .sym { width: 18px; height: 18px; color: var(--gold); }
.schaubild-hinweis { margin: 12px 0 0; color: var(--auf-leiste-grau); font-size: 14px; }
.anm-person { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--leiste-linie); }
.anm-person .foto { width: 56px; height: 56px; }
.anm-person .kz { width: 56px; height: 56px; color: var(--leiste-text); border-color: var(--auf-leiste-grau); font-size: 15px; }
.anm-person b { display: block; color: var(--leiste-text); font-size: 16px; }
.anm-person p { margin: 2px 0 0; font-size: 15px; color: var(--auf-leiste); }
.anm-person a { color: var(--leiste-gold); }

/* Seiten ohne Leiste: Link, Fehler, Datenschutz ohne Anmeldung */
.mitte { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mitte-inhalt { width: 100%; max-width: 520px; }
.mitte .wortmarke { margin-bottom: 28px; }
.karte-seite h1 { font-size: 28px; margin-bottom: 12px; }
.text-lang { max-width: 70ch; white-space: pre-line; }

@media (max-width: 820px) {
  .huelle { grid-template-columns: minmax(0, 1fr); }
  .leiste { min-height: 0; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--leiste-rand); }
  html.js .menue-knopf { display: inline-flex; }
  html.js .leiste-inhalt { display: none; }
  html.js .leiste.offen .leiste-inhalt { display: flex; }
  .firma, .mandatwechsel { margin: 16px 0 12px; }
  .ansprech { margin-top: 16px; }
  .oben { padding: 10px 16px; gap: 10px; }
  .inhalt { padding: 24px 16px 40px; }
  .gruss h1 { font-size: 30px; }
  .seitenkopf h1 { font-size: 28px; }
  .raster, .zwei, .ablage, .woche { grid-template-columns: minmax(0, 1fr); }
  .kalender { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  .chip .k, .chip .t { display: none; }
  .ordner { border-right: 0; border-bottom: 1px solid var(--linie); }
  .zeile { flex-wrap: wrap; padding: 12px 16px; }
  .block > header { padding: 14px 16px; }
  .ziel > header { flex-direction: column; }
  .fort, .projektkopf .fort { width: 100%; }
  .projektkopf { flex-direction: column; align-items: stretch; gap: 14px; }
  .tabelle-rahmen { overflow-x: auto; }
  .anmeldung { grid-template-columns: minmax(0, 1fr); }
  .anm-links { padding: 28px 20px; }
  .anm-form { padding: 32px 0; }
  .anm-form h1 { font-size: 32px; }
  .anm-rechts { padding: 32px 20px; }
  input[type="email"], input[type="password"], input[type="text"], input[type="date"], select, textarea { max-width: none; }
}
.filterzeile { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 28px; }
.eintrag .bezug { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--text); }
.eintrag .bezug .stand { margin-left: 0; }
.eintrag .leise-satz { margin-top: 4px; }
