/* MeineZeit Magazin - Editorial Theme v2
   Erweitert um Hero-Grid + Side-Story + Archiv (Mockup A)
   2026-05-29 */

:root {
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-accent: #F2EEDF;
  --text-primary: #1E293B;   /* TEXT_NAVY_v1 (User 2026-11-08): Navy statt Schwarz, vorher #1A1A1A */
  --text-body: #1E293B;   /* TEXT_NAVY_v1: vorher #2A2419 */
  --text-muted: #6B6655;
  --text-faint: #8B8678;
  --border: #E8E5DD;
  --border-dark: #DCD4BD;
  --gold: #C9A227;
  --gold-bg: #F4EDD7;
  --gold-text: #6B5610;
  --serif: 'Georgia', 'Times New Roman', 'Cambria', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --article-width: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-dark);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
.mz-header {
  background: rgba(243, 237, 217, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.mz-header .brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mz-header .brand-logo {
  /* PLANERMAX_LOGO_v1 (2026-10-22): PlanerMax-Icon (Seitenverhaeltnis 1104:840) statt FP-Quadrat */
  width: auto;
  height: 40px;
  display: block;
  border-radius: 6px;
}
.listing-logo {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.mz-header nav { display: flex; gap: 24px; font-size: 14px; }
.mz-header nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.mz-header nav a:hover { color: var(--text-primary); }

/* ============ LISTING-HEADER ============ */
.magazin-listing-header {
  text-align: center;
  padding: 56px 24px 20px;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}
.magazin-listing-header .kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.magazin-listing-header h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.magazin-listing-header .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ TABS ============ */
.magazin-tabs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  gap: 28px;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.magazin-tabs a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: all 0.15s;
}
.magazin-tabs a:hover { color: var(--text-primary); }
.magazin-tabs a.active {
  color: var(--text-primary);
  border-bottom-color: var(--gold);
}

/* ============ THEMEN-ROUTING (Crawler-Anker) ============ */
/* ===== Mobilitäts-Index Ticker (ersetzt Themen-Badges) ===== */
.mobil-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #000000;
  color: #f6efe9;
  font-family: 'Inter', var(--sans);
  font-feature-settings: 'tnum' 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: #000000;
  border-right: 1px solid rgba(255,255,255,.14);
  z-index: 2;
}
.ticker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #37d67a;
  animation: ticker-pulse 1.8s ease-out infinite;
}
.ticker-live {
  font-size: 9px; letter-spacing: .18em; font-weight: 700;
  color: #37d67a; border: 1px solid rgba(55,214,122,.5);
  border-radius: 4px; padding: 1px 5px; margin-left: 2px;
}
@keyframes ticker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(55,214,122,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(55,214,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,214,122,0); }
}
.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ti {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  letter-spacing: .005em;
  font-size: 13.5px;
  color: #ffffff;
}
.ti b { font-weight: 700; color: #fff; }
.ti em { font-style: normal; font-weight: 700; }
.ti .g { color: #3ad17e; }
.ti .r { color: #ff1a1a; }
.ti .a { color: #f5c451; }
.ti-x { font-size: 0.72em; }
.ti-sep { color: #ffffff; font-size: 15px; font-weight: 300; padding: 0 4px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 100s; }
}
/* BLACKWEEK_SCHILD_2026: Haengeschild am Ticker. Ticker behaelt seine Hoehe; der Viewport
 * reicht unsichtbar 140px nach unten (Padding + negativer Margin), das Schild haengt bis unter
 * die Artikel-Meta-Zeile in den hellen Hero. Klicks gehen dort durch (pointer-events). */
.mobil-ticker:has(.bw-tag) { overflow: visible; position: relative; z-index: 5; }
.mobil-ticker:has(.bw-tag) .ticker-viewport { padding-bottom: 140px; margin-bottom: -140px; pointer-events: none; }
.mobil-ticker:has(.bw-tag) .ti { pointer-events: auto; }
.ti:has(.bw-tag) { position: relative; }
.bw-tag {
  position: absolute; top: 100%; left: 50%;
  display: block; line-height: 0;
  transform-origin: 50% 0;
  animation: bw-swing 2.8s ease-in-out infinite;
}
.bw-tag img { display: block; width: 150px; height: auto; }
@keyframes bw-swing {
  0%, 100% { transform: translateX(-50%) rotate(-2.5deg); }
  50%      { transform: translateX(-50%) rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bw-tag { animation: none; transform: translateX(-50%); }
}
/* bw-schild.js: geloestes Schild (bw-free) haengt unter dem Label, altes faellt (bw-fall) */
.bw-tag.bw-free { z-index: 6; }
.bw-tag.bw-fall { animation: bw-fall 1.5s cubic-bezier(.5, 0, .9, .4) forwards; pointer-events: none; }
@keyframes bw-fall {
  0%   { transform: translateX(-50%) rotate(0deg); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translate(-50%, var(--bw-fall, 600px)) rotate(16deg); opacity: 0; }
}
#mz-cta { scroll-margin-top: 100px; }
/* BLACKWEEK_SCHILD_2026: Aktions-Banner im CTA-Kasten (bw-schild.js setzt .bw-in beim Sichtbarwerden) */
.bw-cta { display: flex; align-items: center; overflow: hidden; }
.bw-cta-text { flex: 1 1 auto; min-width: 0; }
.bw-cta-banner {
  flex: 0 0 auto; display: flex; justify-content: flex-end;
  width: 0; margin-left: 0;
  transition: width .9s cubic-bezier(.2, .8, .2, 1), margin-left .9s cubic-bezier(.2, .8, .2, 1);
}
.bw-cta.bw-in .bw-cta-banner { width: 370px; margin-left: 24px; }
/* Fly-in: Banner fliegt vom rechten Kastenrand herein, leicht gedreht, und rastet ein */
.bw-cta-banner img {
  display: block; flex: 0 0 370px; width: 370px; height: auto; border-radius: 4px;
  opacity: 0; transform: translateX(440px) rotate(6deg) scale(.92);
  transition: transform 1.1s cubic-bezier(.16, 1.12, .3, 1) .1s, opacity .35s ease .1s;
}
.bw-cta.bw-in .bw-cta-banner img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bw-cta-banner, .bw-cta-banner img { transition: none; } }
.reset-filter {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}
.reset-filter:hover { text-decoration-thickness: 2px; }

/* ============ FRONT-VIEW (Magazin Mainpage zeigt vollen Artikel) ============ */
.magazin-listing-header.compact {
  padding: 36px 24px 18px;
}
.magazin-listing-header.compact .kicker {
  font-family: var(--serif);
  /* 2026-08-09 kleiner: bei 32px war der Magazinname auf dem Telefon groesser
     als die Schlagzeile des Hauptartikels (24px) — die Marke dominierte die
     Nachricht. Ab Tablet bleibt es unveraendert gross. */
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 6px;
}
.magazin-listing-header.compact .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.magazin-front-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* Float-Layout: Article-Head (Meta+H1+Cover) volle Breite, dann floatet Sidebar rechts und Article-Body umfließt */
.front-wrap {
  position: relative;
}
.front-clear {
  clear: both;
}
.front-article-head {
  /* Volle Container-Breite, kein Float — H1 + Cover bleiben breit. */
  margin-bottom: 24px;
}
.front-article-head h1 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 18px;
  letter-spacing: -0.01em;
}
.front-article-head h1 .h1-sub {
  display: block;
  font-size: 0.62em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-top: 5px;
}
.front-article-head .article-cover {
  margin: 24px 0 0;
}
.front-article-head .article-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.front-sidebar {
  float: right;
  width: 300px;
  margin: 8px 0 24px 32px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.front-sidebar .side-header {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.front-sidebar .side-scroll {
  /* Hart-Deckel damit Sidebar nie laenger wird als ~3-4 Items; Cover bleibt oben.
     Falls mehr Artikel da sind, kommt eine dezente Scrollbar. */
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) transparent;
}
/* Body soll nicht in eine zu schmale Spalte gedrueckt werden */
.front-article {
  min-width: 320px;
}
.front-sidebar .side-scroll::-webkit-scrollbar { width: 6px; }
.front-sidebar .side-scroll::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
.front-sidebar .side-scroll::-webkit-scrollbar-track { background: transparent; }

.front-sidebar .side-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.front-sidebar .side-item:last-child { border-bottom: none; }
.front-sidebar .thumb {
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  background: var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
}
.front-sidebar .info { flex: 1; min-width: 0; }
.front-sidebar h3 {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.front-sidebar .side-item:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.front-sidebar .date {
  font-size: 11px;
  color: var(--text-faint);
}
.side-empty {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
  margin: 8px 0;
}

/* Eingebetteter Artikel: padding/max-width vom <article> entfernen */
.front-article {
  min-width: 0;
}
.front-article article {
  padding: 0;
  max-width: none;
}
/* h1 funktioniert auch ohne <article>-Wrapper (extractArticleBody entfernt ihn) */
.front-article h1,
.front-article article h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 22px;
}
/* Lead + Body-Styles ohne article-Parent */
.front-article .article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.front-article .article-meta .read,
.front-article .article-meta time {
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.front-article .article-lead p:first-child {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}
.front-article section h2,
.front-article > h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
  margin: 44px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.front-article section h3,
.front-article > h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  margin: 28px 0 10px;
}
/* Cover-Bild im eingebetteten Artikel etwas kleiner */
.front-article .article-cover {
  margin: 20px 0;
}

/* ============ HAUPT-GRID (alte Listing-View, fallback) ============ */
.magazin-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.magazin-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Hero-Grid: Hauptartikel + Side-Stories nebeneinander */
.magazin-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

/* ============ HAUPTARTIKEL (NEU) ============ */
.magazin-featured a { text-decoration: none; color: inherit; display: block; }
.magazin-featured .cover {
  background: var(--border-dark);
  aspect-ratio: 1200 / 630;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.magazin-featured:hover .cover { transform: scale(1.01); }
.magazin-featured .meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.magazin-featured h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.magazin-featured:hover h2 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.magazin-featured .excerpt {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.magazin-featured .date {
  font-size: 12px;
  color: var(--text-faint);
}

/* ============ SIDE-STORIES (ÄLTER) ============ */
.magazin-side .side-header {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.magazin-side .side-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.magazin-side .side-item:last-child { border-bottom: none; }
.magazin-side .thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  background: var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
}
.magazin-side .info { flex: 1; min-width: 0; }
.magazin-side h3 {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.magazin-side .side-item:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.magazin-side .date {
  font-size: 11px;
  color: var(--text-faint);
}

/* ============ ARCHIV ============ */
.magazin-archive {
  max-width: var(--article-width);
  margin: 0 auto;
}
.archive-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.magazin-list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.magazin-list-item:last-child { border-bottom: none; }
.magazin-list-item .thumb {
  flex-shrink: 0;
  width: 140px;
  height: 105px;
  background: var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
}
.magazin-list-item .info { flex: 1; }
.magazin-list-item .meta {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.magazin-list-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.magazin-list-item:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.magazin-list-item .date { font-size: 12px; color: var(--text-faint); }

/* Archiv zweispaltig (seit 2026-09-23, aus Platzgruenden). Nur ab 601 px —
   darunter bleibt die bisherige einspaltige Handy-Ansicht (grosse Bilder, siehe
   @media max-width 600px) unangetastet. Ueberschrift, Monatszeilen und Leer-
   Hinweis laufen ueber beide Spalten. Der Titel bricht nach dem ersten ":" um
   (archiv_titel() in magazin-index.php), die Aussage steht in .archiv-aussage. */
@media (min-width: 601px) {
  .magazin-archive { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: stretch; }
  .magazin-archive > .archive-title,
  .magazin-archive > .archive-month,
  .magazin-archive > .magazin-empty { grid-column: 1 / -1; }
  .magazin-archive .magazin-list-item { gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .magazin-archive .magazin-list-item .thumb { width: 96px; height: 72px; }
  .magazin-archive .magazin-list-item h3 { font-size: 15.5px; line-height: 1.3; margin: 0 0 4px; }
}
.archiv-aussage { font-weight: 400; }

/* ============ ARTIKEL (Detail-Seite) ============ */
article {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.article-meta .cat { color: var(--gold); }
.article-meta .dot { color: var(--text-faint); }
.article-meta .read, .article-meta time {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}
article h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
/* Teil nach dem Doppelpunkt als abgesetzter Untertitel — kleiner und leichter
   als der Hauptteil davor. Gleiche Mechanik wie im Hero der Startseite
   (.front-article-head h1 .h1-sub). Groesse in em, damit sie dem clamp() des
   H1 folgt statt auf jeder Breite neu justiert werden zu muessen. */
article h1 .h1-sub {
  display: block;
  font-size: 0.62em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  margin-top: 6px;
  color: var(--text-body);
}
.article-cover { margin: 28px 0; }
.article-cover img {
  width: 100%;
  border-radius: 4px;
  background: var(--border-dark);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
/* Bildanmerkung "*Foto-Illustration" (seit 2026-09-23, User-Wunsch): klein, senkrecht,
   rechts NEBEN dem Bild von der Unterkante nach oben laufend, ~4 px Abstand. Reines CSS
   ueber .article-cover::after — gilt fuer jedes Titelbild (Artikel und Startseite),
   kein Artikel-HTML noetig. display:block am Bild, damit die Figur genau mit der
   Bildunterkante endet (sonst Inline-Luft darunter). Rechts ist Platz: Artikel-
   Innenabstand >= 18 px, das Label ist ~11 px breit. */
.article-cover { position: relative; }
.article-cover > img { display: block; }
.article-cover::after {
  content: '*Foto-Illustration';
  position: absolute;
  right: -15px;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-faint);
  pointer-events: none;
}
.article-lead p:first-child {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-body);
  font-weight: 400;
  margin: 0 0 18px;
}
.article-lead p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--text-body);
}
.article-body section { margin: 44px 0 0; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-primary);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
/* Untertitel nach dem Doppelpunkt in Kapitel-Ueberschriften — gleiche Idee wie
   article h1 .h1-sub, aber eigene Klasse: bei 19px H3 waere der H1-Faktor
   0.62em auf 12px gefallen und damit keine Ueberschrift mehr. */
.article-body h2 .hd-sub,
.article-body h3 .hd-sub {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-body);
  margin-top: 4px;
}
.article-body h2 .hd-sub { font-size: 0.72em; line-height: 1.3; }
.article-body h3 .hd-sub { font-size: 0.80em; line-height: 1.35; }
.article-body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin: 6px 0; font-size: 17px; line-height: 1.7; }
.article-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.article-body a:hover { background: var(--gold-bg); text-decoration-thickness: 2px; }
.article-body strong { font-weight: 600; color: var(--text-primary); }
.article-body em { font-style: italic; }

/* ============ FAQ ============ */
.article-faq {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-faq h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--text-primary);
}
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16.5px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
  font-family: var(--serif);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  color: var(--gold);
  margin-left: 16px;
  transition: transform 0.15s;
  font-weight: 300;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  margin-top: 12px;
  padding-right: 32px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
}
.faq-a p { margin: 0 0 10px; }

/* ============ CTA-BOX ============ */
.cta-box {
  margin: 56px 0 0;
  padding: 28px;
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0;
}
.cta-box p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--gold-text);
}
.cta-box p:last-child { margin-bottom: 0; }
.cta-box a {
  color: var(--gold-text);
  /* 2026-09-23 (User): MeineZeit-Verweise in der CTA normal, nicht fett — der Link
     soll sich nur durch die Unterstreichung abheben, nicht groesser wirken als der Text. */
  font-weight: inherit;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* ============ KI-DISCLAIMER ============ */
.ai-disclaimer {
  margin: 48px 0 28px;
  /* 2026-09-23 (User): Hinweistext UEBER der gestrichelten Linie — vorher border-top
     mit Text darunter, jetzt Linie als Abschluss unter dem Text. */
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-dark);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
  font-style: italic;
  font-family: var(--sans);
}

/* ============ FOOTER ============ */
.mz-footer {
  background: #F3EDD9;
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.mz-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 4px;
}
.mz-footer a:hover { color: var(--text-primary); text-decoration: underline; }
.mz-footer .mz-logo-link { display:block; width:fit-content; margin:0 auto 8px; }
.mz-footer .mz-logo-link img { height:42px; width:auto; opacity:.9; transition:opacity .2s; }
.mz-footer .mz-logo-link:hover img { opacity:1; }

/* ============ TABLET ============ */
@media (max-width: 900px) and (min-width: 601px) {
  /* Grid bleibt 2-spaltig aber enger */
  .magazin-hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 24px; }
  .magazin-side .thumb { width: 70px; height: 52px; }
  .magazin-side h3 { font-size: 14px; }
  .front-sidebar { width: 240px; margin-left: 24px; }
}

