/* ================================================================
   YUTHI Magazin · Styles  (Look: „Magazin-Cover" / Variante B)
   Datei: assets/magazin.css — zusätzlich zu assets/styles.css.
   Design-Prinzip: editorial, ruhig, leichte Gordita-Schrift (300/400),
   Forest/Sage/Gold/Cream. KEINE fetten Headlines, keine Text-Effekte.
   ================================================================ */

/* ----------------------------------------------------------------
   ARTIKEL-WRAPPER
   ---------------------------------------------------------------- */
.mag-article { background: var(--paper); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ----------------------------------------------------------------
   HERO · Bildgeführter Magazin-Titel, sanfter Verlauf
   ---------------------------------------------------------------- */
.mag-hero {
  position: relative;
  min-height: 60vh;
  /* background-image wird inline im HTML gesetzt (Pfad relativ zur Seite, nicht zur CSS-Datei) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
/* Scrim: kräftiger Verlauf von unten — sichert Text-Kontrast auf JEDEM Bild
   (auch auf hellen Motiven), oben bleibt das Bild weitgehend frei. */
.mag-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 32, 22, 0.88) 0%,
    rgba(20, 32, 22, 0.62) 28%,
    rgba(20, 32, 22, 0.22) 58%,
    rgba(20, 32, 22, 0.00) 85%
  );
  pointer-events: none;
}
.mag-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}
.mag-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.mag-hero-inner h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;          /* leicht, nicht fett */
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;        /* schöner Umbruch, keine Waisen-Wörter */
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

/* ----------------------------------------------------------------
   META-LEISTE · Forest-Band mit Lesezeit/Datum/Autor + Region-Switch
   ---------------------------------------------------------------- */
.mag-metabar {
  background: var(--forest);
  color: #cfd6cd;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 0.95rem var(--gutter);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mag-metabar .mag-meta-item { white-space: nowrap; }

/* Region-Switch (wird per script.js gefüllt) — rechts in der Leiste */
.mag-region-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mag-region-switch .mag-region-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.2rem;
}
.mag-region-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #cfd6cd;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.mag-region-switch a:hover { border-color: var(--gold-soft); color: #fff; }
.mag-region-switch a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
  font-weight: 500;
}

/* ----------------------------------------------------------------
   ARTIKEL-BODY · schmale, gut lesbare Spalte
   ---------------------------------------------------------------- */
.mag-body {
  max-width: 680px;
  margin: clamp(2.4rem, 5vw, 4rem) auto 0;
  padding: 0 var(--gutter);
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.8;
}
.mag-lead {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--forest);
  margin: 0 0 2rem;
}
.mag-body h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.25;
  margin: 2.6rem 0 1rem;
}
.mag-body p { margin: 0 0 1.25rem; color: var(--ink); }
.mag-body a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.mag-body a:hover { color: var(--forest); text-decoration-color: var(--gold); }

/* ----------------------------------------------------------------
   LÄNDER-BOX · Sage-Mist-Callout
   ---------------------------------------------------------------- */
.mag-laenderbox {
  background: var(--sage-mist);
  border-radius: var(--r, 8px);
  padding: 1.4rem 1.7rem;
  margin: 2.2rem 0;
}
.mag-laenderbox h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin: 0 0 0.4rem;
}
.mag-laenderbox p { font-size: 0.98rem; color: var(--forest); margin: 0; line-height: 1.6; }

/* ----------------------------------------------------------------
   QUELLENANGABEN
   ---------------------------------------------------------------- */
