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



/* 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: 9px 13px; margin: 2px 2px 16px;
  background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: 10px;
  font-weight: 550; font-size: 13px; text-decoration: none;
  box-shadow: 0 1px 1px rgba(20,23,29,.04);
}
.seite .zumdashboard span[aria-hidden] { color: var(--akzent); }
.seite .zumdashboard:hover { border-color: var(--tinte-3); }
.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: 12px 15px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; 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); }
/* Ausgewaehlt heisst ein Streifen links, keine eingefaerbte Zeile. Eine
   flaechig blaue Zeile zieht mehr Aufmerksamkeit als der Inhalt daneben. */
.fadenzeile[aria-current="true"] {
  background: var(--flaeche); box-shadow: inset 3px 0 0 var(--akzent);
}
.fadenzeile[aria-current="true"] .wer { font-weight: 600; }
.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: 26px 34px 60px; }
.lesen > * { max-width: 74ch; }
.lesen h1 { font-size: 20px; font-weight: 600; letter-spacing: -.028em;
  margin-bottom: 18px; line-height: 1.3; }
.nachricht { border-top: 1px solid var(--linie); padding: 22px 0 6px; }
.nachricht:first-of-type { border-top: 0; }
.nachrichtkopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nachrichtkopf .kreis {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--flaeche-2); color: var(--tinte-2);
  display: grid; place-items: center; font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--linie);
}
.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: 24px; border: 1px solid var(--linie);
  border-radius: var(--radius-gross); background: var(--flaeche);
  padding: 15px 16px 14px; box-shadow: var(--schatten);
}
.entwurfkasten .kopfzeile { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.entwurfkasten .kopfzeile b { font-size: 12px; font-weight: 550; color: var(--tinte-3); }
.entwurfkasten textarea {
  width: 100%; min-height: 168px; resize: vertical;
  border: 0; border-top: 1px solid var(--linie); border-radius: 0;
  background: transparent; padding: 14px 2px 4px;
  font: inherit; font-size: 13.5px; line-height: 1.68; color: var(--tinte);
}
.entwurfkasten textarea:focus { outline: none; }
.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; }
  /* Die Adresse rechts oben schob die Kopfzeile ueber den Rand. */
  .appkopf .rechts > span.leise { display: none; }
  .appkopf .suche { margin-left: 0; }
  .raster { grid-template-columns: 1fr; }
  .faeden, .seite { border-right: 0; border-bottom: 1px solid var(--linie); }
  .lesen { padding: 18px 16px 40px; }
}
