/* BS-CHAT - eine Oberfläche für Telefon und Browser.
   Leitfarbe Türkis #00898f (Bonke-Systems). Hell und dunkel nach Systemeinstellung. */

[hidden] { display: none !important; } /* eigenes display überstimmt sonst hidden (BS_Worklist) */

:root {
  --tuerkis: #00898f;
  --tuerkis-dunkel: #006c71;
  --tuerkis-hell: #e3f4f4;
  --grund: #ffffff;
  --flaeche: #f3f5f6;
  --chatgrund: #e9eeef;
  --linie: #dde3e5;
  --text: #1b2326;
  --leise: #66757a;
  --blase: #ffffff;
  --blase-eigen: #d6f0ef;
  --rot: #c62828;
  --orange: #e08a00;
  --gruen: #2e7d32;
  --schatten: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
  --rund: 14px;
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-oben: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tuerkis: #20a9ae;
    --tuerkis-dunkel: #5cc6ca;
    --tuerkis-hell: #11373a;
    --grund: #161b1d;
    --flaeche: #1e2427;
    --chatgrund: #0f1416;
    --linie: #2c3438;
    --text: #e6ecee;
    --leise: #93a2a7;
    --blase: #222a2e;
    --blase-eigen: #0f4a4c;
    --schatten: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--grund);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
/* 16 px in jedem Feld - darunter zoomt Safari beim Antippen in die Seite. */
input, textarea, select { font-size: 16px; }
a { color: var(--tuerkis); }

#app { height: 100dvh; display: flex; overflow: hidden; }
.startbild { margin: auto; opacity: .8; }

/* ------------------------------------------------------------ Bausteine -- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0;
  background: var(--tuerkis); color: #fff; font-weight: 600; cursor: pointer;
  touch-action: manipulation;
}
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); }
.knopf.gefahr { background: var(--rot); }
.knopf.breit { width: 100%; }
.knopf.klein { min-height: 34px; padding: 0 12px; font-size: 14px; }

.symbol {
  width: 44px; height: 44px; flex: none; border: 0; background: none; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--leise);
  touch-action: manipulation;
}
.symbol:hover { background: var(--flaeche); }
.symbol svg { width: 24px; height: 24px; }
.symbol.aktiv { color: var(--tuerkis); }

.feld { display: block; margin: 0 0 14px; }
.feld > span { display: block; font-size: 13px; color: var(--leise); margin-bottom: 4px; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--linie); background: var(--grund);
}
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: 2px solid var(--tuerkis); outline-offset: -1px; border-color: transparent; }
.zeile { display: flex; gap: 10px; align-items: center; }
.zeile > .feld { flex: 1; }
.schalter { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.schalter input { width: 22px; height: 22px; accent-color: var(--tuerkis); }
.leise { color: var(--leise); font-size: 14px; }
.fehler { color: var(--rot); font-size: 14px; min-height: 1.2em; }

.bild {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px;
  background: var(--tuerkis); user-select: none; position: relative;
}
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bild.gross { width: 96px; height: 96px; font-size: 34px; }
.bild.klein { width: 32px; height: 32px; font-size: 13px; }
.bild .punkt { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3bb54a; border: 2px solid var(--grund); }

.marke { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie); }
.marke.tuerkis { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); border-color: transparent; }
.marke.rot { background: #fde8e8; color: var(--rot); border-color: transparent; }

/* --------------------------------------------------------------- Anmelden -- */

.anmelden { margin: auto; width: min(400px, 100%); padding: 24px 20px calc(24px + var(--sicher-unten)); }
.anmelden .kopf { text-align: center; margin-bottom: 24px; }
.anmelden h1 { font-size: 24px; margin: 12px 0 4px; }
.reiter { display: flex; background: var(--flaeche); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.reiter button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--leise); }
.reiter button.an { background: var(--grund); color: var(--text); box-shadow: var(--schatten); font-weight: 600; }
.pin { letter-spacing: .5em; text-align: center; font-size: 28px !important; font-variant-numeric: tabular-nums; }
.hinweis { background: var(--tuerkis-hell); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Rahmen -- */

.seitenleiste {
  width: 100%; display: flex; flex-direction: column; background: var(--grund);
  border-right: 1px solid var(--linie); min-width: 0;
}
.hauptbereich { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--chatgrund); }
.hauptbereich .leer { margin: auto; color: var(--leise); text-align: center; padding: 20px; }

