/* zuruf.css – Aussehen der Bildschirmseite "Zuruf" (Handy zuerst, ab 700 px zentriert). */

.zr {
  --zr-karte: var(--karte, #fff);
  --zr-grund: var(--grund, #eef1f6);
  --zr-text: var(--text, #1b1e26);
  --zr-text2: var(--text2, #5a5e66);
  --zr-linie: var(--linie, #e1e5ec);
  --zr-blau: #1a3e8f;
  --zr-rot: #d2122e;
  --zr-gruen: #1f8a4c;
  --zr-gelb: #b26a00;
  --zr-auf-blau: #fff;
  --zr-schatten: 0 1px 2px rgba(0, 0, 0, 0.06);

  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
  color: var(--zr-text);
  font-size: 16px;
  line-height: 1.4;
}

.zr *,
.zr *::before,
.zr *::after {
  box-sizing: border-box;
}

.zr.zr-dunkel {
  --zr-karte: #1c1f27;
  --zr-grund: #14161c;
  --zr-text: #eceef3;
  --zr-text2: #a4a9b4;
  --zr-linie: #2b303a;
  --zr-blau: #7fa0ec;
  --zr-rot: #ff6b7d;
  --zr-gruen: #5cc98a;
  --zr-gelb: #e6b93f;
  --zr-auf-blau: #10131a;
  --zr-schatten: none;
}

.zr :focus-visible {
  outline: 3px solid var(--zr-blau);
  outline-offset: 2px;
}

/* ---------- Formular ---------- */

.zr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.zr-eingabe {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.zr-feld {
  flex: 1 1 auto;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--zr-linie);
  border-radius: 12px;
  background: var(--zr-karte);
  color: var(--zr-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  resize: vertical;
}

.zr-feld::placeholder {
  color: var(--zr-text2);
}

.zr-mikro {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 48px;
}

.zr-aktionen {
  display: flex;
  gap: 10px;
}

.zr-knopf {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--zr-blau);
  color: var(--zr-auf-blau);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.zr-knopf:disabled {
  opacity: 0.6;
  cursor: default;
}

.zr-knopf-leise {
  background: var(--zr-grund);
  color: var(--zr-blau);
}

/* ---------- Chips ---------- */

.zr-beispiele {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.zr-beispiele[hidden] {
  display: none;
}

.zr-chip {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--zr-linie);
  border-radius: 22px;
  background: var(--zr-karte);
  color: var(--zr-text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

/* ---------- Meldungen ---------- */

.zr-fehler {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(210, 18, 46, 0.1);
  color: var(--zr-rot);
  font-weight: 700;
}

.zr-fehler[hidden] {
  display: none;
}

.zr.zr-dunkel .zr-fehler {
  background: rgba(255, 107, 125, 0.14);
}

.zr-hinweis {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--zr-grund);
  color: var(--zr-text2);
  font-size: 14px;
}

/* ---------- Antwortkarte ---------- */

.zr-antwort {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--zr-linie);
  border-radius: 12px;
  background: var(--zr-karte);
  box-shadow: var(--zr-schatten);
}

.zr-antwort:empty {
  display: none;
}

.zr-antwort[aria-busy='true'] {
  opacity: 0.7;
}

.zr-antwort-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zr-verstanden {
  color: var(--zr-text2);
  font-size: 14px;
}

.zr-etikett {
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--zr-grund);
  color: var(--zr-text2);
  font-size: 12px;
}

.zr-titel {
  margin: 6px 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.zr-summe {
  margin: 0;
  color: var(--zr-text2);
  font-size: 15px;
}

.zr-zeilen {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.zr-zeile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--zr-linie);
  border-left: 6px solid transparent;
}

.zr-zeile.rot {
  border-left-color: var(--zr-rot);
}

.zr-zeile.gelb {
  border-left-color: var(--zr-gelb);
}

.zr-zeile-oben {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.zr-zeile-titel {
  font-weight: 700;
}

.zr-zeile-unter {
  color: var(--zr-text2);
  font-size: 14px;
}

.zr-zeile-betrag {
  font-weight: 700;
  white-space: nowrap;
}

.zr-kontakte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zr-kontakt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--zr-grund);
  color: var(--zr-blau);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.zr-weitere {
  margin: 10px 0 0;
  color: var(--zr-text2);
  font-size: 14px;
}

.zr-rueckfrage {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--zr-grund);
}

.zr-rueckfrage-text {
  margin: 0;
  font-weight: 700;
}

.zr-stand {
  margin: 12px 0 0;
  color: var(--zr-text2);
  font-size: 13px;
}

.zr-antwort-fuss {
  display: flex;
  margin-top: 14px;
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 700px) {
  .zr {
    padding: 16px;
  }

  .zr-feld {
    min-height: 76px;
  }
}

/* Schmale Handys: Flex-Kinder dürfen schrumpfen, lange Namen umbrechen
   (sonst schieben Textfeld und Beträge über den rechten Rand). */
.zr-feld,
.zr-zeile-text,
.zr-antwort {
  min-width: 0;
}

.zr-zeile-text {
  flex: 1 1 auto;
}

.zr-titel,
.zr-verstanden,
.zr-zeile-titel,
.zr-zeile-unter {
  overflow-wrap: anywhere;
}

/* Die Überschrift bekommt den Fokus nur zum Vorlesen, sie ist kein Bedienelement. */
.zr-titel:focus {
  outline: none;
}
