/* =========================================================================
   MacherPost — design-system.css  v3 (Apple-News-Aesthetik)
   Magazin-Stil mit weichen Kanten, soft shadows, immersiven Cover-Cards.
   Brand: Schweizer Rot (#c8102e). Display-Serif: Newsreader. UI-Sans: Plus Jakarta Sans.
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,300;6..72,400;6..72,500;6..72,600;6..72,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Paper / Surface */
  --paper-00: #ffffff;
  --paper-05: #fafaf7;   /* App background */
  --paper-10: #f4f3ee;
  --paper-20: #edebe3;
  --paper-30: #dcd9cc;

  --ink-95: #0a0a0a;
  --ink-90: #161514;
  --ink-80: #29261f;
  --ink-70: #3d3830;
  --ink-60: #5a5347;
  --ink-50: #7a7363;
  --ink-40: #9b9482;
  --ink-30: #bdb6a4;
  --ink-20: #ddd7c5;

  /* Accent — Schweizer Rot */
  --accent:        #c8102e;
  --accent-deep:   #9c0a22;
  --accent-soft:   #ffe9ec;
  --accent-text:   #c8102e;

  /* Category colors (Apple-News-style) */
  --cat-pol:   #1d6bd1;
  --cat-wirt:  #c8102e;
  --cat-mkt:   #0a8454;
  --cat-rech:  #7c3aed;
  --cat-meinung: #d97706;
  --cat-tech:  #0891b2;

  /* Functional */
  --bg:        var(--paper-05);
  --bg-elev:   var(--paper-00);
  --bg-alt:    var(--paper-10);
  --ink:       var(--ink-90);
  --ink-soft:  var(--ink-60);
  --muted:     var(--ink-50);
  --muted-2:   var(--ink-40);

  --hairline:  rgba(20, 17, 11, 0.08);
  --hairline-2:rgba(20, 17, 11, 0.14);

  /* Type-Skala — fluid */
  --t-xxs:  0.6875rem;
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-md:   1.0625rem;
  --t-lg:   1.375rem;
  --t-xl:   2rem;
  --t-2xl:  2.875rem;
  --t-3xl:  4.5rem;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  /* Layout */
  --container:    1440px;
  --container-rd: 720px;
  --gutter:       var(--s-5);

  /* Radii — Apple-News uses generous, soft corners */
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-2xl:   36px;
  --r-pill:  999px;
  --r-card:  var(--r-lg);

  /* Shadows — sparsam, nur für Erhöhung. Kein Drama. */
  --shadow-xs:  0 1px 0 rgba(15,12,8,0.04);
  --shadow-sm:  0 1px 3px rgba(15,12,8,0.04), 0 1px 1px rgba(15,12,8,0.03);
  --shadow-md:  0 4px 12px rgba(15,12,8,0.05), 0 1px 3px rgba(15,12,8,0.03);
  --shadow-lg:  0 12px 36px rgba(15,12,8,0.08), 0 3px 10px rgba(15,12,8,0.04);
  --shadow-cover: 0 12px 32px -8px rgba(15,12,8,0.18), 0 2px 6px rgba(15,12,8,0.06);

  /* Fonts */
  --f-display: 'Newsreader', 'New York', ui-serif, Georgia, serif;
  --f-body:    'Newsreader', 'New York', ui-serif, Georgia, serif;
  --f-ui:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Motion */
  --dur-fast: 140ms;
  --dur-med:  260ms;
  --ease:     cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--f-ui);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-rd {
  width: 100%;
  max-width: var(--container-rd);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
/* MacherPost-Signatur: kleiner Marker links vom Eyebrow */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.6;
}
.eyebrow--no-mark::before { display: none; }
.eyebrow--ink { color: var(--ink-90); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--pol { color: var(--cat-pol); }
.eyebrow--mkt { color: var(--cat-mkt); }
.eyebrow--rech { color: var(--cat-rech); }
.eyebrow--meinung { color: var(--cat-meinung); }
.eyebrow--tech { color: var(--cat-tech); }

.meta {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: 500;
}
.meta-mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.01em;
}

.h-aufmacher {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, var(--t-3xl));
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink-95);
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 3.2vw, var(--t-2xl));
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-95);
  margin: 0;
}
.h-card {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-90);
  margin: 0;
  text-wrap: balance;
}
.h-card-sm {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-90);
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-70);
  margin: 0;
  text-wrap: pretty;
}
.deck {
  font-family: var(--f-display);
  font-size: var(--t-md);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-60);
  margin: 0;
}
.body-rd {
  font-family: var(--f-display);
  font-size: 1.1875rem;       /* 19px — Apple News reading size */
  line-height: 1.62;
  color: var(--ink-80);
  font-weight: 400;
}
.body-rd p { margin: 0; }
.body-rd p + p { margin-top: var(--s-4); }