/* Telefon: eine Ansicht zur Zeit. */
@media (max-width: 899px) {
  #app.im-chat .seitenleiste { display: none; }
  #app:not(.im-chat) .hauptbereich { display: none; }
}
/* Breit: Liste links, Chat rechts. */
@media (min-width: 900px) {
  .seitenleiste { width: 380px; flex: none; }
}

.leiste {
  display: flex; align-items: center; gap: 4px; padding: calc(6px + var(--sicher-oben)) 8px 6px;
  min-height: 56px; background: var(--grund); border-bottom: 1px solid var(--linie); flex: none;
}
.leiste h2 { font-size: 20px; margin: 0 0 0 8px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste .titel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 4px; border-radius: 10px; }
.leiste .titel b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste .titel small { display: block; color: var(--leise); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste .titel small.tippt { color: var(--tuerkis); }

.suchfeld { padding: 8px 12px; background: var(--grund); flex: none; }
.suchfeld input {
  width: 100%; min-height: 40px; border-radius: 20px; border: 0; padding: 0 16px 0 40px;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2366757a' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") 14px center no-repeat;
}

.liste { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.eintrag {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 68px;
  cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
}
.eintrag:hover { background: var(--flaeche); }
.eintrag.an { background: var(--tuerkis-hell); }
.eintrag .mitte { flex: 1; min-width: 0; }
.eintrag .oben, .eintrag .unten { display: flex; gap: 8px; align-items: baseline; }
.eintrag .name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .zeit { font-size: 12px; color: var(--leise); flex: none; }
.eintrag .vorschau { flex: 1; color: var(--leise); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .vorschau.tippt { color: var(--tuerkis); }
.zaehler { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--tuerkis); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.zaehler.stumm { background: #9aa7ab; }
.gruppenkopf { padding: 14px 16px 6px; font-size: 13px; font-weight: 600; color: var(--tuerkis); text-transform: uppercase; letter-spacing: .03em; }

.fab {
  position: absolute; right: 18px; bottom: calc(76px + var(--sicher-unten)); width: 56px; height: 56px;
  border-radius: 50%; border: 0; background: var(--tuerkis); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.fab svg { width: 26px; height: 26px; }
.seitenleiste { position: relative; }

.navigation {
  display: flex; border-top: 1px solid var(--linie); background: var(--grund);
  padding-bottom: var(--sicher-unten); flex: none;
}
.navigation button {
  flex: 1; border: 0; background: none; min-height: 58px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--leise); cursor: pointer; position: relative;
}
.navigation button svg { width: 24px; height: 24px; }
.navigation button.an { color: var(--tuerkis); font-weight: 600; }
.navigation .zaehler { position: absolute; top: 6px; left: calc(50% + 6px); height: 18px; min-width: 18px; font-size: 11px; padding: 0 5px; }

.banner { margin: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--tuerkis-hell); display: flex; gap: 10px; align-items: center; font-size: 14px; }
.banner span { flex: 1; }

/* ------------------------------------------------------------------ Chat -- */

.themenleiste { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: var(--grund); border-bottom: 1px solid var(--linie); flex: none; scrollbar-width: none; }
.themenleiste button { flex: none; min-height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--linie); background: var(--grund); cursor: pointer; font-size: 14px; }
.themenleiste button.an { background: var(--tuerkis); color: #fff; border-color: var(--tuerkis); }

.angeheftet { display: flex; gap: 10px; align-items: center; padding: 6px 12px; background: var(--grund); border-bottom: 1px solid var(--linie); cursor: pointer; font-size: 14px; flex: none; }
.angeheftet::before { content: ""; width: 3px; align-self: stretch; background: var(--tuerkis); border-radius: 2px; }
.angeheftet div { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.verlauf { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; position: relative; }
.verlauf .nachladen { text-align: center; color: var(--leise); font-size: 13px; padding: 8px; }

.tag { text-align: center; margin: 12px 0 8px; position: sticky; top: 0; z-index: 1; }
.tag span, .system span { display: inline-block; background: rgba(0,0,0,.35); color: #fff; font-size: 13px; padding: 3px 12px; border-radius: 12px; }
.system { text-align: center; margin: 6px 0; }
.system span { background: rgba(0,0,0,.18); color: var(--text); }
.neu-trenner { text-align: center; margin: 10px -10px; padding: 4px; background: rgba(0,137,143,.12); color: var(--tuerkis-dunkel); font-size: 13px; font-weight: 600; }

.nachricht { display: flex; gap: 8px; align-items: flex-end; margin-top: 2px; position: relative; }
.nachricht.neue-gruppe { margin-top: 10px; }
.nachricht.eigen { flex-direction: row-reverse; }
.nachricht .bild.klein { visibility: hidden; }
.nachricht.letzte-der-gruppe .bild.klein { visibility: visible; }
.nachricht.markiert .blase { box-shadow: 0 0 0 3px var(--tuerkis); }

.blase {
  max-width: min(78%, 560px); background: var(--blase); border-radius: var(--rund); padding: 6px 10px 6px;
  box-shadow: var(--schatten); position: relative; min-width: 64px; overflow-wrap: anywhere;
  user-select: text; -webkit-user-select: text; transition: transform .15s;
}
.eigen .blase { background: var(--blase-eigen); }
.blase .absender { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.blase .weiter { font-size: 13px; color: var(--leise); font-style: italic; margin-bottom: 2px; }
.blase .text { white-space: pre-wrap; }
.blase .text .erw { color: var(--tuerkis); font-weight: 600; }
.blase .fuss { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--leise); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.blase .fuss .haken { width: 16px; height: 11px; }
.blase .fuss .haken.gelesen { color: var(--tuerkis); }
.blase.geloescht { font-style: italic; color: var(--leise); }
.blase .zitat { border-left: 3px solid var(--tuerkis); background: rgba(0,137,143,.08); border-radius: 6px; padding: 4px 8px; margin: 2px 0 6px; font-size: 14px; cursor: pointer; }
.blase .zitat b { display: block; color: var(--tuerkis); font-size: 13px; }
.blase .zitat div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--leise); }
.blase .menuknopf { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--blase); color: var(--leise); display: none; cursor: pointer; }
@media (hover: hover) { .blase:hover .menuknopf { display: grid; place-items: center; } }

.bilder { display: grid; gap: 3px; margin: 2px -6px 4px; border-radius: 10px; overflow: hidden; }
.bilder.n2, .bilder.n4 { grid-template-columns: 1fr 1fr; }
.bilder.n3 { grid-template-columns: 1fr 1fr 1fr; }
.bilder img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; cursor: zoom-in; background: var(--flaeche); min-height: 80px; }
.bilder.n1 img { max-height: 420px; object-fit: contain; background: transparent; }

.datei { display: flex; gap: 10px; align-items: center; padding: 6px 4px; text-decoration: none; color: var(--text); }
.datei .ds { width: 42px; height: 42px; border-radius: 50%; background: var(--tuerkis); color: #fff; display: grid; place-items: center; flex: none; }
.datei .ds svg { width: 22px; height: 22px; }
.datei b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.datei small { color: var(--leise); }

.sprache { display: flex; gap: 10px; align-items: center; padding: 4px 0; min-width: 220px; }
.sprache button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--tuerkis); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.sprache button svg { width: 20px; height: 20px; }
.sprache .spur { flex: 1; height: 28px; position: relative; cursor: pointer; display: flex; align-items: center; }
.sprache .spur::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--linie); }
.sprache .spur i { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--tuerkis); width: 0; }
.sprache small { color: var(--leise); font-variant-numeric: tabular-nums; min-width: 34px; }
.blase video { max-width: 100%; border-radius: 10px; display: block; margin: 2px 0 4px; }