.mag-quellen {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.mag-quellen h3 {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
  margin: 0 0 0.7rem;
}
.mag-quellen ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mag-quellen li::before { content: "→ "; color: var(--gold); }
.mag-quellen a {
  font-size: 0.9rem; color: var(--sage-dark); text-decoration: none;
  border-bottom: 1px solid var(--line); transition: border-color 0.15s, color 0.15s;
}
.mag-quellen a:hover { color: var(--forest); border-bottom-color: var(--gold); }

/* ----------------------------------------------------------------
   CTA-BLOCK · „Nächste Schritte" (Rechner + passende Anbieter)
   ---------------------------------------------------------------- */
.mag-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.8rem 0 0.5rem;
}
.mag-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 1.6rem 1.6rem;
  border-radius: var(--r-lg, 18px);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s ease;
}
.mag-cta-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 45, 32, 0.16); }
.mag-cta-eyebrow {
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.mag-cta-label { font-family: var(--display); font-size: 1.18rem; font-weight: 500; line-height: 1.25; }
.mag-cta-sub { font-size: 0.85rem; line-height: 1.45; }
.mag-cta-arrow { font-size: 1.3rem; margin-top: 0.6rem; transition: transform 0.2s var(--ease-out, ease); }
.mag-cta-card:hover .mag-cta-arrow { transform: translateX(5px); }

/* Anbieter / Marketplace — kräftig (Conversion) */
.mag-cta-card.is-anbieter { background: var(--forest); color: #fff; }
.mag-cta-card.is-anbieter .mag-cta-eyebrow { color: var(--gold-soft); }
.mag-cta-card.is-anbieter .mag-cta-label { color: #fff; }
.mag-cta-card.is-anbieter .mag-cta-sub { color: rgba(255, 255, 255, 0.72); }
.mag-cta-card.is-anbieter .mag-cta-arrow { color: var(--gold-soft); }

/* Rechner — sanft (Engagement) */
.mag-cta-card.is-rechner { background: var(--sage-mist); color: var(--forest); border: 1px solid var(--sage-light); }
.mag-cta-card.is-rechner .mag-cta-eyebrow { color: var(--gold-dark); }
.mag-cta-card.is-rechner .mag-cta-sub { color: var(--ink-soft); }
.mag-cta-card.is-rechner .mag-cta-arrow { color: var(--sage-dark); }

@media (max-width: 600px) { .mag-cta { grid-template-columns: 1fr; } }

/* ================================================================
   RESPONSIVE · Artikel
   ================================================================ */
@media (max-width: 768px) {
  .mag-hero { min-height: 52vh; }
  .mag-metabar { gap: 0.9rem; font-size: 0.68rem; }
  .mag-region-switch { margin-left: 0; width: 100%; }
  .mag-body { font-size: 1rem; line-height: 1.75; }
}

/* ================================================================
   MAGAZIN-ÜBERSICHT · magazin.html  (auf Variante B abgestimmt)
   ================================================================ */
/* Übersichtsseite: heller Sage-Grund (Markenfarbe), passend zum Sage-Schimmer
   des Heros. Artikel-Detailseiten sind durch .mag-article (paper) abgedeckt. */
body { background: var(--sage-light); }

/* Masthead (Variante 2 — hell/editorial): grosse leichte Headline + Gold-Akzent.
   Sanfter Verlauf von Weiss oben zu Cream unten → weicher Übergang zu den Artikeln. */
.mag-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    var(--paper) 36%,
    var(--cream) 58%,
    var(--sage-mist) 80%,
    var(--sage-light) 100%);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 5vw, 4rem);
}
.mag-cover .inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.mag-cover .eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 1.6rem;
}
.mag-cover .eyebrow::before, .mag-cover .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--gold); opacity: 0.6;
}
.mag-cover h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--forest); margin: 0;
  text-wrap: balance;
}
.mag-cover h1 em { font-style: italic; color: var(--gold-dark); }
.mag-cover p {
  font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300;
  color: var(--ink-soft); max-width: 60ch; margin: 1.4rem auto 2.2rem; line-height: 1.55;
  text-wrap: balance;
}

.mag-overview { max-width: 1100px; margin: 0 auto; padding: clamp(2.4rem,5vw,3.5rem) var(--gutter) 5rem; }

.mag-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.mag-filter button {
  display: inline-flex; align-items: center; padding: 0.45rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--forest); background: var(--paper);
  font-family: var(--body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--forest); cursor: pointer; white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.mag-filter button:hover { background: var(--sage-mist); }
.mag-filter button.is-active { background: var(--forest); border-color: var(--forest); color: var(--gold-soft); }

.magazin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.magazin-card {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r, 8px); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease-out, ease), box-shadow 0.22s ease, border-color 0.22s ease;
}
.magazin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31, 45, 32, 0.10);
  border-color: var(--gold);
}
.magazin-card .img {
  width: 100%; height: 200px; background-size: cover; background-position: center;
  background-repeat: no-repeat; background-color: var(--sage-mist); flex-shrink: 0;
}
.magazin-card .body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.magazin-card .tag {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark);
}
.magazin-card h4 {
  font-family: var(--display); font-size: 1.1rem; font-weight: 400; line-height: 1.3;
  color: var(--forest); margin: 0;
}
.magazin-card .read-time { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-muted); margin-top: auto; }

@media (max-width: 900px) { .magazin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .magazin-grid { grid-template-columns: 1fr; }
  .magazin-card .img { height: 190px; }
}
