/* ════════════════════════════════════════════════════════════
   Feuer-Pedia — Base stylesheet
   Design: editorial, flat, reduced. One radius scale, one
   border token, one transition. No glow, no blur, no gradients
   used for chrome. Accent red used sparingly as signal.
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg:            #3a0a06;
  --bg-alt:        #210604;
  --bg-sunk:       #140303;
  --surface:       #26090700;           /* transparent surface token */
  --accent:        #e8401c;
  --accent-hover:  #c43215;
  --text:          #f4efee;
  --text-dim:      #a58a86;
  --text-muted:    #7a615e;
  --border:        rgba(255, 245, 240, .08);
  --border-strong: rgba(255, 245, 240, .16);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --radius: 2px;
  --radius-pill: 999px;
  --nav-h: 64px;
  --container: 1120px;

  /* Motion */
  --t: 180ms cubic-bezier(.4, 0, .2, 1);

  /* Legacy aliases — keep subpages working with the old token names */
  --muted:         var(--text-dim);
  --bg-dark:       var(--bg-alt);
  --card-border:   var(--border);
  --accent-hover:  #c43215;
  --card:          var(--bg-alt);
  --bg-light:      var(--bg);
  --red:           #ef4444;
}

/* Legacy keyframe — referenced by older subpages */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

/* ─── Scroll Progress (global, top bar) ──────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 1100;
  transition: width .05s linear;
  pointer-events: none;
}

/* ─── Back to Top (global, fixed bottom-right) ───────────── */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), background var(--t), border-color var(--t);
}
.to-top.visible { opacity: 1; pointer-events: all; }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Navigation ──────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
/* Reinforced solid fill behind nav content — guards against seam/subpixel bleed */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -1;
  pointer-events: none;
}

.nav-logo {
  display: inline-flex; align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img {
  height: 28px; width: auto;
  object-fit: contain;
}
.nav-logo-word {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}
.nav-logo-word .wm-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-socials {
  display: flex; align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.nav-socials a:hover { color: var(--text); }
.nav-socials svg { width: 15px; height: 15px; fill: currentColor; }

.nav-divider {
  width: 1px; height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-login {
  display: inline-flex; align-items: center; gap: .3rem;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t);
  flex-shrink: 0;
}
.nav-login:hover { color: var(--accent); }

/* Hamburger (pinned right in nav) */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 200;
  flex-shrink: 0;
  order: 99;
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-divider { height: 1px; background: var(--border); }
.mobile-socials { display: flex; gap: .5rem; padding-top: .25rem; }
.mobile-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t), border-color var(--t);
}
.mobile-socials a:hover { color: var(--text); border-color: var(--border-strong); }
.mobile-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 2rem 6rem;
}

/* h1 base (overridden inline for hero-specific scale) */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
}

/* ─── Sections ────────────────────────────────────────────── */
.section { width: 100%; }
.section-dark   { background: var(--bg-alt); }
.section-normal { background: var(--bg); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6.5rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .85rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── Testimonial (Über uns) ─────────────────────────────── */
.tm-card-wrap { position: relative; margin-top: 2.5rem; }
.tm-card {
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
}
.tm-card.active { display: block; }
.tm-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}
.tm-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, rgba(29, 6, 4, .75) 55%, rgba(29, 6, 4, .2) 100%);
}
.tm-card-content {
  position: relative; z-index: 2;
  padding: 3rem 3rem;
  max-width: 680px;
}
.tm-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.8rem; }
.tm-logo img { height: 24px; width: auto; }
.tm-quote {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.8rem;
  font-weight: 400;
}
.tm-author-name { font-size: .92rem; font-weight: 700; color: var(--text); }
.tm-author-role { font-size: .8rem; color: var(--text-dim); margin-top: 3px; }
.tm-controls { display: flex; gap: 8px; margin-top: 1.2rem; }
.tm-dot {
  width: 6px; height: 6px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: background var(--t);
}
.tm-dot.active { background: var(--accent); }
.tm-dot:hover { background: var(--text-dim); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}
.footer-logo { display: flex; align-items: center; margin-bottom: 1.25rem; }
.footer-logo img { height: 28px; width: auto; }
.footer-brand-desc {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: .4rem; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t), border-color var(--t);
}
.footer-socials a:hover { color: var(--text); border-color: var(--border-strong); }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .35rem;
}
.footer-col a {
  font-size: .88rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--text); }
