/* Event OS — Personalakte (akte.js): Liste + Akte als großes Fenster im K-Tech-Design (Apple-Linie: ruhig, klare
   Hierarchie, Systemschrift). Nur Design-Variablen, keine festen Farben: FR (orange/schwarz) und neue Kunden (K-Tech-blau)
   bekommen ihr Aussehen aus ktech.css/app.css. */

/* ───────── Liste ───────── */
.ak-flaeche { background: var(--bg-card, var(--bg-surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.ak-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.ak-segmente { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg-deep); gap: 2px; }
.ak-seg { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.ak-seg span { font-weight: 500; color: var(--text-light); margin-left: 2px; font-variant-numeric: tabular-nums; }
.ak-seg.an { background: var(--bg-card, var(--bg-surface)); color: var(--text); box-shadow: var(--shadow); }
.ak-seg:hover:not(.an) { color: var(--text); }
.ak-suche, .ak-sort { height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card, var(--bg-surface)); color: var(--text); font: inherit; font-size: 13.5px; padding: 0 11px; }
.ak-suche { flex: 1 1 220px; min-width: 160px; }
.ak-suche:focus, .ak-sort:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.ak-werkzeug .btn { margin-left: auto; }
.ak-neu { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); background: var(--bg-hover); }
.ak-neu .feld { margin: 0; }

.ak-scroll { overflow-x: auto; }
table.ak-liste { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ak-liste th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ak-liste td { padding: 8px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ak-liste tbody tr { cursor: pointer; }
.ak-liste tbody tr:hover td { background: var(--bg-hover); }
.ak-liste tbody tr:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ak-liste .r { text-align: right; }
.ak-person { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.ak-person b { display: block; font-weight: 600; color: var(--text); }
.ak-person small { display: block; font-size: 12px; color: var(--text-muted); }
.ak-zahl { padding: 10px 16px; font-size: 12px; }
.zahl { font-variant-numeric: tabular-nums; }
.ak-warn { color: var(--warn-text); font-weight: 600; }

.ak-avatar { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .02em;
  color: var(--primary-dark); background: color-mix(in srgb, var(--primary) 13%, var(--bg-card, var(--bg-surface))); }
.ak-avatar.gross { width: 48px; height: 48px; font-size: 17px; }

.ak-hinweis { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card, var(--bg-surface)); padding: 11px 14px; margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.ak-hinweis b { color: var(--text); margin-right: 6px; }
.ak-hinweis ul { margin: 6px 0 0; padding-left: 18px; }
.ak-hinweis.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.ak-hinweis.fehler { background: var(--fehler-bg); border-color: color-mix(in srgb, var(--fehler) 30%, transparent); color: var(--fehler-text); }
.ak-link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-align: left; }
.ak-link:hover { text-decoration: underline; }

/* ───────── Chips ───────── */
.ak-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: var(--text-muted); background: var(--bg-deep); border: 0; font-family: inherit; text-transform: none; }
.ak-chip.ok { color: var(--ok-text); background: var(--ok-bg); }
.ak-chip.warn { color: var(--warn-text); background: var(--warn-bg); }
.ak-chip.fehler { color: var(--fehler-text); background: var(--fehler-bg); }
.ak-chip.info { color: var(--info-text); background: var(--info-bg); }
.ak-chip.leise { padding: 1px 7px; font-size: 10.5px; color: var(--text-light); background: var(--bg-hover); border: 1px solid var(--border-light); }
.ak-chip.knopf { cursor: pointer; }
.ak-chip.knopf:hover { filter: brightness(.97); }

/* ───────── Fenster ───────── */
.ak-hinter { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 3vh 2vw;
  background: var(--modal-overlay, color-mix(in srgb, var(--text) 40%, transparent)); animation: ak-blende .16s ease-out; }
.ak-fenster { display: flex; flex-direction: column; width: min(1360px, 96vw); height: min(92vh, 960px); overflow: hidden; outline: none;
  background: var(--bg-card, var(--bg-surface)); color: var(--text); font-family: var(--font); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, var(--shadow-md)); animation: ak-auf .22s var(--feder, cubic-bezier(.2, .8, .2, 1)); }
@keyframes ak-blende { from { opacity: 0; } }
@keyframes ak-auf { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .ak-hinter, .ak-fenster { animation: none; } }

.ak-kopf { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 16px; border-bottom: 1px solid var(--border); }
.ak-kopf-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ak-kopf-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ak-titel { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.15; color: var(--text); }
.ak-pnr { font-size: 11.5px; font-weight: 700; color: var(--bg-card, var(--bg-surface)); background: var(--text); padding: 3px 9px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.ak-kopf-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.ak-meta { font-size: 12px; color: var(--text-muted); }
.ak-zu { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bg-hover); color: var(--text-muted); font-size: 15px; cursor: pointer; }
.ak-zu:hover { background: var(--bg-deep); color: var(--text); }

.ak-rumpf { flex: 1; display: flex; min-height: 0; }
.ak-nav { flex: none; width: 224px; overflow-y: auto; padding: 10px 10px 16px; background: var(--bg-surface); border-right: 1px solid var(--border); }
.ak-nav-titel { padding: 12px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.ak-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text-muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ak-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.ak-nav-item.an { background: var(--bg-card, var(--bg-surface)); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary), var(--shadow); }
.ak-nav-item.rot { color: var(--fehler-text); }
.ak-nav-item.warn { color: var(--warn-text); }
.ak-zaehler { font-size: 11px; font-weight: 600; color: var(--text-light); background: var(--bg-deep); border-radius: 999px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.ak-nav-item.warn .ak-zaehler { color: var(--warn-text); background: var(--warn-bg); }

.ak-inhalt { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 26px 28px; }
.ak-fuss { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--bg-surface); }
.ak-fuss-st { margin-right: auto; font-size: 12.5px; color: var(--text-muted); }
.ak-fuss-st.fehler { color: var(--fehler-text); font-weight: 600; }
.ak-leer { padding: 28px 12px; text-align: center; color: var(--text-light); font-size: 13.5px; }

/* ───────── Inhalt ───────── */
.ak-abschnitt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.ak-reiter > .ak-abschnitt:first-child, .ak-reiter > .ak-sensibel + .ak-abschnitt, .ak-reiter > .ak-jahrleiste + .ak-abschnitt { margin-top: 4px; }
.ak-abschnitt h3 { margin: 0; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.ak-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.ak-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ak-feld.breit { grid-column: span 2; }
.ak-feld label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.ak-schloss { font-size: 10.5px; }
.ak-feld input, .ak-feld select, .ak-reiter textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-hover); transition: border-color .12s, box-shadow .12s, background-color .12s; }
.ak-reiter textarea { height: auto; padding: 9px 11px; }
.ak-feld input:hover, .ak-feld select:hover { border-color: var(--text-light); }
.ak-feld input:focus, .ak-feld select:focus, .ak-reiter textarea:focus { outline: none; background: var(--bg-card, var(--bg-surface)); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
@media (prefers-reduced-motion: reduce) { .ak-feld input, .ak-feld select { transition: none; } }
.ak-sensibel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.ak-jahrleiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.ak-jahrleiste label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.ak-jahrleiste select { height: 32px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; background: var(--bg-card, var(--bg-surface)); color: var(--text); }
.ak-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ak-kachel { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-surface); }
.ak-kachel .k { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); }
.ak-kachel .v { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text); }
.ak-kachel .n { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.ak-kachel.ok .v { color: var(--ok-text); }
.ak-kachel.warn .v { color: var(--warn-text); }
.ak-kachel.fehler .v { color: var(--fehler-text); }
.ak-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ak-zeile .feld { margin: 0; }
.ak-nowrap { white-space: nowrap; }
.ak-minus { color: var(--fehler-text); }
tr.ak-summe td { font-weight: 700; border-top: 1px solid var(--border); }
.ak-tage { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ak-tage span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-text); font-variant-numeric: tabular-nums; }
.ak-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Karten der Fachteile (Vertrag, Austritt, Link) im Fenster: flach statt Kachel mit Schatten */
.ak-reiter .card { box-shadow: none; border: 1px solid var(--border-light); border-radius: var(--radius); margin: 14px 0; background: var(--bg-surface); }
.ak-reiter .fr-tab th { background: none; }

