/* Langer Fließtext – die einzige Seite der App, die keine Maske ist. Deshalb
   eigene Abstände statt der Formularabstände aus basis.css. */
main{padding:34px 0 48px}
h1{margin:12px 0 18px}
h2{font-size:22px;margin:34px 0 12px}
h3{margin:20px 0 8px}
p{margin-bottom:12px;color:var(--ink-2)}
main p:first-of-type{font-size:17px}
.liste{margin:0 0 12px 0;padding-left:20px;color:var(--ink-2)}
.liste li{margin-bottom:7px}
.anschrift{border-left:3px solid var(--line-strong);padding-left:14px;margin-bottom:14px}
.anschrift p{margin-bottom:2px}
/* Der Kasten zum Widerspruchsrecht (Abschnitt 12). Ohne die zweite Regel
   griffe "main p:first-of-type" auch auf seinen ersten Absatz. */
.kasten{margin:18px 0 22px}
main .kasten p{font-size:15px}
.kasten h3{margin-top:0}
@media (min-width:680px){ main{padding:52px 0 64px} h2{font-size:25px} }
/* Ausdrucken (Mieterinformation zum Aushaengen, Rechtstexte zum Ablegen): ohne
   Kopf- und Fusszeile der Anwendung. Hier und nicht als <style> in der Seite -
   die Content-Security-Policy im Caddyfile erlaubt nur style-src 'self'. */
@media print{
  header.top, footer, .nicht-drucken{display:none !important}
  main{padding:0}
  body{background:#fff}
  /* FARBE IM DRUCK (04.10.2026): Ohne diese Zeile lassen Browser Hintergruende
     weg - das gelbe Kaestchen im Logo kaeme weiss heraus. */
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  /* KEIN KASTEN UEBER DIE SEITENGRENZE: Der Widerspruchskasten stand auf der
     Mieterinformation halb auf Seite eins, halb auf Seite zwei. */
  .kasten, .liste li, .anschrift{break-inside:avoid}
  h2, h3{break-after:avoid}
  .druck-kopf{display:flex !important}
}
/* Kopf nur fuer den Ausdruck: Logo und Adresse, weil der Seitenkopf der
   Anwendung im Druck wegfaellt. Bisher nur auf der Mieterinformation. */
.druck-kopf{display:none;justify-content:space-between;align-items:center;border-bottom:2px solid var(--ink);padding-bottom:8px;margin-bottom:14px}
.druck-kopf .adresse{font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--ink-2)}
/* DIE MIETERINFORMATION AUF EINE SEITE: Sie wird ausgehaengt oder in den
   Briefkasten gelegt - ein zweites Blatt geht dabei verloren. */
@media print{
  @page{size:A4;margin:12mm 14mm}
  main.mieterblatt{zoom:.76}
  main.mieterblatt h1{margin:6px 0 12px}
  main.mieterblatt h2{margin:16px 0 6px}
  main.mieterblatt p{margin-bottom:8px}
  main.mieterblatt .liste li{margin-bottom:4px}
  main.mieterblatt .kasten{margin:10px 0 12px;padding:12px 16px}
}
