/* Postfach in der Bauart, die jeder kennt: Seitenleiste, Liste, Lesebereich.
   Der Kunde soll nichts lernen muessen. Farben und Abstaende aus stil.css. */

body.app { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

.appkopf {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 54px; flex-shrink: 0;
  background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.appkopf .marke { font-weight: 650; letter-spacing: -.02em; font-size: 15px; }
.appkopf .marke span { color: var(--tinte-3); font-weight: 450; }
.appkopf .suche {
  flex: 1; max-width: 560px; margin-left: 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--flaeche-2); border: 1px solid transparent;
  border-radius: 99px; padding: 7px 14px;
}
.appkopf .suche:focus-within { background: var(--flaeche); border-color: var(--linie-stark); }
.appkopf .suche input { border: 0; background: none; width: 100%; font: inherit; font-size: 13.5px; outline: none; }
.appkopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }

.raster { flex: 1; display: grid; grid-template-columns: 232px 372px 1fr; min-height: 0; }

/* Seitenleiste */
.seite { border-right: 1px solid var(--linie); background: var(--grund);
  overflow-y: auto; padding: 12px 10px 20px; }
.seite .zumdashboard {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--akzent); color: #fff; border-radius: 99px;
  font-weight: 550; font-size: 13.5px; text-decoration: none;
}
.seite .zumdashboard:hover { background: var(--akzent-tief); }
.seite .gruppe { margin-bottom: 16px; }
.seite .gruppentitel {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--tinte-3); padding: 0 12px 6px;
}
.seite a.punkt {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 0 99px 99px 0;
  color: var(--tinte-2); text-decoration: none; font-size: 13.5px;
}
.seite a.punkt:hover { background: var(--flaeche-2); }
.seite a.punkt[aria-current="true"] { background: var(--akzent-weich); color: var(--akzent); font-weight: 600; }
.seite a.punkt .anzahl { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.seite a.punkt .kugel { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Fadenliste */
.faeden { border-right: 1px solid var(--linie); background: var(--flaeche);
  overflow-y: auto; }
.faedenleiste {
  position: sticky; top: 0; z-index: 1; background: var(--flaeche);
  border-bottom: 1px solid var(--linie); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tinte-3);
}
.fadenzeile {
  display: block; padding: 11px 14px; border-bottom: 1px solid var(--linie);
  cursor: pointer; text-decoration: none; color: inherit;
}
.fadenzeile:hover { background: var(--flaeche-2); }
.fadenzeile[aria-current="true"] { background: var(--akzent-weich); }
.fadenzeile .oben { display: flex; align-items: baseline; gap: 8px; }
.fadenzeile .wer { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fadenzeile.ungelesen .wer { font-weight: 650; }
.fadenzeile .wann { margin-left: auto; font-size: 11.5px; color: var(--tinte-3); white-space: nowrap; }
.fadenzeile .betreff { font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fadenzeile.ungelesen .betreff { font-weight: 550; }
.fadenzeile .anriss { font-size: 12.5px; color: var(--tinte-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fadenzeile .schilder { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }

/* Lesebereich */
.lesen { overflow-y: auto; background: var(--flaeche); padding: 22px 28px 40px; }
.lesen h1 { font-size: 19px; font-weight: 620; letter-spacing: -.02em; margin-bottom: 12px; }
.nachricht { border-top: 1px solid var(--linie); padding: 16px 0; }
.nachricht:first-of-type { border-top: 0; }
.nachrichtkopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nachrichtkopf .kreis {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--flaeche-2); color: var(--tinte-2);
  display: grid; place-items: center; font-weight: 650; font-size: 13px;
}
.nachrichtkopf .kreis.wir { background: var(--akzent-weich); color: var(--akzent); }
.nachrichtkopf b { display: block; font-size: 13.5px; }
.nachrichtkopf .mono { font-size: 12px; }
.nachrichtkopf .wann { margin-left: auto; font-size: 12px; color: var(--tinte-3); }
.nachrichttext { font-size: 14px; line-height: 1.62; }
.nachrichttext p { margin: 0 0 13px; }
.nachrichttext p:last-child { margin-bottom: 0; }
.nachrichttext a { color: var(--akzent); }

.entwurfkasten {
  margin-top: 20px; border: 1px solid var(--akzent);
  border-radius: var(--radius-gross); background: var(--akzent-weich);
  padding: 14px 16px;
}
.entwurfkasten .kopfzeile { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.entwurfkasten .kopfzeile b { font-size: 13px; }
.entwurfkasten textarea {
  width: 100%; min-height: 132px; resize: vertical;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche); padding: 12px 13px;
  font: inherit; font-size: 13.5px; line-height: 1.6; color: var(--tinte);
}
.entwurfkasten .fuss { display: flex; gap: 9px; align-items: center; margin-top: 10px; }
.entwurfkasten .fuss .leise { margin-left: auto; font-size: 12px; }

.leerlesen { display: grid; place-content: center; height: 100%; text-align: center;
  color: var(--tinte-3); padding: 40px; }

@media (max-width: 1060px) {
  .raster { grid-template-columns: 64px 320px 1fr; }
  .seite .gruppentitel, .seite a.punkt span.wort, .seite .zumdashboard span { display: none; }
  .seite a.punkt { justify-content: center; border-radius: var(--radius); }
  .seite .zumdashboard { justify-content: center; }
}
@media (max-width: 760px) {
  body.app { height: auto; overflow: auto; }
  .raster { grid-template-columns: 1fr; }
  .faeden, .seite { border-right: 0; border-bottom: 1px solid var(--linie); }
  .lesen { padding: 18px 16px 40px; }
}