.footer-contact-text {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: .5rem;
}
.footer-mail {
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
.footer-mail:hover { color: var(--accent-hover); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-login, .nav-socials, .nav-divider { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  nav { padding: 0 1.25rem; gap: 1rem; }
  .hero { padding: 3rem 1.25rem 4rem; }
  .tm-card-content { padding: 2rem 1.5rem; }
  .tm-card { min-height: 320px; }
}

@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .section-inner { padding: 4.5rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   Artikel (individual topic pages)
   Editorial layout: sticky TOC on the side, long-form prose,
   related articles at the bottom. Shared by all 57 articles.
   ═══════════════════════════════════════════════════════════ */

.article {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-hero {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.article-breadcrumb a:hover { color: var(--text); }
.article-breadcrumb-sep { opacity: .5; }
.article-breadcrumb [aria-current="page"] { color: var(--text-dim); }

.article-kicker {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.article-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
  color: var(--text);
  max-width: 900px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.article-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4rem;
  padding: 3rem 0 4rem;
}

.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 4rem);
  overflow-y: auto;
}
.toc-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.article-toc li {
  border-left: 1px solid var(--border);
}
.article-toc a {
  display: block;
  padding: .5rem 0 .5rem 1rem;
  font-size: .85rem;
  color: var(--text-dim);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--t), border-color var(--t);
  margin-left: -1px;
  border-left: 1px solid transparent;
}
.article-toc a:hover { color: var(--text); }
.article-toc a.active,
.article-toc a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

.article-body {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 3rem 0 .85rem;
  padding-top: .5rem;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 .6rem;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.article-body p {
  color: var(--text);
  line-height: 1.8;
}
.article-body p strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--t);
}
.article-body a:hover { color: var(--accent-hover); }
.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
  margin-top: 1rem;
}
.article-body li {
  margin-bottom: .4rem;
  line-height: 1.75;
}
.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--accent); font-weight: 600; }

.article-callout {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: rgba(232, 64, 28, .06);
  font-size: .94rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 1.75rem 0;
}
.article-callout strong { color: var(--text); }

.article-key-facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.article-key-facts dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.article-key-facts dd {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.article-disclaimer {
  margin-top: 3rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.article-disclaimer strong { color: var(--text-dim); }

.article-notice {
  margin: 1.75rem 0 0;
  padding: .95rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: rgba(232, 64, 28, .05);
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.article-notice strong { color: var(--text); font-weight: 600; }

/* ─── Related articles ─────────────────────────────── */
.article-related {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  border-top: 1px solid var(--border);
}
.related-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.related-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .5rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background var(--t);
}
.related-item:last-child { border-right: none; }
.related-item:hover { background: rgba(232, 64, 28, .04); }
.related-item:hover .related-title { color: var(--accent); }
.related-item:hover .related-arrow { transform: translateX(3px); color: var(--accent); }

.related-cat {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.related-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  transition: color var(--t);
}
.related-arrow {
  font-size: .95rem;
  color: var(--text-muted);
  transition: transform var(--t), color var(--t);
  align-self: flex-end;
  margin-top: .5rem;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
  }
  .article-toc {
    position: static;
    max-height: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .related-grid { grid-template-columns: 1fr; }
  .related-item {
    border-right: none;
    padding: 1.25rem 0;
  }
}

@media (max-width: 600px) {
  .article { padding: 0 1.25rem; }
  .article-hero { padding: 2.5rem 0 2rem; }
  .article-related { padding: 2.5rem 1.25rem 3.5rem; }
  .article-lead { font-size: 1.02rem; }
}