/* Drop-Cap (subtle, modern) */
.drop-cap::first-letter {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 4.2em;
  line-height: 0.9;
  float: left;
  padding: 0.05em 0.10em 0 0;
  color: var(--accent);
}

/* ---------- Top chrome — sticky frosted bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.appbar__row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-3);
}
.appbar__brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink-95);
}
.appbar__brand em { color: var(--accent); font-style: italic; }

.appbar__tabs {
  display: flex;
  gap: var(--s-2);
  margin-left: var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.appbar__tabs::-webkit-scrollbar { display: none; }
.appbar__tab {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  color: var(--ink-70);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.appbar__tab:hover { background: var(--paper-10); color: var(--ink-95); }
.appbar__tab[aria-current="page"] {
  background: var(--ink-95);
  color: var(--paper-00);
}

.appbar__actions { margin-left: auto; display: flex; gap: var(--s-3); align-items: center; }
.appbar__date { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--muted); font-weight: 500; }

/* ─── Mobile-Navigation: Hamburger-Dropdown (28.05.2026) ───
   Desktop bleibt unverändert (Burger + Checkbox versteckt, Tabs/Actions inline).
   Mobile (<=700px): Brand links, Burger rechts; Tabs + Aktionen klappen als
   Dropdown auf. Verhindert das Abschneiden der Buttons (Konto/Admin/Abmelden). */
.appbar__burger { display: none; }
.appbar__toggle { display: none; }
@media (max-width: 700px) {
  .appbar__row { flex-wrap: wrap; gap: var(--s-3); }
  .appbar__brand { margin-right: auto; }     /* Brand links, Burger rechts */
  .appbar__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    color: var(--ink-90);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .appbar__burger:active { background: var(--paper-10); }
  /* zugeklappt: Tabs + Aktionen versteckt */
  .appbar__tabs, .appbar__actions {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
  }
  /* aufgeklappt (Checkbox checked): als gestapeltes Dropdown unter der Bar */
  .appbar__toggle:checked ~ .appbar__tabs {
    display: flex; flex-direction: column; gap: 2px;
    overflow: visible;
    padding-top: var(--s-3);
    border-top: 1px solid var(--hairline);
  }
  .appbar__toggle:checked ~ .appbar__actions {
    display: flex; flex-direction: column; gap: var(--s-3);
    align-items: stretch;
    padding-bottom: var(--s-2);
  }
  .appbar__toggle:checked ~ .appbar__tabs .appbar__tab { width: 100%; }
  .appbar__actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 10px var(--s-5);
  border: 1px solid transparent;
  background: var(--ink-95);
  color: var(--paper-00);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink-95); border-color: var(--hairline-2); }
.btn--ghost:hover { background: var(--paper-10); }
.btn--soft { background: var(--paper-10); color: var(--ink-95); }
.btn--soft:hover { background: var(--paper-20); }
.btn--sm { padding: 6px var(--s-3); font-size: var(--t-xs); }
.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--t-md); }

/* Pill / chip — zurückhaltend, Outline-Stil */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.pill--ink { background: var(--ink-95); color: var(--paper-00); border-color: var(--ink-95); }
.pill--ghost { color: var(--muted); border-color: var(--hairline-2); }
.pill--filled { background: var(--accent); color: var(--paper-00); border-color: var(--accent); }
.pill--pol { color: var(--cat-pol); border-color: var(--cat-pol); }
.pill--mkt { color: var(--cat-mkt); border-color: var(--cat-mkt); }
.pill--rech { color: var(--cat-rech); border-color: var(--cat-rech); }
.pill--meinung { color: var(--cat-meinung); border-color: var(--cat-meinung); }
.pill--tech { color: var(--cat-tech); border-color: var(--cat-tech); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-70);
  letter-spacing: -0.005em;
}
.input, .textarea, .select {
  font-family: var(--f-ui);
  font-size: var(--t-md);
  padding: 12px var(--s-4);
  background: var(--paper-00);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  color: var(--ink-90);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink-90);
  box-shadow: 0 0 0 3px rgba(20,17,11,0.08);
}
.checkbox { display: inline-flex; align-items: flex-start; gap: var(--s-2); font-family: var(--f-ui); font-size: var(--t-sm); }

