/* Schrift des Bueros, aus dem Ordner design. */
@font-face {
  font-family: "ACaslon";
  src: url("/schrift/fonnts.com-ACaslonPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ACaslon";
  src: url("/schrift/fonnts.com-ACaslonPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ACaslon";
  src: url("/schrift/fonnts.com-ACaslonPro-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --schwarz: #000000;
  --weiss: #ffffff;
  --linie: #262626;
  --linieklar: #454545;
  --feld: #0d0d0d;
  --rund: 14px;

  /* Caslon nur fuer Ueberschriften und Titel. */
  --titelschrift: "ACaslon", "Adobe Caslon Pro", Georgia, serif;
  --textschrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--schwarz);
  color: var(--weiss);
  font-family: var(--textschrift);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Alle Angaben stehen in vollem Weiss. Abstufungen entstehen ueber Groesse
   und Gewicht, nicht ueber Grau. */
.quelle, .anzahl, .nummer, .ort, .bauherr, .kuerzel, .stand, .termin,
.hinweis, .gespeichert, label span, .projektzeit > span, .projektzeit p {
  color: var(--weiss);
}

/* Kopf mit Logo */

.kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px 24px;
  border-bottom: 1px solid var(--linie);
}

.logo {
  /* Das Logo liegt schwarz vor. Auf schwarzem Grund wird es umgekehrt. */
  filter: invert(1);
  width: 232px;
  height: auto;
  display: block;
}

.kopfrechts {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quelle {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.inhalt { padding: 30px 44px 96px; }

.hinweis { max-width: 52ch; }

.knopf {
  font-family: var(--textschrift);
  border: 1px solid var(--linieklar);
  background: transparent;
  color: var(--weiss);
  border-radius: 999px;
  padding: 7px 17px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.knopf:hover { border-color: var(--weiss); }

/* Rubriken zum Auf- und Zuklappen */

.gruppe { margin-bottom: 40px; }

.gruppenkopf {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--linie);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gruppenkopf h2 {
  margin: 0;
  font-family: var(--titelschrift);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.anzahl {
  font-size: 13px;
  opacity: 0.55;
}

.pfeil {
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: transform 0.14s ease;
  transform-origin: 30% 50%;
  opacity: 0.55;
}

[aria-expanded="true"] > .pfeil { transform: rotate(90deg); }

.gruppenkopf[aria-expanded="false"] + .liste { display: none; }

/* Projektzeilen mit Bild */

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

/* Abgeschlossene Projekte treten zurueck, bleiben aber lesbar. */
.projekt[data-fertig="ja"] > .zeile { opacity: 0.4; }
.projekt[data-fertig="ja"] > .zeile:hover { opacity: 0.75; }

/* Kopfzeile und Projektzeilen teilen sich dasselbe Raster. */
.zeile, .kopfzeile {
  display: grid;
  grid-template-columns: 54px 58px minmax(180px, 1.6fr) minmax(90px, 0.7fr) minmax(120px, 1fr) 145px 112px minmax(180px, 1.2fr);
  gap: 16px;
}

.kopfzeile {
  padding: 12px 4px 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  border-bottom: 1px solid var(--linie);
}

/* Alle Zeilen gleich hoch, damit die Abstaende nicht springen, wenn ein
   Titel zweizeilig wird. */
.zeile {
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.zeile:hover { background: #0b0b0a; }

.bild[src=""], .grossesBild[src=""] { visibility: hidden; }

.bild {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--feld);
  display: block;
}

.nummer {
  font-family: var(--titelschrift);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.titel {
  font-family: var(--titelschrift);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  /* Hoechstens zwei Zeilen, sonst rutscht das Raster auseinander. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ort, .bauherr {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Die Zustaendigkeit steht als Kuerzel, vom Bauherrn abgerueckt. Die
   Spalte ist so bemessen, dass drei Kuerzel samt Luft hineinpassen. */
.kuerzel {
  padding-left: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stand {
  font-size: 14px;
  opacity: 0.5;
}

.stand[data-gesetzt="ja"] { opacity: 1; }

/* Der Punkt gehoert zur Terminspalte und steht vor dem Termin. Rot, sobald
   ein Termin oder eine Frist eingetragen ist, sonst gruen. */
.punkt {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.punkt[data-faellig="ja"] { background: #e0574b; }
.punkt[data-faellig="nein"] { background: #5fae6d; }

/* Platz fuer den kommenden Termin, sobald Outlook angebunden ist. */
.termin {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  min-width: 0;
}

.terminText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Aufgeklappte Angaben, Bild daneben */

.details[hidden] { display: none; }

.details {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 10px 4px 34px 116px;
  max-width: 1180px;
}

/* Die Spalte darf nicht breiter werden als ihr Platz. Ohne minmax richtet
   sich das Raster nach dem breitesten Inhalt, und die Ablageflaeche zog
   das Titelbild in die Feldspalte hinein. */
.bildspalte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

/* Eigenes Titelbild waehlen oder hineinziehen */

.bildablage {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px dashed var(--linie);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.12s ease;
}

.bildablage[data-bereit="ja"] { border-color: var(--weiss); }

.bildknopf {
  display: inline-block;
  cursor: pointer;
}

.bildhinweis {
  margin: 0;
  font-size: 12px;
  opacity: 0.6;
  overflow-wrap: anywhere;
}

.grossesBild {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--rund);
  background: var(--feld);
  display: block;
}

.felder { display: grid; gap: 18px; align-content: start; }

.feldpaar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feldtrio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

label.feld, .feldpaar label, .feldtrio label, .bildwahl {
  display: grid;
  gap: 6px;
}

label span, .projektzeit > span, .etikett {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

input, textarea, select {
  /* Kein Feld darf breiter werden als seine Spalte. Ein Auswahlkasten
     richtet sich sonst nach dem laengsten Eintrag und ragt hinaus. */
  max-width: 100%;
  min-width: 0;
  width: 100%;
  font-family: var(--textschrift);
  font-weight: 300;
  font-size: 15px;
  color: var(--weiss);
  background: var(--feld);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 9px 11px;
  resize: vertical;
}

/* Platzhalter muessen sich von echten Angaben unterscheiden, deshalb hier
   als einzige Stelle abgeschwaechtes Weiss. */
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--linieklar);
}

/* Mitarbeiter, mehrere gleichzeitig moeglich */

.leutewahl {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.leutewahl legend {
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.haken {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.haken-eintrag {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  cursor: pointer;
  font-size: 14px;
}

.haken-eintrag:has(input:checked) { border-color: var(--weiss); }

.haken-eintrag input {
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--linieklar);
  border-radius: 50%;
  background: transparent;
}

.haken-eintrag input:checked {
  background: var(--weiss);
  border-color: var(--weiss);
}

.projektzeit { display: grid; gap: 8px; }
.projektzeit p { margin: 0; font-size: 14px; }

.fuss {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.gespeichert { font-size: 12px; }


/* ------------------------------------------------------------------ */
/* App: Reiter, Anmeldung, Menue                                       */
/* ------------------------------------------------------------------ */

/* Was verborgen ist, bleibt verborgen, gleich welche Anzeigeart eine Regel
   setzt. Ohne das schlaegt "display: flex" das hidden-Attribut. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: inherit; }
h1 {
  margin: 0;
  font-family: var(--titelschrift);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.kopf {
  padding-top: max(40px, calc(env(safe-area-inset-top) + 16px));
  align-items: center;
}
.logoverweis { display: block; }

.reiter {
  display: flex;
  gap: 6px;
  margin-right: auto;
  margin-left: 24px;
}
.reiter a {
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.reiter a:hover { border-color: var(--linie); }
.reiter a[aria-current] { border-color: var(--weiss); }

.zahl {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e0574b;
  color: var(--weiss);
  font-size: 12px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
}

.ichknopf {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linieklar);
  background: transparent;
  color: var(--weiss);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  flex: 0 0 auto;
}
.ichknopf:hover { border-color: var(--weiss); }

.knopf { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.knopf:disabled { opacity: 0.4; cursor: default; }
.knopf.leise { border-color: var(--linie); }
.knopf.gross { padding: 12px 26px; font-size: 16px; }
.knopf.rund { width: 36px; height: 36px; padding: 0; font-size: 18px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.etikett {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hinweis.klein { font-size: 13px; opacity: 0.7; }
.fehler { color: #ff8a80; }

.leiste:empty { display: none; }
.leiste {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 44px;
  border-bottom: 1px solid var(--linie);
  background: #0b0b0b;
}
.leiste p { margin: 0; flex: 1; font-size: 14px; }
.leistezu {
  background: none;
  border: 0;
  color: var(--weiss);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.anmeldung {
  max-width: 460px;
  margin: 10vh auto 0;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.menue {
  background: var(--schwarz);
  color: var(--weiss);
  border: 1px solid var(--linieklar);
  border-radius: var(--rund);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
}
.menue::backdrop { background: rgba(0, 0, 0, 0.7); }
.menueinhalt { display: grid; gap: 22px; padding: 26px; }
.menuename { margin: 0; font-family: var(--titelschrift); font-weight: 700; font-size: 22px; }
.menueblock { display: grid; gap: 8px; }
.menueblock p { margin: 0; font-size: 14px; }

.bereichskopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 26px;
}
.zurueck { margin: 0 0 14px; font-size: 14px; }
.zurueck a { text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Arbeitszeit                                                         */
/* ------------------------------------------------------------------ */

.monatswahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.monatsname {
  font-family: var(--titelschrift);
  font-weight: 700;
  font-size: 20px;
  min-width: 150px;
  text-align: center;
}

.summen {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding: 18px 0;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.summen strong {
  display: block;
  font-weight: 400;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.nachweisstand { margin: 14px 0 0; font-size: 14px; }

.tage { margin-top: 10px; }
.tag { border-bottom: 1px solid var(--linie); }
.tag[data-wochenende="ja"][data-leer="ja"] > .tagzeile,
.tag[data-ausser="ja"] > .tagzeile { opacity: 0.35; }
.tag[data-heute="ja"] .tagdatum { text-decoration: underline; text-underline-offset: 4px; }

.tagzeile {
  display: grid;
  grid-template-columns: 92px 112px 58px 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tagzeile:hover { background: #0b0b0a; }
.tagdatum, .tagzeiten, .tagsumme { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tagsumme { text-align: right; }
.tagart { font-size: 13px; letter-spacing: 0.06em; }
.tagtext { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag[data-feiertag="ja"] .tagtext { font-style: italic; }

.tagtermine:empty { display: none; }
.tagtermine { padding: 0 4px 10px 110px; display: grid; gap: 2px; }
.termin { margin: 0; font-size: 13px; display: flex; gap: 10px; opacity: 0.75; }
.termin.abwesend { opacity: 0.5; }
.terminzeit { min-width: 58px; font-variant-numeric: tabular-nums; }

.tageditor[hidden] { display: none; }
.tageditor {
  display: grid;
  gap: 10px;
  padding: 6px 4px 22px 110px;
  max-width: 1100px;
}
.tageditor > .knopf { justify-self: start; }
.artwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.artknopf {
  border: 1px solid var(--linie);
  background: transparent;
  color: var(--weiss);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.artknopf[aria-pressed="true"] { border-color: var(--weiss); background: var(--weiss); color: var(--schwarz); }
.artknopf:disabled { opacity: 0.4; cursor: default; }

.posten { display: grid; gap: 10px; }
.postenzeile {
  display: grid;
  grid-template-columns: 104px 104px 74px minmax(160px, 1fr) minmax(160px, 1.2fr) 54px 32px;
  gap: 10px;
  align-items: end;
}
.kurzfeld, .langfeld { display: grid; gap: 4px; }
/* Uhrzeit-, Text- und Auswahlfelder haben von Haus aus verschiedene Hoehen. */
.postenzeile input, .postenzeile select { height: 42px; }
.postendauer { padding-bottom: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.entfernen {
  height: 40px;
  background: none;
  border: 0;
  color: var(--weiss);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}
.entfernen:hover { opacity: 1; }
.postenhinweis { margin: 0; font-size: 13px; min-height: 1em; }
.postenhinweis:empty { display: none; }
input[type="time"], input[type="date"] { font-variant-numeric: tabular-nums; }
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }

.zeitfuss { display: grid; gap: 8px; justify-items: start; margin-top: 30px; }

.tabellenrahmen { overflow-x: auto; }
.jahrestabelle, .teamtabelle {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-variant-numeric: tabular-nums;
}
.jahrestabelle th, .teamtabelle th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 10px 12px 8px 0;
  border-bottom: 1px solid var(--linie);
}
.jahrestabelle td, .teamtabelle td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: middle;
}
.jahrestabelle td a, .teamtabelle td a { text-decoration: none; }
.jahrestabelle tfoot td { font-weight: 500; border-bottom: 0; }
.teamtabelle tr[data-inaktiv] td { opacity: 0.4; }
.stand-offen { opacity: 0.6; }
.vertragszeile td { padding: 4px 0 22px; }
.vertrag {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
.teamzusatz { display: grid; gap: 10px; margin-bottom: 18px; }

/* ------------------------------------------------------------------ */
/* Notizbuch                                                           */
/* ------------------------------------------------------------------ */

.notizliste { display: grid; border-top: 1px solid var(--linie); }
.notizeintrag {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
}
.notizeintrag:hover { background: #0b0b0a; }
.notizeintrag[data-erledigt] { opacity: 0.45; }
.ungelesen { width: 9px; height: 9px; border-radius: 50%; margin-top: 9px; }
.notizeintrag[data-ungelesen] .ungelesen { background: #e0574b; }
.notizkopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.notiztitel { font-family: var(--titelschrift); font-weight: 700; font-size: 19px; line-height: 1.25; }
.notizmeta { font-size: 13px; opacity: 0.7; margin: 0; }
.notizvorschau {
  grid-column: 2;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notizvorschau:empty { display: none; }

.notiz { display: grid; gap: 12px; max-width: 760px; }
.notiztext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.antworten { display: grid; gap: 4px; max-width: 760px; margin-top: 30px; }
.antwort { padding: 14px 0; border-top: 1px solid var(--linie); display: grid; gap: 6px; }
.antwortfeld { display: grid; gap: 10px; justify-items: start; max-width: 760px; margin-top: 18px; }
.notizform { display: grid; gap: 18px; max-width: 760px; margin-top: 18px; }

/* ------------------------------------------------------------------ */
/* Schmale Fenster                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .kopf, .inhalt { padding-left: 20px; padding-right: 20px; }
  .zeile, .kopfzeile { grid-template-columns: 46px 50px 1fr minmax(90px, auto); gap: 12px; }
  .kopfzeile span:nth-child(4), .kopfzeile span:nth-child(5),
  .kopfzeile span:nth-child(6), .kopfzeile span:nth-child(7) { display: none; }
  .zeile .ort, .zeile .bauherr, .zeile .kuerzel, .zeile .stand { display: none; }
  .bild { width: 46px; height: 46px; }
  .details { grid-template-columns: 1fr; padding-left: 4px; gap: 20px; }
  .bildspalte { max-width: 260px; }
  .feldpaar, .feldtrio { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .leiste { padding-left: 20px; padding-right: 20px; }
  .tagtermine { padding-left: 4px; }
  .tageditor { padding-left: 4px; }
  .postenzeile { grid-template-columns: 1fr 1fr 80px 40px 32px; }
  .postenzeile .langfeld { grid-column: 1 / -1; }
  .postenzeile .langfeld:nth-of-type(4) { grid-row: 2; }
  .postenzeile .langfeld:nth-of-type(5) { grid-row: 3; }
  .postendauer { grid-row: 1; grid-column: 4; }
  .entfernen { grid-row: 1; grid-column: 5; }
}

/* Telefon: Reiter unten, wie in einer App. */
@media (max-width: 700px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  h1 { font-size: 26px; }
  .kopf { padding: max(14px, env(safe-area-inset-top)) 16px 12px; gap: 12px; }
  .logo { width: 150px; }
  .inhalt { padding: 20px 16px 40px; }
  .reiter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    margin: 0;
    gap: 0;
    justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.94);
    border-top: 1px solid var(--linie);
    backdrop-filter: blur(12px);
  }
  .reiter a { flex: 1; justify-content: center; padding: 10px 4px; border-radius: 12px; font-size: 14px; }
  .reiter a[aria-current] { border-color: transparent; background: #1a1a1a; }

  .bereichskopf { margin-bottom: 18px; }
  .monatsname { min-width: 0; font-size: 18px; }
  .summen { gap: 12px 24px; }
  .summen strong { font-size: 19px; }

  .tagzeile {
    grid-template-columns: 74px minmax(0, 1fr) 44px 52px;
    grid-template-areas: "datum text art summe";
    gap: 8px;
  }
  .tagdatum { grid-area: datum; }
  .tagtext { grid-area: text; }
  .tagart { grid-area: art; text-align: right; }
  .tagsumme { grid-area: summe; }
  .tagzeiten { display: none; }
  /* Auf dem Telefon stehen die Felder untereinander. von und bis teilen
     sich eine Zeile, sie gehoeren zusammen. */
  .postenzeile { grid-template-columns: 1fr 1fr 76px; padding-bottom: 12px; border-bottom: 1px dashed var(--linie); }
  .postendauer { grid-row: 4; grid-column: 1 / 3; text-align: left; padding: 0; align-self: center; }
  .entfernen { grid-row: 4; grid-column: 3; justify-self: end; }
  /* iOS vergroessert die Seite bei Feldern unter 16 Punkt. */
  input, textarea, select { font-size: 16px; }
}