.reaktionen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; clear: both; }
.reaktionen button { border: 1px solid var(--linie); background: var(--grund); border-radius: 14px; padding: 1px 8px; font-size: 14px; cursor: pointer; min-height: 28px; }
.reaktionen button.ich { border-color: var(--tuerkis); background: var(--tuerkis-hell); }

.pflicht { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--linie); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; clear: both; }
.pflicht .leise { flex: 1; }

/* Karten der Fachanwendungen */
.karte { border-left: 4px solid var(--tuerkis); padding: 2px 0 2px 10px; margin: 2px 0 4px; }
.karte.ok { border-color: var(--gruen); } .karte.warnung { border-color: var(--orange); } .karte.fehler { border-color: var(--rot); }
.karte h4 { margin: 0; font-size: 16px; }
.karte .unter { color: var(--leise); font-size: 14px; }
.karte dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; font-size: 14px; }
.karte dt { color: var(--leise); } .karte dd { margin: 0; }
.karte .knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.karte .knoepfe .knopf { flex: 1 1 auto; min-height: 40px; }
.karte .erledigt { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); font-size: 14px; font-weight: 600; }

.nach-unten {
  position: absolute; right: 14px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--grund); box-shadow: var(--schatten); color: var(--leise); display: grid; place-items: center; cursor: pointer; z-index: 3;
}
.nach-unten .zaehler { position: absolute; top: -6px; right: -4px; }
.verlauf-rahmen { flex: 1; position: relative; display: flex; flex-direction: column; min-height: 0; }

