/* Eine einzige Stylesheet-Datei. Nur Flexbox, kein Grid. Immer gap UND margin,
   weil gap nicht überall unterstützt wird. Keine Schriften von fremden Servern. */

:root {
  --blau: #17458f;
  --blau-hell: #2a5fb8;
  --gold: #f7a81b;
  --grau: #555;
  --hellgrau: #f4f5f7;
  --rand: #dcdfe4;
  --rot: #b3261e;
  --gruen: #1d7a3e;
  --weiss: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1c1c1e;
  background: var(--hellgrau);
}

a { color: var(--blau); }
a:hover { color: var(--blau-hell); }

/* ------------------------------------------------------------ Grundgerüst */

.rahmen { display: flex; flex-wrap: wrap; min-height: 100vh; }

.leiste {
  width: 230px;
  flex: 0 0 230px;
  background: var(--blau);
  color: var(--weiss);
  padding: 0 0 40px 0;
}
.leiste .marke {
  display: block;
  padding: 15px 18px 13px 18px;
  color: var(--weiss);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.leiste .markenkopf { display: flex; align-items: center; gap: 10px; margin: 0 0 3px 0; }
.leiste .markenbild {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 10px;   /* neben gap, weil gap nicht ueberall greift */
}
.leiste .marke b { font-size: 17px; letter-spacing: .3px; }
.leiste .markenclub {
  display: block;
  font-size: 11.5px;
  opacity: .75;
  line-height: 1.3;
}
.leiste details { border-bottom: 1px solid rgba(255,255,255,.10); }
.leiste summary {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .8;
  list-style: none;
}
.leiste summary::-webkit-details-marker { display: none; }
.leiste a.punkt {
  display: block;
  padding: 8px 18px 8px 26px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
}
.leiste a.punkt:hover { background: rgba(255,255,255,.10); color: var(--weiss); }
.leiste a.punkt.aktiv {
  background: rgba(255,255,255,.16);
  border-left: 3px solid var(--gold);
  padding-left: 23px;
  color: var(--weiss);
}
.leiste .fuss { padding: 16px 18px; font-size: 12px; opacity: .7; }

/* Aufklappbares Menue ohne JavaScript: ein Ankreuzfeld schaltet die Liste. */
.menueschalter { display: none; }
.menueknopf { display: none; }
.markenzeile { display: block; }
.leiste .fuss a { color: var(--gold); }

.inhalt { flex: 1 1 480px; padding: 22px 26px 60px 26px; min-width: 0; }

h1 { font-size: 22px; margin: 0 0 4px 0; color: var(--blau); }
h2 { font-size: 17px; margin: 26px 0 10px 0; color: var(--blau); }
h3 { font-size: 15px; margin: 18px 0 8px 0; }
.unterzeile { color: var(--grau); margin: 0 0 18px 0; font-size: 14px; }

/* ------------------------------------------------------------------ Karten */

.karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 16px 0;
}
.reihe { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px 0; }
.reihe > .karte { flex: 1 1 300px; margin: 0 0 16px 0; }
.spalte { display: flex; flex-direction: column; gap: 8px; margin: 0; }

.zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px 0; }
.zeile.rechts { justify-content: flex-end; }
.wachsen { flex: 1 1 auto; }

/* ---------------------------------------------------------------- Tabellen */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--grau);
  border-bottom: 2px solid var(--rand);
  padding: 8px 8px 6px 0;
  font-weight: 600;
}
td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rand); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.tabellenrahmen { overflow-x: auto; margin: 0 0 10px 0; }

/* --------------------------------------------------------------- Bedienung */

