/* Melde-Link WZB — ein Blatt im Satzspiegel der Kundenmail des ticket-spiegel.
   Farben und Schrift wie dort (mail.py: NAVY, CYAN, LINIE, TEXT, GRAU, KARTE, GRUND), nur helles Schema. */

:root {
  --grund: #eef1f4;
  --blatt: #fcfcfc;
  --linie: #c9d2da;
  --text: #1a1f24;
  --grau: #5b6670;
  --navy: #13344f;
  --navy-hell: #1d4a6e;
  --cyan-bg: #eaf5fb;
  --zitat-bg: #f5f8fa;
  --feldrand: #7b8792;
  --fokus: #1a87bb;
  /* Semantik, nicht Marke: Grün nur für „erledigt“, Rot für Fehler, Braun für „ungewiss“ */
  --gruen: #2d7832;
  --warnung: #a2560c;
  --warnung-bg: #fbf1e6;
  --fehler: #a51f1f;
  --fehler-bg: #fbeeee;
  --schrift: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 20px;
  --radius: 4px;
  --ziel: 48px;
  color-scheme: light;
  accent-color: var(--navy);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blatt);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--navy);
}

::selection { background: #cfe6f3; color: var(--text); }

h1, h2, h3, p, dl, dd, ol, ul, fieldset, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Blatt und Kopf ------------------------------------------------------------------------------- */

.blatt {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  background: var(--blatt);
}

.kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--linie);
}

.kopf__badge {
  flex: none;
  width: 44px;
  height: auto;
}