/* ============ MOBILE ============ */
@media (max-width: 600px) {
  /* Mobilitäts-Ticker: kompakter auf Mobile */
  .ticker-label { padding: 8px 12px; font-size: 12px; }
  .ticker-live { display: none; }
  .ticker-word { display: none; }
  .ti { font-size: 12.5px; padding: 0 14px; }
  .bw-tag img { width: 52px; }  /* Label ist mobil nur ~53 px breit */
  .bw-cta { flex-direction: column; align-items: stretch; }
  .bw-cta-banner { width: auto; max-height: 0; margin: 0;
    transition: max-height .9s cubic-bezier(.2, .8, .2, 1), margin-top .9s; }
  .bw-cta.bw-in .bw-cta-banner { width: auto; max-height: 400px; margin: 18px 0 0; }
  .bw-cta-banner img { flex: 1 1 auto; width: 100%; max-width: 370px; margin: 0 auto;
    transform: translateX(110vw) rotate(6deg) scale(.92); }
  .magazin-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .magazin-side .side-header { margin-top: 8px; }
  .magazin-side .thumb { width: 90px; height: 70px; }
  .magazin-listing-header { padding: 32px 18px 16px; }
  .front-article-head h1 { font-size: 24px; line-height: 1.2; }
  .magazin-listing-header h1 { font-size: 32px; }
  .magazin-tabs { gap: 18px; }
  article { padding: 24px 18px 40px; }
  article h1 { font-size: 26px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 17px; }
  .article-lead p:first-child { font-size: 18px; }
  .mz-header { padding: 6px 18px; }
  .mz-header .brand { font-size: 18px; }
  .mz-header .brand-logo { width: auto; height: 34px; }
  .mz-header nav { gap: 14px; font-size: 13px; }
  .magazin-list-item { flex-direction: column; }
  .magazin-list-item .thumb { width: 100%; height: 180px; }
  /* Front-View Mobile: Sidebar unter den Artikel */
  .front-sidebar {
    float: none;
    width: auto;
    margin: 0 0 32px 0;
  }
  .front-sidebar .side-scroll { max-height: none; overflow: visible; }
}