/* -------------------------------------------------------------- Eingabe -- */

.eingabe { background: var(--grund); border-top: 1px solid var(--linie); padding: 6px 6px calc(6px + var(--sicher-unten)); flex: none; position: relative; }
.eingabe .bezug { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px 10px; }
.eingabe .bezug::before { content: ""; width: 3px; align-self: stretch; background: var(--tuerkis); border-radius: 2px; }
.eingabe .bezug div { flex: 1; min-width: 0; font-size: 14px; }
.eingabe .bezug b { color: var(--tuerkis); display: block; font-size: 13px; }
.eingabe .bezug span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--leise); }
.eingabe .zeile { gap: 2px; align-items: flex-end; }
.eingabe textarea {
  flex: 1; resize: none; border: 0; border-radius: 22px; background: var(--flaeche); padding: 11px 16px;
  min-height: 44px; max-height: 40vh; line-height: 22px; outline: none; overflow-y: auto;
}
.eingabe .senden { background: var(--tuerkis); color: #fff; }
.eingabe .senden:hover { background: var(--tuerkis-dunkel); }
.eingabe .nur-lesen { text-align: center; color: var(--leise); padding: 12px; font-size: 14px; }

.wartend { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; }
.wartend .stueck { position: relative; flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--flaeche); display: grid; place-items: center; font-size: 11px; text-align: center; padding: 4px; }
.wartend .stueck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wartend .stueck .weg { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.wartend .stueck .fortschritt { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--tuerkis); }

.aufnahme { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 10px; }
.aufnahme .rot { width: 12px; height: 12px; border-radius: 50%; background: var(--rot); animation: pulsieren 1s infinite; }
.aufnahme .uhr { font-variant-numeric: tabular-nums; flex: 1; }
@keyframes pulsieren { 50% { opacity: .3; } }

.vorschlaege { position: absolute; left: 8px; right: 8px; bottom: 100%; margin-bottom: 4px; background: var(--grund); border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.18); max-height: 240px; overflow-y: auto; z-index: 5; }
.vorschlaege button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 8px 12px; text-align: left; cursor: pointer; min-height: 48px; }
.vorschlaege button.an, .vorschlaege button:hover { background: var(--flaeche); }
.vorschlaege small { color: var(--leise); display: block; }

.ablegen { position: absolute; inset: 0; background: rgba(0,137,143,.15); border: 3px dashed var(--tuerkis); display: grid; place-items: center; font-size: 20px; color: var(--tuerkis-dunkel); z-index: 10; pointer-events: none; }

