/* Öffentlicher Viewer. Bewusst zurückhaltend: Er sitzt im Rahmen einer fremden Webseite und soll
   sich dort einfügen, nicht mit ihr konkurrieren. Keine externen Schriften, keine Skripte. */
:root {
  --text: #1f2937;
  --leise: #6b7280;
  --linie: #e5e7eb;
  --akzent: #003366;
  --akzent-text: #ffffff;
  --flaeche: #f9fafb;
  /* Überschreibbar je Projekt über /viewer/<kürzel>/farben.css */
  --hintergrund: transparent;
  --kopf: var(--flaeche);
  --kopf-text: var(--leise);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--hintergrund); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.viewer { padding: 4px; }
.kopfzeile { margin: 0 0 14px; padding: 12px 16px; font-size: 18px; font-weight: 600; border-radius: 8px; background: var(--kopf); color: var(--kopf-text); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-name { font-weight: 600; color: var(--leise); margin-right: 2px; }
.pille {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--linie); border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); background: #fff;
}
.pille:hover { border-color: #cbd5e1; background: var(--flaeche); }
.pille.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.pille .anzahl { opacity: .65; font-weight: 400; margin-left: 2px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 13px; font-weight: 600; color: var(--kopf-text); background: var(--kopf); }
tr:hover td { background: var(--flaeche); }
td.termin { white-space: nowrap; }
td.kategorie { color: var(--leise); font-size: 14px; }
td a { color: var(--akzent); text-decoration: none; }
td a:hover { text-decoration: underline; }
.extern { margin-left: 4px; font-size: 12px; }

.fussleiste {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 14px; color: var(--leise);
}
.blaettern a { color: var(--akzent); text-decoration: none; margin-left: 14px; font-weight: 500; }
.blaettern a:hover { text-decoration: underline; }
.leer { color: var(--leise); padding: 24px 4px; }

/* Nur für Screenreader: die Ankündigung, dass ein Link ein neues Fenster öffnet. */
.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 640px) {
  th:nth-child(4), td:nth-child(4) { display: none; }
  th, td { padding: 9px 8px; }
}
