/* ═══════════════════════════════════════════════════════════════
   Bitköln – Artikel (Unterseiten unter themen/<track>/)
   Gemeinsame Komponenten. Tokens kommen aus style.css.
═══════════════════════════════════════════════════════════════ */

/* ── Wrap ───────────────────────────────────────────────────── */
.artikel-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) 80px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.artikel-hero {
  padding: 120px 0 60px;
  background: var(--ink);
  color: rgba(249,247,242,0.92);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .artikel-hero { background: #0A0A08; }

.artikel-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

@media (max-width: 800px) {
  .artikel-hero__inner { grid-template-columns: 1fr; }
}

.artikel-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: rgba(249,247,242,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  text-decoration: none;
  transition: color 0.2s;
}
.artikel-hero__back:hover { color: rgba(249,247,242,0.9); }

.artikel-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.artikel-hero__tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.artikel-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(249,247,242,0.96);
  letter-spacing: -0.01em;
}
.artikel-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.artikel-hero__sub {
  margin-top: 22px;
  max-width: 620px;
  font-size: 1rem;
  color: rgba(249,247,242,0.7);
  line-height: 1.75;
  font-weight: 300;
}

/* ── Sektionstitel mit Nummer ─────────────────────────────── */
.artikel-sec {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 64px 0 24px;
}
.artikel-sec__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.artikel-sec__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.18em;
  border: 1px solid var(--orange);
  padding: 3px 9px;
  white-space: nowrap;
}

/* ── Generische Grids (1px Trennlinien) ───────────────────── */
.artikel-g2,
.artikel-g3,
.artikel-g4,
.artikel-gasym {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.artikel-g2     { grid-template-columns: 1fr 1fr; }
.artikel-g3     { grid-template-columns: repeat(3, 1fr); }
.artikel-g4     { grid-template-columns: repeat(4, 1fr); }
.artikel-gasym  { grid-template-columns: 3fr 2fr; }

@media (max-width: 860px) {
  .artikel-g3, .artikel-g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .artikel-g2, .artikel-g3, .artikel-g4, .artikel-gasym { grid-template-columns: 1fr; }
}

/* ── Zelle ────────────────────────────────────────────────── */
.artikel-cell {
  background: var(--card-bg);
  padding: 28px 32px;
  transition: background 0.2s;
}
.artikel-cell:hover { background: var(--bg2); }

.artikel-cell--dark {
  background: #1A1A16;
  color: rgba(249,247,242,0.92);
}
.artikel-cell--dark:hover { background: #23231F; }
.artikel-cell--dark .artikel-lbl { color: var(--orange); }

.artikel-cell--accent {
  background: rgba(247,147,26,0.05);
  border-left: 2px solid var(--orange);
}
[data-theme="dark"] .artikel-cell--accent {
  background: rgba(247,147,26,0.08);
}

.artikel-cell h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.artikel-cell h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.artikel-cell p {
  font-size: 0.98rem;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
}
.artikel-cell p + p { margin-top: 12px; }
.artikel-cell--dark p { color: rgba(249,247,242,0.7); }

.artikel-cell em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.artikel-cell--dark em { color: rgba(249,247,242,0.96); }

/* ── Label (kleines Eyebrow) ──────────────────────────────── */
.artikel-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

/* ── Stats ────────────────────────────────────────────────── */
.artikel-stat {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.artikel-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249,247,242,0.5);
  margin-top: 6px;
}

/* ── Tabelle ──────────────────────────────────────────────── */
/* Wrapper macht breite Tabellen auf schmalen Screens horizontal
   scrollbar, statt die Spalten zu quetschen */
.artikel-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.artikel-tbl-wrap > table { min-width: 560px; }

.artikel-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.artikel-tbl th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.artikel-tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink2);
  vertical-align: top;
  font-weight: 300;
  line-height: 1.6;
}
.artikel-tbl tr:last-child td { border-bottom: none; }
.artikel-tbl tr:hover td { background: var(--bg2); }
.artikel-tbl td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ── Badge ────────────────────────────────────────────────── */
.artikel-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 4px;
}
.artikel-badge--pos { color: #1a7a35; border-color: rgba(40,167,69,0.5); }
.artikel-badge--neu { color: var(--orange); border-color: rgba(247,147,26,0.5); }
.artikel-badge--neg { color: #a23838; border-color: rgba(180,60,60,0.5); }
[data-theme="dark"] .artikel-badge--pos { color: #5dcc7a; }
[data-theme="dark"] .artikel-badge--neg { color: #d57a7a; }

/* ── Verdict (Pro / Contra) ───────────────────────────────── */
.artikel-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 600px) { .artikel-verdict { grid-template-columns: 1fr; } }

.artikel-vcell {
  background: var(--card-bg);
  padding: 28px 32px;
}
.artikel-vtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.artikel-vtitle--pro { color: #1a7a35; }
.artikel-vtitle--con { color: #a23838; }
[data-theme="dark"] .artikel-vtitle--pro { color: #5dcc7a; }
[data-theme="dark"] .artikel-vtitle--con { color: #d57a7a; }

.artikel-vlist { list-style: none; padding: 0; margin: 0; }
.artikel-vlist li {
  font-size: 0.96rem;
  color: var(--ink2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  line-height: 1.55;
  align-items: flex-start;
  font-weight: 300;
}
.artikel-vlist li:last-child { border-bottom: none; }
.artikel-vlist li::before {
  flex-shrink: 0;
  font-size: 0.92rem;
  margin-top: 0.1em;
  font-family: var(--font-mono);
  font-weight: 700;
}
.artikel-vlist--pro li::before { content: '+'; color: #1a7a35; }
.artikel-vlist--con li::before { content: '−'; color: #a23838; }
[data-theme="dark"] .artikel-vlist--pro li::before { color: #5dcc7a; }
[data-theme="dark"] .artikel-vlist--con li::before { color: #d57a7a; }

/* ── Use-Case Karten ──────────────────────────────────────── */
.artikel-usecase {
  background: var(--card-bg);
  padding: 24px 26px;
  border-top: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.artikel-usecase:hover {
  border-color: var(--orange);
  background: var(--bg2);
}
.artikel-usecase__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}
.artikel-usecase h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.artikel-usecase p {
  font-size: 0.93rem;
  color: var(--ink2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Manifest-Block (großes Zitat) ────────────────────────── */
.artikel-manifest {
  background: #141410;
  color: rgba(249,247,242,0.92);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.artikel-manifest blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
  margin: 0;
}
.artikel-manifest blockquote em {
  font-style: normal;
  color: var(--orange);
}
.artikel-manifest__src {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(249,247,242,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

/* ── Inline-Code ──────────────────────────────────────────── */
.artikel-wrap code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--orange);
  background: rgba(247,147,26,0.08);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ── Tag-Chips ────────────────────────────────────────────── */
.artikel-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(247,147,26,0.5);
  padding: 4px 10px;
  background: rgba(247,147,26,0.06);
  border-radius: 4px;
  margin: 0 6px 6px 0;
}

/* ── Scroll-Reveal Animation ──────────────────────────────────
   Inhalte sind standardmäßig sichtbar. Versteckt wird nur, wenn JS
   läuft (html.js aus components.js) UND Bewegung erwünscht ist. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js .reveal.visible { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
.pulse  { animation: pulse 3s ease infinite; }
.pulse2 { animation: pulse 3s 1s ease infinite; }
.pulse3 { animation: pulse 3s 2s ease infinite; }