/* --------------------------------------------------------- Schichten -- */

#schichten { position: relative; z-index: 20; }
.schleier { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; animation: einblenden .15s; }
@keyframes einblenden { from { opacity: 0; } }
.blatt {
  background: var(--grund); width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  padding-bottom: var(--sicher-unten); animation: hoch .2s ease-out; overflow: hidden;
}
@keyframes hoch { from { transform: translateY(40px); opacity: .6; } }
.blatt .griff { width: 40px; height: 5px; border-radius: 3px; background: var(--linie); margin: 8px auto 0; flex: none; }
.blatt .blattkopf { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 18px; flex: none; }
.blatt .blattkopf h3 { flex: 1; margin: 0; font-size: 18px; }
.blatt .inhalt { overflow-y: auto; padding: 4px 18px 18px; flex: 1; overscroll-behavior: contain; }
.blatt .fussleiste { padding: 10px 18px 14px; border-top: 1px solid var(--linie); display: flex; gap: 10px; flex: none; }
.blatt .fussleiste .knopf { flex: 1; }
@media (min-width: 700px) {
  .schleier { align-items: center; }
  .blatt { width: 520px; border-radius: 18px; max-height: 86dvh; }
  .blatt.breit { width: 760px; }
  .blatt .griff { display: none; }
}

.menue button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; border: 0; background: none; text-align: left; padding: 0 6px; cursor: pointer; font-size: 16px; border-radius: 10px; }
.menue button:hover { background: var(--flaeche); }
.menue button svg { width: 22px; height: 22px; color: var(--leise); }
.menue button.gefahr { color: var(--rot); } .menue button.gefahr svg { color: var(--rot); }
.schnellreaktion { display: flex; justify-content: space-between; padding: 4px 0 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.schnellreaktion button { font-size: 28px; width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.schnellreaktion button:hover { background: var(--flaeche); }

.auswahl { display: flex; align-items: center; gap: 12px; padding: 8px 4px; min-height: 60px; cursor: pointer; border-radius: 10px; }
.auswahl:hover { background: var(--flaeche); }
.auswahl .mitte { flex: 1; min-width: 0; }
.auswahl .mitte small { display: block; color: var(--leise); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auswahl input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--tuerkis); }
.gewaehlt { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gewaehlt button { border: 0; background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); border-radius: 16px; padding: 4px 10px; cursor: pointer; }

.profil { text-align: center; padding: 8px 0 16px; }
.profil .bild { margin: 0 auto 10px; }
.profil h3 { margin: 4px 0; font-size: 20px; }
.aktionen { display: flex; gap: 10px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.aktionen .knopf { min-width: 120px; }
.angaben { text-align: left; border-top: 1px solid var(--linie); }
.angaben div { padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.angaben small { display: block; color: var(--leise); font-size: 13px; }

.lichtbild { position: fixed; inset: 0; background: #000; z-index: 30; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.lichtbild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lichtbild .symbol { position: absolute; top: calc(8px + var(--sicher-oben)); color: #fff; background: rgba(0,0,0,.4); }
.lichtbild .zu { right: 8px; } .lichtbild .laden { right: 60px; }

#hinweise { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--sicher-unten)); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
#hinweise div { background: #263238; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--schatten); animation: einblenden .2s; }
#hinweise div.fehler { background: var(--rot); }

.offline { background: var(--orange); color: #fff; text-align: center; font-size: 13px; padding: 3px; flex: none; }

/* ---------------------------------------------------------- Verwaltung -- */
.seite { flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
.seite h3 { margin: 18px 0 8px; font-size: 15px; color: var(--tuerkis); }
.karteikarte { background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--flaeche); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; user-select: all; }
.qr { display: block; margin: 8px auto; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 8px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle td { padding: 8px 4px; border-bottom: 1px solid var(--linie); vertical-align: top; }
/* In der schmalen Seitenleiste nicht quetschen, sondern seitlich wischen. */
.seite .reiter { scrollbar-width: none; }
.seite .reiter button { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
