/* Sprachkasten · Gestaltung der App
   Eine Hauptfarbe (Blau), viel Ruhe, grosse Schrift, grosse Knöpfe.
   Kontraste geprüft (WCAG AA, siehe betrieb/GESTALTUNG.md). Hell und dunkel. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --grund: #F5F8FD;
  --flaeche: #FFFFFF;
  --flaeche-2: #EEF3FB;
  --text: #0B1B33;
  --leise: #4A5B78;
  --linie: #D5DEEC;
  --rand: #7C8BA6;
  --blau: #1552D0;
  --blau-tief: #0F3F9F;
  --blau-hauch: #E8F0FE;
  --auf-blau: #FFFFFF;
  --blau-text: #1552D0;
  --blau-text-hauch: #0F3F9F;
  --warn: #8A4B00;
  --warn-hauch: #FFF4DC;
  --gut: #0B6B43;
  --gut-hauch: #E3F6EC;
  --rot: #A8201A;
  --rot-hauch: #FDECEA;
  --aufnahme: #C8281E;
  --schatten: 0 1px 2px rgba(11, 27, 51, .06), 0 6px 20px rgba(11, 27, 51, .06);
  --schatten-hoch: 0 10px 40px rgba(11, 27, 51, .18);
  --rund: 18px;
  --rund-klein: 12px;
  --leiste-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --grund: #0A1424;
    --flaeche: #121F36;
    --flaeche-2: #182946;
    --text: #EAF0FA;
    --leise: #A3B3CD;
    --linie: #24375A;
    --rand: #6F82A3;
    --blau: #7FAEFF;
    --blau-tief: #A5C6FF;
    --blau-hauch: #17305E;
    --auf-blau: #06122B;
    --blau-text: #8FB6FF;
    --blau-text-hauch: #B9D2FF;
    --warn: #FFD58A;
    --warn-hauch: #3A2A08;
    --gut: #8EE0B6;
    --gut-hauch: #0C2F20;
    --rot: #FFB4AC;
    --rot-hauch: #3D1512;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --schatten-hoch: 0 10px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-thema="dunkel"] {
  --grund: #0A1424; --flaeche: #121F36; --flaeche-2: #182946; --text: #EAF0FA; --leise: #A3B3CD;
  --linie: #24375A; --rand: #6F82A3; --blau: #7FAEFF; --blau-tief: #A5C6FF; --blau-hauch: #17305E;
  --auf-blau: #06122B; --blau-text: #8FB6FF; --blau-text-hauch: #B9D2FF; --warn: #FFD58A; --warn-hauch: #3A2A08;
  --gut: #8EE0B6; --gut-hauch: #0C2F20; --rot: #FFB4AC; --rot-hauch: #3D1512;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --schatten-hoch: 0 10px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blau-text); text-underline-offset: 3px; }
small, .klein { font-size: 15px; }
.leise { color: var(--leise); }
.mitte { text-align: center; }
.nurvorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }

/* Aufbau */
.seite {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 20px calc(var(--leiste-h) + 28px + env(safe-area-inset-bottom));
}
.seite.ohne-leiste { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.kopf {
  display: flex; align-items: center; gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 0 14px;
  min-height: 72px;
}
.kopf h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kopf .zurueck {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-left: -12px;
  border-radius: 50%; color: var(--text); text-decoration: none; flex: none;
}
.kopf .zurueck:active { background: var(--flaeche-2); }
.stapel { display: grid; gap: 14px; }
.stapel.eng { gap: 8px; }
.stapel.weit { gap: 24px; }
.reihe { display: flex; align-items: center; gap: 12px; }
.reihe.umbruch { flex-wrap: wrap; }
.reihe > .dehnt { flex: 1; min-width: 0; }
.abstand { margin-top: 24px; }
.abstand-klein { margin-top: 12px; }

/* Marke */
.marke-kopf { display: flex; align-items: center; gap: 12px; }
.marke-kopf .zeichen { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.marke-kopf .betrieb { font-weight: 700; font-size: 17px; line-height: 1.2; }
.marke-kopf .von { font-size: 13px; color: var(--leise); }

/* Karten und Zeilen */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 18px;
  box-shadow: var(--schatten);
}
.karte.flach { box-shadow: none; }
.karte.blau { background: var(--blau-hauch); border-color: transparent; color: var(--text); }
.karte.warn { background: var(--warn-hauch); border-color: transparent; }
.karte.gut { background: var(--gut-hauch); border-color: transparent; }
.karte > h2 + *, .karte > h3 + * { margin-top: 8px; }
a.karte, button.karte { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
a.karte:active, button.karte:active { transform: scale(.99); }

.liste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); }
.zeile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 68px;
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--linie);
  background: none; width: 100%; text-align: left; font: inherit; border-left: 0; border-right: 0; border-top: 0;
}
.zeile:last-child { border-bottom: 0; }
a.zeile:active, button.zeile:active { background: var(--flaeche-2); }
.zeile .haupt { flex: 1; min-width: 0; }
.zeile .titel, .zeile .unter { display: block; }
.zeile .titel { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .unter { color: var(--leise); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .pfeil { color: var(--rand); flex: none; }
.rund-bild {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--blau-hauch); color: var(--blau-text-hauch);
}
.abschnitt { font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 26px 4px 10px; }

/* Marken (Status) */
.zustand {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 650; line-height: 1.3; white-space: nowrap;
  background: var(--flaeche-2); color: var(--leise);
}
.zustand.blau { background: var(--blau-hauch); color: var(--blau-text-hauch); }
.zustand.warn { background: var(--warn-hauch); color: var(--warn); }
.zustand.gut { background: var(--gut-hauch); color: var(--gut); }
.zustand.rot { background: var(--rot-hauch); color: var(--rot); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 22px;
  border-radius: 16px; border: 1.5px solid transparent;
  background: var(--blau); color: var(--auf-blau);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .08s ease, background .15s ease;
}
.knopf:active { transform: scale(.98); background: var(--blau-tief); }
.knopf[disabled] { opacity: .5; cursor: default; }
.knopf.voll { width: 100%; }
.knopf.gross { min-height: 68px; font-size: 19px; border-radius: 20px; }
.knopf.zweit { background: var(--flaeche); color: var(--blau-text); border-color: var(--linie); }
.knopf.zweit:active { background: var(--blau-hauch); }
.knopf.ruhig { background: transparent; color: var(--blau-text); min-height: 48px; padding: 8px 12px; }
.knopf.ruhig:active { background: var(--blau-hauch); }
.knopf.gefahr { background: var(--flaeche); color: var(--rot); border-color: var(--linie); }
.knopf.klein { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.knopf svg { flex: none; }
.knopfreihe { display: grid; gap: 10px; }
.knopfreihe.zwei { grid-template-columns: 1fr 1fr; }

/* Mikrofon */
.sprechen { display: grid; justify-items: center; gap: 12px; padding: 18px 0 4px; }
.mikro {
  position: relative; width: 164px; height: 164px; border-radius: 50%;
  border: 0; background: var(--blau); color: var(--auf-blau); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 0 12px var(--blau-hauch), 0 18px 40px rgba(21, 82, 208, .28);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s ease;
}
.mikro:active { transform: scale(.97); }
.mikro svg { width: 68px; height: 68px; }
.mikro.laeuft { background: var(--aufnahme); color: #fff; box-shadow: 0 0 0 14px var(--rot-hauch), 0 18px 40px rgba(200, 40, 30, .3); }
.mikro.laeuft::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 3px solid var(--aufnahme); opacity: .5; animation: puls 1.6s ease-out infinite;
}
@keyframes puls { from { transform: scale(1); opacity: .5; } to { transform: scale(1.22); opacity: 0; } }
.mikro.klein { width: 72px; height: 72px; box-shadow: 0 0 0 6px var(--blau-hauch); }
.mikro.klein svg { width: 30px; height: 30px; }
.mikro.klein.laeuft { box-shadow: 0 0 0 6px var(--rot-hauch); }
.mikro.klein.laeuft::after { inset: -6px; }
.uhr { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pegel { display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; }
.pegel i { display: block; width: 6px; height: 8px; border-radius: 3px; background: var(--aufnahme); transition: height .08s linear; }

/* Hervorhebung: Zahlen, Masse, Preise, Namen */
.zahl { font-weight: 700; background: var(--blau-hauch); color: var(--blau-text-hauch); padding: 0 5px; border-radius: 6px; white-space: nowrap; }
.unsicher { font-weight: 700; background: var(--warn-hauch); color: var(--warn); padding: 0 5px; border-radius: 6px; border-bottom: 2px dashed currentColor; }
.name-m { font-weight: 700; }

/* Formulare */
label, .feldname { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.feld { display: block; }
.feld + .feld { margin-top: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=password], input[type=url], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; color: var(--text);
  background: var(--flaeche); border: 1.5px solid var(--rand); border-radius: 14px;
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--rand) 50%), linear-gradient(135deg, var(--rand) 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.hilfe { font-size: 14px; color: var(--leise); margin-top: 6px; }
.wahl { display: grid; gap: 10px; }
.wahl.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl.drei label { padding: 12px 10px; gap: 8px; font-size: 16px; }
.wahl label { min-width: 0; }
.wahl.zwei label { padding: 12px 12px; gap: 10px; }
.wahl label {
  display: flex; align-items: center; gap: 12px; margin: 0;
  min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--linie); border-radius: 14px;
  background: var(--flaeche); font-weight: 600; font-size: 17px; cursor: pointer;
}
.wahl input { width: 22px; height: 22px; accent-color: var(--blau); flex: none; }
.wahl label:has(input:checked) { border-color: var(--blau); background: var(--blau-hauch); }
.schalter { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.schalter input { appearance: none; -webkit-appearance: none; width: 56px; height: 32px; min-height: 0; border-radius: 999px; background: var(--rand); position: relative; flex: none; cursor: pointer; border: 0; padding: 0; transition: background .15s; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.schalter input:checked { background: var(--blau); }
.schalter input:checked::after { transform: translateX(24px); }
.schalter label { margin: 0; font-size: 17px; }

/* Positionen einer Offerte */
.positionen { display: grid; gap: 0; }
.position { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.position:last-child { border-bottom: 0; }
.position .ptext { font-weight: 600; overflow-wrap: anywhere; }
.position .pbetrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.position .pmenge { grid-column: 1 / -1; color: var(--leise); font-size: 15px; }
.summe { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 14px; border-top: 2px solid var(--text); font-variant-numeric: tabular-nums; }
.summe .gesamt { font-weight: 750; font-size: 20px; }
.summe > :nth-child(even) { text-align: right; }

/* Nachricht */
.nachricht { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--flaeche-2); border-radius: var(--rund-klein); padding: 14px 16px; }
.nachricht.wa { background: var(--gut-hauch); }
.empfaenger { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--leise); }

/* Vorlesen */
.vorlesen { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--blau-text); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
.vorlesen .kreis { width: 30px; height: 30px; border-radius: 50%; background: var(--blau); color: var(--auf-blau); display: grid; place-items: center; }
.vorlesen.spielt .kreis { background: var(--aufnahme); color: #fff; }
.ki-hinweis { font-size: 13px; color: var(--leise); }

/* Kopierblock (Notiz zum Reinkopieren) */
.kopierblock { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; }
.kopierblock header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--linie); background: var(--flaeche-2); }
.kopierblock header h3 { font-size: 15px; }
.kopierblock pre { margin: 0; padding: 12px 16px 14px; font: 500 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.kopierblock .kopiert { background: var(--gut-hauch); color: var(--gut); border-color: transparent; }

/* Untere Leiste */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--flaeche) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.leiste nav { max-width: 560px; margin: 0 auto; display: flex; height: var(--leiste-h); }
.leiste a {
  flex: 1; display: grid; place-content: center; justify-items: center; gap: 3px;
  color: var(--leise); text-decoration: none; font-size: 13px; font-weight: 650; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.leiste a[aria-current=page] { color: var(--blau-text); }
.leiste a svg { width: 28px; height: 28px; }
.leiste .anzahl { position: absolute; top: 10px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blau); color: var(--auf-blau); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* Blatt von unten (Dialog) */
dialog.blatt {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh;
  background: var(--flaeche); color: var(--text);
  border-radius: 24px 24px 0 0; box-shadow: var(--schatten-hoch);
}
dialog.blatt::backdrop { background: rgba(6, 14, 30, .5); }
dialog.blatt .innen { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
dialog.blatt .griff { width: 44px; height: 5px; border-radius: 3px; background: var(--linie); margin: 10px auto 0; }

/* Countdown beim Senden */
.zaehler { display: grid; justify-items: center; gap: 14px; padding: 8px 0; text-align: center; }
.zaehler .ring { width: 132px; height: 132px; position: relative; display: grid; place-items: center; }
.zaehler .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.zaehler .ring circle { fill: none; stroke-width: 8; }
.zaehler .ring .spur { stroke: var(--blau-hauch); }
.zaehler .ring .lauf { stroke: var(--blau); stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 0; }
.zaehler .ring b { font-size: 48px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Hinweise */
.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--rund-klein); background: var(--blau-hauch); color: var(--text); }
.hinweis.warn { background: var(--warn-hauch); }
.hinweis.gut { background: var(--gut-hauch); }
.hinweis.rot { background: var(--rot-hauch); }
.hinweis svg { flex: none; margin-top: 2px; }
.blitz { position: fixed; left: 50%; bottom: calc(var(--leiste-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--text); color: var(--grund); padding: 12px 18px; border-radius: 999px; font-weight: 650; box-shadow: var(--schatten-hoch); max-width: calc(100% - 32px); text-align: center; }

/* Rückfrage */
.frage { border-left: 4px solid var(--warn); padding: 4px 0 4px 14px; }
.frage .worum { font-weight: 650; }

/* Kalender */
.tag-kopf { display: flex; align-items: baseline; gap: 10px; margin: 22px 4px 10px; }
.tag-kopf b { font-size: 19px; }
.termin { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--linie); color: inherit; text-decoration: none; }
.termin:last-child { border-bottom: 0; }
.termin .zeit { font-weight: 700; font-variant-numeric: tabular-nums; }
.termin .zeit small { display: block; font-weight: 500; color: var(--leise); white-space: nowrap; }
.termin.fremd { opacity: .75; }
.termin.provisorisch .was::after { content: "provisorisch"; margin-left: 8px; font-size: 13px; font-weight: 650; color: var(--warn); background: var(--warn-hauch); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.termin .was { font-weight: 650; }
.termin .wo { color: var(--leise); font-size: 15px; }

/* Unterschrift */
.unterschrift { width: 100%; height: 200px; border: 2px dashed var(--rand); border-radius: var(--rund-klein); background: #fff; touch-action: none; display: block; }

/* Fortschritt (Einrichtung) */
.schritte { display: flex; gap: 6px; margin: 4px 0 18px; }
.schritte i { flex: 1; height: 6px; border-radius: 3px; background: var(--linie); }
.schritte i.erledigt { background: var(--blau); }
.schritte i.jetzt { background: var(--blau); opacity: .55; }

/* Tabellen (Admin, breite Ansicht) */
.breit { max-width: 980px; }
table.daten { width: 100%; border-collapse: collapse; font-size: 15px; }
table.daten th, table.daten td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.daten th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); font-weight: 650; }
table.daten td.r, table.daten th.r { text-align: right; font-variant-numeric: tabular-nums; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; }
.kennzahl b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kennzahl span { color: var(--leise); font-size: 14px; }
.kennzahl.gut b { color: var(--gut); }
.kennzahl.warn b { color: var(--warn); }

@media (min-width: 720px) {
  body { background: var(--flaeche-2); }
  .seite:not(.breit) { background: var(--grund); box-shadow: var(--schatten); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Nachträge */
.dreher { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blau-hauch); border-top-color: var(--blau); margin: 0 auto 18px; animation: dreh 0.9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.karte > summary::after { content: ""; float: right; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--rand); border-bottom: 2px solid var(--rand); transform: rotate(45deg); transition: transform .15s; }
details.karte[open] > summary::after { transform: rotate(-135deg); margin-top: 10px; }
input[type=file] { width: 100%; font: inherit; padding: 12px; border: 1.5px dashed var(--rand); border-radius: 14px; background: var(--flaeche); color: var(--text); }
input[type=checkbox]:not([role=switch]), input[type=radio] { width: 22px; height: 22px; accent-color: var(--blau); flex: none; }
ul { margin: 0; }
.zeile form { display: contents; }
.schalter input[type=checkbox] { accent-color: auto; }
img.zeichen { object-fit: contain; background: #fff; }

/* Runde 2: Startseite passt auf einen Bildschirm (390 × 844), Meldungen oben, Kundenlink als Antippfläche */
@media (max-height: 900px) {
  .sprechen { gap: 8px; padding-top: 10px; }
  .sprechen > .mikro { width: 136px; height: 136px; box-shadow: 0 0 0 10px var(--blau-hauch), 0 14px 32px rgba(21, 82, 208, .28); }
  .sprechen > .mikro svg { width: 58px; height: 58px; }
}
.blitz { bottom: auto; top: calc(68px + env(safe-area-inset-top)); width: max-content; max-width: calc(100vw - 32px); border-radius: 16px; text-align: left; font-weight: 600; line-height: 1.35; }
.kopf a.klein, a.klein[href^="/kunde/"], main p > a[href^="/kunde/"] { display: inline-flex; align-items: center; min-height: 44px; }
.zeile .titel.ganz { white-space: normal; overflow: visible; }     /* Seite «Mehr»: Namen der Add-ons nie abschneiden */
