/* Hauspilot Mieterportal — eigenständige Kunden-Oberfläche (getrennt von der internen Software). */
:root {
  --blau: #2563eb;
  --blau-dunkel: #1e40af;
  --blau-hell: #eff4ff;
  --gruen: #059669;
  --gruen-hell: #ecfdf5;
  --text: #0f172a;
  --text-leise: #64748b;
  --linie: #e2e8f0;
  --flaeche: #f7f9fc;
  --karte: #ffffff;
  --rot: #dc2626;
  --amber: #d97706;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--flaeche); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
/* Inline-Icons standardmäßig klein halten – sonst rendern SVGs ohne Größe riesig. */
svg { width: 18px; height: 18px; flex: 0 0 auto; }
img.logo-img { width: 30px; height: 30px; object-fit: contain; }
.karte h2 svg, .karte-kopf h2 svg { vertical-align: -3px; margin-right: 3px; }
.lade { padding: 60px; text-align: center; color: var(--text-leise); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #e8f0ff 0%, var(--flaeche) 55%); }
.login-karte { width: 100%; max-width: 400px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); padding: 32px; }
.login-karte .marke { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.login-karte h1 { font-size: 20px; margin: 18px 0 4px; }
.login-karte p.sub { color: var(--text-leise); font-size: 14px; margin: 0 0 22px; }
.feld { margin-bottom: 14px; }
.feld label { display: block; font-size: 13px; color: var(--text-leise); margin-bottom: 6px; }
.feld input { width: 100%; padding: 11px 12px; border: 1px solid var(--linie); border-radius: 10px;
  font-size: 15px; background: #fff; }
.feld input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--blau); color: #fff;
  font-size: 15px; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--blau-dunkel); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sek { background: #fff; color: var(--text); border: 1px solid var(--linie); }
.btn-sek:hover { background: var(--flaeche); }
.fehler { background: #fef2f2; color: var(--rot); border: 1px solid #fecaca; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.hinweis-box { background: var(--blau-hell); color: var(--blau-dunkel); border: 1px solid #dbe6ff;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---------- App-Layout ---------- */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.seitenleiste { background: var(--karte); border-right: 1px solid var(--linie); padding: 20px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.marke { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; padding: 4px 8px 18px; }
.marke .pilot { color: var(--blau); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none;
  border: none; padding: 10px 12px; border-radius: 10px; color: var(--text-leise); font-size: 14.5px; font-weight: 500; }
.nav button:hover { background: var(--flaeche); color: var(--text); }
.nav button.aktiv { background: var(--blau); color: #fff; }
.nav button.aktiv svg { color: #fff; }
.nav svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--text-leise); }
.nav .trenner { height: 1px; background: var(--linie); margin: 10px 6px; }
.seitenleiste .fuss { margin-top: auto; }
.hilfe-karte { background: var(--blau-hell); border-radius: 12px; padding: 14px; margin-top: 16px; }
.hilfe-karte b { font-size: 13.5px; } .hilfe-karte p { font-size: 12.5px; color: var(--text-leise); margin: 4px 0 10px; }

.inhalt { padding: 30px 36px 60px; max-width: 1200px; }
.kopf { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.kopf h1 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.5px; }
.kopf p { color: var(--text-leise); margin: 0; max-width: 46ch; }
.nutzer { display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blau); color: #fff; display: grid;
  place-items: center; font-weight: 600; font-size: 15px; }
.nutzer .info { text-align: right; } .nutzer .info b { display: block; font-size: 14px; }
.nutzer .info span { font-size: 12.5px; color: var(--text-leise); }
.glocke { position: relative; background: #fff; border: 1px solid var(--linie); border-radius: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; color: var(--text-leise); }
.glocke:hover { background: var(--flaeche); color: var(--blau); }
.glocke-punkt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--rot); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.abmelden-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--linie);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--text-leise); margin-left: 6px; }
.abmelden-btn:hover { background: #fff5f5; border-color: #fecaca; color: var(--rot); }
@media (max-width: 640px) { .abmelden-btn span { display: none; } }
/* Handy (Fund bei p1): Kopf mit Name/Glocke/Abmelden brach nicht um → Seite 481 statt 375 px breit, seitlich scrollbar. */
@media (max-width: 640px) {
  .kopf { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .kopf > div:first-child { flex: 1 1 100%; min-width: 0; }
  .kopf h1 { font-size: 24px; overflow-wrap: anywhere; }
  .nutzer { margin-left: auto; min-width: 0; }
  .nutzer .info { min-width: 0; } .nutzer .info b { overflow-wrap: anywhere; }
}
/* Doppelrolle (p1): Umschalter Mieter/Eigentümer über dem Seitenkopf */
.rollen-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.rollen-titel { font-size: 12.5px; color: var(--text-leise); margin-right: 2px; }
.rolle { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; background: #fff;
  border: 1px solid var(--linie); border-radius: 10px; padding: 7px 12px; font-size: 13px; color: var(--text-leise); text-align: left; cursor: pointer; max-width: 100%; }
.rolle b { font-size: 13px; color: inherit; } .rolle span { font-size: 12px; overflow-wrap: anywhere; }
.rolle:hover { background: var(--flaeche); color: var(--blau); }
.rolle.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; cursor: default; }
.rolle-punkt { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; font-style: normal;
  background: var(--rot); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.abmelden { background: none; border: 1px solid var(--linie); border-radius: 9px; padding: 8px 10px;
  color: var(--text-leise); font-size: 13px; }
.abmelden:hover { background: var(--flaeche); color: var(--rot); }

/* ---------- Karten & Raster ---------- */
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .raster { grid-template-columns: minmax(0, 1fr); } .layout { grid-template-columns: minmax(0, 1fr); } .seitenleiste { display: none; } }
/* „1fr“ allein darf nicht schmaler als sein Inhalt werden → auf dem Handy seitlich scrollbar (Fund bei p1). */
.inhalt { min-width: 0; }
@media (max-width: 640px) { .inhalt { padding: 20px 16px 48px; } }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px; }
.karte h2 { font-size: 17px; margin: 0 0 4px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.karte-kopf a { color: var(--blau); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.objekt-karte { display: flex; gap: 16px; align-items: center; }
.objekt-bild { width: 120px; height: 84px; border-radius: 10px; background: var(--flaeche); border: 1px dashed #cbd5e1;
  flex: 0 0 auto; display: grid; place-items: center; color: #94a3b8; }
.objekt-bild svg { width: 34px; height: 34px; }
.objekt-bild img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.objekt-bild:has(img) { border-style: solid; border-color: var(--linie); overflow: hidden; }

.liste { display: flex; flex-direction: column; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: none; }
.dok-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--blau-hell); color: var(--blau);
  display: grid; place-items: center; flex: 0 0 auto; }
.zeile .haupt { flex: 1; min-width: 0; }
.zeile .haupt b { display: block; font-size: 14px; font-weight: 600; }
.zeile .haupt span { font-size: 12.5px; color: var(--text-leise); }
.zeile .datum { font-size: 13px; color: var(--text-leise); white-space: nowrap; }
.zeile .lade-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--linie); background: #fff;
  display: grid; place-items: center; color: var(--text-leise); }
