:root {
  --hg: #F2F2F7; --flaeche: #fff; --flaeche-2: #F7F7FA;
  --tinte: #1C1C1E; --tinte-2: #3C3C43; --tinte-3: #6C6C70; --linie: #E5E5EA;
  --blau: #2748D8; --blau-2: #4C7DFF; --blau-hell: #E8EDFF; --nacht: #0E1433;
  --gruen: #1F7A3D; --gruen-hell: #E2F3E6; --gelb: #8A5A00; --gelb-hell: #FFF4D9;
  --rot: #C0362C; --rot-hell: #FDE7E4; --violett: #5B3CC4; --violett-hell: #EEE8FF;
  --r: 18px; --r-k: 12px;
  --schatten: 0 1px 2px rgba(0,0,0,.03);
  --unten: env(safe-area-inset-bottom, 0px);
  --tabs: 62px;
  --flaeche-3: #EBEBF0;
  color-scheme: light;
}
/* Tau ist bewusst nur hell – kein Dunkelmodus */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--hg); }
body { margin: 0; background: var(--hg); color: var(--tinte); font: 400 16px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blau); outline-offset: 2px; border-radius: 6px; }
.leise { color: var(--tinte-3); }
.klein { font-size: 13.5px; }
.fehlt { color: var(--rot); font-style: italic; font-weight: 500; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.ic.leise { color: var(--tinte-3); }

/* ---------- Knöpfe ---------- */
.k { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px; transition: transform .1s, background .15s, opacity .15s; white-space: nowrap; }
.k:active:not(:disabled) { transform: scale(.97); }
.k:disabled { opacity: .45; }
.k .ic { width: 19px; height: 19px; }
.k-dunkel { background: var(--tinte); color: var(--hg); }
.k-dunkel:hover:not(:disabled) { background: #2A2C33; }
.k-blau { background: var(--blau); color: #fff; }
.k-hell { background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie); }
.k-hell:hover:not(:disabled) { background: var(--flaeche-2); }
.k-weiss { background: #fff; color: var(--blau); }
.k-gefahr { background: var(--rot); color: #fff; }
.k-gefahr-text { color: var(--rot); padding: 0 8px; }
.k-hell-auf-dunkel { background: #fff; color: var(--nacht); min-width: 140px; }
.k-text { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-weight: 500; color: var(--tinte-2); }
.k-text.hell { color: rgba(255,255,255,.88); }
.k.gross { min-height: 56px; font-size: 17px; border-radius: 16px; padding: 0 28px; }
.breit { width: 100%; }
.rund { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); }
.rund.dunkel { background: var(--tinte); color: var(--hg); border-color: var(--tinte); }
.rund .ic { width: 20px; height: 20px; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.knopfreihe > .k { flex: 1 1 0; }
.datei { cursor: pointer; }

/* ---------- App-Rahmen ---------- */
.app { min-height: 100dvh; }
.seite { display: none; }
#inhalt { outline: none; max-width: 760px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(var(--tabs) + 40px + var(--unten)); min-height: 100dvh; }
/* Schwebende Tab-Leiste (Glas) mit eigenem Mikrofon-Knopf rechts daneben */
.tabs { position: fixed; left: 16px; right: 16px; bottom: calc(12px + var(--unten)); z-index: 30; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.tabs-leiste { flex: 1; height: var(--tabs); padding: 5px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: calc(var(--tabs) / 2); background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: .5px solid rgba(0,0,0,.08); box-shadow: 0 6px 24px rgba(0,0,0,.08); pointer-events: auto; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabs-leiste { background: rgba(255,255,255,.97); } }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: calc((var(--tabs) - 10px) / 2); font-size: 10.5px; font-weight: 500; color: var(--tinte-2); transition: background .15s, color .15s; }
.tabs a.aktiv { color: var(--blau); font-weight: 600; background: rgba(0,0,0,.05); }
.tabs a .ic { width: 22px; height: 22px; }
.tab-mic { width: var(--tabs); height: var(--tabs); flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blau); box-shadow: 0 6px 18px rgba(39,72,216,.30); transition: transform .12s; pointer-events: auto; }
.tab-mic:active { transform: scale(.94); }
.tab-mic .ic { width: 24px; height: 24px; }
.ohne-nav .tabs, .ohne-nav .seite { display: none !important; }
.ohne-nav #inhalt { padding-bottom: 40px; }

@media (min-width: 960px) {
  .app:not(.ohne-nav) { display: grid; grid-template-columns: 256px 1fr; }
  .tabs { display: none; }
  .seite { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 22px 16px; border-right: 1px solid var(--linie); background: var(--flaeche-2); }
  .marke { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 23px; letter-spacing: -0.04em; padding: 0 8px 14px; }
  .seite-mic { margin: 4px 0 14px; width: 100%; background: var(--blau); color: #fff; }
  .seite nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--tinte-2); font-weight: 500; }
  .seite nav a:hover { background: rgba(18,19,24,.04); }
  .seite nav a.aktiv { background: var(--flaeche); color: var(--tinte); box-shadow: var(--schatten); }
  .seite-betrieb { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px; }
  .seite-betrieb img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
  .seite-betrieb .initial { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tinte); color: #fff; font-weight: 700; }
  .seite-betrieb small { display: block; color: var(--tinte-3); }
  .seite-betrieb b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
  #inhalt { padding: 28px 32px 120px; max-width: 1080px; }
  .ohne-nav #inhalt { max-width: 760px; }
}

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; min-height: 44px; }
.kopf h1 { font-size: 28px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf-aktionen { display: flex; gap: 8px; }
.abschnitt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tinte-3); margin: 26px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.abschnitt a { text-transform: none; letter-spacing: 0; color: var(--blau); font-size: 14px; }

/* ---------- Karten & Listen ---------- */
.karte { display: block; width: 100%; text-align: left; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; box-shadow: var(--schatten); margin-bottom: 12px; }
button.karte:not(:disabled):hover, a.karte:hover { border-color: #D5D2CA; }
.karte-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; }
.liste.kompakt { box-shadow: none; max-height: 46vh; overflow-y: auto; }
.zeile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; min-height: 64px; border-bottom: 1px solid var(--linie); transition: background .12s; }
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: var(--flaeche-2); }
.zeile-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zeile-haupt b, .zeile-haupt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-haupt b { font-weight: 600; }
.zeile-haupt span { color: var(--tinte-2); font-size: 14px; }
.zeile-haupt small, .zeile-rechts small { color: var(--tinte-3); font-size: 12.5px; }
.zeile-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; flex: none; }
.zeile-rechts b { font-weight: 600; }
.zeile.wahl input { width: 20px; height: 20px; accent-color: var(--blau); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--blau); background: var(--blau-hell); text-transform: uppercase; }
.avatar.gross { width: 56px; height: 56px; font-size: 22px; }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s-entwurf { background: var(--flaeche-3); color: var(--tinte-2); }
.s-frei { background: var(--blau-hell); color: var(--blau); }
.s-versendet { background: var(--violett-hell); color: var(--violett); }
.s-angenommen { background: var(--gruen-hell); color: var(--gruen); }
.s-abgelehnt { background: var(--rot-hell); color: var(--rot); }
.s-uebergeben { background: #E6F4F1; color: #0F6E56; }
.extern-karte { background: linear-gradient(135deg, #fff, #E6F4F1); }
.extern-karte .karte-kopf .ic { color: #0F6E56; }
.extern-karte p { margin: 0 0 8px; font-size: 14px; }
.ok-kasten { background: var(--gruen-hell); color: #1F5414; border-radius: 12px; padding: 12px 14px; margin: 10px 0 4px; font-size: 15px; }
.ok-kasten small { color: #2F6B3C; }
.schritte.dunkel-auf-hell { text-align: left; max-width: none; margin: 8px 0 4px; }
.schritte.dunkel-auf-hell li { color: var(--tinte-3); }
.schritte.dunkel-auf-hell li .punkt { border-color: var(--linie); }
.schritte.dunkel-auf-hell li.aktiv { color: var(--tinte); }
.schritte.dunkel-auf-hell li.aktiv .punkt { border-color: var(--blau); border-top-color: transparent; }
.schritte.dunkel-auf-hell li.fertig { color: var(--tinte); }
.schritte li.fehlgeschlagen { color: var(--rot); }
.schritte li.fehlgeschlagen .punkt { border: 0; background: var(--rot); }
.anbindung-zeile { display: flex; align-items: center; gap: 12px; }
.anbindung-zeile .tau-ic { flex: none; }
.anbindung-zeile span { flex: 1; display: flex; flex-direction: column; }
.anbindung-zeile small { color: var(--tinte-3); }

.suche { display: flex; align-items: center; gap: 10px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 0 14px; margin-bottom: 12px; min-height: 48px; color: var(--tinte-3); }
.suche input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; color: var(--tinte); min-height: 46px; }
.filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 38px; padding: 0 15px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px; font-weight: 500; color: var(--tinte-2); }
.filter button[aria-selected="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--hg); }

.leer { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.leer h2 { font-size: 20px; }
.leer p { color: var(--tinte-2); max-width: 340px; margin: 0 0 8px; }

/* ---------- Start ---------- */
.start-kopf { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.start-kopf p { margin: 0; font-size: 13.5px; }
.start-kopf h1 { font-size: 27px; font-weight: 800; }
.held-karte { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; display: flex; align-items: center; gap: 8px;
  background: radial-gradient(120% 140% at 100% 0%, #8DB6FF 0%, #4C7DFF 38%, #2748D8 70%, #1C33A6 100%); box-shadow: 0 16px 40px rgba(39,72,216,.28); }
.held-karte::after { content: ""; position: absolute; inset: auto -40px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.held-text { flex: 1; position: relative; z-index: 1; }
.held-text h2 { font-size: 26px; font-weight: 800; }
.held-text p { margin: 6px 0 16px; opacity: .9; font-size: 15px; max-width: 360px; }
.held-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.held-tau { position: relative; z-index: 1; flex: none; }
.beispiel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 500; color: #fff; opacity: .92; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.beispiel-link .ic { width: 15px; height: 15px; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px; box-shadow: var(--schatten); display: flex; flex-direction: column; min-width: 0; }
.kachel small { color: var(--tinte-3); font-size: 12.5px; font-weight: 500; }
.kachel b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kachel span { color: var(--tinte-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipp { display: flex; gap: 12px; align-items: flex-start; background: var(--flaeche); border: 1px dashed #CFCBC1; border-radius: var(--r); padding: 16px; margin-top: 18px; color: var(--tinte-2); font-size: 15px; }
.tipp p { margin: 0; }

/* ---------- Angebot (Detail) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.detail-haupt, .detail-seite { min-width: 0; }
/* Angebot: Kopf klebt oben – Nummer, Kunde, Summe immer im Blick */
.akopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: -12px -16px 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--hg); border-bottom: 1px solid var(--linie); }
.akopf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.akopf-text small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--tinte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.akopf-text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.akopf-summe { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.akopf-summe b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.akopf-summe small { font-size: 11.5px; color: var(--tinte-3); white-space: nowrap; }
.rueck { background: var(--gelb-hell); border: 1px solid #F1DFB0; border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.rueck-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; color: #5A3D00; font-weight: 700; font-size: 14px; }
.rueck-zeile { padding: 8px 10px 10px 14px; border-top: 1px solid #F1DFB0; font-size: 14px; color: #4A3200; }
.rueck-oben { display: flex; align-items: center; gap: 10px; }
.rf-frage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-frage small { color: #8A5A00; font-size: 12px; }
.rf-chips, .paket-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0 34px; }
.paket-chips { margin: 0 0 12px; }
.rf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--flaeche); border: 1px solid #E2C98C; color: var(--tinte); font-weight: 600; font-size: 14px; transition: transform .12s, background .12s; }
.rf-chip .ic { width: 16px; height: 16px; }
.rf-chip:active { transform: scale(.96); }
.rf-chip:hover { background: #FFF9EA; }
.paket-chips .rf-chip { border-color: var(--linie); }
.paket-chips .rf-chip .ic { color: var(--blau); }
.rf-form { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 34px; }
.rf-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #E2C98C; background: var(--flaeche); font: inherit; font-size: 15px; }
.rf-form:not(.rf-text) input { flex: 0 1 110px; }
.rf-form span { font-weight: 600; color: #8A5A00; }
.rf-form .rf-ok { background: var(--tinte); color: var(--hg); border-color: var(--tinte); }
.rf-form .rf-ok .ic { color: var(--hg); }
.rf-wartet { display: none; align-items: center; gap: 8px; margin: 8px 0 0 34px; font-weight: 600; color: #5A3D00; }
.rueck-zeile.wartet .rf-chips, .rueck-zeile.wartet .rf-form { display: none; }
.rueck-zeile.wartet .rf-wartet { display: flex; }
.rueck-zeile.wartet .rueck-mic, .rueck-zeile.wartet .rueck-kreis { opacity: .4; }
.paket-pos { min-height: 56px; padding: 10px 12px 10px 16px; }
.paket-menge { width: 64px; height: 38px; text-align: right; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linie); font: inherit; font-size: 15px; flex: none; }
.lern-zeile { min-height: 56px; }
.rueck-kreis { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9A25A; background: transparent; flex: none; }
.rueck-kreis:hover { background: #FFE9B8; }
.rueck-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--flaeche); border: 1px solid #F1DFB0; color: var(--blau); display: grid; place-items: center; flex: none; }
.rueck-mic .ic { width: 18px; height: 18px; }
.texte-karte { display: flex; flex-direction: column; gap: 4px; }
.texte-karte small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tinte-3); }
.texte-karte p { margin: 0; font-size: 14px; color: var(--tinte-2); }
.status-zeile { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.rueckfragen { background: var(--gelb-hell); border-color: #F1DFB0; color: #4A3200; }
.rueckfragen ul { margin: 0; padding-left: 20px; font-size: 14.5px; }
.rueckfragen li { margin: 3px 0; }
.rueckfragen .mehr-rf { color: var(--gelb); font-weight: 600; font-size: 14px; min-height: 32px; margin-top: 2px; }
.rueckfragen:not(.offen) li:nth-child(n+3) { display: none; }
.rueckfragen .knopfreihe .k { min-height: 42px; }
.kunde-karte { display: flex; align-items: center; gap: 12px; }
.kunde-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kunde-text small { color: var(--tinte-2); font-size: 14px; }
.papier { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.papier-kopf { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 14px 14px 10px; }
.papier-kopf small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tinte-3); }
.papier-kopf h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.positionen { border-top: 1px solid var(--linie); }
.pos { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); align-items: flex-start; transition: background .12s; }
.pos:not(:disabled):hover { background: var(--flaeche-2); }
.pos-nr { width: 22px; height: 22px; border-radius: 7px; background: var(--flaeche-3); color: var(--tinte-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; margin-top: 1px; }
.pos-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pos-text b { font-weight: 600; font-size: 14.5px; }
.pos-text small { color: var(--tinte-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.pos-summe { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.geschaetzt { display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--gelb); background: var(--gelb-hell); border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }
.pos-neu { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 14px; color: var(--blau); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--linie); }
.summen { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 12px 14px 14px; font-variant-numeric: tabular-nums; color: var(--tinte-2); font-size: 14px; }
.summen > span { display: flex; justify-content: space-between; }
.summen .brutto { color: var(--tinte); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; border-top: 1.5px solid var(--tinte); padding-top: 8px; margin-top: 4px; }
.papier-hinweise { padding: 0 18px 18px; color: var(--tinte-2); font-size: 14px; }
.papier-hinweise p { margin: 3px 0; }
.link-karte code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tinte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.link-karte p { margin: 0 0 10px; font-size: 14px; }
.link-zeile { display: flex; align-items: center; gap: 10px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 12px; padding: 4px 4px 4px 12px; }
.verlauf ol { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: flex; gap: 12px; padding: 8px 0; position: relative; font-size: 14px; }
.verlauf li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -6px; width: 1.5px; background: var(--linie); }
.verlauf li b { font-weight: 500; display: block; overflow-wrap: anywhere; }
.verlauf li small { color: var(--tinte-3); font-size: 12.5px; }
.v-ic { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--flaeche-3); color: var(--tinte-2); }
.v-ic .ic { width: 16px; height: 16px; }
.v-sprache .v-ic { background: var(--blau-hell); color: var(--blau); }
.v-angenommen .v-ic { background: var(--gruen-hell); color: var(--gruen); }
.v-geoeffnet .v-ic, .v-versendet .v-ic { background: var(--violett-hell); color: var(--violett); }
.v-abgelehnt .v-ic { background: var(--rot-hell); color: var(--rot); }

.aktionsleiste { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--tabs) + 12px + var(--unten)); display: flex; gap: 10px; padding: 10px 16px; background: linear-gradient(transparent, var(--hg) 30%); }
.aktionsleiste > * { flex: 1; min-width: 0; white-space: normal; line-height: 1.15; }
.aktionsleiste > .k-hell { flex: 0 1 auto; }
@media (max-width: 360px) { .aktionsleiste > .k { padding: 0 12px; font-size: 14.5px; } }
#inhalt:has(.aktionsleiste) { padding-bottom: calc(var(--tabs) + 110px + var(--unten)); }

@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .detail-seite { position: sticky; top: 20px; }
  .aktionsleiste { position: sticky; bottom: 16px; left: auto; right: auto; max-width: 560px; margin: 16px 0 0; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.94); border: 1px solid var(--linie); box-shadow: 0 10px 30px rgba(18,19,24,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* ---------- Formulare ---------- */
.formular { display: block; }
.feld { display: block; margin-bottom: 12px; }
.feld > span { display: block; font-size: 13.5px; font-weight: 500; color: var(--tinte-2); margin: 0 2px 5px; }
.feld input, .feld textarea { width: 100%; min-height: 48px; border: 1px solid var(--linie); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--tinte); background: var(--flaeche); outline: none; transition: border-color .12s, box-shadow .12s; }
.feld textarea { resize: vertical; line-height: 1.45; }
.feld input:focus, .feld textarea:focus { border-color: var(--blau); box-shadow: 0 0 0 3px rgba(39,72,216,.15); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.chips-wahl span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); font-weight: 500; cursor: pointer; }
.chips-wahl input:checked + span { background: var(--tinte); color: var(--hg); border-color: var(--tinte); }
.chips-wahl input:focus-visible + span { outline: 2.5px solid var(--blau); outline-offset: 2px; }
.schalter { display: flex; gap: 10px; align-items: flex-start; margin: 10px 2px 18px; font-size: 15px; cursor: pointer; }
.schalter input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blau); flex: none; }
.schalter small { display: block; color: var(--tinte-3); }
.logo-karte { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-karte .knopfreihe { margin: 0; flex: 1; }
.logo-vorschau { width: 140px; height: 64px; border-radius: 12px; background: var(--flaeche-2); border: 1px dashed var(--linie); display: grid; place-items: center; overflow: hidden; }
.logo-vorschau img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Mehr ---------- */
.betrieb-karte { display: flex; align-items: center; gap: 14px; }
.betrieb-karte img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.betrieb-karte span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.betrieb-karte small { color: var(--tinte-3); }
.menue { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.menue > a, .menue > button { display: flex; align-items: center; gap: 12px; padding: 15px 16px; min-height: 54px; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 500; width: 100%; }
.menue > :last-child { border-bottom: 0; }
.menue > :hover { background: var(--flaeche-2); }
.menue .gefahr { color: var(--rot); }
.menue.gross { box-shadow: var(--schatten); }
.fusszeile { text-align: center; color: var(--tinte-3); font-size: 13px; margin: 28px 0 0; line-height: 1.6; }
.fusszeile .tau { vertical-align: middle; }
.import-karte { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff, var(--blau-hell)); }
.import-karte > .ic:first-child { color: var(--blau); width: 26px; height: 26px; }
.import-karte span { flex: 1; display: flex; flex-direction: column; }
.import-karte small { color: var(--tinte-2); }

/* ---------- Willkommen ---------- */
.willkommen { max-width: 520px; margin: 0 auto; padding-top: 12px; }
.willkommen h1 { font-size: 32px; font-weight: 850; margin: 12px 0 8px; }
.willkommen > p { color: var(--tinte-2); font-size: 17px; margin: 0 0 24px; }
.w1 { text-align: center; padding-top: 6vh; display: flex; flex-direction: column; align-items: center; }
.w1 h1 { font-size: 40px; }
.w1 .k { margin-bottom: 14px; min-width: 220px; }
.w-tau { display: flex; justify-content: center; }
.w-tau.klein { justify-content: flex-start; margin-top: 14px; }
.wahl-karte { display: flex; align-items: center; gap: 14px; }
.wahl-karte > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.wahl-karte small { color: var(--tinte-2); }
.wahl-karte.haupt { border: 2px solid var(--tinte); }
.wahl-karte.haupt > span:first-child { width: 44px; height: 44px; border-radius: 12px; background: var(--tinte); color: #fff; display: grid; place-items: center; }
.willkommen .abschnitt { margin-top: 24px; }

/* ---------- Tau, die Figur ---------- */
.tau { display: inline-block; overflow: visible; flex: none; }
.tau-mini { width: 26px; height: 30px; }
.tau-ic { width: 30px; height: 35px; }
.tau-marke { width: 30px; height: 35px; }
.tau-klein { width: 46px; height: 54px; }
.tau-mittel { width: 84px; height: 98px; }
.tau-held { width: 118px; height: 138px; filter: drop-shadow(0 12px 18px rgba(7,16,70,.35)); }
.tau-gross { width: 168px; height: 196px; }
.tau-riesig { width: 170px; height: 198px; filter: drop-shadow(0 18px 30px rgba(39,72,216,.25)); }
.tau .tau-koerper, .tau .tau-augen, .tau .tau-mund > *, .tau .auge-offen { transform-box: fill-box; }
.tau .tau-koerper { transform-origin: 50% 100%; }
.tau .auge-froh, .tau .auge-zwinkern, .tau .tau-mund > * { display: none; }
.tau[data-stimmung="ruhig"] .m-laecheln, .tau[data-stimmung="zwinkert"] .m-laecheln { display: inline; }
.tau[data-stimmung="zwinkert"] .auge-offen { display: none; }
.tau[data-stimmung="zwinkert"] .auge-zwinkern { display: inline; }
.tau[data-stimmung="hoert"] .m-o { display: inline; }
.tau[data-stimmung="denkt"] .m-denkt { display: inline; }
.tau[data-stimmung="freut"] .auge-offen { display: none; }
.tau[data-stimmung="freut"] .auge-froh, .tau[data-stimmung="freut"] .m-breit { display: inline; }
.tau[data-stimmung="traurig"] .m-traurig { display: inline; }
.tau[data-stimmung="traurig"] .tau-wangen { opacity: .15; }

.tau .auge-offen { transform-origin: 50% 50%; animation: blinzeln 5s infinite; }
@keyframes blinzeln { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.tau-held .tau-koerper, .tau-riesig .tau-koerper, .tau-mittel .tau-koerper { animation: schweben 3.4s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tau[data-stimmung="hoert"] .tau-koerper { animation: none; transform: scale(calc(1 + var(--pegel, 0) * .1), calc(1 + var(--pegel, 0) * .14)); transition: transform .08s; }
.tau[data-stimmung="hoert"] .m-o { transform-origin: 50% 30%; transform: scale(calc(.75 + var(--pegel, 0) * .9), calc(.6 + var(--pegel, 0) * 1.6)); transition: transform .08s; }
.tau[data-stimmung="denkt"] .tau-koerper { animation: wiegen 1.8s ease-in-out infinite; }
.tau[data-stimmung="denkt"] .tau-augen { animation: umschauen 3.6s ease-in-out infinite; }
@keyframes wiegen { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes umschauen { 0%, 100% { transform: translate(0, -2px); } 30% { transform: translate(-4px, -4px); } 65% { transform: translate(4px, -4px); } }
.tau[data-stimmung="freut"] .tau-koerper { animation: huepfen .55s cubic-bezier(.3,1.6,.5,1) 2; }
@keyframes huepfen { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-14px) scale(.96, 1.05); } 70% { transform: translateY(0) scale(1.06, .94); } }
.tau[data-stimmung="traurig"] .tau-koerper { transform: rotate(-6deg) translateY(2px); transition: transform .3s; }
.held-tau:active .tau-koerper { transform: scale(.94); }

/* ---------- Diktat (Vollbild) ---------- */
dialog.diktat { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; color: #fff;
  background: radial-gradient(120% 80% at 50% 30%, #23339A 0%, #0E1433 55%, #060918 100%); display: flex; flex-direction: column; animation: einblenden .25s ease-out; }
dialog.diktat::backdrop { background: #060918; }
@keyframes einblenden { from { opacity: 0; transform: scale(1.02); } }
.diktat-kopf { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; }
.diktat-titel { font-weight: 600; opacity: .85; }
.diktat .rund { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.diktat-buehne { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 22px; text-align: center; min-height: 0; overflow-y: auto; }
.tau-buehne { position: relative; width: 260px; height: 260px; display: grid; place-items: center; flex: none; --pegel: 0; }
.tau-buehne .tau { position: relative; z-index: 2; filter: drop-shadow(0 20px 40px rgba(76,125,255,.45)); }
.ring { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(76,125,255,.35), rgba(76,125,255,0) 70%); transform: scale(calc(.9 + var(--pegel) * .7)); transition: transform .1s; }
.ring.r2 { inset: 0; background: none; border: 1.5px solid rgba(156,199,255,.25); transform: scale(calc(.85 + var(--pegel) * .35)); }
[data-phase="senden"] .ring.r2 { border-style: dashed; border-color: rgba(156,199,255,.45); animation: drehen 6s linear infinite; }
[data-phase="senden"] .ring.r1 { animation: atmen 1.6s ease-in-out infinite; }
[data-phase="fertig"] .ring.r1 { background: radial-gradient(circle, rgba(110,231,160,.4), rgba(110,231,160,0) 70%); transform: scale(1.1); }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes atmen { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
[data-phase="senden"] .tau-buehne, [data-phase="fertig"] .tau-buehne, [data-phase="tippen"] .tau-buehne { width: 170px; height: 170px; }
[data-phase="senden"] .tau-gross, [data-phase="fertig"] .tau-gross, [data-phase="tippen"] .tau-gross { width: 110px; height: 128px; }
.diktat-status { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; max-width: 520px; }
.pegel-balken { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 36px; margin-top: 16px; }
.pegel-balken i { display: block; width: 4px; height: 6px; border-radius: 2px; background: #9CC7FF; transition: height .08s; }
.zeit-gross { margin-top: 10px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }
.diktat-aktion { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.diktat-links { display: flex; gap: 28px; }
.diktat-links .k-text { color: rgba(255,255,255,.75); font-size: 14px; }
.diktat-hinweis { margin: 0; opacity: .7; max-width: 420px; font-size: 15.5px; }
.diktat-text { width: 100%; max-width: 560px; margin-top: 10px; }
.diktat-text textarea { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; padding: 14px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; outline: none; }
.diktat-text textarea::placeholder { color: rgba(255,255,255,.45); }
.diktat-text textarea:focus { border-color: rgba(156,199,255,.7); }
.schritte { list-style: none; margin: 14px 0 0; padding: 0; width: 100%; max-width: 420px; text-align: left; }
.schritte li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 2px 10px; padding: 7px 0; color: rgba(255,255,255,.4); transition: color .2s; }
.schritte li .punkt { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.schritte li.aktiv { color: #fff; }
.schritte li.aktiv .punkt { border-color: #9CC7FF; border-top-color: transparent; animation: drehen .8s linear infinite; }
.schritte li.fertig { color: rgba(255,255,255,.9); }
.schritte li.fertig .punkt { border: 0; background: #34C47C; }
.schritte li.fertig .punkt::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translateY(-1px) rotate(-45deg); }
.schritte q { grid-column: 2; font-size: 13.5px; font-style: italic; color: rgba(255,255,255,.65); quotes: "„" "“"; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.diktat-fuss { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px 16px calc(26px + var(--unten)); min-height: 120px; position: relative; }
.aufnahme-knopf { width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--blau); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.35); transition: transform .12s; }
.aufnahme-knopf:active { transform: scale(.94); }
.aufnahme-knopf:disabled { opacity: .5; }
.aufnahme-knopf .ic { width: 34px; height: 34px; stroke-width: 2.6; }
.diktat .zeit { font-variant-numeric: tabular-nums; opacity: .8; min-width: 60px; font-weight: 600; }
.diktat .zeit.laufend { opacity: .6; }
.diktat-fuss .k-text { color: rgba(255,255,255,.8); min-width: 60px; }

/* ---------- Sheets ---------- */
dialog.sheet { border: 0; padding: 10px 18px calc(20px + var(--unten)); margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--hg); color: var(--tinte); box-shadow: 0 -10px 40px rgba(0,0,0,.15); animation: hoch .26s cubic-bezier(.2,.9,.3,1); }
dialog.sheet::backdrop { background: rgba(14,20,51,.38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes hoch { from { transform: translateY(40px); opacity: .4; } }
.sheet-griff { width: 40px; height: 5px; border-radius: 3px; background: #D3D0C7; margin: 0 auto 14px; }
dialog.sheet h3 { font-size: 21px; font-weight: 750; margin-bottom: 6px; }
dialog.sheet .leise { margin: 0 0 12px; }
.sheet-tau { display: flex; justify-content: center; margin: 0 0 6px; }
.warnung { background: var(--gelb-hell); color: #4A3200; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }
.teilen-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 12px; }
.teilen-k { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); font-weight: 600; font-size: 14.5px; }
.teilen-k .ic { width: 26px; height: 26px; }
.teilen-k.wa { background: #E7F8EE; border-color: #C6EBD4; color: #128C4A; }
.vorschau { margin-bottom: 12px; font-size: 14px; }
.vorschau summary { cursor: pointer; color: var(--tinte-2); min-height: 36px; display: flex; align-items: center; }
.vorschau pre { white-space: pre-wrap; font: 14px/1.5 Inter, system-ui, sans-serif; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px; margin: 6px 0 0; }
.anleitung { padding-left: 20px; line-height: 1.9; }
.anleitung .ic { width: 17px; height: 17px; vertical-align: -3px; }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; width: min(520px, calc(100% - 32px)); border-radius: 24px; padding-bottom: 22px; }
  .sheet-griff { display: none; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 100; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 9px 16px 9px 10px; border-radius: 99px; background: var(--tinte); color: #fff; font-weight: 500; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.2,.9,.3,1); pointer-events: none; }
.toast.zeigen { transform: translate(-50%, 0); }
.toast.fehler { background: #7A1F18; }

@media (max-width: 400px) {
  .held-tau .tau-held { width: 92px; height: 108px; }
  .held-karte { padding: 18px; }
  .kachel b { font-size: 22px; }
  .kopf h1 { font-size: 25px; }
}
/* ---------- Übergänge, Skelett, Banner, Konto ---------- */
#inhalt.wechsel { animation: seite-rein .22s ease-out; }
@keyframes seite-rein { from { opacity: 0; transform: translateY(6px); } }
.sk { display: inline-block; border-radius: 6px; background: linear-gradient(90deg, var(--flaeche-3) 25%, var(--flaeche-2) 50%, var(--flaeche-3) 75%); background-size: 200% 100%; animation: schimmer 1.3s infinite; }
@keyframes schimmer { to { background-position: -200% 0; } }
.skelett-kopf { margin: 6px 0 16px; } .sk-titel { width: 44%; height: 28px; } .sk-b { width: 60%; height: 15px; margin-bottom: 7px; } .sk-s { width: 40%; height: 12px; } .sk-r { width: 64px; height: 16px; }
.skelett-liste .zeile { pointer-events: none; }
.banner { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(var(--tabs) + 24px + var(--unten)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--nacht); color: #fff; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.banner .k { min-height: 38px; padding: 0 14px; font-size: 14px; }
.banner.offline { top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; background: #5A3D00; justify-content: center; }
.ohne-nav .banner { bottom: 16px; }
.zug-anzeige { position: fixed; z-index: 80; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -160%); padding: 7px 14px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--tinte-3); font-size: 13px; transition: transform .2s; pointer-events: none; }
.zug-anzeige.zeigen { transform: translate(-50%, 0); } .zug-anzeige.bereit { color: var(--blau); border-color: var(--blau); }
.install-karte { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tau text x" "tau knopf x"; align-items: center; column-gap: 12px; row-gap: 8px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 12px 14px; margin-top: 14px; }
.install-karte > .tau { grid-area: tau; } .install-karte > span { grid-area: text; font-size: 14.5px; } .install-karte small { display: block; color: var(--tinte-3); }
.install-karte > .k { grid-area: knopf; justify-self: start; min-height: 40px; } .install-karte > .rund { grid-area: x; }
.aktivitaet { list-style: none; margin: 0; padding: 0; }
.aktivitaet li { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--linie); font-size: 14.5px; }
.aktivitaet li:last-child { border-bottom: 0; }
.aktivitaet li span { flex: 1; min-width: 0; } .aktivitaet li b { font-weight: 600; } .aktivitaet li small { display: block; color: var(--tinte-3); font-size: 12.5px; }
.aktivitaet .v-ic { width: 30px; height: 30px; }
.gruppe { font-size: 12.5px; font-weight: 600; color: var(--tinte-3); text-transform: uppercase; letter-spacing: .05em; padding: 14px 16px 6px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
.code { font: 600 22px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-align: center; padding: 14px; background: var(--flaeche-2); border: 1px dashed var(--linie); border-radius: 12px; user-select: all; }
.qr { display: flex; justify-content: center; margin: 14px 0; } .qr svg { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; }
.geraet { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--linie); font-size: 14.5px; } .geraet:last-child { border-bottom: 0; } .geraet span { flex: 1; } .geraet small { display: block; color: var(--tinte-3); }
.feld input.code-eingabe { font: 600 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.wartet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gelb-hell); color: var(--gelb); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 14.5px; }
.wartet > span:first-of-type { flex: 1; min-width: 200px; } .wartet-knoepfe { display: flex; gap: 4px; } .wartet .k-text { color: inherit; min-height: 36px; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Mehr: Einstellungen im iOS-Stil ---------- */
.einst-titel { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 36px 4px 14px; }
.einst { background: var(--flaeche); border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.einst > a, .einst > button { display: flex; align-items: center; gap: 14px; width: 100%; padding-left: 16px; text-align: left; font-size: 16px; color: var(--tinte); }
.einst > :active { background: var(--flaeche-3); }
.einst-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 16px 8px 0; border-bottom: .5px solid rgba(60,60,67,.18); }
.einst > :last-child .einst-text { border-bottom: 0; }
.einst-text > span:first-child { flex: 1 1 auto; min-width: min-content; }
.einst-wert { flex: 0 1 auto; min-width: 0; color: var(--tinte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.einst-pfeil { width: 14px; height: 14px; color: #C4C4C7; stroke-width: 2.6; }
.einst-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.einst-ic .ic { width: 17px; height: 17px; }
.einst-ic .tau-ic { width: 20px; height: 23px; }
.einst .gefahr { color: var(--rot); justify-content: center; padding-left: 0; }
.einst .gefahr .einst-text { justify-content: center; padding-right: 0; }
.einst .gefahr .einst-text > span:first-child { flex: none; }
.einst-betrieb { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--flaeche); border-radius: 16px; margin-bottom: 24px; }
.einst-betrieb img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.einst-betrieb > span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.einst-betrieb b { font-weight: 600; font-size: 17px; }
.einst-betrieb small { color: var(--tinte-3); font-size: 13px; }

/* ---------- Prüfansicht vor der Freigabe ---------- */
.pruef-kunde { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--flaeche-2); margin: 4px 0 10px; }
.pruef-kunde span { color: var(--tinte-3); font-size: 14px; }
.pruef-liste { border-radius: 14px; background: var(--flaeche-2); overflow: hidden; }
.pruef-pos { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .5px solid rgba(60,60,67,.18); }
.pruef-pos:last-child { border-bottom: 0; }
.pruef-pos.zu-pruefen { background: var(--gelb-hell); cursor: pointer; min-height: 52px; }
.pruef-pos input { width: 22px; height: 22px; accent-color: var(--blau); flex: none; }
.pruef-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pruef-text b { font-weight: 500; font-size: 15px; }
.pruef-text small { color: var(--tinte-3); font-size: 13px; }
.pruef-text em { color: var(--gelb); font-style: normal; font-weight: 600; }
.pruef-betrag { font-variant-numeric: tabular-nums; flex: none; }
.pruef-summe { display: flex; justify-content: space-between; padding: 8px 14px 0; color: var(--tinte-3); font-variant-numeric: tabular-nums; }
.pruef-summe.brutto { color: var(--tinte); font-weight: 700; font-size: 17px; padding-bottom: 8px; }
.fusszeile a { color: var(--blau); }
.willkommen p a { color: var(--blau); font-weight: 500; }
