/* =========================================================================
   Gegenargumente – Theme-Styles
   Übernommen 1:1 aus dem statischen Entwurf (index.html <style>-Block).
   Tailwind selbst kommt per CDN; hier stehen nur die eigenen Ergänzungen.
   ========================================================================= */

body {
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

/* Titelschrift. .display sagt, was das Element IST. */
.display {
  font-family: 'Source Serif 4', Georgia, ui-serif, serif;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

/* Zeilenumbrüche */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Scroll-Reveal-Mikroanimation – nur wenn JavaScript aktiv ist */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js .reveal { opacity:1; transform:none; transition:none; } }

/* feines Grid-Muster für Hero */
.grid-fade {
  background-image:
    linear-gradient(to right, rgba(15,17,23,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,17,23,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Hero-Intro: zwei Bildhälften bewegen sich gegensätzlich zusammen */
.hero-layer { position: absolute; inset: 0; }
.hero-layer img { height: 100%; width: 100%; object-fit: cover; }

.hero-side-left {
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 54%, rgba(0,0,0,.96) 58%, transparent 66%);
  mask-image: linear-gradient(to right, #000 0%, #000 54%, rgba(0,0,0,.96) 58%, transparent 66%);
}
.hero-side-right {
  -webkit-mask-image: linear-gradient(to right, transparent 46%, rgba(0,0,0,.96) 54%, #000 60%, #000 100%);
  mask-image: linear-gradient(to right, transparent 46%, rgba(0,0,0,.96) 54%, #000 60%, #000 100%);
}

@keyframes heroInLeft {
  from { transform: translate3d(-6.1vw, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes heroInRight {
  from { transform: translate3d(6.72vw, -7px, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes heroChipIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.hero-play .hero-side-left {
  animation: heroInLeft 1.1s cubic-bezier(0.45,0,0.15,1) both;
  will-change: transform;
}
.hero-play .hero-side-right {
  animation: heroInRight 1.1s cubic-bezier(0.45,0,0.15,1) both;
  will-change: transform;
}
.hero-play .hero-chip   { opacity: 0; animation: heroChipIn .55s ease-out forwards; }
.hero-play .hero-chip-1 { animation-delay: .78s; }
.hero-play .hero-chip-2 { animation-delay: .94s; }

.hero-done .hero-side-left,
.hero-done .hero-side-right { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-play .hero-side-left,
  .hero-play .hero-side-right,
  .hero-play .hero-chip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   Einzelartikel (single.php) – Fließtext & Module, aus artikel.html
   ========================================================================= */

/* Lesefortschritt */
#progress { transition: width .1s linear; }

/* Fließtext des Artikels – handgesetzt (kein Typography-Plugin) */
.article-body { font-size: 1.0625rem; line-height: 1.75; color: #334155; }
.article-body > p { margin-top: 1.4rem; }
.article-body > p:first-child { margin-top: 0; }
.article-body .lead { font-size: 1.25rem; line-height: 1.6; color: #1b1d26; }
.article-body h2 { position: relative; font-family: 'Source Serif 4', Georgia, serif; letter-spacing: -0.015em; font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: #0f1117; margin-top: 3rem; scroll-margin-top: 6rem; }
.article-body h3 { font-weight: 700; font-size: 1.15rem; color: #0f1117; margin-top: 2rem; }
.article-body > ul { margin-top: 1.1rem; padding-left: 0; list-style: none; }
.article-body > ul > li { position: relative; padding-left: 1.5rem; margin-top: 0.6rem; }
.article-body > ul > li::before { content: ''; position: absolute; left: 0.1rem; top: 0.65rem; width: 6px; height: 6px; border-radius: 9999px; background: #993C1D; }
.article-body strong { color: #0f1117; font-weight: 600; }
.article-body a:not(.no-prose):not(.heading-anchor) { color: #993C1D; text-decoration: underline; text-underline-offset: 2px; }

/* Tabelle */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid #e2e8f0; }
.article-body thead th { background: #0f1117; color: #fff; font-weight: 600; white-space: nowrap; }
.article-body tbody tr:nth-child(even) { background: #f8fafc; }
.article-body caption { caption-side: bottom; margin-top: .7rem; font-size: .75rem; color: #64748b; text-align: left; }

/* FAQ (Akkordeon) */
.faq { margin-top: 1.4rem; border-top: 1px solid #e2e8f0; }
.faq details { border-bottom: 1px solid #e2e8f0; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-weight: 600; color: #0f1117; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: #993C1D; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details .faq-a { margin: 0 0 1.1rem; color: #334155; line-height: 1.7; }

/* Quellen */
.sources { counter-reset: src; list-style: none; padding: 0; margin-top: 1.2rem; font-size: .9rem; }
.sources li { counter-increment: src; position: relative; padding-left: 2.2rem; margin-top: .8rem; color: #475569; line-height: 1.6; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: .05rem; width: 1.5rem; height: 1.5rem; background: #f1f5f9; color: #475569; border-radius: 9999px; font-size: .72rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Copy-Link an Überschriften */
.heading-anchor { opacity: 0; margin-left: .45rem; color: #cbd5e1; text-decoration: none !important; font-weight: 400; transition: opacity .15s, color .15s; }
.article-body h2:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.heading-anchor:hover { color: #993C1D; }

/* aktiver TOC-Eintrag */
.toc-link { border-left: 2px solid transparent; display:block; padding:.15rem 0 .15rem .75rem; color:#64748b; }
.toc-link.active { border-left-color: #993C1D; color: #0f1117; font-weight: 600; }

/* =========================================================================
   prose-ga – Fließtext für redaktionelle Seiten (page.php: Datenschutz etc.)
   ========================================================================= */
.prose-ga h2 { font-family: 'Source Serif 4', Georgia, serif; letter-spacing: -0.015em; font-weight: 700; font-size: 1.5rem; color: #0f1117; margin-top: 2.5rem; margin-bottom: .5rem; }
.prose-ga h3 { font-weight: 700; font-size: 1.15rem; color: #0f1117; margin-top: 1.75rem; margin-bottom: .4rem; }
.prose-ga p { margin-top: 1rem; }
.prose-ga a { color: #993C1D; text-decoration: underline; text-underline-offset: 2px; }
.prose-ga ul { margin-top: 1rem; padding-left: 1.25rem; list-style: disc; }
.prose-ga ul li { margin-top: .4rem; }
.prose-ga strong { color: #0f1117; font-weight: 600; }

/* =========================================================================
   Pagination (the_posts_pagination) – Magazin-Stil
   ========================================================================= */
.pagination .nav-links,
.wp-pagenavi { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border: 1px solid #e2e8f0; border-radius: .6rem;
  font-size: .875rem; font-weight: 600; color: #334155;
  text-decoration: none; transition: all .15s;
}
.pagination .page-numbers:hover { border-color: #cbd5e1; color: #0f1117; }
.pagination .page-numbers.current { background: #08090c; border-color: #08090c; color: #fff; }
.pagination .page-numbers.dots { border: 0; min-width: auto; padding: 0 .25rem; }
.pagination .page-numbers.prev,
.pagination .page-numbers.next { font-weight: 600; }