.kopf__firma {
  flex: 1;
  max-width: 11.5em;
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.kopf__schriftzug {
  flex: none;
  width: 80px;
  height: auto;
  margin-left: auto;
}

.inhalt {
  padding: 28px 0 40px;
}

/* --- Überschriften und Fließtext ------------------------------------------------------------------- */

.titel {
  color: var(--navy);
  font-size: 1.375rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.marke {
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.text-grau { color: var(--grau); }

.klein {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

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

.formular { margin-top: 20px; }

.abschnitt { margin-top: 28px; }

.marke.feld__label,
legend.marke { display: block; margin-bottom: 2px; }

.hinweis {
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.feld { display: flex; flex-direction: column; }
.feld > .hinweis { margin-bottom: 8px; }
.feld > .marke + .eingabe,
.feld > .marke + .fotos__feld { margin-top: 8px; }

.feld__label { font-size: 0.875rem; line-height: 1.25rem; }
.ident--offen .feld { margin-top: 16px; }
.ident--offen .feld__label { color: var(--text); font-weight: 600; margin-bottom: 6px; }
.ident--offen .feld > .hinweis { margin-top: -4px; margin-bottom: 6px; }
.feld__frei { color: var(--grau); font-weight: 400; }

.eingabe {
  width: 100%;
  min-height: var(--ziel);
  padding: 11px 12px;
  border: 1px solid var(--feldrand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;           /* 16 px: iOS zoomt sonst beim Antippen */
  line-height: 1.5rem;
  appearance: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.eingabe:hover { border-color: var(--navy-hell); }
.eingabe:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 135, 187, 0.35), inset 0 0 0 1px var(--navy);
}
.eingabe--text { min-height: 112px; resize: vertical; }
.eingabe[aria-invalid="true"] { border-color: var(--fehler); box-shadow: inset 0 0 0 1px var(--fehler); }

/* Identitätsband: dieselbe Feldtabelle wie in der Mail (Label grau links, Wert rechts) */
.feldtabelle { margin-top: 20px; }
.feldtabelle__zeile {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 12px;
  padding: 4px 0;
}
.feldtabelle dt { color: var(--grau); font-size: 0.875rem; line-height: 1.5rem; }
.feldtabelle dd { min-width: 0; overflow-wrap: anywhere; }
.ident__name { display: block; font-weight: 600; }
.ident__zusatz { display: block; color: var(--grau); font-size: 0.875rem; line-height: 1.25rem; }
.ident--offen > .hinweis { margin-top: 2px; }

/* Auswahl „Wer meldet?“: große Tippflächen über echten Radios; gewählt wie der Chip (Tönung, navy Doppelrand) */
.feldtabelle + .melder { margin-top: 20px; }
.personen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.person {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.person:hover { border-color: var(--feldrand); }
.person__wahl {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--feldrand);
  border-radius: 50%;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease-out, border-width 0.18s cubic-bezier(0.25, 1, 0.5, 1);
}
.person__wahl:checked { border: 7px solid var(--navy); }
.person__wahl:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.person__wahl[aria-invalid="true"] { border-color: var(--fehler); }
.person:has(.person__wahl:checked) {
  border-color: var(--navy);
  background: var(--cyan-bg);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.person__text { display: flex; flex-direction: column; min-width: 0; }
.person__name { font-size: 0.9375rem; line-height: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.person__zusatz { color: var(--grau); font-size: 0.8125rem; line-height: 1.125rem; overflow-wrap: anywhere; }

/* Kontaktfelder nur für den Gast. Ohne :has() (alte Browser) bleiben sie sichtbar; das Skript blendet sie
   über `hidden` aus. */
.melder__kontakt { margin-top: 16px; }
.melder__kontakt[hidden] { display: none; }
@supports selector(:has(*)) {
  .melder__kontakt { display: none; }
  .melder:has(#als-gast:checked) .melder__kontakt { display: block; }
}
.melder__neu { margin-top: 4px; }
.zusatzlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.zusatzlink .icon { width: 18px; height: 18px; stroke-width: 2; }
.abbruch { margin-top: 8px; }

.entwurf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 20px;
  padding: 8px 12px;
  background: var(--zitat-bg);
  border-radius: var(--radius);
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.entwurf[hidden] { display: none; }

.knopf-text {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* Mängel-Chips: die ganze Fläche ist die Beschriftung einer echten Checkbox */
.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.chip {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.chip:hover { border-color: var(--feldrand); }
.chip__box,
.chip__haken { grid-area: 1 / 1; width: 22px; height: 22px; }
.chip__box {
  margin: 0;
  border: 1.5px solid var(--feldrand);
  border-radius: 3px;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.chip__haken {
  padding: 2px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease-out, transform 0.18s cubic-bezier(0.25, 1, 0.5, 1);
}
.chip__box:checked { background: var(--navy); border-color: var(--navy); }
.chip__box:checked + .chip__haken { opacity: 1; transform: none; }
.chip__box:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.chip:has(.chip__box:checked) {
  border-color: var(--navy);
  background: var(--cyan-bg);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.chip__box[aria-invalid="true"] { border-color: var(--fehler); }

/* Fotos: ohne Skript das eingebaute Dateifeld, mit Skript Kacheln wie die Anlagen der Mail */
.fotos__feld {
  width: 100%;
  min-height: var(--ziel);
  padding: 6px;
  border: 1px dashed var(--feldrand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--grau);
  font: inherit;
  font-size: 0.875rem;
}
.fotos__feld::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.fotos__feld[aria-invalid="true"] { border-color: var(--fehler); border-style: solid; }
.fotos--js .fotos__feld {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.kacheln[hidden] { display: none; }
.kachel { position: relative; min-width: 0; }
.kachel__bild {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--zitat-bg);
  object-fit: cover;
}
.kachel__ersatz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--zitat-bg);
  color: var(--grau);
}
.kachel__ersatz svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.kachel__name {
  margin-top: 4px;
  overflow: hidden;
  color: var(--grau);
  font-size: 0.75rem;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kachel__weg {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.kachel__weg span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(19, 52, 79, 0.88);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.kachel__weg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kachel__weg:focus-visible { outline-offset: -3px; }
.kachel__neu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 1.5px dashed var(--feldrand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.125rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.kachel__neu:hover { border-color: var(--navy); background: var(--cyan-bg); }
.kachel__neu svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fotos__zaehler { margin-top: 8px; color: var(--grau); font-size: 0.875rem; line-height: 1.25rem; font-variant-numeric: tabular-nums; }
.fotos__zaehler:empty, .fotos__meldung:empty { display: none; }
.fotos__meldung { margin-top: 8px; color: var(--warnung); font-size: 0.875rem; line-height: 1.25rem; }

/* Einstufung: eine Zeile wie in der Feldtabelle der Mail, aufklappbar ohne Skript */
.einstufung {
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.einstufung__zeile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 0;
  cursor: pointer;
  list-style: none;
}
.einstufung__zeile::-webkit-details-marker { display: none; }
.einstufung__label { color: var(--grau); font-size: 0.875rem; }
.einstufung__wert { font-weight: 600; }
.einstufung__aendern {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}
.einstufung__aendern svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease-out;
}
.einstufung__auf { display: none; }
.einstufung[open] .einstufung__auf { display: inline; }
.einstufung[open] .einstufung__zu { display: none; }
.einstufung[open] .einstufung__aendern svg { transform: rotate(180deg); }
.einstufung__zeile:focus-visible { outline-offset: 4px; }
.einstufung__inhalt { padding: 4px 0 20px; }

.prio--high { color: var(--warnung); }
.prio--urgent { color: var(--fehler); }

.wahl + .wahl { margin-top: 16px; }
.wahl__legende { margin-bottom: 8px; color: var(--grau); font-size: 0.875rem; line-height: 1.25rem; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--linie);
  border-radius: 22px;
  background: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pille input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
}
.pille:has(input:checked) {
  border-color: var(--navy);
  background: var(--cyan-bg);
  box-shadow: inset 0 0 0 1px var(--navy);
  font-weight: 600;
}

.bestaetigung {
  margin-top: 24px;
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Sendeleiste: am Handy immer erreichbar, über der Safe-Area */
.senden {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 12px calc(-1 * var(--pad)) 0;
  padding: 12px var(--pad) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  background: rgba(252, 252, 252, 0.96);
  box-shadow: 0 -6px 16px -8px rgba(19, 52, 79, 0.18);
}
.senden__status { margin-bottom: 8px; color: var(--navy); font-size: 0.875rem; line-height: 1.25rem; }
.senden__status:empty { display: none; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease-out, transform 0.1s ease-out;
}
.knopf--haupt { width: 100%; background: var(--navy); color: #fff; }
.knopf--haupt:hover { background: var(--navy-hell); }
.knopf--haupt:active { transform: translateY(1px); }
.knopf--neben { background: #fff; color: var(--navy); }
.knopf--neben:hover { background: var(--cyan-bg); }
.knopf:disabled { cursor: progress; }
.knopf--haupt:disabled { background: var(--navy-hell); border-color: var(--navy-hell); }
.knopf__kreisel { display: none; }
.knopf--laeuft .knopf__kreisel {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: drehen 0.8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

.feldfehler {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  color: var(--fehler);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.feldfehler__zeichen {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.fehlerliste {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--fehler);
  border-radius: var(--radius);
  background: var(--fehler-bg);
}
.fehlerliste__titel { color: var(--fehler); font-weight: 700; }
.fehlerliste__punkte { margin-top: 6px; }
.fehlerliste__punkte li + li { margin-top: 4px; }
.fehlerliste a { color: var(--text); }
.fehlerliste__fotos { color: var(--text); }
.fehlerliste:focus { outline: none; }
.fehlerliste:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.hinweis--warnung { margin-top: -4px; margin-bottom: 8px; color: var(--warnung); }

/* --- Ergebnis: ein Beleg im Aufbau der Eingangsmail ------------------------------------------------- */

.statuszeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.referenz__label { color: var(--grau); }
.referenz__wert {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.statuszeile__trenner { color: var(--grau); }

.schild {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  font-weight: 700;
}
.schild--eingang { background: var(--cyan-bg); color: var(--navy); }
.schild--laeuft { background: var(--cyan-bg); color: var(--navy); }
.schild--ungewiss { background: var(--warnung-bg); color: var(--warnung); }
.schild--fehler { background: var(--fehler-bg); color: var(--fehler); }
.schild__puls {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  animation: puls 1.4s ease-in-out infinite;
}
@keyframes puls { 50% { opacity: 0.25; } }

.lead { margin-top: 12px; font-size: 1.0625rem; line-height: 1.625rem; }
.absatz { margin-top: 12px; }
.merksatz {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--warnung-bg);
  color: var(--text);
}
.merksatz strong { color: var(--warnung); }

.aktion { margin-top: 24px; }
.aktion .knopf { width: 100%; }

.angaben,
.weiter,
.kontakt,
.ausweg { margin-top: 32px; }
.angaben .feldtabelle { margin-top: 8px; }
.punkte li { position: relative; padding-left: 14px; }
.punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grau);
}
.zitat__titel { margin-top: 16px; }
.zitat {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--zitat-bg);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* „So geht es weiter“: kurzer senkrechter Ablauf; nur der Erledigt-Schritt trägt Grün */
.ablauf { margin-top: 14px; }
.ablauf__schritt {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}
.ablauf__schritt:last-child { padding-bottom: 0; }
.ablauf__schritt:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--linie);
}
.ablauf__punkt {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border: 2px solid var(--feldrand);
  border-radius: 50%;
  background: var(--blatt);
}
.ablauf__punkt svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ablauf__schritt--fertig .ablauf__punkt { border-color: var(--navy); background: var(--navy); }
.ablauf__schritt--erledigt .ablauf__punkt { border-color: var(--gruen); }
.ablauf__titel { font-weight: 600; line-height: 1.5rem; }
.ablauf__text { color: var(--grau); font-size: 0.9375rem; line-height: 1.375rem; }

/* --- Büro-Kontakt und Auswege --------------------------------------------------------------------- */

.icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kontakt__wege { display: grid; gap: 8px; margin-top: 10px; }
.kontakt__weg {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.kontakt__weg:hover { border-color: var(--navy); background: var(--cyan-bg); }
.kontakt__inhalt { display: flex; flex-direction: column; min-width: 0; }
.kontakt__art { color: var(--grau); font-size: 0.8125rem; line-height: 1.125rem; }
.kontakt__wert { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.ausweg__aktion { margin-top: 12px; }
.ausweg__aktion .knopf { width: 100%; }
.knopf .icon { width: 18px; height: 18px; }

/* --- Fußzeile wie in der Mail --------------------------------------------------------------------- */

.fuss {
  padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  color: var(--grau);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.fuss__firma {
  color: var(--text);
  font-weight: 700;
}

.fuss a { color: var(--grau); }

.fuss__recht { margin-top: 8px; }

/* --- Desktop: das Blatt liegt auf dem Grund wie die Mail-Karte -------------------------------------- */

@media (min-width: 680px) {
  body {
    background: var(--grund);
    padding: 40px 24px 56px;
  }

  :root { --pad: 28px; }

  .blatt { border: 1px solid var(--linie); }

  .chips,
  .personen { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .feldtabelle__zeile { grid-template-columns: 8.5rem 1fr; }
  .einstufung__zeile { grid-template-columns: 8.5rem 1fr auto; }

  .knopf--haupt { width: auto; min-width: 15rem; }

  .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .aktion .knopf,
  .ausweg__aktion .knopf { width: auto; min-width: 15rem; }

  .kontakt__wege { grid-template-columns: 1fr 1fr; }

  /* Am Schreibtisch braucht die Sendeleiste keinen Halt am Bildschirmrand */
  .senden {
    position: static;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .kopf { padding: 24px 0 20px; }

  .kopf__firma { max-width: none; }

  .kopf__schriftzug { width: 86px; }

  .inhalt { padding: 32px 0 44px; }

  .titel {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
