:root {
  --grund: #f6f4ef; --flaeche: #ffffff; --text: #22272b; --leise: #5f676d; --linie: #e3dfd6;
  --dunkel: #2f4a3a; --haupt: #2f6b4f; --haupt-text: #ffffff;
  --gruen: #dff2e1; --gruen-k: #2e7d4f; --blau: #dcebf7; --blau-k: #2c6496; --gelb: #fbf3d0; --gelb-k: #8a6a00;
  --lila: #ebe3f5; --lila-k: #6a4b9a; --rosa: #f7e1ea; --rosa-k: #9a3f63; --grau: #ecebe8; --grau-k: #5f676d;
  --orange: #fde7d4; --orange-k: #b0581a; --tuerkis: #d6f0ee; --tuerkis-k: #1f7a73; --rot: #f8dcdc; --rot-k: #b23a3a; --braun: #efe3d6; --braun-k: #7a5532;
  --ampel-gruen: #2e9e5b; --ampel-gelb: #e0a800; --ampel-rot: #d64545; --ampel-grau: #a5a9ad;
  --rund: 14px; --schatten: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1 { font-size: 1.6rem; margin: 0 0 .2rem; }
h2 { font-size: 1.1rem; margin: 0; }
h3 { font-size: 1rem; margin: 0 0 .3rem; }
a { color: var(--haupt); }
.leise { color: var(--leise); font-size: .92rem; }
[hidden] { display: none !important; }

/* Gerüst: PC links das Menü; Handy oben Kopfleiste mit ☰ (Menü als Schublade), unten die Leiste */
.menue { background: var(--dunkel); color: #fff; padding: 16px 10px 24px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto;
  position: sticky; top: 0; height: 100vh; }
.menue .marke { font-weight: 700; font-size: 1.2rem; padding: 4px 12px 6px; letter-spacing: .02em; }
.menue h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #a9c2b2; margin: 14px 12px 4px; font-weight: 600; }
.menue a { color: #e8efe9; text-decoration: none; padding: 7px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; position: relative; }
.menue a:hover { background: rgba(255,255,255,.08); }
.menue a.aktiv { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.menue .sym { width: 1.4em; text-align: center; }
.menue-fuss { margin-top: auto; padding: 18px 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c9d6cd; font-size: .9rem; }
.menue-fuss .knopf { background: transparent; color: #e8efe9; border-color: rgba(255,255,255,.3); }
.kopfleiste, .menue-schleier { display: none; }
.menue .zaehler { position: static !important; margin-left: auto; }
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.leiste { background: var(--dunkel); color: #fff; padding: 18px 10px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; }
.leiste .marke { font-weight: 700; font-size: 1.2rem; padding: 4px 12px 16px; letter-spacing: .02em; }
.leiste a { color: #e8efe9; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; gap: 10px;
  align-items: center; position: relative; }
.leiste a:hover { background: rgba(255,255,255,.08); }
.leiste a.aktiv { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.leiste .sym { width: 1.4em; text-align: center; font-size: 1.1rem; }
.zaehler { background: var(--ampel-rot); color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 6px; margin-left: auto; }
.inhalt { padding: 28px 32px 60px; max-width: 2200px; width: 100%; min-width: 0; outline: none; }

@media (min-width: 761px) { .leiste { display: none !important; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .kopfleiste { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 15; background: var(--dunkel); color: #fff;
    padding: calc(6px + env(safe-area-inset-top)) 12px 6px 6px; }
  .kopf-menue { font: inherit; font-size: 1.4rem; color: #fff; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .kopf-menue .zaehler { top: 4px; right: 2px; }
  .kopf-titel { font-weight: 600; font-size: 1.05rem; }
  .menue { position: fixed; top: 0; bottom: 0; left: 0; height: auto; width: min(300px, 86vw); z-index: 40; transform: translateX(-105%);
    transition: transform .2s ease; padding: calc(14px + env(safe-area-inset-top)) 10px calc(24px + env(safe-area-inset-bottom)); }
  body.menue-offen .menue { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.35); }
  .menue a { padding: 10px 12px; }
  .menue-schleier { display: block; position: fixed; inset: 0; background: rgba(20,24,22,.45); z-index: 35; }
  .leiste-menue { font: inherit; color: #e8efe9; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center;
    justify-content: center; font-size: .7rem; padding: 6px 4px; flex: 1; min-height: 52px; position: relative; }
  .leiste-menue .sym { font-size: 1.25rem; }
  .leiste { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; flex-direction: row; padding: 4px 4px
    calc(4px + env(safe-area-inset-bottom)); z-index: 30; justify-content: space-around; gap: 0;
    transform: translateZ(0); will-change: transform; backface-visibility: hidden; }   /* eigene Ebene: Android ließ die Leiste beim Scrollen verschwinden (05.11.) */
  .leiste .marke { display: none; }
  .leiste a { flex-direction: column; gap: 0; font-size: .7rem; padding: 6px 4px; flex: 1; text-align: center; min-height: 52px;
    justify-content: center; }
  .leiste .sym { font-size: 1.25rem; width: auto; }
  .zaehler { position: absolute; top: 2px; right: 18%; margin: 0; }
  .inhalt { padding: 18px 16px 96px; }
  h1 { font-size: 1.35rem; }
}

/* Bausteine */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; box-shadow: var(--schatten); }
.abschnitt { margin-top: 26px; }
.abschnitt-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.abschnitt-kopf .leise { flex: 1; min-width: 200px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.liste { display: flex; flex-direction: column; gap: 8px; }
.zeile { display: flex; align-items: center; gap: 12px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 12px; padding: 10px 12px; }
.zeile .haupt { flex: 1; min-width: 0; }
.zeile > .knopf { flex: none; }
.zeile .titel { font-weight: 600; overflow-wrap: anywhere; }
.zeile .knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.zeile.vorbei { opacity: .62; }
.zeile.laeuft { border-color: var(--haupt); box-shadow: 0 0 0 2px rgba(47,107,79,.18); }
.uhr { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 92px; color: var(--leise); }
@media (max-width: 760px) {
  .zeile { flex-wrap: wrap; }
  .zeile .knoepfe { width: 100%; justify-content: flex-start; }
  .uhr { min-width: 0; }
}

.knopf { font: inherit; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); border-radius: 10px;
  padding: 8px 14px; cursor: pointer; min-height: 40px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.knopf:hover { border-color: #c9c3b6; }
.knopf.haupt { background: var(--haupt); border-color: var(--haupt); color: var(--haupt-text); font-weight: 600; }
.knopf.klein { padding: 4px 10px; min-height: 34px; font-size: .9rem; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.haken { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b9b3a7; background: #fff; cursor: pointer; flex: none; }
.haken:hover { border-color: var(--haupt); background: var(--gruen); }

.chip { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 99px; background: var(--grau); color: var(--grau-k); }
.f-gruen { background: var(--gruen); color: var(--gruen-k); } .f-blau { background: var(--blau); color: var(--blau-k); }
.f-gelb { background: var(--gelb); color: var(--gelb-k); } .f-lila { background: var(--lila); color: var(--lila-k); }
.f-rosa { background: var(--rosa); color: var(--rosa-k); } .f-grau { background: var(--grau); color: var(--grau-k); }
.rand-gruen { border-left: 5px solid var(--gruen-k); } .rand-blau { border-left: 5px solid var(--blau-k); }
.rand-gelb { border-left: 5px solid var(--gelb-k); } .rand-lila { border-left: 5px solid var(--lila-k); }
.rand-rosa { border-left: 5px solid var(--rosa-k); } .rand-grau { border-left: 5px solid var(--grau-k); }
.f-orange { background: var(--orange); color: var(--orange-k); } .f-tuerkis { background: var(--tuerkis); color: var(--tuerkis-k); }
.f-rot { background: var(--rot); color: var(--rot-k); } .f-braun { background: var(--braun); color: var(--braun-k); }
.rand-orange { border-left: 5px solid var(--orange-k); } .rand-tuerkis { border-left: 5px solid var(--tuerkis-k); }
.rand-rot { border-left: 5px solid var(--rot-k); } .rand-braun { border-left: 5px solid var(--braun-k); }

.ampel { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.a-gruen { background: var(--ampel-gruen); } .a-gelb { background: var(--ampel-gelb); } .a-rot { background: var(--ampel-rot); }
.a-grau { background: var(--ampel-grau); }

/* Aufgaben in Spalten nach Frist: am PC nebeneinander, am Handy untereinander */
.aufgaben-spalten { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.aufgaben-spalte { background: #faf9f6; border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px; }
.aufgaben-spalte h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.aufgaben-spalte .zeile { padding: 8px 10px; gap: 10px; }
.aufgaben-spalte .zeile .knoepfe { display: none; }
@media (max-width: 760px) { .aufgaben-spalte { padding: 0; background: none; border: none; } }

.kurztag { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.notizen { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.notiz { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: #fffdf3; }
.notiz.angeheftet { border-color: var(--gelb-k); }
.notiz-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5em; overflow: hidden; font-size: .94rem; }

.raster.sortieren .bereich-karte { touch-action: none; cursor: grab; user-select: none; outline: 2px dashed rgba(0,0,0,.18); outline-offset: 2px; }
.raster.sortieren .bereich-karte.zieht { cursor: grabbing; opacity: .75; transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.sprechfeld { font-size: 1.05rem; min-height: 9em; }

.idee-form textarea { width: 100%; }
.idee-text { white-space: pre-wrap; max-height: 4.5em; overflow: hidden; }

.leiste-foto { color: #e8efe9; cursor: pointer; display: none; }
@media (max-width: 760px) {
  .leiste-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .7rem; padding: 6px 4px; flex: 1;
    min-height: 52px; }
  .leiste-foto .sym { font-size: 1.25rem; }
}

/* Kalender */
.kal-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--grau-k); flex: none; }
.p-gruen { background: var(--gruen-k); } .p-blau { background: var(--blau-k); } .p-gelb { background: var(--gelb-k); } .p-lila { background: var(--lila-k); }
.p-rosa { background: var(--rosa-k); } .p-grau { background: var(--grau-k); } .p-orange { background: var(--orange-k); } .p-tuerkis { background: var(--tuerkis-k); }
.p-rot { background: var(--rot-k); } .p-braun { background: var(--braun-k); }
.kal-kopfbereich { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.kal-zeile { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.kal-ansichten { margin: 0 !important; }
.kal-aktionen, .kal-blaettern { display: flex; gap: 6px; }
.kal-titel-zeile { margin: 0; font-size: 1.1rem; }
.kal-filterzeile { align-items: flex-start; flex-wrap: nowrap; }
.kal-filterzeile .kal-filter { flex: 1 1 auto; min-width: 0; }
.kal-filterzeile .kal-aktionen { flex: 0 0 auto; }
.kal-filterzeile:has(.kal-filter[open]) { flex-wrap: wrap; }
.kal-filterzeile .kal-filter[open] { flex-basis: 100%; order: 2; }
.kal-filter summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 2px 0; }
.kal-filter[open] { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 6px 10px 10px; }
.kal-filter .knoepfe-reihe { margin-top: 6px; }
.kal-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 4px; }
.kal-leg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text); }
.kal-leg.aus { opacity: .4; text-decoration: line-through; }
.kal-kopf { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 6px 0; line-height: 1.1; }
.kal-wt-name { font-size: .72rem; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.kal-tag-nr { font-size: 1.25rem; font-weight: 700; min-width: 2em; text-align: center; border-radius: 99px; }
.kal-kopf.heute .kal-tag-nr, .kal-listentag.heute .kal-tag-nr { background: var(--haupt); color: #fff; }
.kal-ev { font: inherit; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; box-sizing: border-box; cursor: pointer; border-radius: 6px; padding: 3px 6px; font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; border-left-width: 4px; }
.kal-ev .kal-zeit { font-weight: 700; font-variant-numeric: tabular-nums; }
.kal-ort { display: block; font-size: .74rem; opacity: .8; }
/* Stundenraster (3 Tage, Woche): 24 Stunden je 48 px, senkrecht blättern, beim Öffnen ab 7 Uhr bzw. dem ersten Termin */
.kal-raster { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.kal-r-zeile { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); }
.kal-raster.n7 .kal-r-zeile { grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
.kal-r-kopf { border-bottom: 1px solid var(--linie); }
.kal-r-ganz { border-bottom: 1px solid var(--linie); background: #faf9f6; }
.kal-r-ganz > span { font-size: .7rem; padding: 6px 4px; text-align: right; }
.kal-r-ganz > div { display: flex; flex-direction: column; gap: 2px; padding: 3px 2px; border-left: 1px solid var(--linie); min-width: 0; }
.kal-r-ganz .kal-ev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-r-roll { max-height: min(68vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
/* Am PC füllt der Kalender die Höhe des Fensters (Michael 05.11.: „nach unten ist noch mehr Platz“) */
@media (min-width: 761px) { .kal-r-roll { max-height: max(420px, calc(100dvh - 295px)); } }
.kal-r-koerper { position: relative; }
.kal-r-achse span { display: block; height: 48px; font-size: .7rem; color: var(--leise); text-align: right; padding-right: 6px; transform: translateY(-.55em); font-variant-numeric: tabular-nums; }
.kal-r-tag { position: relative; height: 1152px; border-left: 1px solid var(--linie); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--linie) 0 1px, transparent 1px 48px); }
.kal-r-tag.heute { background-color: rgba(47,107,79,.04); }
.kal-block { position: absolute; overflow: hidden; z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow-wrap: break-word; hyphens: auto; }
.kal-block.kurz { white-space: nowrap; text-overflow: ellipsis; padding-top: 1px; padding-bottom: 1px; }
.kal-jetzt { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #c0392b; z-index: 2; pointer-events: none; }
.kal-jetzt::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #c0392b; }
.kal-tipp { margin-top: 8px; }
/* Monat: Punkte je Termin, rechts (Handy: darunter) der gewählte Tag */
.kal-monat-flaeche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.kal-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.kal-wt { background: #faf9f6; text-align: center; font-size: .78rem; font-weight: 600; color: var(--leise); padding: 6px 0; }
.kal-zelle { all: unset; box-sizing: border-box; cursor: pointer; background: var(--flaeche); min-height: 74px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kal-zelle:hover { background: #f6f8f4; }
.kal-zelle.fremd { background: #f7f6f2; color: var(--leise); }
.kal-zelle.fremd .kal-punkt { opacity: .5; }
.kal-zelle.gewaehlt { box-shadow: inset 0 0 0 2px var(--haupt); }
.kal-nr { font-size: .9rem; font-weight: 700; min-width: 1.8em; text-align: center; border-radius: 99px; padding: 1px 0; }
.kal-zelle.heute .kal-nr { background: var(--haupt); color: #fff; }
.kal-punkte { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 9px; }
.kal-mehr { font-size: .7rem; line-height: 9px; color: var(--leise); }
.kal-auswahl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.kal-auswahl-kopf h3 { margin: 0; }
.ansicht-monat .kal-auswahl { margin-top: 0; }
.kal-woche-klein, .nur-klein-block { display: none; }
/* Liste: Datum links wie in einer Agenda */
.kal-liste { display: flex; flex-direction: column; gap: 10px; }
.kal-listentag { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.kal-listen-datum { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding-top: 4px; line-height: 1.15; }
.kal-listen-datum .leise { font-size: .72rem; }
.leer.klein { padding: 8px; font-size: .9rem; text-align: left; }
@media (max-width: 760px) {
  .kal-ansichten { gap: 4px !important; }
  .kal-ansichten button { font-size: .8rem !important; padding: 4px 8px !important; }
  .kal-aktionen .knopf, .kal-blaettern .knopf { padding: 4px 7px; font-size: .8rem; min-height: 0; }
  .kal-aktionen, .kal-blaettern { gap: 4px; }
  .kal-titel-zeile { font-size: .92rem; }
  .kal-r-zeile { grid-template-columns: 38px repeat(3, minmax(0, 1fr)); }
  .kal-r-achse span { font-size: .62rem; padding-right: 3px; }
  .kal-ev { font-size: .72rem; padding: 2px 4px; border-left-width: 3px; }
  .kal-tag-nr { font-size: 1.1rem; }
  /* Woche am Handy: eine Reihe mit Punkten, der angetippte Tag darunter */
  .kal-raster.n7 { display: none; }
  .kal-woche-klein { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
  .kal-woche-klein .kal-zelle { min-height: 64px; gap: 4px; }
  .nur-klein-block { display: block; margin-top: 14px; }
  .kal-monat-flaeche { grid-template-columns: 1fr; }
  .kal-zelle { min-height: 50px; padding: 4px 2px; gap: 4px; }
  .kal-punkt { width: 7px; height: 7px; }
  .kal-listentag { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
}

.bucket-filter { margin-bottom: 12px; }
@media (max-width: 760px) { .filter.bucket-filter { flex-wrap: wrap; overflow: visible; } }

/* Lage */
.kopf-lage .satz { font-size: 1.08rem; margin: .5rem 0 0; }
.bereich-karte { border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.bereich-karte .oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bereich-karte .wert { font-size: 1.7rem; font-weight: 700; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.bereich-karte .kennzahl { font-size: .9rem; opacity: .85; }
.bereich-karte .unten { font-size: .85rem; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; opacity: .9; }
.warnung { display: flex; gap: 10px; align-items: center; }

/* Nachbereitung */
.nachbereitung textarea { width: 100%; min-height: 84px; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--linie); margin: 8px 0; }
.nachbereitung .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.punkt { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px dashed var(--linie); }
.punkt span { flex: 1; }

/* Entscheidungen */

/* Formulare, Fenster, Meldung */
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--leise); }
input, select, textarea { font: inherit; color: var(--text); padding: 9px 10px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; min-height: 42px; }
.formular { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.formular .breit { grid-column: 1 / -1; }
.formular .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.formular .check input { min-height: 0; width: 20px; height: 20px; }
@media (max-width: 560px) { .formular { grid-template-columns: 1fr; } }
.fenster { border: none; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.fenster::backdrop { background: rgba(20,24,22,.45); }
.fenster > div { padding: 20px; }
.fenster .fuss { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.hilfe { background: #faf9f6; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.hilfe dt { font-weight: 600; } .hilfe dd { margin: 0 0 6px; }
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dunkel); color: #fff;
  padding: 10px 18px; border-radius: 99px; z-index: 50; box-shadow: var(--schatten); max-width: calc(100vw - 32px); }
.meldung.fehler { background: var(--ampel-rot); }
@media (max-width: 760px) { .meldung { bottom: 84px; } }
.fehler { color: var(--ampel-rot); }
.leer { color: var(--leise); padding: 12px; border: 1px dashed var(--linie); border-radius: 12px; text-align: center; }
.schalter { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
.schalter input { width: 22px; height: 22px; min-height: 0; }

/* Anmeldung */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--dunkel); }
.anmelde-karte { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }

/* Reiter, Vorhaben */
.reiter { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.reiter a { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--leise); padding: 2px 10px 6px; border-bottom: 3px solid transparent; }
.reiter a.aktiv { color: var(--text); border-color: var(--haupt); }
@media (max-width: 760px) { .reiter a { font-size: 1.05rem; } }
.balken { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: none; border-radius: 99px;
  background: var(--grau); overflow: hidden; margin: 8px 0 4px; color: var(--ampel-gruen); }
.balken::-webkit-progress-bar { background: var(--grau); border-radius: 99px; }
.balken::-webkit-progress-value { background: var(--ampel-gruen); border-radius: 99px; }
.balken::-moz-progress-bar { background: var(--ampel-gruen); border-radius: 99px; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mit-abstand { margin-top: 12px; }
.zeitknoepfe { display: inline-flex; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
.vorhaben-kachel { text-decoration: none; color: inherit; display: block; }
.vorhaben-kachel .oben, .vorhaben summary .oben { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.vorhaben summary { cursor: pointer; list-style: none; }
.vorhaben summary::-webkit-details-marker { display: none; }
.vorhaben h4 { margin: 16px 0 6px; font-size: .9rem; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.vorhaben .fuss { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
form.inline { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
form.inline input[name=titel] { flex: 1; min-width: 180px; }
.zeile-knopf { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.zeile-knopf:hover { border-color: #c9c3b6; }
.abo-zeile { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.abo-zeile input { flex: 1; min-width: 200px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.schritte { margin: 8px 0; padding-left: 20px; } .schritte li { margin: 4px 0; }
.knoepfe-reihe { display: flex; gap: 8px; flex-wrap: wrap; }
.zeile.erledigt { opacity: .6; } .zeile.erledigt .haupt { text-decoration: line-through; }
.haken.voll { display: grid; place-items: center; background: var(--gruen); border-color: var(--gruen-k); color: var(--gruen-k); font-size: .8rem; }
tr.klickbar { cursor: pointer; } tr.klickbar:hover td { background: #faf9f6; }

/* KI-Assistent und „Wer ist dabei?“ */
.knopf.ki { border-color: var(--lila-k); }
.ki-gesehen { white-space: pre-wrap; word-break: break-word; font-size: .8rem; max-height: 14rem; overflow: auto;
  background: var(--grau); padding: .5rem; border-radius: 6px; }
fieldset.dabei { border: 1px solid var(--linie); border-radius: 8px; padding: .4rem .7rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
fieldset.dabei legend { font-size: .85rem; padding: 0 .3rem; }

/* Familie: Einkaufsliste und Stundenplan */
.zeile-form { display: flex; gap: 8px; margin-bottom: 10px; }
.zeile-form input { flex: 1; min-width: 0; }
label.zeile.einkauf { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; cursor: pointer;
  text-align: left; padding: 10px 14px; margin: 0; }
.zeile.einkauf input { width: 22px; height: 22px; flex: none; }
.zeile.einkauf.erledigt .haupt { text-decoration: line-through; color: var(--leise); }
.tabelle-roll { overflow-x: auto; }
table.stundenplan { border-collapse: collapse; width: 100%; min-width: 320px; background: var(--flaeche); border-radius: var(--rund); }
table.stundenplan th, table.stundenplan td { border: 1px solid var(--linie); padding: 0; text-align: center; font-size: .85rem; }
table.stundenplan th { padding: 6px 4px; color: var(--leise); font-weight: 600; }
table.stundenplan .heute { background: var(--gelb); }
table.stundenplan .zelle { all: unset; display: block; box-sizing: border-box; width: 100%; min-height: 36px; padding: 8px 2px; cursor: pointer; }
table.stundenplan .zelle:focus-visible { outline: 2px solid var(--haupt); }

/* Rückmelde-Seite für Delegierte (/r/<schlüssel>) */
.r-seite { padding: 16px; }
.r-inhalt { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.r-auftrag { white-space: pre-wrap; font-size: 1.05rem; background: var(--gelb); padding: 12px; border-radius: 10px; }
.r-fuss { text-align: center; }

/* Scannen */
.foto-knopf { text-align: center; font-size: 1.1rem; padding: 16px; cursor: pointer; }
.scan-vorschau { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-vorschau .seite { all: unset; cursor: pointer; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; width: 72px; height: 96px; }
.scan-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wochenrückblick und Einstellungen */
.raster.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.raster.zahlen .wert { font-size: 1.8rem; font-weight: 700; }
.schalter-liste { display: grid; gap: 6px; }
.reiter button { all: unset; cursor: pointer; font-weight: 600; color: var(--leise); padding: 4px 12px 6px; border-bottom: 3px solid transparent; }
.reiter button.aktiv { color: var(--text); border-color: var(--haupt); }

/* Stundenplan: Zeiten und Pausen */
table.stundenplan .zelle.stunde { font-weight: 600; color: var(--text); padding: 6px 4px; }
table.stundenplan .zeit { display: block; font-weight: 400; font-size: .72rem; color: var(--leise); line-height: 1.2; }
table.stundenplan tr.pause td, table.stundenplan tr.pause th { background: var(--grau); color: var(--leise); font-size: .78rem; padding: 3px 6px; text-align: center; }
.schule-heute { margin: 0 0 14px; }
table.stundenplan tr.pause .leise { font-size: inherit; }

/* Termin-Kategorien */
.kat-zeile { flex-wrap: wrap; }
.kat-zeile input[name=name] { flex: 1 1 140px; min-width: 0; }
.kat-zeile select { flex: 0 0 auto; }
.chip.kat { font-weight: 600; }
label.kat-wahl { flex-direction: row; align-items: center; gap: 6px; }

/* Klappbare Abschnitte, Hilfetexte am Handy hinter ⓘ (Wunsch Michael 03.11.: „weniger unübersichtliches Gescrolle“) */
.abschnitt-kopf .klapp { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; }
.abschnitt-kopf .klapp h2 { margin: 0; }
.abschnitt-kopf .pfeil { display: inline-block; transition: transform .15s; color: var(--leise); font-size: .9rem; }
.abschnitt.zu .pfeil { transform: rotate(-90deg); }
.abschnitt.zu .abschnitt-inhalt { display: none; }
.abschnitt-kopf .info { all: unset; cursor: pointer; color: var(--leise); display: none; padding: 0 4px; }
@media (max-width: 760px) {
  .abschnitt { margin-top: 18px; }
  .abschnitt-kopf .info { display: inline; }
  .abschnitt-kopf .hilfetext, header .hilfetext { display: none; }
  .abschnitt.hilfe-auf .abschnitt-kopf .hilfetext { display: block; flex-basis: 100%; }
  .abschnitt.zu .abschnitt-kopf > :not(.klapp):not(.info) { display: none; }
}
/* Mehr: Übersicht und Unterseiten */
.mehr-liste .sym { font-size: 1.3rem; width: 1.6em; text-align: center; }
.pfeil-rechts { color: var(--leise); font-size: 1.4rem; }
a.zurueck { text-decoration: none; color: var(--leise); display: inline-block; margin-bottom: 6px; }
/* Betreuung im Stundenplan */
table.stundenplan tr.betreuung th { font-size: .8rem; }
table.stundenplan .b-name { display: block; font-weight: 600; color: var(--text); }
table.stundenplan a.zelle.absagen { color: var(--text); text-decoration: none; background: var(--lila); font-weight: 600; font-size: .8rem; }
table.stundenplan .zelle.abgesagt { background: var(--rosa); color: var(--rosa-k); font-weight: 600; font-size: .8rem; }
.nachbereitung textarea { width: 100%; min-height: 110px; margin: 10px 0; }
.mehr-liste a.zeile, .mehr-liste a.zeile * { text-decoration: none; color: inherit; }
.mehr-liste .leise { color: var(--leise); }

/* Handy-Durchsicht 03.11.: weniger Knöpfe, weniger Zeilen */
.titel-knopf { all: unset; cursor: pointer; display: block; font-weight: 600; overflow-wrap: anywhere; }
.titel-knopf:focus-visible { outline: 2px solid var(--haupt); border-radius: 4px; }
@media (max-width: 760px) {
  .nur-gross { display: none !important; }
  .zeile .knoepfe { width: auto; flex: 0 0 auto; }
  .zeile:has(> .knoepfe:empty) .knoepfe, .zeile .knoepfe:empty { display: none; }
  .filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter > * { flex: 0 0 auto; }
  .raster:has(.bereich-karte) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bereich-karte { padding: 12px; }
  .bereich-karte .wert { font-size: 1.25rem; }
  .bereich-karte .kennzahl, .bereich-karte .unten { font-size: .78rem; }
  .bereich-karte .unten { gap: 6px; }
}

/* Fenster: innen scrollen, Knopfleiste unten immer sichtbar */
.fenster { max-height: calc(100dvh - 24px); overflow: auto; }
.fenster .fuss { position: sticky; bottom: -20px; background: var(--flaeche); padding: 12px 0 14px; margin-bottom: -20px; z-index: 1; border-top: 1px solid var(--linie); }
.details-felder { display: grid; gap: 12px; }
.details-felder > summary { cursor: pointer; color: var(--leise); }
@media (max-width: 760px) {
  .fenster .fuss .knopf { flex: 1 1 auto; }
  .zeile.vorschlag, .fenster .liste .zeile { align-items: flex-start; }
}

/* Dokumente (Obsidian) */
a.ohne-strich, a.ohne-strich * { text-decoration: none; color: inherit; }
.notiz { overflow-wrap: anywhere; }
.notiz h3, .notiz h4, .notiz h5 { margin: 16px 0 6px; }
.notiz p { margin: 6px 0; }
ul.md { margin: 6px 0; padding-left: 20px; }

/* Alltag */
.vorlagen { display: flex; flex-wrap: wrap; gap: 6px; }
.zeile.alltag.erledigt .titel { text-decoration: line-through; color: var(--leise); }
.zeile.alltag .haken.voll { display: grid; place-items: center; color: #fff; }
@media (max-width: 760px) { .reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .reiter > * { flex: 0 0 auto; } }

/* Handy: Zeilen mit Uhrzeit und Knöpfen nicht mehr quetschen (Rückmeldung Michael 03.11.: „ganz schlechte Aufteilung“) –
   Uhrzeit als eigene Zeile oben, Text bekommt die Breite, Knöpfe rutschen bei Bedarf darunter. */
@media (max-width: 760px) {
  .zeile > .uhr { flex: 0 0 100%; font-size: .9rem; }
  .zeile > .uhr br { display: none; }
  .zeile > .uhr br + .leise::before { content: ' · '; }
  .zeile > .haupt { flex: 1 1 60%; min-width: 60%; }
  .zeile > .knoepfe { margin-left: auto; }
}

/* Handy: Kopfleiste nie strecken (bei wenig Inhalt verteilte das Raster den Platz auf sie), Reiter schieben statt abschneiden
   (Rückmeldung Michael 03.11.) */
@media (max-width: 760px) {
  .app { align-content: start; }
  /* Reiter als umbrechende Auswahl-Knöpfe: nichts abgeschnitten, nichts zum Seitwärtsschieben */
  .reiter { flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
  .reiter a, .reiter button { flex: 0 0 auto; white-space: nowrap; font-size: .95rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--linie);
    border-radius: 99px; background: var(--flaeche); color: var(--text); }
  .reiter a.aktiv, .reiter button.aktiv { background: var(--haupt); border-color: var(--haupt); color: #fff; }
  /* Die Kopfleiste nennt die Seite schon – die große Überschrift nur, wenn sie mehr sagt (z. B. Gruß) */
  .inhalt > header > h1:not(.kopf-lage h1) { display: none; }
}

/* Handy: Stundenplan passt in die Breite – feste Spalten, kleinere Schrift, lange Fächer mit Silbentrennung (Rückmeldung Michael 03.11.) */
@media (max-width: 760px) {
  table.stundenplan { table-layout: fixed; min-width: 0; }
  table.stundenplan thead th:first-child, table.stundenplan tbody th { width: 3.3em; }
  table.stundenplan th, table.stundenplan td { font-size: .74rem; }
  table.stundenplan th { padding: 5px 1px; }
  table.stundenplan .zelle { padding: 7px 1px; min-height: 34px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; line-height: 1.2; }
  table.stundenplan .zelle.stunde { padding: 5px 1px; }
  table.stundenplan .zeit { font-size: .62rem; }
  table.stundenplan tr.pause td { font-size: .68rem; padding: 2px 4px; }
}

/* Einfach reinschreiben – KI sortiert Freitext (Michael 04.11.) */
.knopf.gross-ki { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; max-width: 560px; margin: .8rem 0 .5rem;
  padding: 14px 18px; font-size: 1.12rem; text-align: left; }
.knopf.gross-ki span { font-size: .85rem; font-weight: normal; opacity: .85; }
.sprechfeld.gross { min-height: 14em; }
.sort-satz { font-size: 1.05rem; background: var(--lila); color: var(--text); border-radius: 10px; padding: 10px 14px; }
.sort-fragen { background: var(--gelb); border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; }
.sort-fragen ul { margin: 4px 0 0; padding-left: 1.2em; }
.sort-karte { border: 1px solid var(--linie, #ddd); border-left: 6px solid var(--grau-k); border-radius: 10px; padding: 12px; margin: 10px 0; }
.sort-karte.art-termin { border-left-color: var(--blau-k); } .sort-karte.art-aufgabe { border-left-color: var(--gruen-k); }
.sort-karte.art-notiz { border-left-color: var(--gelb-k); } .sort-karte.art-idee { border-left-color: var(--lila-k); }
.sort-karte.art-hinweis { border-left-color: var(--orange-k); }
.sort-karte .fuss { margin-top: 0; }
.sort-fertig { opacity: .7; }
.sort-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sort-karte > label, .sort-karte input, .sort-karte select, .sort-karte textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .sort-karte { padding: 10px; gap: 8px; } }

/* Übersicht: „Was ansteht“ in drei Spalten (Handy untereinander) */
.ansteht-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ansteht-gruppe h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.ansteht-gruppe.g-ueberfaellig .liste .zeile { border-left: 4px solid #c0392b; }
.zeile.ansteht { flex-wrap: wrap; }
.zeile.ansteht .haupt { flex: 1 1 55%; min-width: 0; }
.zeile.ansteht .knoepfe { margin-left: auto; }
.ansteht .haupt .titel { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .ansteht-spalten { grid-template-columns: 1fr; } }
/* Sammlungen (Pfadfinder & Kirche) */
#themaSchnell { margin-bottom: 14px; }
.karte.thema { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.karte.thema .oben { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.karte.thema.st-geplant { border-left: 4px solid var(--haupt); }
.karte.thema.st-gemacht { opacity: .7; }
/* Familie: Bedienelemente oben (Michael 04.11.) */
.familie-knoepfe { margin: 4px 0 10px; }
.vorlagen-klapp { margin-bottom: 10px; }
.vorlagen-klapp summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 2px 0 6px; }
/* Mail (05.11.): PC Liste links, Lesen rechts – Handy entweder Liste oder Mail */
.mail-kopf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mail-kopf select { font: inherit; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); max-width: 60%; }
.mail-kopf .zeile-form input { min-width: 0; }
.mail-flaeche { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.mail-liste { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.mail-zeile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-bottom: 1px solid var(--linie); }
.mail-zeile:hover { background: #f6f8f4; }
.mail-zeile.offen { background: var(--gruen); }
.mail-oben { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.mail-von { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mail-zeit { font-size: .8rem; color: var(--leise); white-space: nowrap; flex: none; }
.mail-betreff { font-size: .9rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-zeile.neu .mail-betreff { color: var(--text); font-weight: 600; }
.mail-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--haupt); margin-right: 6px; vertical-align: middle; }
.mail-blaettern { padding: 8px 12px; justify-content: space-between; align-items: center; }
.mail-lesen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; min-width: 0; position: sticky; top: 10px; max-height: calc(100vh - 40px); overflow-y: auto; }
.mail-lesen.leer-lesen { text-align: center; padding: 40px 14px; }
.mail-werkzeug { gap: 6px; margin: 0 0 10px; }
.mail-zurueck { display: none; }
.mail-titel { margin: 4px 0 8px; font-size: 1.15rem; overflow-wrap: anywhere; }
.mail-kopfdaten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0 0 10px; font-size: .88rem; }
.mail-kopfdaten dt { color: var(--leise); }
.mail-kopfdaten dd { margin: 0; overflow-wrap: anywhere; }
.mail-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: .95rem; border-top: 1px solid var(--linie); padding-top: 10px; }
.mail-form textarea { min-height: 260px; }
@media (max-width: 760px) {
  .mail-flaeche { grid-template-columns: 1fr; }
  .mail-flaeche.mit-lesen .mail-liste, .mail-lesen.leer-lesen { display: none; }
  .mail-lesen { position: static; max-height: none; padding: 10px; }
  .mail-zurueck { display: inline-flex; }
  .mail-kopf select { max-width: 55%; }
}
.mail-kat { font-size: .75rem; color: var(--leise); }
.mail-kat b { color: var(--haupt); }
.mail-ki-schalter { font-size: .8rem; }
.leiste a[hidden] { display: none !important; }
@media (max-width: 760px) { .leiste a span:last-child, .leiste-foto span:last-child { white-space: nowrap; font-size: .66rem; } }
/* Kalender Stufe 1 (05.11.): Tagesansicht, Ziehen, Wiederholen */
.kal-raster.n1 .kal-r-zeile { grid-template-columns: 48px minmax(0, 1fr); }
.kal-block.ziehbar { touch-action: none; cursor: grab; }
.kal-block.ziehbar::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 3px; border-radius: 3px; background: currentColor; opacity: .25; cursor: ns-resize; }
.kal-block.zieht { opacity: .85; box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 5; cursor: grabbing; }
.wiederholung { border: 1px solid var(--linie); border-radius: 10px; padding: 8px 10px; display: grid; gap: 8px; }
.wiederholung legend { font-weight: 600; padding: 0 4px; }
.wt-wahl { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wt-wahl[hidden], .wh-ende[hidden] { display: none !important; }
.wh-ende { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .kal-raster.n1 .kal-r-zeile { grid-template-columns: 38px minmax(0, 1fr); } }

/* 05.11.: Seit dem Mail-Symbol war die Leiste am Handy breiter als der Bildschirm (Schrift groß eingestellt) – die ganze Seite
   ließ sich seitlich schieben, die Leiste rutschte weg. Jetzt teilen sich alle Einträge die Breite, nichts ragt hinaus. */
@media (max-width: 760px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .leiste { max-width: 100vw; }
  .leiste a, .leiste-foto, .leiste-menue { flex: 1 1 0; min-width: 0; padding-left: 1px; padding-right: 1px; }
  .leiste a span:last-child, .leiste-foto span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
}
.zeilen { white-space: pre-line; }

/* Gängige Bildschirmformate (Michael 05.11.: „alles responsiv … für die gängigen Bildschirmformate“):
   Handy ≤ 760 (eigene Regeln oben) · Tablet/kleiner Laptop 761–1100 · Laptop/PC darüber · große Bildschirme bis 2200 px Inhalt */
@media (min-width: 761px) and (max-width: 1100px) {
  .app { grid-template-columns: 190px 1fr; }
  .inhalt { padding: 20px 18px 48px; }
  /* Mail: zu schmal für zwei Spalten – Liste, angetippt die Mail (wie am Handy, mit „Zurück“) */
  .mail-flaeche { grid-template-columns: 1fr; }
  .mail-flaeche.mit-lesen .mail-liste, .mail-lesen.leer-lesen { display: none; }
  .mail-lesen { position: static; max-height: none; }
  .mail-zurueck { display: inline-flex; }
  .kal-monat-flaeche { grid-template-columns: 1fr; }
}
@media (min-width: 1101px) and (max-width: 1400px) {
  .app { grid-template-columns: 200px 1fr; }
  .inhalt { padding: 24px 22px 56px; }
  .mail-flaeche { grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); }
}