/* Card — minimal: hairline statt Schatten */
.card {
  background: var(--bg-elev);
  border-radius: var(--r-card);
  padding: var(--s-5);
  border: 1px solid var(--hairline);
  transition: border-color var(--dur-fast) var(--ease);
}
.card--hover:hover { border-color: var(--hairline-2); }
.card--bare { background: transparent; border: 0; padding: 0; }
.card--ink { background: var(--ink-95); color: var(--paper-00); border-color: var(--ink-95); }
.card--ink .h-card, .card--ink .h-card-sm { color: var(--paper-00); }
.card--ink .meta, .card--ink .lead, .card--ink .deck { color: rgba(255,255,255,0.7); }

/* ---------- Story tile ---------- */
.story-tile {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.story-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.story-tile__media {
  aspect-ratio: 16 / 10;
  background: var(--paper-20);
  position: relative;
  overflow: hidden;
}
.story-tile__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }

/* Hero story (immersive — full-bleed image with text overlay) */
.hero-story {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 540px;
  background: var(--ink-95);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-7);
  color: var(--paper-00);
  box-shadow: var(--shadow-lg);
}
.hero-story__bg {
  position: absolute; inset: 0;
  background: var(--ink-90);
  z-index: 0;
}
.hero-story__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 80%, rgba(0,0,0,0.85) 100%);
}
.hero-story__content { position: relative; z-index: 1; max-width: 720px; }
.hero-story__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper-00);
  margin: var(--s-4) 0;
  text-wrap: balance;
}
.hero-story__deck {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--s-5) 0;
  max-width: 60ch;
}

/* Magazine cover (issue card — Apple-News-Plus signature) */
.mag-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: var(--s-5);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--paper-00);
  background: var(--ink-95);
  box-shadow: var(--shadow-cover);
  transition: transform var(--dur-med) var(--ease);
}
.mag-cover:hover { transform: translateY(-3px); }
/* 19.05.2026: Labels über Bildern lesbar machen — text-shadow + Opacity 1 */
.mag-cover__no {
  font-family: var(--f-ui);
  font-size: 0.75rem;           /* war t-xxs ~10-11px → 12px für Lesbarkeit */
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;                    /* war 0.7 — über Bildern unlesbar */
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 1px 8px rgba(0,0,0,0.5);
}
.mag-cover__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.875rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.45);
}
.mag-cover__foot {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 1px 8px rgba(0,0,0,0.45);
}
/* Cream-Karten (ohne Bild) brauchen keinen shadow — wieder schwächer */
.mag-cover--cream .mag-cover__no,
.mag-cover--cream .mag-cover__title,
.mag-cover--cream .mag-cover__foot {
  text-shadow: none;
}
.mag-cover--red { background: var(--accent); }
.mag-cover--cream { background: var(--paper-10); color: var(--ink-90); border: 1px solid var(--hairline); }
.mag-cover--cream .mag-cover__no, .mag-cover--cream .mag-cover__foot { opacity: 0.6; }
.mag-cover--blue,
.mag-cover--green,
.mag-cover--purple { background: var(--ink-90); }

/* Archive-style card grid (used on archive + landing) */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1100px) { .arch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .arch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .arch-grid { grid-template-columns: 1fr; } }
.arch-card { display: flex; flex-direction: column; gap: var(--s-3); }
.arch-card__hl { font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); line-height: 1.25; color: var(--ink-90); margin: 0; }
.arch-card__meta { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--muted); display: flex; gap: var(--s-2); font-weight: 600; margin: 0; }

