/* Finn – Web-Chat. Keine externen Schriften/Skripte (CSP: nur 'self'). */
:root {
  --papier: #f3efe6;
  --flaeche: #fffdf8;
  --flaeche-2: #f8f4ec;
  --tinte: #1c211e;
  --leise: #6c716b;
  --linie: #e3dccd;
  --akzent: #1f6b57;
  --akzent-tief: #155242;
  --akzent-sanft: #dcebe3;
  --akzent-text: #ffffff;
  --anruf: #1f8a5b;
  --anruf-tief: #16704a;
  --warn: #a8531d;
  --warn-sanft: #f6e3d2;
  --rot: #b23a3a;
  --rot-sanft: #f5dede;
  --blau: #2c5d8a;
  --blau-sanft: #dde8f3;
  --ich: #1f6b57;
  --ich-text: #fff;
  --schatten: 0 1px 2px rgba(40, 32, 16, .06), 0 8px 24px rgba(40, 32, 16, .07);
  --radius: 18px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --schrift-zettel: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #101412; --flaeche: #181d1a; --flaeche-2: #1d2320; --tinte: #e7ebe7; --leise: #969d97;
    --linie: #2a322e; --akzent: #5cc39f; --akzent-tief: #7fd4b5; --akzent-sanft: #1d3a30; --akzent-text: #0c1a14;
    --anruf: #2fb074; --anruf-tief: #3fc486; --warn: #e39a62; --warn-sanft: #3a2718; --rot: #ec8a8a; --rot-sanft: #3a1f1f;
    --blau: #8ab8e4; --blau-sanft: #1c2a38; --ich: #2c7a63; --ich-text: #f2fbf7;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #101412; --flaeche: #181d1a; --flaeche-2: #1d2320; --tinte: #e7ebe7; --leise: #969d97;
  --linie: #2a322e; --akzent: #5cc39f; --akzent-tief: #7fd4b5; --akzent-sanft: #1d3a30; --akzent-text: #0c1a14;
  --anruf: #2fb074; --anruf-tief: #3fc486; --warn: #e39a62; --warn-sanft: #3a2718; --rot: #ec8a8a; --rot-sanft: #3a1f1f;
  --blau: #8ab8e4; --blau-sanft: #1c2a38; --ich: #2c7a63; --ich-text: #f2fbf7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte); font: 16px/1.45 var(--schrift);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; letter-spacing: -.01em; }
.sprite { display: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.leise { color: var(--leise); }
.klein-text { font-size: .82rem; }
.mitte { text-align: center; }

/* ---------------------------------------------------------------- Marke */
.marke { position: relative; width: 36px; height: 36px; border-radius: 12px; background: var(--akzent); color: var(--akzent-text);
  display: grid; place-items: center; flex: none; overflow: hidden; }
.marke-f { font: 700 19px/1 var(--schrift-zettel); position: relative; z-index: 1; }
.marke-welle { position: absolute; inset: 0; background:
  radial-gradient(circle at 115% 50%, transparent 38%, rgba(255,255,255,.18) 39%, rgba(255,255,255,.18) 45%, transparent 46%),
  radial-gradient(circle at 115% 50%, transparent 55%, rgba(255,255,255,.12) 56%, rgba(255,255,255,.12) 62%, transparent 63%); }
.marke.gross { width: 64px; height: 64px; border-radius: 20px; }
.marke.gross .marke-f { font-size: 34px; }

/* ---------------------------------------------------------------- Knöpfe & Felder */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linie);
  background: var(--flaeche); border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: transform .08s, background .15s, opacity .15s; min-height: 44px; }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf.geist { background: transparent; }