/* ───────── Jahresansicht ───────── */
.ak-ja-rahmen { container-type: inline-size; overflow: auto; border: 1px solid var(--border-light); border-radius: var(--radius); }
table.ak-ja { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.ak-ja thead th { position: sticky; top: 0; z-index: 2; padding: 6px 2px; background: var(--bg-surface); border-bottom: 1px solid var(--border); font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-ja th.ak-ja-tag { width: 32px; }
.ak-ja thead th.ak-ja-tag { left: 0; z-index: 3; }
.ak-ja tbody th.ak-ja-tag { position: sticky; left: 0; z-index: 1; padding: 0 2px; font-size: 10.5px; text-align: center; background: var(--bg-surface); color: var(--text-light); font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--border-light); }
.ak-ja th .kurz { display: none; }
@container (max-width: 900px) { .ak-ja th .lang { display: none; } .ak-ja th .kurz { display: inline; } }
.ak-ja td { height: 21px; padding: 0 4px; text-align: center; border-left: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-card, var(--bg-surface));
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; font-weight: 600; }
.ak-ja td.we { background: var(--bg-hover); }
.ak-ja td.leer { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--border-light) 5px 6px); }
.ak-ja td.zeit { color: var(--text); }
.ak-ja td.schicht { background: var(--info-bg); color: var(--info-text); font-weight: 500; }
.ak-ja td.abw.ok { background: var(--ok-bg); color: var(--ok-text); }
.ak-ja td.abw.fehler { background: var(--fehler-bg); color: var(--fehler-text); }
.ak-ja td.abw.info { background: var(--warn-bg); color: var(--warn-text); }
.ak-ja td.heute { box-shadow: inset 0 0 0 2px var(--primary); }
.ak-ja-legende { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 11.5px; color: var(--text-muted); align-items: center; }
.ak-ja-legende > span { display: inline-flex; align-items: center; gap: 6px; }
.ak-ja-muster { display: inline-grid; place-items: center; min-width: 22px; height: 16px; padding: 0 3px; border-radius: 4px; border: 1px solid var(--border-light); font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--bg-card, var(--bg-surface)); }
.ak-ja-muster.abw.ok { background: var(--ok-bg); color: var(--ok-text); }
.ak-ja-muster.abw.fehler { background: var(--fehler-bg); color: var(--fehler-text); }
.ak-ja-muster.abw.info { background: var(--warn-bg); color: var(--warn-text); }
.ak-ja-muster.schicht { background: var(--info-bg); color: var(--info-text); }
.ak-ja-muster.we { background: var(--bg-hover); }