/* Gesperrte Karten (kein Abo): sichtbar, aber ausgegraut + Schloss. Klick → /abo. */
.arch-card--locked .mag-cover { filter: grayscale(0.85); opacity: 0.6; }
.arch-card--locked .arch-card__listtitle { opacity: 0.62; }
.arch-card--locked .arch-card__hl { opacity: 0.5; }
.lock-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.58); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* Image placeholder — gradient + glyph */
.img-ph {
  background: linear-gradient(135deg, var(--paper-20) 0%, var(--paper-30) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.img-ph--portrait { aspect-ratio: 3 / 4; }
.img-ph--square   { aspect-ratio: 1 / 1; }
.img-ph--wide     { aspect-ratio: 21 / 9; }
.img-ph--hero     { aspect-ratio: 16 / 10; }

/* Image fills (decorative gradients to evoke imagery) */
.img-ph--snb     { background: linear-gradient(135deg, #1e1b16 0%, #4a3f2e 100%); color: rgba(255,255,255,0.4); }
.img-ph--pharma  { background: linear-gradient(135deg, #2d1b3d 0%, #7c3aed 100%); color: rgba(255,255,255,0.5); }
.img-ph--strom   { background: linear-gradient(135deg, #0f3a2e 0%, #0a8454 100%); color: rgba(255,255,255,0.5); }
.img-ph--cs      { background: linear-gradient(135deg, #1a1611 0%, #c8102e 100%); color: rgba(255,255,255,0.5); }
.img-ph--tamedia { background: linear-gradient(135deg, #1e3a8a 0%, #5b7fc7 100%); color: rgba(255,255,255,0.5); }
.img-ph--tessin  { background: linear-gradient(135deg, #78350f 0%, #d97706 100%); color: rgba(255,255,255,0.5); }
.img-ph--stadler { background: linear-gradient(135deg, #1f2937 0%, #6b7280 100%); color: rgba(255,255,255,0.5); }
.img-ph--ai      { background: linear-gradient(135deg, #064e3b 0%, #0891b2 100%); color: rgba(255,255,255,0.5); }

/* ---------- Topic-Chip-Rail ---------- */
.topic-rail {
  display: flex; gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--s-3) 0;
}
.topic-rail::-webkit-scrollbar { display: none; }
.topic-rail__chip {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 8px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--paper-00);
  color: var(--ink-90);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.topic-rail__chip:hover { background: var(--paper-10); }
.topic-rail__chip[aria-current="page"] { background: var(--ink-95); color: var(--paper-00); }

/* ---------- Section header ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.sec-head__more {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Numbered Story List ---------- */
.num-list { list-style: none; padding: 0; margin: 0; }
.num-list__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.num-list__item:first-child { border-top: 1px solid var(--hairline); }
.num-list__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1;
  color: var(--ink-30);
  letter-spacing: -0.02em;
}
.num-list__title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-90);
}
.num-list__meta {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
.num-list__item:hover .num-list__title { color: var(--accent); }

/* ---------- Pricing plan ---------- */
.plan {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--hairline);
  position: relative;
}
.plan--feature {
  background: var(--ink-95);
  color: var(--paper-00);
  border-color: var(--ink-95);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan--feature .h-card { color: var(--paper-00); }
.plan--feature::after {
  content: "EMPFOHLEN";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-ui);
  font-size: var(--t-xxs);
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--accent);
  color: var(--paper-00);
  padding: 5px var(--s-3);
  border-radius: var(--r-pill);
}
.plan__price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-2xl);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price small {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.plan--feature .plan__price small { color: rgba(255,255,255,0.6); }
.plan__sub {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-top: calc(-1 * var(--s-2));
  font-weight: 500;
}
.plan--feature .plan__sub { color: rgba(255,255,255,0.6); }
.plan__strike {
  font-family: var(--f-display);
  font-size: 0.5em;
  text-decoration: line-through;
  color: var(--muted);
  margin-right: var(--s-2);
  font-weight: 400;
}
.plan--feature .plan__strike { color: rgba(255,255,255,0.5); }
.plan__save {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: var(--t-xxs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px var(--s-3);
  border-radius: var(--r-pill);
  align-self: flex-start;
}
.plan--feature .plan__save { background: var(--accent); color: var(--paper-00); }
.plan__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.plan__list li {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  padding-left: 28px;
  position: relative;
  line-height: 1.4;
}
.plan__list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M4.5 9.5l3 3 6-6' stroke='%23c8102e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.plan--feature .plan__list li::before {
  background: rgba(200,16,46,0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M4.5 9.5l3 3 6-6' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper-10);
  margin-top: var(--s-9);
  padding-block: var(--s-7);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.footer__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-xl);
  margin: 0 0 var(--s-5) 0;
  letter-spacing: -0.02em;
}
.footer__title em { color: var(--accent); font-style: italic; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col h4 {
  font-family: var(--f-ui);
  font-size: var(--t-xxs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-95);
  margin: 0 0 var(--s-3) 0;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer__col a { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-70); font-weight: 500; }
.footer__col a:hover { color: var(--accent); }
.footer__base {
  display: flex; justify-content: space-between; gap: var(--s-4);
  font-family: var(--f-ui); font-size: var(--t-xs); color: var(--muted);
  padding-top: var(--s-5);
  margin-top: var(--s-6);
  border-top: 1px solid var(--hairline);
  font-weight: 500;
}
.footer__legal {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  max-width: 90ch;
}
.footer__legal p { margin: 0; }

/* ---------- Misc ---------- */
.spacer-xs { height: var(--s-3); }
.spacer-sm { height: var(--s-5); }
.spacer-md { height: var(--s-7); }
.spacer-lg { height: var(--s-8); }

.center  { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }

.accent { color: var(--accent); }
.muted  { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-95); color: var(--paper-00);
  padding: var(--s-3) var(--s-4); font-family: var(--f-ui);
  z-index: 100; border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; top: 0; }

/* ════════════════════════════════════════════════════════════════════
   MOBILE-OVERRIDES (20.05.2026) — fixt horizontal-scroll + Layouts
   ════════════════════════════════════════════════════════════════════ */

/* Globaler Schutz gegen horizontal-overflow */
html, body { overflow-x: hidden; max-width: 100vw; }
body > * { max-width: 100vw; }
img, video, table { max-width: 100%; }

/* Wochenplan-Tabelle: scrollt INNERHALB des Containers, nicht ganzer Seite */
.wp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
}
.wp-table { min-width: 720px; }  /* Tabelle bleibt fest-breit, Container scrollt */

@media (max-width: 800px) {
  /* Container weniger Padding auf Mobile */
  .container { padding-inline: 16px; }
  .container-rd { padding-inline: 16px; }
  .section { padding-block: 32px; }

  /* Hero kleiner auf Mobile */
  .hero-story { min-height: 480px; padding: 24px; }
  .hero-story__content { max-width: 100%; }

  /* Section-Headings kleiner */
  .h-section { font-size: 1.75rem; line-height: 1.15; }

  /* Card-Grid: 1 Spalte auf Mobile */
  .arch-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Mag-Cover: kleiner auf Mobile */
  .mag-cover {
    min-height: 280px;
    padding: 20px;
  }
  .mag-cover__title { font-size: 1.25rem !important; line-height: 1.15; }

  /* Wochenplan-Pills enger gestapelt */
  .wp-pills { gap: 5px; }
  .wp-pill { font-size: 11px; padding: 4px 10px; }

  /* Brief-Card (Newsletter) */
  .brief-card { padding: 24px 16px; }
  .brief-form { flex-direction: column; gap: 12px; }
  .brief-form__input, .brief-form__btn { width: 100%; }

  /* Plan-Tabelle: Schriftgrösse + Padding reduzieren */
  .wp-table th, .wp-table td { padding: 8px 4px !important; font-size: 11px !important; }
  .wp-table { font-size: 11px; }
}

@media (max-width: 500px) {
  /* Sehr klein: noch kompakter */
  .container, .container-rd { padding-inline: 12px; }
  .h-section { font-size: 1.5rem; }
  .mag-cover { min-height: 240px; padding: 16px; }
  .mag-cover__title { font-size: 1.1rem !important; }
  .wp-pill { font-size: 10.5px; padding: 4px 9px; }
}

/* ===== KOMPAKT-MOBILE (28.05.2026): Home-Feed als aufgeräumte Liste =====
   Vorbild Digitec: kleines Thumbnail links, Text rechts, dünne Trennlinien.
   NUR Mobile (<=700px). Desktop bleibt 1:1 das Magazin-Cover-Grid.
   Der Hero (#mp-hero-section) bleibt gross — nur die WEITEREN Beiträge
   (.arch-grid) werden zur kompakten Liste. Der überlagerte Cover-Titel wird
   ausgeblendet; renderGrid liefert dafür separaten .arch-card__listtext. */
.arch-card__listtext { display: none; }   /* Default (Desktop): nur Cover, kein Listentext */

@media (max-width: 700px) {
  .arch-grid {
    grid-template-columns: 1fr !important;   /* eine Spalte = gestapelte Liste */
    gap: 0 !important;
  }
  .arch-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--hairline);
  }
  /* mag-cover schrumpft zum kleinen Thumbnail links */
  .mag-cover {
    flex: 0 0 92px;
    width: 92px;
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 10px;
    box-shadow: none;
  }
  .mag-cover:hover { transform: none; }
  /* überlagerter Cover-Text auf Mobile weg (Titel kommt rechts als Liste) */
  .mag-cover__no, .mag-cover__title, .mag-cover__foot { display: none !important; }
  /* Text rechts neben Thumbnail (Digitec-Stil) */
  .arch-card__listtext {
    display: flex; flex-direction: column; gap: 3px;
    min-width: 0; flex: 1 1 auto; text-decoration: none;
  }
  .arch-card__kicker {
    font-family: var(--f-ui); font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .arch-card__listtitle {
    font-family: var(--f-display); font-weight: 600;
    font-size: 0.95rem; line-height: 1.2; color: var(--ink-95);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Teaser + Meta in der Liste ausblenden = kompakt */
  .arch-card__hl, .arch-card__meta { display: none; }
}
