/* ============================================================
   WISSEN-BEITRAG — Template für Wissens-Artikel
   Durchgehend hell, kein Lichtwechsel. Baut auf brand-v3.css auf.
   ============================================================ */

/* ---- Grundgerüst: warmer, heller Radialverlauf ---- */
body.beitrag {
  background: #F5F0E8;
  color: #3a3127;
}
.beitrag-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 26%,
      #fbf7ef 0%,
      #F5F0E8 58%,
      #ece4d6 100%);
}
/* Feines Noise-Overlay, ~5 % Deckkraft */
body.beitrag::after {
  opacity: 0.05;
}

/* ---- Header: von Anfang an in der hellen Variante ---- */
body.beitrag .nav,
body.legal .nav {
  background: rgba(244, 237, 225, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(139, 115, 85, 0.16);
}
:is(body.beitrag, body.legal) .nav .brand__name { color: #100D07; }
:is(body.beitrag, body.legal) .nav .brand__mono { color: #B07D2A; border-color: #B07D2A; }
:is(body.beitrag, body.legal) .nav .brand__mono i { background: #B07D2A; }
:is(body.beitrag, body.legal) .nav .brand__name .dot { color: #B07D2A; }
:is(body.beitrag, body.legal) .nav__link { color: #100D07; }
:is(body.beitrag, body.legal) .nav__link:hover,
:is(body.beitrag, body.legal) .nav__link.is-active { color: #100D07; }
:is(body.beitrag, body.legal) .nav__link::after { background: #B07D2A; }
:is(body.beitrag, body.legal) .nav__cta {
  color: #B07D2A;
  border-color: #B07D2A;
  background: transparent;
}
:is(body.beitrag, body.legal) .nav__cta:hover {
  background: #B07D2A;
  color: #FBF7EF;
  border-color: #B07D2A;
}
:is(body.beitrag, body.legal) .nav__burger span { background: #100D07; }

/* ---- Heller Grundton auch für rechtliche Seiten ---- */
body.legal {
  background: #F5F0E8;
  color: #3a3127;
}
body.legal::after { opacity: 0.05; }

/* ============================================================
   RECHTLICHE SEITEN — schlichte Textspalte, max. 680px
   ============================================================ */
.legal-main {
  padding: 9rem var(--gutter) clamp(5rem, 9vw, 7rem);
}
.legal-main__inner {
  max-width: 680px;
  margin: 0 auto;
}
.legal-headline {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #100D07;
}
.legal-main .beitrag-h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.legal-h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #100D07;
  margin: 2rem 0 0.7rem;
}
.legal-text {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.8;
  color: #3a3127;
  margin: 0 0 1.2rem;
  text-wrap: pretty;
}
.legal-text a[href^="http"] {
  color: #B07D2A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* ============================================================
   ARTIKEL-KOPF — zentrierte Spalte, max. 680px
   ============================================================ */
.beitrag-head {
  padding: clamp(8.5rem, 14vw, 11rem) var(--gutter) 0;
}
.beitrag-head__inner {
  max-width: 680px;
  margin: 0 auto;
}
.beitrag-back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #8B7355;
  transition: color 0.3s var(--ease-smooth);
}
.beitrag-back:hover { color: #B07D2A; }
.beitrag-back__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-smooth);
}
.beitrag-back:hover .beitrag-back__arrow { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) {
  .beitrag-back__arrow { transition: none; }
  .beitrag-back:hover .beitrag-back__arrow { transform: none; }
}
.beitrag-eyebrow {
  margin-top: 2.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #B07D2A;
}
.beitrag-headline {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #100D07;
  text-wrap: balance;
}
.beitrag-sub {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  color: #6b5f4f;
  text-wrap: pretty;
}
.beitrag-meta {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(139, 115, 85, 0.3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #8B7355;
}

/* ============================================================
   ARTIKELTEXT — gleiche Spalte, max. 680px
   ============================================================ */
.beitrag-body {
  padding: clamp(2.6rem, 4.5vw, 3.6rem) var(--gutter) clamp(2.8rem, 5vw, 3.8rem);
}
.beitrag-body__inner {
  max-width: 680px;
  margin: 0 auto;
}
.beitrag-body p {
  font-family: var(--sans);
  font-size: 1.14rem;
  line-height: 1.8;
  color: #3a3127;
  margin: 0 0 1.7rem;
  text-wrap: pretty;
}
.beitrag-body p:last-child { margin-bottom: 0; }

/* Initiale (Drop Cap), erster Absatz */
.beitrag-p--initial::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.9rem;
  line-height: 0.8;
  color: #B07D2A;
  padding: 0.35rem 0.85rem 0 0;
}

/* Zwischenüberschriften */
.beitrag-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #100D07;
  margin: 3rem 0 1.4rem;
}

/* Pull Quote */
.beitrag-quote {
  margin: clamp(3rem, 5.5vw, 4.2rem) auto;
  text-align: center;
}
.beitrag-quote::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: #B07D2A;
  margin: 0 auto 1.7rem;
}
.beitrag-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #100D07;
  max-width: 38ch;
  margin: 0 auto;
}

/* ============================================================
   ARTIKEL-ENDE — gleiche Spalte, max. 680px
   ============================================================ */
.beitrag-end {
  padding: 0 var(--gutter);
}
.beitrag-end__inner {
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid rgba(139, 115, 85, 0.3);
  padding-top: 1.2rem;
}
.beitrag-disclaimer {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #8B7355;
}

/* Stand-Zeile (Einordnung der Woche) */
.beitrag-stand {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #8B7355;
}

/* Weiterlesen — Zeile im Stil des Grundlagen-Index */
.beitrag-next {
  margin-top: clamp(3rem, 5vw, 4rem);
}
.beitrag-next__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #B07D2A;
  margin-bottom: 1.3rem;
}
.beitrag-next__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(1.1rem, 2vw, 1.5rem);
  padding: 1.8rem 0;
  border-top: 1px solid rgba(139, 115, 85, 0.3);
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}
/* Hover: untere Haarlinie füllt sich von links in dunklem Gold */
.beitrag-next__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #B07D2A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-expo);
}
.beitrag-next__row:hover::after { transform: scaleX(1); }
.beitrag-next__num {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
  color: #8B7355;
  transition: color 0.35s var(--ease-smooth);
}
.beitrag-next__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  color: #100D07;
  transition: color 0.35s var(--ease-smooth);
}
.beitrag-next__read {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #8B7355;
  white-space: nowrap;
}
.beitrag-next__row:hover .beitrag-next__num,
.beitrag-next__row:hover .beitrag-next__title { color: #B07D2A; }

/* Community-Zeile */
.beitrag-community {
  margin-top: clamp(3rem, 5vw, 4rem);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #6b5f4f;
}
.beitrag-community__link {
  color: #B07D2A;
  border-bottom: 1px solid rgba(176, 125, 42, 0.45);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease-smooth);
}
.beitrag-community__link:hover { border-bottom-color: #B07D2A; }

/* ============================================================
   ÜBERGANG INS FOOTER-DUNKEL — randlos, warm, kein Grauton
   ============================================================ */
.beitrag-fade {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  height: clamp(240px, 30vh, 420px);
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(245, 240, 232, 0) 0%,
    rgba(205, 191, 166, 0.55) 36%,
    #6b5536 68%,
    #1a130b 90%,
    #080604 100%);
}

/* ============================================================
   FOOTER — wie auf der Seite "Wissen"
   ============================================================ */
.footer__container.footer--wwm {
  grid-template-columns: 1.6fr 1fr 1fr;
}
.footer__ccfe-logo {
  height: 44px;
  width: auto;
  margin-top: 1.6rem;
  opacity: 0.95;
}
.footer__ccfe { margin-top: 0.9rem; }
.footer__bottom .footer__links { display: inline-flex; gap: 0.9rem; flex-wrap: wrap; }
.footer__bottom .footer__links a { transition: color 0.25s; }
.footer__bottom .footer__links a:hover { color: var(--paper-3); }
.footer__disclaimer {
  width: var(--container);
  margin: 1.2rem auto 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(244, 237, 225, 0.32);
  max-width: 80ch;
}
@media (max-width: 880px) {
  .footer__container.footer--wwm { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__container.footer--wwm { grid-template-columns: 1fr; }
}

/* ============================================================
   K-L-LESEFORTSCHRITT-SPUR — helle Variante, Container transparent
   ============================================================ */
:root { --rail-w: clamp(48px, 4.2vw, 64px); }

@media (min-width: 901px) {
  body.beitrag { padding-left: var(--rail-w); }
  /* Verlauf und Footer randlos: bis an den linken Viewportrand */
  body.beitrag .beitrag-fade,
  body.beitrag .footer { margin-left: calc(-1 * var(--rail-w)); }
  body.beitrag .footer { padding-left: var(--rail-w); }
}

.scroll-rail {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--rail-w);
  height: 100vh;
  z-index: 120;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  animation: railFadeIn 0.7s ease 0.45s forwards;
}
.scroll-rail__base,
.scroll-rail__fill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14vh;
  width: 1px;
  border-radius: 1px;
}
.scroll-rail__base {
  height: 76vh;
  background: #8B7355;
  opacity: 0.22;
}
.scroll-rail__fill {
  height: 0;
  background: #B07D2A;
  opacity: 0.95;
  will-change: height;
}
.scroll-rail__mono {
  position: absolute;
  left: 50%;
  top: 14vh;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  background: #F5F0E8;
  border: 1px solid #B07D2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  line-height: 1;
  color: #100D07;
  box-shadow: 0 6px 20px rgba(60, 45, 20, 0.18);
  will-change: transform;
}
.scroll-rail__mono .d { opacity: 0.65; margin: 0 1.5px; }

/* Mobil: vertikale Spur aus, dünne horizontale Leiste oben */
.scroll-topbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #B07D2A;
  z-index: 220;
  display: none;
  opacity: 0;
  animation: railFadeIn 0.7s ease 0.45s forwards;
}
@media (max-width: 900px) {
  .scroll-rail { display: none; }
  .scroll-topbar { display: block; }
}

@keyframes railFadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-rail,
  .scroll-topbar { animation: none; opacity: 1; }
}