/* ───────── Schmal / Handy: volle Breite, Navigation als waagerechte Leiste oben ───────── */
@media (max-width: 1000px) { .ak-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ak-hinter { padding: 0; }
  .ak-fenster { width: 100vw; height: 100%; max-height: none; border-radius: 0; }
  .ak-kopf { padding: 12px 14px; }
  .ak-titel { font-size: 19px; }
  .ak-avatar.gross { width: 40px; height: 40px; font-size: 14px; }
  .ak-rumpf { flex-direction: column; }
  .ak-nav { width: auto; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .ak-nav::-webkit-scrollbar { display: none; }
  .ak-nav-gruppe { display: contents; }
  .ak-nav-titel { display: none; }
  .ak-nav-item { width: auto; flex: none; white-space: nowrap; padding: 6px 12px; border-radius: 999px; }
  .ak-nav-item.an { box-shadow: inset 0 0 0 1px var(--primary); }
  .ak-inhalt { padding: 16px 14px 22px; }
  .ak-raster { grid-template-columns: minmax(0, 1fr); }
  .ak-feld.breit { grid-column: auto; }
  .ak-fuss { padding: 10px 14px; }
  .ak-fuss-st { flex-basis: 100%; }
  .ak-fuss { flex-wrap: wrap; }
  .ak-liste th:nth-child(3), .ak-liste td:nth-child(3), .ak-liste th:nth-child(4), .ak-liste td:nth-child(4), .ak-liste th:nth-child(5), .ak-liste td:nth-child(5) { display: none; }
  .ak-werkzeug .btn { margin-left: 0; }
}
body[data-layout="schmal"] .ak-liste th:nth-child(3), body[data-layout="schmal"] .ak-liste td:nth-child(3),
body[data-layout="schmal"] .ak-liste th:nth-child(4), body[data-layout="schmal"] .ak-liste td:nth-child(4) { display: none; }

/* app.css hat eine globale .fehler-Box (Abstand, Polster, Fläche) – in der Akte gilt nur die Farbe */
.ak-chip.fehler { margin: 0; padding: 3px 10px; font-size: 11.5px; border-radius: 999px; }
.ak-fuss-st.fehler { margin: 0 auto 0 0; padding: 0; background: none; font-size: 12.5px; border-radius: 0; }
.ak-kachel.fehler { margin: 0; padding: 12px 14px; background: var(--bg-surface); color: inherit; font-size: inherit; font-weight: inherit; border-radius: var(--radius); }
.ak-ja td.abw.fehler, .ak-ja-muster.abw.fehler { margin: 0; border-radius: 0; font-size: inherit; }

/* Lieferantenakte (lieferakte.js): Balken je Jahr, Artikel-Detailzeile */
.la-balken { display: flex; align-items: flex-end; gap: 10px; padding: 6px 2px 2px; margin: 0 0 16px; overflow-x: auto; }
.la-balken-sp { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 64px; }
.la-balken-w { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 4px; }
.la-balken-b { width: 34px; border-radius: 6px 6px 0 0; background: var(--primary); opacity: .85; }
.la-balken-j { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
tr.la-detail > td { background: var(--bg-surface); padding: 14px 16px; }
tr.la-aus td { opacity: .55; }
tr.la-auff td { background: var(--warn-bg); }
.la-preis-neu { margin: 0 0 12px; }

/* ───────── Karteikarte (27.11.2026, wie die Firmen-Karteikarte in Staff OS): Startseite jeder Akte, erster Reiter der Navigation.
   Kontaktzeile, Hinweis-Kasten rechts, darunter Karten im Raster mit „Bearbeiten“ je Karte; leere Felder stehen als „fehlt“. ───────── */
.ak-karte-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.ak-karte-zeile { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--text); }
.ak-karte-zeile span, .ak-karte-zeile a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.ak-karte-zeile a:hover { color: var(--primary); }
.ak-karte-zeile i { font-style: normal; color: var(--text-light); }
.ak-karte-badge { flex: none; text-align: right; padding: 10px 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-bg); color: var(--ok-text); }
.ak-karte-badge.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-bg); color: var(--warn-text); }
.ak-karte-badge.info { border-color: color-mix(in srgb, var(--info, var(--primary)) 35%, transparent); background: var(--info-bg); color: var(--info-text); }
.ak-karte-badge.leise { border-color: var(--border); background: var(--bg-surface); color: var(--text-muted); }
.ak-karte-badge .t { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ak-karte-badge .w { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ak-karte-badge .n { font-size: 12px; }
.ak-karte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ak-karte-block { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius)); background: var(--bg-surface); padding: 14px 18px 16px; }
.ak-karte-block.breit { grid-column: 1 / -1; }
.ak-karte-block header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.ak-karte-block h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ak-karte-block h4 i { font-style: normal; color: var(--primary); }
.ak-karte-bearb { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ak-karte-bearb:hover { color: var(--primary); background: var(--bg-hover); }
.ak-karte-block dl { margin: 0; display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.ak-karte-block dt { color: var(--text-muted); }
.ak-karte-block dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ak-karte-block dd.fehlt { color: var(--text-light); font-weight: 400; }
.ak-karte-block ul { margin: 0; padding-left: 0; list-style: none; font-size: 13.5px; }
.ak-karte-block li { padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.ak-karte-block li:last-child { border-bottom: 0; }
.ak-karte-block small { color: var(--text-muted); font-weight: 400; }
.ak-pille { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ok-text); background: var(--ok-bg); }
.ak-pille::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ak-pille.warn { color: var(--warn-text); background: var(--warn-bg); }
.ak-pille.leise { color: var(--text-muted); background: var(--bg-hover); }
.ak-kontakt-knopf { display: inline-flex; align-items: center; gap: 5px; margin: 2px 6px 2px 0; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; background: var(--bg-card, var(--bg-surface)); }
.ak-kontakt-knopf:hover { background: var(--bg-hover); }
.ak-karte-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 1100px) { .ak-karte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ak-karte { grid-template-columns: minmax(0, 1fr); } .ak-karte-kopf { flex-direction: column; } .ak-karte-badge { text-align: left; } }
dl.ka-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 8px; font-size: 13px; }
dl.ka-dl dt { color: var(--text-muted); }
dl.ka-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ───────── Veranstaltungskalender im Bereichs-Cockpit (kalender.js, 03.12.2026) ───────── */
.kal-karte { scroll-margin-top: 72px; }
.kal-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.kal-leiste .card-title { margin-right: auto; }
.kal-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kal-umschalter { display: inline-flex; margin-left: 6px; }
.kal-umschalter .btn { border-radius: 0; }
.kal-umschalter .btn:first-child { border-radius: 8px 0 0 8px; }
.kal-umschalter .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.kal-umschalter .btn.an { background: var(--akzent-hell2); color: var(--akzent-text); border-color: var(--akzent-mittel); }
.kal-inhalt { padding: 10px 14px 4px; overflow-x: auto; }
.kal-monat { min-width: 640px; }
.kal-kopf, .kal-zeile { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
.kal-kopf span { padding: 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--text-light); }
.kal-zeile { border-top: 1px solid var(--border-light); }
.kal-kw { border: 0; background: none; font-size: 11px; color: var(--text-light); cursor: pointer; padding: 6px 0; align-self: start; }
.kal-kw:hover { color: var(--akzent-text); }
.kal-tag { min-height: 86px; padding: 4px 4px 6px; border-left: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.kal-tag.we { background: var(--bg-hover); }
.kal-tag.fremd { opacity: .5; }
.kal-tag.heute { box-shadow: inset 0 0 0 2px var(--akzent-mittel); border-radius: 4px; }
.kal-nr { align-self: flex-start; border: 0; background: none; padding: 1px 4px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; border-radius: 4px; }
.kal-nr:hover { background: var(--akzent-hell); }
.kal-tag.heute .kal-nr { background: var(--akzent); color: #fff; }
.kal-zahl { display: none; }
.kal-va { display: block; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; line-height: 1.35; text-decoration: none; color: var(--text);
  background: var(--akzent-hell2); border-left: 3px solid var(--akzent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-va:hover { filter: brightness(.96); }
.kal-va.vorab { background: var(--bg-card); border: 1px dashed var(--border); border-left: 3px dashed var(--text-light); color: var(--text-light); }
.kal-va.miet { background: var(--info-bg); border-left-color: var(--info-text); }
.kal-va.vorbei { opacity: .6; }
.kal-va.folgetag { border-left-style: dotted; }
.kal-mehr { border: 0; background: none; padding: 0 4px; font-size: 11px; color: var(--akzent-text); cursor: pointer; text-align: left; }
.kal-woche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kal-wtag { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 8px; border: 1px solid var(--border-light); }
.kal-wtag.we { background: var(--bg-hover); }
.kal-wtag.heute { border-color: var(--akzent-mittel); box-shadow: inset 0 0 0 1px var(--akzent-mittel); }
.kal-wkopf { font-size: 12px; font-weight: 600; color: var(--text-light); }
.kal-va.karte { white-space: normal; overflow-wrap: break-word; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 12.5px; }
.kal-va.karte .rs-leise, .kal-unten { font-size: 11.5px; }
.kal-unten { color: var(--text-light); }
.kal-wleer { display: none; grid-column: 1 / -1; }
.kal-legende { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 12px; }
.kal-legende .kal-va { display: inline-block; font-size: 11px; }
@media (max-width: 900px) {
  .kal-woche { grid-template-columns: 1fr; }
  .kal-wtag.leer { display: none; }
  .kal-wleer { display: block; }
}
@media (max-width: 700px) {
  .kal-monat { min-width: 0; }
  .kal-kopf, .kal-zeile { grid-template-columns: 26px repeat(7, minmax(0, 1fr)); }
  .kal-tag { min-height: 48px; align-items: center; padding: 3px 1px; }
  .kal-tag .kal-va, .kal-tag .kal-mehr { display: none; }
  .kal-zahl { display: inline-block; border: 0; cursor: pointer; min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center;
    background: var(--akzent-hell2); color: var(--akzent-text); }
}
