/* ki-tagesbrief.css — nur fuer /ki-tagesbrief (Issue #174).
   Bewusst eigene Datei statt _shared/style.css: der Tagesbrief laeuft nur auf
   schreiber.biz, die drei anderen Sites sollen das CSS nicht mitschleppen.

   Verwendet ausschliesslich die semantischen Tokens aus tokens.css, damit Hell
   und Dunkel ohne Extraregeln funktionieren. Keine Versalien (Projektregel):
   Labels werden ueber Groesse, Farbe und Laufweite abgesetzt, nicht ueber
   text-transform. */

/* Sprungziele nicht unter den fixierten Header schieben: ohne das landet die
   Ueberschrift beim Klick im Inhaltsverzeichnis hinter der Kopfleiste. */
.tb-section[id],
.tb-news[id] { scroll-margin-top: 5.5rem; }

.tb-section { padding: 3rem 0; }
.tb-section > .container > h2,
.tb-section > .container-narrow > h2 { margin-bottom: 1.75rem; }

/* ── TL;DR ─────────────────────────────────────────────────────────────────
   Der eine Satz direkt unter der Ueberschrift. Ersetzt auf den Tagesseiten die
   allgemeine Unterzeile: die sagte auf jeder Ausgabe dasselbe und kostete nur
   Platz, bevor die erste Aussage kam (Olaf, 2026-08-20). Etwas groesser als der
   Fliesstext, damit man beim Ueberfliegen zuerst hier landet. */
.tb-tldr {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  color: var(--on-dark);
  text-wrap: pretty;
}
/* Auf hellem Grund (Uebersichtsseite) statt auf dem dunklen Hero */
.tb-tldr--light {
  color: var(--text);
  margin-left: 0;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

@media (max-width: 600px) {
  .tb-tldr { font-size: 1.1rem; }
}

/* ── Kopfzeile mit Datum ───────────────────────────────────────────────── */
.tb-meta {
  font-size: .95rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.tb-meta a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.tb-meta a:hover { color: var(--accent); }

/* ── Hinweis auf die maschinelle Erstellung ────────────────────────────── */
.tb-notice {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  border-radius: 0 .5rem .5rem 0;
}
.tb-notice p { margin: 0; font-size: .95rem; color: var(--text-muted); line-height: 1.6; }
.tb-notice strong { color: var(--text); }
.tb-notice a { color: var(--accent); }

/* ── Listen im Rubriktext (Zeilen mit "- " aus dem Modell, A1 in #170) ── */
.tb-list { margin: .4rem 0 .9rem; padding-left: 1.2rem; }
.tb-list li { margin: .3rem 0; line-height: 1.6; }

/* ── Inhaltsverzeichnis der Ausgabe ────────────────────────────────────── */
.tb-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0 0;
}
.tb-toc a {
  font-size: .9rem;
  padding: .35rem .75rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--text-muted);
  text-decoration: none;
}
.tb-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Meldungen ─────────────────────────────────────────────────────────── */
.tb-news {
  border-top: 1px solid var(--border);
  padding: 2rem 0 .5rem;
}
.tb-news:first-of-type { border-top: none; padding-top: 0; }
.tb-news h3 {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  margin: .35rem 0 1.25rem;
  line-height: 1.3;
}
.tb-news__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .85em;
  color: var(--accent);
}
.tb-news__block { margin-bottom: 1.25rem; }
.tb-news__label,
.tb-action__label,
.tb-sources__label {
  display: block;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.tb-news__block p:last-child { margin-bottom: 0; }

.tb-tag {
  display: inline-block;
  font-size: .78rem;
  padding: .2rem .6rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--text-muted);
  vertical-align: middle;
}

.tb-action {
  background: var(--surface);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.tb-action p:last-child { margin-bottom: 0; }

/* ── Quellen ───────────────────────────────────────────────────────────── */
.tb-sources { margin-top: 1.25rem; }
.tb-sources ul { list-style: none; margin: 0; padding: 0; }
.tb-sources li { font-size: .92rem; margin-bottom: .3rem; line-height: 1.5; }
.tb-sources a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .2em;
  /* Lange URLs duerfen die Seite auf dem Handy nicht aufreissen */
  overflow-wrap: anywhere;
}
.tb-sources a:hover { color: var(--accent); }
.tb-source__pub,
.tb-source__date { color: var(--text-muted); font-size: .88em; }
.tb-source__pub::before { content: "· "; }
.tb-source__date::before { content: "· "; }

/* ── Foerderradar ──────────────────────────────────────────────────────── */
.tb-funding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: .5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.tb-funding--neu       { border-left-color: var(--accent); }
.tb-funding--frist     { border-left-color: var(--accent-hover); }
.tb-funding--geaendert { border-left-color: var(--accent-warm); }
.tb-funding h3 { margin: .5rem 0 .25rem; }
.tb-funding__provider { color: var(--text-muted); font-size: .92rem; margin-bottom: .9rem; }
.tb-funding__link { margin: 1rem 0 0; }
.tb-funding__link a { color: var(--accent); font-weight: 600; }
.tb-status {
  display: inline-block;
  font-size: .78rem;
  padding: .2rem .6rem;
  border-radius: 2rem;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.tb-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .9rem; }
.tb-fact { font-size: .92rem; }
.tb-fact > span { color: var(--text-muted); margin-right: .35rem; }

.tb-empty { color: var(--text-muted); font-style: italic; }

/* ── Agent des Tages: Kette ────────────────────────────────────────────── */
.tb-chain { margin: 1.5rem 0; }
.tb-chain__step {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
  border-left: 2px solid var(--border);
}
.tb-chain__step:last-child { border-left-color: transparent; padding-bottom: 0; }
.tb-chain__step::before {
  content: "";
  position: absolute;
  left: -.32rem; top: .45rem;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--accent);
}
.tb-chain__step > span {
  display: block;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.tb-chain__step p:last-child { margin-bottom: 0; }
.tb-classify { font-size: .95rem; color: var(--text-muted); }

/* ── Werkzeug: Kurzangaben ─────────────────────────────────────────────── */
.tb-defs {
  display: grid;
  gap: .85rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: .5rem;
}
.tb-def { font-size: .95rem; line-height: 1.55; }
.tb-def > span {
  display: block;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .15rem;
}

/* ── Praxisfall ────────────────────────────────────────────────────────── */
.tb-hint {
  font-size: .92rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: .9rem;
  margin-bottom: 1.5rem;
}

/* ── Korrekturen ───────────────────────────────────────────────────────── */
.tb-corrections { list-style: none; margin: 0; padding: 0; }
.tb-corrections li {
  border-left: 3px solid var(--accent);
  padding: .5rem 0 .5rem 1rem;
  margin-bottom: .75rem;
}

/* ── Uebersichtsseite ──────────────────────────────────────────────────── */
.tb-latest-label {
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.tb-highlights { margin: 1.75rem 0; }
.tb-highlights ul { margin: 0; padding-left: 1.1rem; }
.tb-highlights li { margin-bottom: .45rem; line-height: 1.5; }
.tb-highlights a { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.tb-highlights a:hover { color: var(--accent); }

/* ── Mobil ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tb-section { padding: 2.25rem 0; }
  .tb-funding, .tb-defs, .tb-action { padding: 1rem; }
  .tb-news h3 { gap: .5rem; }
  .tb-facts { gap: .4rem 1rem; }
}
