/* Multelo – Gestaltung Runde 3 (28.11.2026, von Ole freigegeben)
   Entwürfe und Begründung: KI-Telefon/design/runde-3/notizen.md
   Eine Schrift (Inter), weiße Fläche, Haarlinien statt Karten, Wechselzeilen, ein Akzent je Bereich. */

@font-face { font-family: "Inter"; src: url("schriften/inter-variabel.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, .bereich-kunde {
  --leiste: #22262B; --leiste-hover: #2C3137; --leiste-aktiv: #353B42; --leiste-text: #C9CED4; --leiste-leise: #8E97A2;
  --akzent: #16A394; --akzent-knopf: #0E7C71; --akzent-knopf-hover: #0B6D62; --akzent-text: #0B6D62; --akzent-zart: #E7F5F2;
  --anrufer-zart: #EAF6F3;
}
.bereich-admin {
  --leiste: #121B45; --leiste-hover: #1A255A; --leiste-aktiv: #22306C; --leiste-text: #C9D2EC; --leiste-leise: #9AA8D0;
  --akzent: #009FE3; --akzent-knopf: #0072A8; --akzent-knopf-hover: #005F8C; --akzent-text: #00679A; --akzent-zart: #E5F4FB;
  --anrufer-zart: #E8F4FB;
}
:root {
  --grund: #FFFFFF; --flaeche: #F5F6F7; --flaeche-2: #EDEFF1; --zebra: #F4F5F7; --hover: #E9ECEF;
  --tinte: #1B1E22; --tinte-2: #3D434B; --leise: #5C6370; --linie: #E4E7EA; --linie-feld: #CDD2D8;
  --rueckruf: #B45309; --rueckruf-zart: #FDF3E7; --fehler: #B42318; --fehler-zart: #FDECEA; --gut: #17663F; --gut-zart: #E6F4EC;
  --r: 6px; --leistenbreite: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 15px/1.5 "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
a { color: var(--akzent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: 8px; }
h1 { font-size: 24px; line-height: 32px; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: 17px; line-height: 24px; font-weight: 620; }
h3 { font-size: 15px; line-height: 22px; font-weight: 620; }
time, .zahl { font-variant-numeric: tabular-nums; }
.leise { color: var(--leise); }
.klein { font-size: 13px; line-height: 18px; color: var(--leise); }
.abstand { margin-top: 16px; }
.schmal { max-width: 560px; }
.nw { white-space: nowrap; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- Gerüst */
.rahmen { display: grid; grid-template-columns: var(--leistenbreite) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--leiste) var(--leistenbreite), var(--grund) var(--leistenbreite)); }
.seite { background: var(--leiste); color: var(--leiste-text); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 20px 12px 16px; }
.marke { display: block; padding: 0 8px 4px; }
.marke img { display: block; width: 176px; height: auto; }
.betrieb { padding: 14px 8px 0; font-size: 13px; line-height: 18px; color: var(--leiste-leise); }
.betrieb b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.seite nav { margin-top: 24px; display: grid; gap: 2px; }
.seite nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: var(--r);
  color: var(--leiste-text); font-weight: 500; text-decoration: none; }
.seite nav a:hover { background: var(--leiste-hover); color: #fff; }
.seite nav a[aria-current] { background: var(--leiste-aktiv); color: #fff; }
.seite nav a[aria-current] svg { color: var(--akzent); }
.seite .unten { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; line-height: 18px; color: var(--leiste-leise); }
.seite .unten .nummer { display: block; margin: 2px 0 12px 16px; color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.seite .unten .klein-nummer { margin-left: 0; font-size: 13px; font-weight: 500; }
.seite .unten form { margin: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 3px rgba(22,163,148,.25); }
.live.aus::before { background: #8E97A2; box-shadow: none; }
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--leiste-text); cursor: pointer; }
.textknopf:hover { color: #fff; text-decoration: underline; }
main { min-width: 0; padding: 32px 48px 80px; }
main > * { max-width: 1120px; }
.fuss { margin-top: 48px; font-size: 13px; color: var(--leise); }
.kopfleiste, .unten-nav, .unten-leiste { display: none; }

/* ---------- Meldungen */
.hinweis, .erfolg, .fehler { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--r); margin-bottom: 20px; font-size: 14px; }
.hinweis { background: var(--rueckruf-zart); color: #7A3E06; }
.hinweis svg { color: var(--rueckruf); margin-top: 0; }
.erfolg { background: var(--gut-zart); color: var(--gut); }
.fehler { background: var(--fehler-zart); color: var(--fehler); display: block; }
.fehler ul { margin: 0; padding-left: 18px; }

/* ---------- Seitenkopf */
.kopf, .seitenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.kopf p, .seitenkopf p { margin-top: 4px; color: var(--leise); }
.kopf-aktionen, .knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kopf-aktionen form, .knopfreihe form { margin: 0; }
.monatwahl { display: flex; gap: 8px; }
.monatwahl select { width: auto; min-width: 120px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--leise); font-size: 14px; font-weight: 500; }
.zurueck svg { width: 16px; height: 16px; }
.zwischen { margin-bottom: 4px; }

/* ---------- Knöpfe (6 px Ecke, keine Pillen) */
.knopf, .knopf-zweit, .knopf-klein { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s; }
.knopf svg, .knopf-zweit svg, .knopf-klein svg { width: 18px; height: 18px; }
.knopf { background: var(--akzent-knopf); color: #fff; }
.knopf:hover { background: var(--akzent-knopf-hover); text-decoration: none; }
.knopf-zweit, .knopf-klein { background: var(--flaeche-2); color: var(--tinte); }
.knopf-zweit:hover, .knopf-klein:hover { background: #E2E5E9; text-decoration: none; }
.knopf-klein { min-height: 36px; padding: 0 12px; font-size: 14px; }
.knopf-zweit:disabled, .knopf:disabled { opacity: .6; cursor: wait; }
.knopf-klein.trennen:hover { background: var(--fehler-zart); color: var(--fehler); }
.textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--akzent-text); cursor: pointer; white-space: nowrap; }
.textlink:hover { text-decoration: underline; }
.voll { width: 100%; }

/* ---------- Abschnitte statt Karten */
.tafel, .karte { margin: 0 0 8px; padding: 24px 0 28px; border-top: 1px solid var(--linie); }
.tafel:first-of-type, .karte:first-of-type { border-top: 0; padding-top: 0; }
.tafel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tafel-inhalt { padding: 0; }
.karte > h2 { margin-bottom: 4px; }
.abschnitt-titel { margin-bottom: 12px; }
.abschnitt-titel.zeile { display: flex; justify-content: space-between; align-items: baseline; }
.leer { padding: 24px 0; color: var(--leise); }
.raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.raster.gleich { grid-template-columns: 1fr 1fr; }

/* ---------- Anrufliste: Zeilen im Wechsel grau (Ole 28.11.) */
.anrufliste { width: 100%; border-collapse: collapse; }
.anrufliste tr.tag th { text-align: left; padding: 20px 12px 8px; font-size: 13px; font-weight: 600; color: var(--leise); border-bottom: 1px solid var(--linie); }
.anrufliste tr.tag th span { font-weight: 400; }
.anrufliste tr.anruf { position: relative; }
.anrufliste tr.anruf td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--linie); }
.anrufliste tr.anruf:nth-child(even of .anruf) td { background: var(--zebra); }
.anrufliste tr.anruf:hover td, .anrufliste tr.anruf:nth-child(even of .anruf):hover td { background: var(--hover); }
.anrufliste td.art { width: 64px; padding-right: 4px; }
.anrufliste td.art span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-2); color: var(--tinte-2); }
.anrufliste tr.k-h td.art span { background: var(--rueckruf-zart); color: var(--rueckruf); }
.anrufliste tr.k-e td.art span { background: var(--akzent-zart); color: var(--akzent-text); }
.anrufliste tr.k-f td.art span { background: var(--fehler-zart); color: var(--fehler); }
.anrufliste tr td.art span.kanal-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.anrufliste tr td.art span.kanal-facebook { background: #1877f2; color: #fff; }
.anrufliste tr td.art span.kanal-whatsapp { background: #25d366; color: #fff; }
.anrufliste tr td.art span.kanal-email { background: #121B45; color: #fff; }
.entwurf-text { width: 100%; min-height: 16rem; font: inherit; line-height: 1.5; }
.mail-original { white-space: pre-wrap; background: var(--flaeche, #f6f8fb); border: 1px solid var(--linie, #dde2ea); border-radius: 8px; padding: 12px 14px; max-height: 24rem; overflow: auto; }
.regel-tabelle { width: 100%; border-collapse: collapse; }
.regel-tabelle td, .regel-tabelle th { padding: 8px 8px 8px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--linie, #dde2ea); }
.regel-tabelle select { width: 100%; }
@media (max-width: 640px) { .regel-tabelle td, .regel-tabelle th { display: block; border: 0; padding: 4px 0; } .regel-tabelle tr { display: block; border-bottom: 1px solid var(--linie, #dde2ea); padding: 6px 0; } }
/* Ergebnis (Rückruf, Beantwortet …) als kleines Zeichen unten rechts am Plattform-Logo */
.anrufliste td.art span[class^="kanal-"] { position: relative; }
.anrufliste td.art .ergebnis-punkt { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--flaeche-2); color: var(--tinte-2); border: 2px solid var(--grund); font-style: normal; }
.anrufliste td.art .ergebnis-punkt .i { width: 13px; height: 13px; }
.anrufliste tr.k-h td.art .ergebnis-punkt { background: var(--rueckruf-zart); color: var(--rueckruf); }
.anrufliste tr.k-e td.art .ergebnis-punkt { background: var(--akzent-zart); color: var(--akzent-text); }
.anrufliste tr.k-f td.art .ergebnis-punkt { background: var(--fehler-zart); color: var(--fehler); }
.anrufliste td.wer { width: 230px; }
.anrufliste td.wer a { color: var(--tinte); text-decoration: none; }
.anrufliste td.wer a::after { content: ""; position: absolute; inset: 0; }
.anrufliste td.wer b { font-weight: 600; line-height: 22px; }
.anrufliste td.wer .kunde { display: block; font-size: 13px; color: var(--leise); }
.anrufliste td.wer .nr { display: block; font-size: 14px; color: var(--leise); font-variant-numeric: tabular-nums; }
.anrufliste td.was { color: var(--tinte-2); line-height: 22px; }
.anrufliste td.stand { width: 200px; text-align: right; font-size: 14px; line-height: 22px; }
.anrufliste td.stand time { display: block; font-size: 15px; font-weight: 500; color: var(--tinte); }
.anrufliste td.zahl { width: 110px; text-align: right; font-size: 14px; white-space: nowrap; }
.ergebnis { color: var(--leise); }
.ergebnis.k-h { color: var(--rueckruf); font-weight: 600; }
.ergebnis.k-e { color: var(--akzent-text); }
.ergebnis.k-f { color: var(--fehler); font-weight: 600; }
.anrufliste .ergebnis, .anrufliste .detail { display: block; }
.detail { color: var(--leise); }
.test { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--leise); }
.zeit-mobil { display: none; }
.filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.filter label { margin: 0 0 4px; font-size: 13px; }
.filter select, .filter input { width: auto; min-width: 170px; }

/* ---------- Allgemeine Tabellen (Verwaltung, Kosten) */
table.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
.liste th { text-align: left; font-size: 13px; font-weight: 600; color: var(--leise); padding: 0 12px 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.liste td { padding: 14px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste tbody tr:nth-child(even) td { background: var(--zebra); }
.liste tbody tr:hover td { background: var(--hover); }
.liste .zahl { text-align: right; white-space: nowrap; }
.liste td.wer b { display: block; font-weight: 600; }
.liste td.wer a { color: var(--tinte); }
.liste td.wer span { display: block; font-size: 14px; color: var(--leise); }
.liste td.aktion { text-align: right; }
.liste td.aktion form { margin: 0; }
.liste td.aktion .textlink { font-weight: 500; font-size: 14px; }
.liste tfoot td { border-bottom: 0; border-top: 2px solid var(--tinte); font-weight: 650; }
.liste tfoot td span { display: block; font-weight: 400; font-size: 13px; color: var(--leise); }
.systemzeile { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -8px 0 28px; font-size: 14px; color: var(--leise); }
.systemzeile span, .systemzeile a { display: inline-flex; align-items: center; gap: 6px; }
.systemzeile i { width: 8px; height: 8px; border-radius: 50%; background: #9AA1AB; }
.systemzeile i.an { background: #1F9D6A; }

/* Kurzlisten (letzte Anrufe, Assistenten, Zugänge) */
.feed { display: block; padding: 12px; border-bottom: 1px solid var(--linie); color: inherit; text-decoration: none; }
.feed:nth-of-type(even) { background: var(--zebra); }
.feed:hover { background: var(--hover); text-decoration: none; }
.feed-liste, .tafel > .feed:first-of-type { border-top: 1px solid var(--linie); }
.feed-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 14px; }
.feed-kopf b { font-weight: 600; }
.feed-kopf time { color: var(--leise); white-space: nowrap; }
.feed-text { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--tinte-2); }
.warn-text { color: var(--rueckruf); font-weight: 600; }
.chip { font-size: 13px; font-weight: 600; color: var(--leise); }
.chip.e { color: var(--akzent-text); }
.wartet-eintrag { padding: 12px; border-bottom: 1px solid var(--linie); }
.wartet-eintrag:nth-of-type(even) { background: var(--zebra); }
.wartet-eintrag p { margin: 2px 0 8px; }
details.weiteres > summary, details.eigene > summary { list-style: none; cursor: pointer; }
details.weiteres > summary::-webkit-details-marker, details.eigene > summary::-webkit-details-marker { display: none; }
details.weiteres > summary h2::after, details.eigene > summary h2::after { content: " ›"; color: var(--leise); }
details.weiteres[open] > summary h2::after, details.eigene[open] > summary h2::after { content: " ⌄"; }

/* ---------- Gesprächsseite */
.gespraech-kopf { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--linie); }
.gespraech-kopf h1 { font-size: 28px; line-height: 36px; }
.gespraech-kopf .meta { margin-top: 6px; color: var(--leise); display: flex; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.gespraech-kopf .meta span { white-space: nowrap; }
.gespraech-kopf .meta span + span::before { content: "·"; margin: 0 8px; }
.stand-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; }
.stand-zeile > svg { color: var(--leise); }
.stand-zeile.k-h > svg { color: var(--rueckruf); }
.stand-zeile.k-e > svg { color: var(--akzent-text); }
.stand-zeile .ergebnis { font-weight: 600; }
.stand-zeile .detail::before { content: "· "; }
.stand-zeile .detail { font-size: 14px; }
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 32px; }
.abschnitt + .abschnitt { margin-top: 40px; }
.abschnitt > h2 { margin-bottom: 12px; }
.abschnitt > .unter { margin: -8px 0 16px; color: var(--leise); font-size: 14px; }
.zusammenfassung { font-size: 17px; line-height: 28px; max-width: 66ch; }
.mitschrift { display: grid; gap: 4px; }
.mitschrift .satz { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 14px; border-radius: 8px; }
.mitschrift .satz.assistent { background: var(--zebra); }
.mitschrift .satz.anrufer { background: var(--anrufer-zart); box-shadow: inset 3px 0 0 var(--akzent); }
.mitschrift .wer { font-size: 13px; line-height: 22px; color: var(--leise); }
.mitschrift .wer b { display: block; font-weight: 600; color: var(--tinte-2); font-size: 14px; overflow-wrap: anywhere; }
.mitschrift .satz.anrufer .wer b { color: var(--akzent-text); }
.mitschrift .text { line-height: 24px; max-width: 66ch; }
.seitenspalte h3 { font-size: 13px; line-height: 18px; color: var(--leise); font-weight: 600; margin-bottom: 8px; }
.seitenspalte section + section { margin-top: 32px; }
.angaben { margin: 0; border-top: 1px solid var(--linie); }
.angaben div { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.angaben dt { font-size: 13px; color: var(--leise); }
.angaben dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.angaben dd a { font-weight: 600; }
.getan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.getan li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 14px; line-height: 20px; }
.getan svg { width: 18px; height: 18px; color: var(--akzent-text); margin-top: 1px; }
.getan b { font-weight: 600; }
.getan small { display: block; color: var(--leise); font-size: 13px; overflow-wrap: anywhere; }
.getan time { color: var(--leise); }

/* Probegespräch im Fenster (probe.js setzt .blase) */
.gespraech { display: flex; flex-direction: column; gap: 4px; }
.blase { padding: 10px 14px; border-radius: 8px; background: var(--zebra); }
.blase small { display: block; font-size: 13px; color: var(--leise); margin-bottom: 2px; }
.blase.anrufer { background: var(--anrufer-zart); box-shadow: inset 3px 0 0 var(--akzent); }
.probe-status { font-weight: 600; margin: 12px 0; }
.probe-mitschrift { max-height: 46vh; overflow-y: auto; }

/* ---------- Formulare */
label { display: block; font-weight: 600; font-size: 14px; line-height: 20px; margin: 20px 0 6px; }
label small, .feldhilfe { display: block; font-weight: 400; color: var(--leise); font-size: 13px; line-height: 18px; margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=month], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--linie-feld); border-radius: var(--r); background: #fff;
  font: inherit; font-size: 15px; line-height: 20px; color: var(--tinte); }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6370' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea { resize: vertical; min-height: 96px; line-height: 22px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent-knopf); box-shadow: 0 0 0 3px rgba(22,163,148,.22); }
.bereich-admin input:focus, .bereich-admin select:focus, .bereich-admin textarea:focus { box-shadow: 0 0 0 3px rgba(0,159,227,.22); }
::placeholder { color: #8A929C; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 12px 0 0; cursor: pointer; }
.haken input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--akzent-knopf); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.tage { display: grid; grid-template-columns: 120px minmax(0, 320px); gap: 8px 16px; align-items: center; margin-top: 12px; }
.tage label { margin: 0; font-weight: 500; font-size: 15px; }
.helfer-reihe, .zeile-feld { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.zeile-feld { margin-top: 0; }
.zeile-feld input { flex: 1 1 320px; margin: 0; width: auto; }
.helfer-reihe .kurz { width: auto; flex: 1 1 260px; max-width: 420px; }
.helfer-reihe .leise, p.leise { font-size: 14px; }
[data-status] { margin-top: 6px; }
.stimmwahl { display: flex; gap: 8px; align-items: center; }
.stimmwahl select { flex: 1; }
.mikro { gap: 8px; }
.mikro.aufnahme { background: var(--fehler); color: #fff; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,35,24,.35); } 50% { box-shadow: 0 0 0 8px rgba(180,35,24,0); } }
.anb-hinweis { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; padding: 14px 16px; background: var(--flaeche); border-radius: 8px; }
.wahl { display: flex; padding: 12px 14px; border-radius: 8px; margin: 0 0 4px; cursor: pointer; font-weight: 500; }
.wahl:nth-of-type(odd) { background: var(--zebra); }
.wahl:hover { background: var(--hover); }

/* Zu- und aufklappbare Bereiche (Öffnungszeiten, Profi-Einstellungen) */
details.klappe > summary, details.profi > summary { cursor: pointer; list-style: none; display: flex; gap: 8px 14px; align-items: baseline; flex-wrap: wrap; }
details.klappe > summary::-webkit-details-marker, details.profi > summary::-webkit-details-marker { display: none; }
details.klappe > summary::before, details.profi > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--leise); border-bottom: 2px solid var(--leise);
  transform: rotate(-45deg); align-self: center; transition: transform .15s; }
details.klappe[open] > summary::before, details.profi[open] > summary::before { transform: rotate(45deg); }
.klappe-titel, details.profi > summary { font-weight: 620; font-size: 17px; line-height: 24px; }
.klappe-kurz { flex: 1; font-size: 15px; }
.klappe-aendern { font-size: 14px; font-weight: 600; color: var(--akzent-text); }
details.klappe[open] .klappe-aendern { display: none; }
details.klappe[open] > summary, details.profi[open] > summary { margin-bottom: 8px; }
details.profi { margin: 0 0 8px; padding: 24px 0 28px; border-top: 1px solid var(--linie); }
details.profi h3 { margin: 28px 0 0; padding-top: 20px; border-top: 1px dashed var(--linie-feld); }

/* Speicherleiste (assistent.js) */
.speicherleiste { position: fixed; left: var(--leistenbreite); right: 0; bottom: 0; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: flex-end;
  padding: 12px 48px; background: rgba(255,255,255,.97); border-top: 1px solid var(--linie); box-shadow: 0 -8px 24px rgba(16,24,40,.08); }
.speicherleiste[hidden] { display: none; }
.speicherleiste span { margin-right: auto; font-weight: 600; color: var(--rueckruf); }
body.hat-aenderungen main { padding-bottom: 120px; }

/* ---------- Reiter */
.reiter { display: flex; gap: 24px; border-bottom: 1px solid var(--linie); margin-bottom: 8px; flex-wrap: wrap; }
.reiter a { padding: 10px 0 12px; margin-bottom: -1px; color: var(--leise); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.reiter a.aktiv { color: var(--tinte); border-bottom-color: var(--akzent); }

/* ---------- Anbindungen als Liste */
.gruppe { padding: 24px 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--leise); border-bottom: 1px solid var(--linie); }
.dienst { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.dienst .zeichen { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--tinte-2); background: var(--flaeche-2); }
.dienst.ist-verbunden .zeichen { background: var(--akzent-zart); color: var(--akzent-text); }
.dienst.ausgegraut .zeichen, .dienst.ausgegraut h3 { color: #8A929C; }
.dienst-text p { font-size: 14px; line-height: 20px; color: var(--leise); margin-top: 2px; max-width: 64ch; overflow-wrap: anywhere; }
.dienst .stand { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.dienst .stand form { margin: 0; }
.verbunden { display: inline-flex; align-items: center; gap: 6px; color: var(--akzent-text); font-weight: 600; font-size: 14px; }
.verbunden svg { width: 18px; height: 18px; }
.bald { color: var(--leise); font-size: 14px; white-space: nowrap; }
.schritte { padding-left: 20px; margin: 8px 0 16px; font-size: 15px; line-height: 22px; }
.schritte li + li { margin-top: 6px; }
code.kopierbar { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 4px; background: var(--flaeche); border: 1px solid var(--linie-feld);
  font: 14px/20px ui-monospace, "Cascadia Mono", Consolas, monospace; user-select: all; word-break: break-all; }

/* ---------- Fenster */
.dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--tinte);
  box-shadow: 0 24px 48px -12px rgba(16,24,40,.28); }
.dialog::backdrop { background: rgba(27,30,34,.45); }
.dialog-innen { padding: 24px; }
.dialog-innen > h2 { margin-bottom: 8px; }
.fenster { width: min(560px, calc(100vw - 32px)); }
.fenster-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fenster-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.schliessen { width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; border-radius: 8px; background: none; color: var(--leise); font-size: 26px; line-height: 1; cursor: pointer; }
.schliessen:hover { background: var(--flaeche); color: var(--tinte); }

/* ---------- Anmeldung */
.anmelden { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--leiste); }
.anmelden .karte { background: #fff; border: 0; border-radius: 12px; padding: 32px; width: min(420px, 100%); margin: 0; }
.anmelden img { width: 220px; display: block; margin-bottom: 24px; }
.anmelden h1 { margin-bottom: 4px; }

/* ---------- Handy */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .rahmen { display: block; background: var(--grund); }
  .seite { display: none; }
  .kopfleiste { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--leiste); color: #fff; position: sticky; top: 0; z-index: 15; }
  .kopfleiste img { width: 30px; height: 30px; }
  .kopfleiste b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kopfleiste .live { margin-left: auto; font-size: 13px; color: var(--leiste-text); white-space: nowrap; }
  .unten-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 16;
    height: 64px; background: #fff; border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
  .unten-nav a, .unten-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--leise); font: inherit; font-size: 12px; font-weight: 600;
    text-decoration: none; background: none; border: 0; cursor: pointer; }
  .unten-nav form { display: grid; margin: 0; }
  .unten-nav a[aria-current] { color: var(--akzent-text); }
  main { padding: 20px 16px 104px; }
  h1 { font-size: 22px; line-height: 30px; }
  .kopf, .seitenkopf { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .knopf, .knopf-zweit { min-height: 44px; }
  .knopf-klein { min-height: 40px; }
  .raster, .raster.gleich, .zwei-spalten, .zwei { grid-template-columns: 1fr; gap: 0; }
  .raster { gap: 32px; }
  .nur-breit { display: none !important; }

  .anrufliste, .anrufliste tbody, .anrufliste tr { display: block; }
  .anrufliste tr.tag th { display: block; padding: 20px 0 8px; }
  .anrufliste tr.anruf { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; margin: 0 -16px; padding: 14px 16px; border-bottom: 1px solid var(--linie); }
  .anrufliste tr.anruf:nth-child(even of .anruf) { background: var(--zebra); }
  .anrufliste tr.anruf td { display: block; padding: 0; border: 0; background: none !important; width: auto; }
  .anrufliste td.art { grid-row: 1 / span 3; }
  .anrufliste tr.anruf td.wer { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .anrufliste td.wer .nr { display: none; }
  .anrufliste td.wer .kunde { flex-basis: 100%; }
  .anrufliste td.wer .zeit-mobil { display: block; margin-left: auto; font-size: 14px; color: var(--leise); }
  .anrufliste td.stand { grid-column: 2; grid-row: 2; text-align: left; }
  .anrufliste td.stand time { display: none; }
  .anrufliste td.stand .ergebnis, .anrufliste td.stand .detail { display: inline; }
  .anrufliste td.stand .detail::before { content: ", "; }
  .anrufliste td.was { grid-column: 2; grid-row: 3; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .liste thead { display: none; }
  .liste tr { display: grid; grid-template-columns: 1fr auto; padding: 12px; border-bottom: 1px solid var(--linie); }
  .liste tbody tr:nth-child(even) { background: var(--zebra); }
  .liste td { padding: 0; border: 0; background: none !important; }
  .liste tfoot tr { border-top: 2px solid var(--tinte); border-bottom: 0; }
  .liste tfoot td { border: 0; }
  .filter > div { flex: 1 1 140px; }
  .filter select, .filter input { min-width: 0; width: 100%; }

  .gespraech-kopf { flex-direction: column; gap: 12px; }
  .gespraech-kopf h1 { font-size: 24px; line-height: 32px; }
  .gespraech-kopf .meta { flex-direction: column; }
  .gespraech-kopf .meta span + span::before { content: none; }
  .zwei-spalten { gap: 32px; margin-top: 24px; }
  .zusammenfassung { font-size: 16px; line-height: 26px; }
  .mitschrift .satz { grid-template-columns: 1fr; gap: 2px; }
  .mitschrift .wer { display: flex; gap: 8px; }
  .mitschrift .wer b { display: inline; }
  .unten-leiste { display: flex; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 14; padding: 10px 16px; background: #fff; border-top: 1px solid var(--linie); }
  .unten-leiste .knopf { flex: 1; }
  main:has(.unten-leiste) { padding-bottom: 176px; }

  .tage { grid-template-columns: 96px minmax(0, 1fr); }
  .zeile-feld input { flex-basis: 100%; }
  .stimmwahl { flex-wrap: wrap; }
  .speicherleiste { left: 0; bottom: 64px; padding: 10px 16px; flex-wrap: wrap; }
  .speicherleiste span { flex-basis: 100%; }
  .speicherleiste .knopf, .speicherleiste .knopf-zweit { flex: 1; }
  body.hat-aenderungen main { padding-bottom: 200px; }

  .dienst { grid-template-columns: 40px minmax(0, 1fr); }
  .dienst .stand { grid-column: 2; justify-content: flex-start; }
  .dialog, .fenster { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 90vh; }
  .dialog-innen { padding: 20px 16px 24px; }
  .fenster-fuss .knopf, .fenster-fuss .knopf-zweit { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.auswahl-summe { border: 1px solid var(--linie); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; }
.auswahl-titel { font-size: 18px; }
.summe { display: flex; gap: 28px; margin: 0; }
.summe div { text-align: right; }
.summe dt { font-size: 13px; color: var(--leise); }
.summe dd { margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summe-hinweis { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.auswahl-aendern { grid-column: 1 / -1; }
.auswahl-aendern summary { cursor: pointer; display: inline-block; text-decoration: underline; font-size: 14px; padding: 4px 0; }
.auswahl-aendern .filter { margin-top: 12px; }
@media (max-width: 640px) { .auswahl-summe { grid-template-columns: 1fr; } .summe { justify-content: space-between; } .summe div { text-align: left; } }
.guthaben-stand { font-size: 34px; font-weight: 600; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.guthaben-stand.knapp { color: var(--rueckruf); }
.liste td.plus { color: var(--akzent-text); }
.rechnung-abweichend:not(:has(input[name="rechnung_abweichend"]:checked)) .r-felder { display: none; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; width: 100%; }
.anleitung { padding-left: 18px; line-height: 1.6; }
.anleitung li { margin-bottom: 6px; }
.abstand-klein { margin-top: 8px; }

/* KI-Dialog: Gilt für Telefonassistent / Chatbot */
.gilt-fuer { border: 0; padding: 0; margin: 12px 0 0; }
.gilt-fuer[hidden] { display: none; }
.gilt-fuer legend { font-weight: 600; margin-bottom: 4px; padding: 0; }

/* Menü: Unterpunkte (Anrufe, Chatverläufe) leicht eingerückt; Konto unten links */
.seite nav a.unterpunkt { padding-left: 34px; height: 34px; font-size: 13.5px; }
.seite nav a.unterpunkt svg { width: 16px; height: 16px; }
.seite nav a.aktiv { background: var(--leiste-aktiv); color: #fff; }
.seite .unten .konto-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; margin: 0 -8px 8px; border-radius: var(--r);
  color: var(--leiste-text); text-decoration: none; font-size: 14px; }
.seite .unten .konto-link:hover { background: var(--leiste-hover); color: #fff; }
.seite .unten .konto-link.aktiv { background: var(--leiste-aktiv); color: #fff; }
.seite .unten .konto-link.aktiv svg { color: var(--akzent); }

/* Aktive Anbindungen: Gilt-für-Auswahl je Zeile */
.aktive-anb select { width: auto; min-width: 180px; margin: 0; }
.aktive-anb td { vertical-align: middle; }

/* Anbindungen direkt auf der Telefon- und Chatbot-Seite */
.anb-karte { margin-top: 24px; padding: 16px; background: var(--flaeche); border-radius: 8px; }
.anb-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.anb-kopf h2 { margin: 0; }
.abstand-unten { margin-bottom: 20px; }
td.zahl.minus { color: var(--fehler); font-weight: 600; }
td.zahl.plus { color: var(--akzent-text); font-weight: 600; }
.stimm-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--linie-feld); border-radius: var(--r); background: #fff; margin-bottom: 8px; }
.stimm-zeile .leise { margin-left: 6px; }
.fenster-breit { width: min(640px, calc(100vw - 32px)); }
.fenster-fuss .leise { margin-right: auto; align-self: center; }
details.klon > summary { cursor: pointer; color: var(--akzent-text); font-weight: 600; }
.kundensuche { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.suchfeld { position: relative; flex: 1 1 240px; min-width: 0; }
.suchfeld svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--tinte-2); pointer-events: none; }
.suchfeld input[type=search] { width: 100%; min-height: 40px; margin: 0; padding: 9px 12px 9px 38px; border: 1px solid var(--linie-feld);
  border-radius: var(--r); background: #fff; font: inherit; font-size: 15px; line-height: 20px; color: var(--tinte); -webkit-appearance: none; appearance: none; }
.suchfeld input[type=search]:focus { outline: none; border-color: var(--akzent-knopf); box-shadow: 0 0 0 3px rgba(22,163,148,.22); }
.suchfeld input[type=search]::placeholder { color: var(--tinte-2); }
.punkt-an{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1a8f5a;vertical-align:middle;margin-left:4px}
.kanal-wahl{display:flex;flex-wrap:wrap;gap:.25rem 1rem}.kanal-wahl .haken{margin:0}
.anb-eintrag { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie, #ddd); }
.anb-eintrag textarea { width: 100%; }
.anb-kann { margin: 6px 0 10px; }
.beispiele { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ds-vorschau { border: 1px solid var(--linie); border-radius: 8px; padding: 4px 18px 10px; }
.ds-vorschau h4 { margin: 16px 0 4px; }
.ds-vorschau p { margin: 0 0 8px; }
.schritte { padding-left: 20px; }
.ds-hinweis { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.avv table { margin-top: 6px; }
@media print { nav, .leiste, aside, .knopf, .knopf-klein, form, footer { display: none !important; } .ds-vorschau { border: 0; } }
.avv-ua { margin: 0 0 12px; overflow-wrap: anywhere; }

/* Systemstand (Admin) */
.abstand-oben { margin-top: 20px; }
.status-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #9AA1AB; }
.status-punkt.an { background: #1F9D6A; box-shadow: 0 0 0 3px rgba(31,157,106,.18); }
.status-punkt.bereit { background: transparent; border: 2px solid #1F9D6A; width: 8px; height: 8px; }
.status-punkt.aus { background: var(--fehler); }
.marke-ersatz { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #FFF1D6; color: #8A5A00; }
.systemtafel td { vertical-align: top; }
