/* ============================================================
   Bitfeld — Artikelseiten, Archiv, Werbe- und Affiliate-Slots
   Ergänzt style.css/theme-*.css; nutzt ausschließlich Tokens.
   ============================================================ */

/* ---------- Lesefortschritt (kein Layout-Shift: fixed) ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent, #f0b95e);
  z-index: 60;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  padding: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-faint, #7e8a9e);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  opacity: 0.6;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent, #f0b95e);
  border-bottom-color: currentColor;
}
.breadcrumb [aria-current="page"] {
  color: var(--text, #e6e8ec);
  opacity: 0.75;
}

/* ---------- Artikelkopf ---------- */
.post {
  /* 34rem ≈ 72 Zeichen pro Zeile (typografisches Optimum 60–75) */
  max-width: 34rem;
  padding-bottom: 3rem;
}
.post-header {
  padding: 0.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  margin-bottom: 2rem;
}
.post-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.6rem 0 0.9rem;
  text-wrap: balance;
}
.post-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-faint, #9aa4b2);
  margin: 0;
}

/* ---------- Fließtext ---------- */
.post-body {
  font-size: 1.06rem;
  line-height: 1.72;
}
.post-body p {
  margin: 0 0 1.35rem;
}
.post-body h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.3;
  margin: 2.25rem 0 0.65rem;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
}
.post-body li {
  margin-bottom: 0.4rem;
}
.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--paper, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.post-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.post-body a:hover,
.post-body a:focus-visible {
  color: var(--accent, #f0b95e);
  text-decoration-thickness: 2px;
}
.post--dropcap .post-body p:first-of-type::first-letter {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.6em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent, #f0b95e);
}
.post-body > p:last-child {
  margin-bottom: 0;
}
.post-source {
  margin: 2.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 0.82rem;
  color: var(--text-faint, #7e8a9e);
}
.post-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-source a:hover,
.post-source a:focus-visible {
  color: var(--accent, #f0b95e);
}
.share-inline {
  float: right;
}

/* ---------- Anzeigen-Slots: Höhe reserviert, kein CLS ---------- */
.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  padding: 0.9rem;
  min-height: var(--ad-min, 130px);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  background: var(--paper, rgba(255, 255, 255, 0.02));
}
.ad-slot--top {
  --ad-min: 130px;
}
.ad-slot--side {
  --ad-min: 250px;
}
.ad-label {
  position: absolute;
  top: 0.4rem;
  left: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint, #7e8a9e);
  opacity: 0.85;
}
/* Gefüllter Slot: kein Platzhalter-Rahmen, kein Label mehr nötig */
.ad-slot.is-filled {
  border: 0;
  padding: 0;
  background: none;
}
.ad-slot.is-filled .ad-label {
  display: none;
}

/* ---------- Affiliate-Box ---------- */
.affiliate-box {
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
  background: var(--paper, rgba(255, 255, 255, 0.03));
}
.affiliate-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint, #7e8a9e);
}
.affiliate-headline {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.affiliate-text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-faint, #9aa4b2);
}

/* ---------- Archiv / Kategorie ---------- */
.archive {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
  max-width: 52rem;
}
.archive-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 0.4rem 0 0.25rem;
}
.archive-sub {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint, #7e8a9e);
}
.archive-h {
  margin: 2rem 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint, #7e8a9e);
}
.archive-list {
  display: grid;
  gap: 0.9rem;
}
.archive-card {
  position: relative;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: var(--paper, rgba(255, 255, 255, 0.02));
  transition: border-color 160ms ease, transform 160ms ease;
}
.archive-card:hover,
.archive-card:focus-within {
  border-color: var(--accent, #f0b95e);
  transform: translateY(-1px);
}
.archive-card .stream-card-title {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0.35rem 0 0.4rem;
}
.archive-card .stream-card-title a {
  color: inherit;
  text-decoration: none;
}
.archive-card .stream-card-excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-faint, #9aa4b2);
}
/* ganzer Kartenbereich klickbar, ohne den Text zu verschachteln */
.archive-card .card-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.archive-card .card-link:focus-visible {
  outline: 2px solid var(--accent, #f0b95e);
  outline-offset: 2px;
}
.archive-card a:not(.card-link) {
  position: relative;
  z-index: 1;
}

/* ---------- Kategorie-Wolke ---------- */
.cat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.cat-cloud .chip {
  text-decoration: none;
}
.cat-cloud a:hover,
.cat-cloud a:focus-visible {
  background: rgba(240, 185, 94, 0.22);
}

/* ---------- „Weitere Artikel“ ---------- */
.related {
  max-width: 34rem;
  margin: 0 auto 3rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.related-h {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint, #7e8a9e);
  margin: 0 0 0.9rem;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.related-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, background 150ms ease;
}
.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--border, rgba(255, 255, 255, 0.12));
  background: var(--paper, rgba(255, 255, 255, 0.03));
}
.related-title {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  line-height: 1.35;
}
.related-list a:hover .related-title,
.related-list a:focus-visible .related-title {
  color: var(--accent, #f0b95e);
}

/* ---------- Footer auf Unterseiten ---------- */
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint, #7e8a9e);
}
.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible {
  color: var(--accent, #f0b95e);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .post-body {
    font-size: 1.02rem;
  }
  .post--dropcap .post-body p:first-of-type::first-letter {
    font-size: 2.2em;
  }
  .ad-slot {
    --ad-min: 100px;
  }
  .affiliate-box {
    padding: 1.15rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .read-progress,
  .archive-card,
  .related-list a {
    transition: none;
  }
}