.knopf, button, input[type=submit] {
  display: inline-block;
  background: var(--blau);
  color: var(--weiss);
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
.knopf:hover, button:hover { background: var(--blau-hell); color: var(--weiss); }
.knopf.zweit, button.zweit {
  background: var(--weiss);
  color: var(--blau);
  border: 1px solid var(--rand);
}
.knopf.zweit:hover, button.zweit:hover { background: var(--hellgrau); color: var(--blau); }
.knopf.gefahr, button.gefahr { background: var(--rot); }
.knopf.gefahr:hover, button.gefahr:hover { background: #8f1e17; }
.knopf.gold, button.gold { background: var(--gold); color: #3a2600; }
.knopf.gold:hover { background: #d99110; color: #3a2600; }
.knopf.klein, button.klein { padding: 5px 10px; font-size: 13px; }
button:disabled, .knopf.aus { opacity: .45; cursor: not-allowed; }

label { display: block; font-size: 13px; color: var(--grau); margin: 0 0 3px 0; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], input[type=search], input[type=file],
select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--weiss);
  color: inherit;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.feld { margin: 0 0 12px 0; flex: 1 1 200px; }
.feld.schmal { flex: 0 1 150px; }
form.eingebettet { display: inline; margin: 0; }

/* ------------------------------------------------------------------ Marken */

.hinweis, .warnung, .erfolg {
  border-left: 4px solid var(--blau);
  background: #eef3fb;
  padding: 11px 14px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 16px 0;
  font-size: 14px;
}
.warnung { border-left-color: var(--rot); background: #fdeeed; }
.erfolg { border-left-color: var(--gruen); background: #edf7f0; }
.hinweis p:first-child, .warnung p:first-child { margin-top: 0; }
.hinweis p:last-child, .warnung p:last-child { margin-bottom: 0; }

.schild {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: var(--hellgrau);
  color: var(--grau);
  border: 1px solid var(--rand);
  white-space: nowrap;
}
.schild.gruen { background: #e6f4ea; color: #14602f; border-color: #b6ddc3; }
.schild.rot { background: #fdeaea; color: #8f1e17; border-color: #efc0bd; }
.schild.gelb { background: #fdf3e0; color: #7a5200; border-color: #efd9a8; }
.schild.blau { background: #e8effa; color: var(--blau); border-color: #c3d3ef; }

.leer { color: var(--grau); font-style: italic; padding: 14px 0; }
.klein { font-size: 13px; color: var(--grau); }
.zahl { font-size: 26px; font-weight: 600; color: var(--blau); line-height: 1.1; }

/* ---------------------------------------------------------------- Aufnahme */

.aufnahmefeld { text-align: center; padding: 26px 18px; }
.uhr {
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 8px 0;
}
.punkt-rot {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--rot);
  margin-right: 8px;
  vertical-align: middle;
}
.laeuft .punkt-rot { animation: pulsen 1.4s ease-in-out infinite; }
@keyframes pulsen { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.grossknopf {
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 30px;
  margin: 6px;
}
.markenknoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }

/* ------------------------------------------------------------------ Forum */

.zaehler {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--gold);
  color: #3a2600;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}
.zaehler.gross { font-size: 12px; padding: 3px 10px; }

.nachricht {
  border-bottom: 1px solid var(--rand);
  padding: 11px 0;
  margin: 0;
}
.nachricht:last-child { border-bottom: none; }
.nachricht.antwort {
  margin-left: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--rand);
  border-bottom: none;
}
.nachricht.angeheftet { background: #fffaf0; }
.nachricht.entfernt { opacity: .75; }
.nachricht .werkzeuge { opacity: .55; }
.nachricht:hover .werkzeuge { opacity: 1; }
.nachricht .antwort {
  background: var(--hellgrau);
  border-radius: 6px;
  padding: 8px 11px;
  margin: 8px 0 0 0;
  font-size: 14px;
}
.antwortfeld { border-left: 2px solid var(--gold); padding-left: 12px; margin: 8px 0 0 22px; }

/* ---------------------------------------------------------------- Beiträge */

.beitrag {
  border-left: 3px solid var(--rand);
  padding: 10px 0 10px 12px;
  margin: 0 0 12px 0;
  border-bottom: 1px solid var(--rand);
}
.beitrag:last-child { border-bottom: none; margin-bottom: 0; }
.beitrag.richtigstellung { border-left-color: var(--rot); }
.beitrag.ergaenzung { border-left-color: var(--gold); }
.beitrag.frage { border-left-color: var(--blau-hell); }
.beitrag.notiz { border-left-color: var(--rand); background: #fbfbfc; }
.beitrag .antwort {
  background: var(--hellgrau);
  border-radius: 6px;
  padding: 8px 11px;
  margin: 8px 0 0 0;
  font-size: 14px;
}
.beitrag audio { margin: 6px 0; }
.dazu { white-space: nowrap; }

/* -------------------------------------------------------------- Transkript */

.abschnitt { display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rand); margin: 0; }
.abschnitt:target { background: #fff8e6; }
.abschnitt .marke-zeit {
  flex: 0 0 62px;
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 0;
  text-align: left;
}
.abschnitt .marke-zeit:hover { color: var(--blau); background: none; }
.abschnitt .wort { flex: 1 1 320px; min-width: 0; }
.abschnitt .sprechername { font-weight: 600; color: var(--blau); margin-right: 5px; }

.tonleiste {
  position: sticky;
  top: 0;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  z-index: 5;
}
.tonleiste audio { width: 100%; }

/* ------------------------------------------------------------ Kleine Geräte */

@media (max-width: 820px) {
  .rahmen { display: block; }
  .leiste { width: auto; flex: none; padding-bottom: 0; }

  .markenzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .leiste .marke { flex: 1 1 auto; border-bottom: none; padding: 11px 14px; }
  .leiste .marke b { font-size: 16px; }
  .leiste .markenclub { font-size: 11px; }

  /* Drei Striche, rein aus CSS - kein Bild, keine fremde Symbolschrift. */
  .menueknopf {
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 40px;
    margin-right: 12px;
    padding: 11px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;
    cursor: pointer;
  }
  .menueknopf span {
    display: block;
    height: 2px;
    background: var(--weiss);
    margin: 0 0 4px 0;
    border-radius: 1px;
  }
  .menueknopf span:last-child { margin-bottom: 0; }

  .menue { display: none; border-top: 1px solid rgba(255,255,255,.18); }
  .menueschalter:checked ~ .menue { display: block; }

  .leiste summary { padding: 12px 14px; }
  .leiste a.punkt { padding: 10px 14px 10px 24px; }

  .inhalt { padding: 16px 14px 50px 14px; }
  .uhr { font-size: 38px; }

  /* Auf dem Telefon sind das die Knoepfe, die im Sitzungsraum getroffen
     werden muessen - eher zu gross als zu klein. */
  .grossknopf { display: block; width: 100%; margin: 8px 0; padding: 17px 20px; }
  .markenknoepfe button { flex: 1 1 44%; padding: 13px 8px; }
  .zeile > .knopf, .zeile > button { flex: 1 1 auto; }
}

@media print {
  .leiste, .knopf, button, form { display: none; }
  body { background: var(--weiss); }
  .karte { border: none; padding: 0; }
}