/* Artikelseiten: Titel auch unterhalb 901px zeigen.
   Die Startseite hat dafuer den Block .magazin-listing-header.compact —
   Artikelseiten nicht, dort fehlte der Magazin-Titel auf Mobilgeraeten ganz.
   Als eigene Zeile (flex-wrap) statt absolut mittig, sonst ueberlagert er im
   schmalen Mobil-Header das Logo und die Navigation. */
@media (max-width: 900px) {
  .magazin-article .mz-header { flex-wrap: wrap; }
  .magazin-article .mz-header-title {
    display: block;
    order: 3;
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .magazin-article .mz-header-title .kicker {
    font-family: var(--serif);
    /* 2026-08-09: 21px -> 18px. Der Titel gibt im Kopf die Orientierung,
       er soll nicht mit der Artikel-Ueberschrift konkurrieren. */
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.15;
  }
  .magazin-article .mz-header-title .subtitle { display: none; }
}

/* Hero-Titel in die Header-Zeile (nur Desktop) */
.mz-header-title { display: none; }
@media (min-width: 901px) {
  /* KOPF_HOEHER_v1 (User 2026-10-22): Kopf 20 px hoeher (je 10 px oben/unten), der absolut
     mittig gesetzte Titelblock sitzt damit mit Luft zum oberen Rand. */
  .mz-header { position: sticky; padding-top: 26px; padding-bottom: 26px; }
  .mz-header-title {
    display: block;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
  }
  .mz-header-title .kicker {
    font-family: var(--serif);
    /* 2026-08-08 praesenter: Groesse statt Fettung. font-weight bleibt 500 —
       clamp haelt den absolut mittigen Titel ab 901px von Logo und Navigation frei. */
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 500;
    letter-spacing: -0.015em;
    /* war var(--text) — diese Variable existiert im :root nicht, die Farbe lief ins Leere */
    color: var(--text-primary);
    line-height: 1.05;
  }
  .mz-header-title .subtitle {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2px;
  }
  /* separater Titel-Block auf Desktop ausblenden */
  .magazin-listing-header.compact { display: none; }
}

/* INLINE_BILDER_INDEX_v1 (2026-10-04): Artikelbilder auch auf der Magazin-Startseite (magazin-index.php
   bettet nur den <article>-Inhalt ein, der <style>-Block aus dem Artikel-<head> fehlt dort).
   Gleiche Regeln wie INLINE_CSS in magazin_generate.py (inkl. INLINE_UMFLUSS_v1 fuers Handy). */
.mz-inline-bild{float:right;width:320px;max-width:46%;margin:.35em 0 1em 1.5em}
.mz-inline-bild.links{float:left;margin:.35em 1.5em 1em 0}
/* INLINE_GROESSE_v2 (User 2026-10-20): Artikel ab 21.10. tragen "gross" -> 50 % groesser (480 px), Handy bleibt 48 % */
.mz-inline-bild.gross{width:480px;max-width:55%}
.mz-inline-bild img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.14)}
.mz-inline-bild figcaption{font-size:.8em;line-height:1.35;color:#6b6b6b;margin-top:.4em}
.article-body h2,.article-body h3{clear:both}
/* INLINE_UMFLUSS_v2 (User 2026-10-20): bei grossen Bildern fliessen Zwischentitel (h3) am Bild vorbei, nur h2 beginnt darunter */
.article-body:has(.mz-inline-bild.gross) h3{clear:none}
@media (max-width:600px){.mz-inline-bild,.mz-inline-bild.gross{width:48%;max-width:48%;margin:.3em 0 .6em .9em}.mz-inline-bild.links{margin:.3em .9em .6em 0}.mz-inline-bild figcaption{font-size:.72em}}

/* TYPO_UMBRUCH_v1 (User 2026-10-20): sinnvolle Umbrueche macht der Browser, nicht das Modell.
   pretty = kein einzelnes Wort allein in der letzten Zeile eines Absatzes;
   balance = Ueberschriften gleichmaessig auf ihre Zeilen verteilt. Keine Silbentrennung (unruhig am Handy).
   Gilt fuer Artikelseiten und den Hauptartikel der Startseite; Browser ohne Unterstuetzung brechen wie bisher um. */
.article-lead p,.article-body p,.article-body li,.front-article p,.front-article li{text-wrap:pretty}
article h1,article h2,article h3,.front-article-head h1,.front-article h2,.front-article h3{text-wrap:balance}

/* LESER_FAVORIT_v1 (2026-10-22): Band "Leser-Favorit" oben links, 30 Grad schraeg, auf dem
   meistbesuchten Archiv-Artikel der Startseite (Auswahl in magazin-index.php). MeineZeit-Orange. */
.magazin-list-item .thumb { position: relative; }
.leser-favorit {
  position: absolute; left: 86px; top: 50px; width: 360px;
  transform: translate(-50%, -50%) rotate(-30deg);
  background: #F95C02; color: #fff; text-align: center;
  font: 700 13px/30px var(--sans); letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.35); pointer-events: none;
}
/* TOP_STORY_v1 (2026-10-22): Platz 2 der Aufrufe, gleiches Band in Navy mit Goldschrift (TEXT_NAVY_v1, vorher Schwarz). */
.leser-favorit.top-story { background: #1E293B; color: #E6C55A; box-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* START_ARCHIV_KARTEN_v1 (User 2026-10-22): Der Archiv-Block der Startseite zeigt grosse
   Bildkarten im Format der Cover (1376x768, ganzes Bild ohne Beschnitt), Text darunter;
   am Desktop zweispaltig. Die Archivseite /magazin/archiv/ behaelt ihre Liste mit kleinen Bildern. */
.start-archiv .magazin-list-item .thumb { width: 100%; height: auto; aspect-ratio: 1376 / 768; border-radius: 6px; }
@media (min-width: 601px) {
  .start-archiv { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 6px; }
  .start-archiv .magazin-list-item { flex-direction: column; gap: 12px; padding: 14px 0 18px; border-bottom: none; }
  .start-archiv .magazin-list-item h3 { font-size: 17px; }
}

/* MZ_TITEL_LOGO_v1 (User 2026-10-22): Magazin-Titel "MeineZeit [MZ-Logo] Magazin" — das Logo
   steht zwischen den Woertern, in Hoehe der Grossbuchstaben, waechst mit der Schriftgroesse mit.
   alt="" + aria-hidden: Vorleser lesen weiter "MeineZeit Magazin". */
.kicker-logo {
  display: inline-block; height: .78em; width: auto;
  margin: 0 .24em; vertical-align: -.02em; border-radius: .12em;
}