.zeile .lade-btn:hover { background: var(--blau); color: #fff; border-color: var(--blau); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.gruen { background: var(--gruen-hell); color: var(--gruen); }
.badge.blau { background: var(--blau-hell); color: var(--blau); }
.badge.rot { background: #fef2f2; color: var(--rot); }
.badge.amber { background: #fffbeb; color: var(--amber); }

.aktion-karte { background: linear-gradient(180deg, #f0f6ff, #fff); border: 1px solid #dbe6ff; }
.aktion-karte.gruen { background: linear-gradient(180deg, #edfdf6, #fff); border-color: #c7f0dd; }
.kpi-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.kpi { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; }
.kpi .l { font-size: 12.5px; color: var(--text-leise); } .kpi .w { font-size: 20px; font-weight: 700; }
.daten-zeile { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.daten-zeile:last-child { border-bottom: none; }
.daten-zeile .l { color: var(--text-leise); }
.leer { color: var(--text-leise); font-size: 14px; padding: 8px 0; }
.platzhalter { text-align: center; color: var(--text-leise); padding: 40px 20px; }
.platzhalter svg { width: 40px; height: 40px; color: #cbd5e1; margin-bottom: 10px; }

/* Formularelemente (Schaden/Änderung) */
.feld select, .feld textarea, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--linie); border-radius: 10px;
  font-size: 15px; background: #fff; font-family: inherit; color: var(--text); }
textarea { resize: vertical; }
.feld input[type="file"] { width: 100%; padding: 9px 12px; border: 1px dashed var(--linie); border-radius: 10px; background: var(--flaeche); font-size: 13.5px; color: var(--text-leise); }
.feld input[type="file"]::file-selector-button { margin-right: 10px; border: 1px solid var(--linie); background: #fff; color: var(--blau); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.foto-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.foto-thumb { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--linie); display: block; }
a:has(> .foto-thumb):hover .foto-thumb { border-color: var(--blau); }
.feld select:focus, .feld textarea:focus, textarea:focus, select:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* Verbrauch: Tabs + Balken */
.tabs { display: inline-flex; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tab { border: none; background: none; padding: 7px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-leise); }
.tab.aktiv { background: #fff; color: var(--blau); box-shadow: var(--schatten); }
.chart-block { margin-bottom: 22px; }
.chart-titel { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.chart-titel .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.chart-titel .einheit { color: var(--text-leise); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; overflow-x: auto; padding-top: 6px; }
.bar-col { flex: 1; min-width: 42px; display: flex; flex-direction: column; align-items: center; }
.bar-wrap { width: 100%; height: 110px; display: flex; align-items: flex-end; }
.bar { width: 100%; max-width: 40px; margin: 0 auto; border-radius: 6px 6px 0 0; transition: height .3s; }
.bar-val { font-size: 11.5px; font-weight: 600; color: var(--text); margin-top: 5px; font-variant-numeric: tabular-nums; }
.bar-lbl { font-size: 11px; color: var(--text-leise); margin-top: 2px; white-space: nowrap; }

/* ---- Kurze Rückmeldungen (Restpunkt u2: statt des eingebauten Browser-Hinweises) ----
   Unten mittig, damit sie auf dem Handy nicht unter der Kopfzeile verschwinden und mit dem Daumen
   erreichbar bleiben. Ein Klick schließt sie sofort. */
#hp-hinweise {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.hp-hinweis {
  pointer-events: auto; cursor: pointer;
  background: var(--karte); color: var(--text);
  border: 1px solid var(--linie); border-left: 4px solid var(--text-leise);
  border-radius: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.45;
  box-shadow: var(--schatten);
  animation: hp-hinweis-auf .18s ease-out;
}
.hp-hinweis-fehler { border-left-color: var(--rot); }
.hp-hinweis-erfolg { border-left-color: var(--gruen); }
.hp-hinweis-info   { border-left-color: var(--blau); }
.hp-hinweis-weg { opacity: 0; transition: opacity .25s ease; }
@keyframes hp-hinweis-auf { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hp-hinweis { animation: none; } }

/* ---------- Navigation am Handy/Tablet: feste Leiste unten + Blatt „Mehr“ ---------- */
.mobil-nav, .mobil-mehr { display: none; }
@media (max-width: 900px) {
  .mobil-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 200; background: var(--karte); border-top: 1px solid var(--linie); box-shadow: 0 -4px 18px rgba(15,23,42,.06);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mobil-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 56px;
    background: none; border: 0; border-radius: 10px; padding: 6px 2px; color: var(--text-leise); font-size: 11px; font-weight: 500; line-height: 1.2; }
  .mobil-nav button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center;
    overflow-wrap: anywhere; max-width: 100%; }
  .mobil-nav svg { width: 22px; height: 22px; }
  .mobil-nav button.aktiv { color: var(--blau); background: var(--blau-hell); font-weight: 600; }
  /* Platz unten frei halten, damit die Leiste nichts vom Inhalt verdeckt; Hinweise erscheinen darüber */
  .inhalt { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  #hp-hinweise { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .mobil-mehr { display: flex; align-items: flex-end; position: fixed; inset: 0; z-index: 250; background: rgba(15,23,42,.42); }
  .mobil-mehr[hidden] { display: none; }
  .mobil-mehr-karte { width: 100%; max-height: 82vh; overflow-y: auto; background: var(--karte); border-radius: 18px 18px 0 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(15,23,42,.18); }
  .mobil-mehr-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; }
  .mobil-mehr-kopf b { font-size: 16px; }
  .mobil-mehr-zu { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--flaeche);
    border: 1px solid var(--linie); color: var(--text-leise); }
  .mobil-mehr-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobil-mehr-liste button { display: flex; align-items: center; gap: 10px; min-height: 52px; text-align: start; background: var(--flaeche);
    border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; color: var(--text); font-size: 14px; font-weight: 500; min-width: 0; }
  .mobil-mehr-liste button span { overflow-wrap: anywhere; min-width: 0; }
  .mobil-mehr-liste button svg { width: 20px; height: 20px; color: var(--text-leise); }
  .mobil-mehr-liste button.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; }
  .mobil-mehr-liste button.aktiv svg { color: #fff; }
  body.mobil-mehr-offen { overflow: hidden; }
}
@media (max-width: 360px) { .mobil-mehr-liste { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sprache (u7) ---------- */
.sprachwahl { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px 0 10px; background: #fff;
  border: 1px solid var(--linie); border-radius: 10px; color: var(--text-leise); cursor: pointer; }
.sprachwahl:hover { background: var(--flaeche); color: var(--blau); }
.sprachwahl select { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); max-width: 9.5em;
  text-overflow: ellipsis; cursor: pointer; outline: none; padding: 0; }
.sprachwahl:focus-within { border-color: var(--blau); box-shadow: 0 0 0 3px var(--blau-hell); }
.login-sprache { display: flex; justify-content: flex-end; margin: -8px 0 4px; }
.karte .sprachwahl { height: 42px; }
/* Handy: im Kopf nur das Symbol + Kürzel, damit Glocke, Name und Abmelden nicht umbrechen */
@media (max-width: 640px) { .kopf .sprachwahl select { max-width: 5.5em; } }

/* Arabisch: von rechts nach links. Die Ränder und Ecken, die oben fest links/rechts sitzen, werden gespiegelt. */
[dir="rtl"] .karte h2 svg, [dir="rtl"] .karte-kopf h2 svg { margin-right: 0; margin-left: 3px; }
[dir="rtl"] .seitenleiste { border-right: 0; border-left: 1px solid var(--linie); }
[dir="rtl"] .nav button, [dir="rtl"] .rolle { text-align: right; }
[dir="rtl"] .nutzer .info { text-align: left; }
[dir="rtl"] .glocke-punkt, [dir="rtl"] .rolle-punkt { right: auto; left: -6px; }
[dir="rtl"] .abmelden-btn { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .rollen-titel { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .btn svg { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .feld input[type="file"]::file-selector-button { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .hp-hinweis { border-left: 1px solid var(--linie); border-right: 4px solid var(--text-leise); }
[dir="rtl"] .hp-hinweis-fehler { border-right-color: var(--rot); }
[dir="rtl"] .hp-hinweis-erfolg { border-right-color: var(--gruen); }
[dir="rtl"] .hp-hinweis-info { border-right-color: var(--blau); }
@media (max-width: 640px) { [dir="rtl"] .nutzer { margin-left: 0; margin-right: auto; } }

/* ---------- Anliegen (Mietervorgänge, M2): Liste, Dateien, Nachrichtenverlauf ---------- */
.anliegen-zeile { width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--linie); font: inherit; color: inherit;
  text-align: start; cursor: pointer; flex-wrap: wrap; }
.anliegen-zeile:last-child { border-bottom: none; }
.anliegen-zeile:hover .haupt b { color: var(--blau); }
.al-badges { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.al-zeichen { white-space: nowrap; }
@media (max-width: 640px) {
  /* Am Handy: Text in voller Breite, Stand darunter – bündig mit dem Text, nicht neben dem Symbol. */
  .anliegen-zeile .haupt { flex-basis: calc(100% - 46px); }
  .anliegen-zeile .al-badges { flex-basis: 100%; padding-inline-start: 46px; }
}
.datei-reihe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.datei-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 10px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie); font-size: 12.5px; color: var(--text-leise); overflow-wrap: anywhere; }
.datei-chip svg { width: 13px; height: 13px; flex: 0 0 auto; }
.al-verlauf { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.al-nachricht { max-width: 86%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--linie); }
.al-nachricht.al-ich { align-self: flex-end; background: var(--blau-hell); border-color: #dbe6ff; }
.al-nachricht.al-hv { align-self: flex-start; background: #fff; }
.al-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; color: var(--text-leise); margin-bottom: 4px; }
.al-kopf b { color: var(--text); font-weight: 600; }
.al-betreff { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.al-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.al-dok { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; max-width: 100%; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--linie); background: #fff; color: var(--blau); font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.al-dok svg { width: 15px; height: 15px; flex: 0 0 auto; }
.al-dok span { overflow-wrap: anywhere; }
.al-dok:hover { border-color: var(--blau); }
@media (max-width: 640px) { .al-nachricht { max-width: 100%; } }
