/* Die einzelnen Bildschirme. */

.bildschirm {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.inhalt {
  flex-grow: 1;
  overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top)) 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.titelblock { display: flex; flex-direction: column; gap: 4px; }
.untertitel { font-size: 14px; color: var(--muted); line-height: 1.45; }
.abschnitt {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* ---- Start / Anmelden ---- */
.start { justify-content: flex-start; gap: 22px; }
.start .mitte { display: flex; flex-direction: column; gap: 18px; }
.start .fuss { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.dehner { flex-grow: 1; }
.fehlerzeile { font-size: 14px; color: var(--ink); background: var(--notiz); border-radius: var(--r-klein); padding: 10px 12px; }

/* ---- Erledigen ---- */
.punkt-zeile {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 0 12px; border-bottom: 1px solid var(--track);
}
.punkt-rechts { display: flex; flex-direction: column; gap: 7px; flex-grow: 1; min-width: 0; padding-top: 11px; }
.punkt-text {
  background: transparent; border: 0; padding: 0; text-align: left;
  font-size: 16px; line-height: 1.35;
  display: flex; gap: 8px; align-items: center;
}
.punkt-text.is-erledigt { text-decoration: line-through; color: var(--muted-dunkel); }
.punkt-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.punkt-offen { display: flex; flex-direction: column; gap: 8px; }
.besitzer-hinweis { font-size: 12px; color: var(--muted); line-height: 1.45; }
.neu-punkt-klein { width: 8px; height: 8px; border-radius: var(--r-rund); flex-shrink: 0; }

.anlegen { display: flex; flex-direction: column; gap: 10px; }
.anlegen .zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.anlegen .zeile > .schild { width: 34px; }

.leer {
  text-align: center; color: var(--muted); font-size: 14px;
  line-height: 1.6; padding: 32px 8px;
}

/* ---- Übergabe ---- */
.entwurf-zeile {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--track);
}
.entwurf-zeile .text { flex-grow: 1; font-size: 15px; line-height: 1.45; padding-top: 4px; }
.entwurf-zeile button { width: 36px; height: 36px; flex-shrink: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.uebergabe-karte { display: flex; flex-direction: column; gap: 10px; }
.uebergabe-kopf { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.uebergabe-kopf .wer { font-weight: 600; color: var(--ink); }
.uebergabe-punkt { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.uebergabe-punkt .aufzaehlung { width: 5px; height: 5px; border-radius: var(--r-rund); background: var(--muted); flex-shrink: 0; margin-top: 9px; }
.status { font-size: 12px; color: var(--muted); }

/* ---- Einstellungen ---- */
.einstellung-liste { display: flex; flex-direction: column; background: var(--karte); border: 1px solid var(--line); border-radius: var(--r-karte); overflow: hidden; }
.einstellung-liste button, .einstellung-zeile {
  min-height: 54px; padding: 10px 16px; border: 0; background: transparent;
  text-align: left; font-size: 15px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
}
.einstellung-liste > * + * { border-top: 1px solid var(--track); }
.klein-grau { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---- Termine ---- */
.umschalter {
  display: flex; border: 1.5px solid var(--ink);
  border-radius: var(--r-mittel); overflow: hidden; flex-shrink: 0;
}
.umschalter button {
  min-height: 38px; padding: 0 12px; border: 0;
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 13px;
}
.umschalter button.is-aktiv { background: var(--ink); color: var(--stein); }

.blaettern { display: flex; align-items: center; justify-content: space-between; }
.blaettern button { width: 44px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 22px; }
.blaettern h2 { font-size: 17px; }

.kalender {
  background: var(--karte); border: 1px solid var(--line);
  border-radius: var(--r-karte); overflow: hidden;
}
.kalender-kopf { display: flex; border-bottom: 1px solid var(--line); }
.kalender-koerper { display: flex; }
.stunden-spalte { width: 28px; flex-shrink: 0; display: flex; flex-direction: column; }
.stunde { height: 38px; font-size: 9.5px; color: var(--muted); text-align: right; padding-right: 4px; transform: translateY(-6px); }
.wochen-raster { flex-grow: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.tag-kopf { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 1px 4px; min-width: 0; }
.tag-kopf .wd { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.tag-zahl {
  width: 26px; height: 26px; border: 0; border-radius: var(--r-rund);
  background: transparent; color: var(--ink); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tag-zahl.is-heute { background: var(--akzent); font-weight: 700; }
.ganztaegig { width: 100%; min-height: 16px; display: flex; flex-direction: column; gap: 2px; }

.termin-chip {
  display: block; border-radius: 4px; background: var(--akzent);
  font-size: 9px; line-height: 15px; padding: 0 3px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink);
}

.tag-spalte {
  position: relative; min-width: 0;
  border-left: 1px solid var(--track);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, var(--track) 37px, var(--track) 38px);
}
.tag-spalte.is-heute { background-color: rgba(255, 255, 255, 0.5); }
.termin {
  position: absolute; left: 1px; right: 2px;
  border: 0; border-radius: 4px; background: var(--akzent);
  padding: 2px 3px; overflow: hidden; text-align: left;
  font-size: 9.5px; line-height: 1.2; color: var(--ink);
}
.termin .zeit { font-weight: 700; }
.jetzt-linie { position: absolute; left: -3px; right: 0; height: 2px; background: var(--ink); }
.jetzt-linie::before {
  content: ''; position: absolute; left: 0; top: -3px;
  width: 8px; height: 8px; border-radius: var(--r-rund); background: var(--ink);
}

.monats-raster {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--karte); border: 1px solid var(--line);
  border-radius: var(--r-karte); overflow: hidden;
}
.monats-wd { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); padding: 6px 0 4px; border-bottom: 1px solid var(--track); }
.monats-feld {
  height: 70px; min-width: 0; border: 0;
  border-bottom: 1px solid var(--track); border-right: 1px solid var(--track);
  background: transparent; padding: 3px 2px;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
}
.monats-feld .tag-zahl { align-self: center; width: 22px; height: 22px; font-size: 12px; }
.monats-feld.fremd { color: #9A9C95; }
.monats-feld.is-gewaehlt { background: var(--stein); }
.monats-feld .mehr { font-size: 9px; color: var(--muted); text-align: left; padding-left: 2px; }

/* ---- Enger und übersichtlicher ---- */
.inhalt { gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 18px 20px; }
.punkt-liste { display: flex; flex-direction: column; }
.punkt-zeile { padding: 4px 0 8px; gap: 4px; }
.punkt-rechts { gap: 5px; padding-top: 9px; }
.punkt-meta { gap: 5px; font-size: 11.5px; }
.punkt-offen { gap: 8px; padding: 8px 0 4px; }
.punkt-zeile.ist-privat { opacity: 0.85; }
.titelblock { gap: 2px; }
.anlegen { gap: 8px; margin-top: 4px; }
.anlegen .pille-reihe { gap: 5px; }
.schild { color: var(--muted); font-size: 12px; }

/* Überpunkte wie „Hort" */
.gruppe-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 14px 0 2px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.gruppe-kopf .anzahl { font-weight: 600; letter-spacing: 0; }
.gruppe-feld { max-width: 150px; min-height: 34px; padding: 0 10px; font-size: 13px; }

.knopf-mini {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-mittel);
  background: var(--ink); color: var(--stein); font-weight: 600; font-size: 14px;
}
.neu-wort { font-size: 11px; font-weight: 700; color: var(--ink); }
.chip.privat { background: var(--track); font-weight: 600; }
.chip.faellig.spaet { background: var(--track); text-decoration: underline; }
.knopf-schlicht.mehr { align-self: flex-start; color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 10px; }