.knopf.klein { padding: 6px 12px; min-height: 34px; font-size: .85rem; }
.knopf.klein svg { width: 16px; height: 16px; }
.knopf.breit { width: 100%; }
.knopf.rund { width: 44px; height: 44px; padding: 0; }
.knopf.anruf { background: var(--anruf); border-color: var(--anruf); color: #fff; box-shadow: 0 6px 18px -6px var(--anruf); }
.knopf.anruf:not(:disabled):hover { background: var(--anruf-tief); }
.knopf.gefahr { color: var(--rot); }
.feld { display: grid; gap: 6px; font-size: .85rem; color: var(--leise); }
.feld input, .zeile input { width: 100%; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 12px;
  padding: 11px 14px; font-size: 1rem; color: var(--tinte); }
input:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.hinweis { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; font-size: .9rem; margin: 0; }
.hinweis.stark { background: var(--akzent-sanft); border-color: transparent; }
.fehler { color: var(--rot); font-size: .9rem; min-height: 1.3em; margin: 0; }

/* ---------------------------------------------------------------- Anmeldung */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-karte { width: min(380px, 100%); background: var(--flaeche); border-radius: 28px; padding: 36px 28px 28px;
  box-shadow: var(--schatten); display: grid; gap: 14px; justify-items: center; text-align: center; }
.login-karte h1 { font: 700 1.9rem/1 var(--schrift-zettel); margin-top: 6px; }
.login-karte > p.leise { margin: -6px 0 10px; }
.login-form { display: grid; gap: 12px; width: 100%; text-align: left; }
.trenner { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--leise); font-size: .8rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.code-box { width: 100%; text-align: left; }
.code-box summary { cursor: pointer; color: var(--akzent); font-size: .9rem; text-align: center; list-style: none; padding: 6px; }
.code-box summary::-webkit-details-marker { display: none; }
.code-box[open] summary { margin-bottom: 10px; }

/* ---------------------------------------------------------------- Grundgerüst (Handy zuerst) */
.app { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; grid-template-areas: "kopf" "haupt" "navi"; }
.kopf { grid-area: kopf; display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf-titel { display: grid; line-height: 1.15; }
.kopf-titel strong { font: 700 1.1rem var(--schrift-zettel); }
.kopf-titel span { font-size: .78rem; }
.pille { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--flaeche); font-size: .82rem; font-weight: 600; cursor: pointer; }
.pille .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.pille[data-zustand="aktiv"] { background: var(--anruf); color: #fff; border-color: var(--anruf); }
.pille[data-zustand="aktiv"] .punkt { background: #fff; animation: puls 1.2s infinite; }
@keyframes puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.navi { grid-area: navi; display: flex; justify-content: space-around; background: var(--flaeche); border-top: 1px solid var(--linie);
  padding: 6px 8px max(6px, env(safe-area-inset-bottom)); }
.navi-punkt { position: relative; display: grid; justify-items: center; gap: 2px; border: 0; background: none; cursor: pointer;
  color: var(--leise); font-size: .7rem; font-weight: 600; padding: 6px 10px; border-radius: 12px; min-width: 64px; }
.navi-punkt svg { width: 24px; height: 24px; }
.navi-punkt[aria-current="page"] { color: var(--akzent); }
.abzeichen { position: absolute; top: 4px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--anruf);
  border: 2px solid var(--flaeche); }
.nur-gross { display: none !important; }

.ansicht { grid-area: haupt; min-height: 0; display: none; flex-direction: column; }
body[data-ansicht="chat"] #v-chat, body[data-ansicht="auftrag"] #v-auftrag,
body[data-ansicht="anrufe"] #v-anrufe, body[data-ansicht="mehr"] #v-mehr { display: flex; }
.ansicht-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.anrufe, .mehr, .auftrag { overflow-y: auto; }
.anrufe, .mehr { padding-bottom: 24px; }

/* ---------------------------------------------------------------- Chat */
.chat { background: var(--papier); }
.nachrichten { flex: 1; overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-leer { margin: auto; max-width: 420px; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 24px 0; }
.chat-leer p { margin: 0; }
.vorschlaege { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.vorschlag { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: 8px 14px; font-size: .88rem;
  cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.vorschlag svg { width: 16px; height: 16px; color: var(--akzent); }
.blase { max-width: min(85%, 560px); padding: 10px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: rein .18s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }
.blase.ki { align-self: flex-start; background: var(--flaeche); border: 1px solid var(--linie); border-bottom-left-radius: 6px; }
.blase.ich { align-self: flex-end; background: var(--ich); color: var(--ich-text); border-bottom-right-radius: 6px; }
.blase.fehler { align-self: center; background: var(--rot-sanft); color: var(--rot); font-size: .88rem; border-radius: 12px; }
.blase ul { margin: 4px 0; padding-left: 20px; white-space: normal; }
.blase-auftrag { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--akzent-sanft); color: var(--tinte); border: 0; cursor: pointer; font-size: .9rem; text-align: left; }
.blase-auftrag svg { color: var(--akzent); }
.tippt { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 20px 20px 20px 6px; }
.tippt i { width: 7px; height: 7px; border-radius: 50%; background: var(--leise); animation: tippt 1s infinite; }
.tippt i:nth-child(2) { animation-delay: .15s; } .tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tippt { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.eingabe { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--linie); background: var(--papier); }
.eingabe textarea { flex: 1; resize: none; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 22px; padding: 11px 16px;
  font-size: 1rem; max-height: 180px; line-height: 1.35; }

/* ---------------------------------------------------------------- Auftrag (Zettel) */
.auftrag { background: var(--papier); }
.auftrag-leer { margin: auto; text-align: center; color: var(--leise); display: grid; justify-items: center; gap: 8px; padding: 32px 24px; max-width: 320px; }
.auftrag-leer > svg { width: 44px; height: 44px; stroke-width: 1.2; }
.auftrag-leer p { margin: 0; }
.zettel { margin: 4px 16px 16px; background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 6px 0 12px;
  position: relative; animation: rein .25s ease-out; }
.zettel::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--akzent); }
.zettel.neu { animation: aufleuchten 1.2s ease-out; }
@keyframes aufleuchten { 0% { box-shadow: 0 0 0 4px var(--akzent-sanft), var(--schatten); } 100% { box-shadow: var(--schatten); } }
.zettel-kopf { padding: 16px 18px 10px; border-bottom: 1px dashed var(--linie); display: grid; gap: 8px; }
.zettel-titel { border: 0; background: none; font: 700 1.2rem/1.25 var(--schrift-zettel); padding: 2px 0; width: 100%; }
.nummer { display: flex; align-items: center; gap: 8px; background: var(--flaeche-2); border-radius: 12px; padding: 4px 12px; }
.nummer svg { color: var(--akzent); width: 18px; height: 18px; }
.nummer input { border: 0; background: none; padding: 7px 0; width: 100%; font-variant-numeric: tabular-nums; font-size: 1rem; }
.nummer input:focus { outline: none; }
.nummer:focus-within { outline: 2px solid var(--akzent); }
.feld-hinweis { margin: 0; font-size: .8rem; color: var(--warn); min-height: 0; }
.feld-hinweis:empty { display: none; }
.abschnitt { padding: 12px 18px 4px; }
.abschnitt h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--akzent); margin-bottom: 6px; font-weight: 700; }
.abschnitt h3 .leise { text-transform: none; letter-spacing: 0; font-weight: 500; }
.abschnitt textarea, .punkte textarea { width: 100%; border: 0; background: none; resize: none; padding: 4px 0; line-height: 1.45; font-size: .97rem; overflow: hidden; }
.abschnitt textarea:focus { outline: none; background: var(--flaeche-2); border-radius: 8px; box-shadow: 0 0 0 6px var(--flaeche-2); }
.punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.punkte li { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.punkte li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--linie); margin-top: 12px; flex: none; }
.abschnitt[data-liste="vorgaben"] .punkte li::before { background: var(--warn); }
.abschnitt[data-liste="infos"] .punkte li::before { background: var(--blau); }
.abschnitt[data-liste="erfragen"] .punkte li::before { background: var(--akzent); }
.punkte .weg { border: 0; background: none; color: var(--leise); cursor: pointer; padding: 6px; opacity: 0; border-radius: 8px; }
.punkte .weg svg { width: 14px; height: 14px; }
.punkte li:hover .weg, .punkte li:focus-within .weg { opacity: 1; }
@media (hover: none) { .punkte .weg { opacity: .5; } }
.punkt-neu { border: 0; background: none; color: var(--leise); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; cursor: pointer; }
.punkt-neu svg { width: 14px; height: 14px; }
.punkt-neu:hover { color: var(--akzent); }
.auftrag-fuss { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 16px; background: linear-gradient(transparent, var(--papier) 30%); margin-top: auto; }
.auftrag-fuss .anruf { flex: 1; white-space: nowrap; }
@media (max-width: 420px) { #vorlage-speichern span { display: none; } #vorlage-speichern { width: 48px; padding: 0; flex: none; } }

/* ---------------------------------------------------------------- Anrufe */
.live { margin: 4px 16px 12px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--anruf); color: #fff; box-shadow: 0 10px 30px -12px var(--anruf); }
.live .leise { color: rgba(255,255,255,.85); font-size: .9rem; }
.live-welle { display: flex; align-items: center; gap: 3px; height: 28px; }
.live-welle i { width: 4px; border-radius: 2px; background: #fff; animation: welle 1s ease-in-out infinite; }
.live-welle i:nth-child(1) { animation-delay: -.2s; } .live-welle i:nth-child(2) { animation-delay: -.5s; }
.live-welle i:nth-child(3) { animation-delay: -.1s; } .live-welle i:nth-child(4) { animation-delay: -.7s; } .live-welle i:nth-child(5) { animation-delay: -.3s; }
@keyframes welle { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.anrufliste { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
.anruf-karte { background: var(--flaeche); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--schatten); display: grid; gap: 8px; }
.anruf-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.anruf-kopf strong { font-size: 1rem; }
.anruf-kopf .zeit { margin-left: auto; font-size: .8rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.chip { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--flaeche-2); color: var(--leise); white-space: nowrap; }
.chip.gut { background: var(--akzent-sanft); color: var(--akzent); }
.chip.warn { background: var(--warn-sanft); color: var(--warn); }
.chip.schlecht { background: var(--rot-sanft); color: var(--rot); }
.chip.info { background: var(--blau-sanft); color: var(--blau); }
.anruf-karte p { margin: 0; font-size: .93rem; }
.termine { display: grid; gap: 6px; }
.termin { display: flex; align-items: center; gap: 10px; background: var(--flaeche-2); border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.termin svg { color: var(--akzent); width: 18px; height: 18px; }
.termin.vorlaeufig svg { color: var(--warn); }
.termin b { font-variant-numeric: tabular-nums; }
.offen { font-size: .88rem; color: var(--warn); }
.anruf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.anruf-aktionen a { text-decoration: none; }

/* ---------------------------------------------------------------- Konto */
.mehr { padding: 0 16px 24px; gap: 12px; }
.mehr .ansicht-kopf { padding-left: 0; padding-right: 0; }
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 16px; box-shadow: var(--schatten); display: grid; gap: 12px; }
.karte h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.karte h3 svg { color: var(--akzent); }
.karte p { margin: 0; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; }
.liste li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.liste li > div { flex: 1; min-width: 0; }
.liste li small { display: block; color: var(--leise); font-size: .78rem; }
.liste li.leer { color: var(--leise); font-size: .9rem; }
.zeile { display: flex; gap: 8px; }
.zeile input { flex: 1; padding: 8px 12px; }

/* ---------------------------------------------------------------- Dialoge & Toast */
.dialog { border: 0; border-radius: 26px; padding: 0; background: var(--flaeche); color: var(--tinte); width: min(380px, calc(100% - 32px));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.dialog::backdrop { background: rgba(16, 20, 18, .45); backdrop-filter: blur(3px); }
.dialog form { padding: 26px 24px 20px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.dialog p { margin: 0; }
.dialog-symbol { width: 56px; height: 56px; border-radius: 50%; background: var(--akzent-sanft); color: var(--anruf); display: grid; place-items: center; }
.dialog-symbol svg { width: 26px; height: 26px; }
.dialog-knoepfe { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.dialog-knoepfe .knopf { flex: 1; }
.dialog.breit { width: min(720px, calc(100% - 32px)); max-height: 85dvh; }
.dialog.breit form { text-align: left; justify-items: stretch; padding: 18px 20px 20px; }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; }
.dialog pre { margin: 0; white-space: pre-wrap; font: .86rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--flaeche-2);
  padding: 14px; border-radius: 14px; max-height: 65dvh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tinte); color: var(--papier);
  padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--schatten); z-index: 10; max-width: calc(100% - 32px); animation: rein .2s; }

/* ---------------------------------------------------------------- Tablet */
@media (min-width: 700px) {
  .zettel, .live { margin-left: auto; margin-right: auto; width: min(640px, calc(100% - 32px)); }
  .anrufliste, .mehr > * { width: min(640px, 100%); margin-left: auto; margin-right: auto; }
  .anrufliste { padding: 0; }
  .ansicht-kopf, .auftrag-fuss { width: min(672px, 100%); align-self: center; }
  .mehr > .knopf.breit { width: min(640px, 100%); }
}

/* ---------------------------------------------------------------- Desktop: Navigation links, Chat + Auftrag nebeneinander */
@media (min-width: 1000px) {
  .app { grid-template-columns: 236px minmax(0, 1fr) minmax(360px, 440px); grid-template-rows: auto 1fr;
    grid-template-areas: "kopf kopf kopf" "navi haupt seite"; }
  .nur-gross { display: flex !important; }
  .nur-klein { display: none !important; }
  .navi { flex-direction: column; justify-content: flex-start; gap: 4px; border-top: 0; border-right: 1px solid var(--linie); padding: 16px 12px; background: var(--papier); }
  .navi-punkt { display: flex; align-items: center; gap: 12px; font-size: .93rem; padding: 10px 12px; min-width: 0; color: var(--tinte); font-weight: 500; }
  .navi-punkt svg { width: 20px; height: 20px; color: var(--leise); }
  .navi-punkt:hover { background: var(--flaeche-2); }
  .navi-punkt[aria-current="page"] { background: var(--flaeche); box-shadow: var(--schatten); color: var(--tinte); font-weight: 650; }
  .navi-punkt[aria-current="page"] svg { color: var(--akzent); }
  .navi-punkt[data-aktion="neu"] { background: var(--akzent); color: var(--akzent-text); font-weight: 650; margin-bottom: 10px; }
  .navi-punkt[data-aktion="neu"] svg { color: var(--akzent-text); }
  .abzeichen { position: static; margin-left: auto; }
  .navi-fuss { margin-top: auto; padding: 12px; }
  .kontingent { display: grid; gap: 6px; font-size: .85rem; width: 100%; }
  .balken { height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; }
  .balken i { display: block; height: 100%; width: 0; background: var(--akzent); border-radius: 3px; transition: width .4s; }
  /* Chat und Auftrag immer beide sichtbar */
  body[data-ansicht="chat"] #v-auftrag, body[data-ansicht="auftrag"] #v-chat { display: flex; }
  body[data-ansicht="chat"] #v-auftrag, body[data-ansicht="auftrag"] #v-auftrag { grid-area: seite; border-left: 1px solid var(--linie); background: var(--flaeche-2); }
  body[data-ansicht="auftrag"] #v-chat { grid-area: haupt; }
  body[data-ansicht="anrufe"] #v-anrufe, body[data-ansicht="mehr"] #v-mehr { grid-column: 2 / 4; }
  .zettel { width: auto; margin: 4px 16px 16px; }
  .auftrag .ansicht-kopf, .auftrag-fuss { width: 100%; }
  .nachrichten { padding: 20px max(24px, calc((100% - 720px) / 2)); }
  .eingabe { padding: 12px max(24px, calc((100% - 720px) / 2)) 18px; border-top: 0; }
  .toast { bottom: 28px; }
}
/* 1000–1279 px: Navigation nur als Symbolleiste, damit der Chat Platz hat */
@media (min-width: 1000px) and (max-width: 1279px) {
  .app { grid-template-columns: 76px minmax(0, 1fr) minmax(340px, 400px); }
  .navi { padding: 16px 10px; align-items: center; }
  .navi-punkt { width: 52px; height: 48px; justify-content: center; padding: 0; }
  .navi-punkt span, .navi-fuss { display: none !important; }
  .navi-punkt .abzeichen { position: absolute; top: 8px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
