/* === kaschnai.ch | Magazine Theme (t3n-inspired, light) === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surface */
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --bg-section: #f4f6f8;
  --bg-elevated: #ffffff;

  /* Text */
  --text: #0d0d0d;
  --text-body: #2a2a2a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  /* Accent (kaschnai blue, light-theme contrast) */
  --accent: #1f6feb;
  --accent-hover: #1158c7;
  --accent-soft: #dbeafe;
  --accent-warm: #f59e0b;
  --accent-success: #16a34a;
  --accent-danger: #dc2626;

  /* Per-pillar accent (Kicker badges) */
  --pillar-briefing: #1f6feb;
  --pillar-deep-dive: #7c3aed;
  --pillar-konzept: #0891b2;
  --pillar-voice: #db2777;
  --pillar-tool-radar: #16a34a;
  --pillar-editorial: #4b5563;

  /* Lines */
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Layout */
  --container-max: 1200px;
  --article-max: 740px;
  --header-height: 64px;
  --header-height-mobile: 56px;
  --gutter: 24px;
  --gutter-mobile: 16px;

  /* Spacing scale (8-based) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii */
  --radius: 4px;
  --radius-button: 6px;
  --radius-card: 0; /* magazine flat */

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  --fs-eyebrow: 12px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-h4: 18px;
  --fs-h3: 22px;
  --fs-h2: 28px;
  --fs-h1: 38px;
  --fs-display: 56px;
  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-body: 1.65;

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--gutter-mobile); }
}

/* === Reading progress bar === */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 100;
  transition: width 0.05s linear;
}

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--s-5);
}
@media (max-width: 640px) {
  .header-inner { height: var(--header-height-mobile); padding: 0 var(--gutter-mobile); }
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); opacity: 0.85; }
.logo img, .logo .logo-img {
  width: auto;
  height: 32px;
  display: block;
}
@media (min-width: 768px) {
  .logo .logo-img { height: 36px; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--s-5);
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-cta {
  display: none;
}
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}
.header-cta a {
  background: var(--text);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 14px;
}
.header-cta a:hover { background: var(--accent); color: #fff; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--s-2);
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  z-index: 60;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: min(85vw, 320px); height: 100vh;
  background: #fff;
  padding: var(--s-5) var(--s-5);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-4);
}
.nav-drawer-header span { font-weight: 800; font-size: 18px; color: var(--text); }
.nav-close { background: none; border: 0; cursor: pointer; font-size: 28px; line-height: 1; color: var(--text); }
.nav-drawer a {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:hover { color: var(--accent); }

/* === Hero === */
.hero {
  padding: var(--s-7) 0 var(--s-6);
}
@media (max-width: 640px) {
  .hero { padding: var(--s-6) 0 var(--s-5); }
}
.hero h1 {
  font-size: clamp(36px, 5vw, var(--fs-display));
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 900px;
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-sub {
  margin-top: var(--s-4);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  max-width: 720px;
}

/* === Pillar Kicker (Eyebrow) === */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pillar-editorial);
}
.kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.kicker[data-pillar="briefing"] { color: var(--pillar-briefing); }
.kicker[data-pillar="deep-dive"] { color: var(--pillar-deep-dive); }
.kicker[data-pillar="konzept"] { color: var(--pillar-konzept); }
.kicker[data-pillar="voice"] { color: var(--pillar-voice); }
.kicker[data-pillar="tool-radar"] { color: var(--pillar-tool-radar); }
.kicker[data-pillar="editorial"] { color: var(--pillar-editorial); }

/* === Magazine Article Card (Standard) === */
.article-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
}
.article-card a {
  color: var(--text);
  display: block;
}
.article-card a:hover { color: var(--text); }
.article-card .card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-section);
  transition: transform 0.3s ease;
}
.card-image-placeholder {
  background: linear-gradient(135deg, var(--bg-section) 0%, #e5e7eb 100%);
  position: relative;
}
.card-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, var(--accent-soft) 0%, transparent 50%);
  opacity: 0.7;
}
.card-image-placeholder[data-pillar="briefing"]::after { background-image: radial-gradient(circle at 30% 50%, rgba(31,111,235,0.18) 0%, transparent 50%); }
.card-image-placeholder[data-pillar="deep-dive"]::after { background-image: radial-gradient(circle at 30% 50%, rgba(124,58,237,0.18) 0%, transparent 50%); }
.card-image-placeholder[data-pillar="konzept"]::after { background-image: radial-gradient(circle at 30% 50%, rgba(8,145,178,0.18) 0%, transparent 50%); }
.card-image-placeholder[data-pillar="voice"]::after { background-image: radial-gradient(circle at 30% 50%, rgba(219,39,119,0.18) 0%, transparent 50%); }
.card-image-placeholder[data-pillar="tool-radar"]::after { background-image: radial-gradient(circle at 30% 50%, rgba(22,163,74,0.18) 0%, transparent 50%); }
.article-card:hover .card-image { transform: scale(1.02); }
.article-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3) 0 0;
}
.article-card .card-title {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}
.article-card:hover .card-title { color: var(--accent); }
.article-card .card-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--s-2);
}
.article-card .card-meta::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/><path d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/><path d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2'/></svg>") center / contain no-repeat;
  opacity: 0.6;
}

/* === Magazine Featured/Hero Card (oversized first article) === */
.featured {
  margin: var(--s-7) 0;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
}
@media (max-width: 640px) {
  .featured { margin: var(--s-6) 0 var(--s-5); padding: var(--s-4) 0; }
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: start;
  color: var(--text);
}
@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s-7);
    align-items: center;
  }
}
.featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-section);
}
.featured-content { display: flex; flex-direction: column; gap: var(--s-3); }
.featured-title {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
}
@media (min-width: 480px) {
  .featured-title { font-size: clamp(30px, 3.5vw, 40px); }
}
.featured-card:hover .featured-title { color: var(--accent); }
.featured-excerpt {
  font-size: 17px;
  line-height: var(--lh-normal);
  color: var(--text-muted);
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-top: var(--s-2);
}

/* === Articles Grid === */
.articles-grid { padding: var(--s-6) 0 var(--s-7); }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  row-gap: var(--s-1);
}
.section-title-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.section-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) {
  .section-title { font-size: 24px; gap: var(--s-2); }
  .section-title-link { font-size: 13px; }
}

/* Pillar-coloured section heads (replaces inline style="" in index.html) */
.section-title.is-pillar-briefing { color: var(--pillar-briefing); border-bottom-color: var(--pillar-briefing); }
.section-title.is-pillar-deep-dive { color: var(--pillar-deep-dive); border-bottom-color: var(--pillar-deep-dive); }
.section-title.is-pillar-konzept { color: var(--pillar-konzept); border-bottom-color: var(--pillar-konzept); }
.section-title.is-pillar-voice { color: var(--pillar-voice); border-bottom-color: var(--pillar-voice); }
.section-title.is-pillar-tool-radar { color: var(--pillar-tool-radar); border-bottom-color: var(--pillar-tool-radar); }
.section-title.is-pillar-briefing .section-title-link { color: var(--pillar-briefing); }
.section-title.is-pillar-deep-dive .section-title-link { color: var(--pillar-deep-dive); }
.section-title.is-pillar-konzept .section-title-link { color: var(--pillar-konzept); }
.section-title.is-pillar-voice .section-title-link { color: var(--pillar-voice); }
.section-title.is-pillar-tool-radar .section-title-link { color: var(--pillar-tool-radar); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-6) var(--gutter);
}

/* Pillar rows on home */
.pillar-row { padding: var(--s-6) 0; border-top: 1px solid var(--border); }
.pillar-row:first-of-type { border-top: 0; }
.pillar-row .grid { margin-top: var(--s-4); }
@media (max-width: 640px) {
  .pillar-row { padding: var(--s-5) 0; }
}

/* === Single Article === */
.article-single {
  padding-bottom: var(--s-8);
}
.article-hero {
  background: var(--bg-section);
  padding: 0 0 var(--s-5);
  margin-bottom: var(--s-5);
}
@media (max-width: 640px) {
  .article-hero { padding: 0 0 var(--s-4); margin-bottom: var(--s-4); }
}
.article-hero-image {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.article-layout {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) {
  .article-layout { padding: 0 var(--gutter-mobile); }
}

.article-header {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-5);
}
.article-header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: var(--s-3) 0 var(--s-4);
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-top: var(--s-3);
}
.article-meta .meta-sep { color: var(--text-faint); }
.article-meta .author {
  color: var(--text-body);
  font-weight: 600;
}

/* TOC */
.toc {
  background: var(--bg-section);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}
.toc summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.toc ul { list-style: none; margin-top: var(--s-3); padding-left: 0; }
.toc ul ul { padding-left: var(--s-4); }
.toc li { padding: var(--s-1) 0; }
.toc a { color: var(--text-body); font-size: 15px; }
.toc a:hover { color: var(--accent); }

/* Article content */
.article-content {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}
.article-content > p:first-of-type {
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content pre,
.article-content figure {
  margin: var(--s-4) 0;
}
.article-content h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: var(--s-7) 0 var(--s-4);
  line-height: 1.15;
}
@media (max-width: 640px) {
  .article-content h2 { font-size: 24px; margin: var(--s-6) 0 var(--s-3); }
}
.article-content h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: var(--s-6) 0 var(--s-3);
}
@media (max-width: 640px) {
  .article-content h3 { font-size: 20px; margin: var(--s-5) 0 var(--s-2); }
}
.article-content h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin: var(--s-5) 0 var(--s-2);
}
.article-content ul, .article-content ol {
  padding-left: var(--s-5);
}
.article-content li { margin-bottom: var(--s-2); }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-section);
  font-size: 1.1em;
  line-height: 1.5;
  font-style: normal;
  color: var(--text);
}
.article-content blockquote p { margin: 0; }
.article-content blockquote p + p { margin-top: var(--s-3); }
.article-content code {
  background: var(--bg-section);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}
.article-content pre {
  background: #0d1117;
  color: #c9d1d9;
  padding: var(--s-4);
  border-radius: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .article-content pre { font-size: 13px; padding: var(--s-3); }
}
.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.article-content img {
  border-radius: var(--radius);
  margin: var(--s-5) 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-content th, .article-content td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article-content th {
  background: var(--bg-section);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
@media (min-width: 740px) {
  .article-content table { display: table; }
  .article-content th { white-space: normal; }
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-7) 0;
}
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-content a:hover { background: var(--accent-soft); }

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.article-tags .tag {
  background: var(--bg-section);
  color: var(--text-muted);
  padding: 4px var(--s-3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.article-tags .tag:hover { background: var(--accent-soft); color: var(--accent); }

/* Source-stack box (editorial-stamp at end of article) */
.article-content hr + p strong:first-child,
.article-content hr ~ p:has(strong:first-child) {
  /* this is a styling target for the editorial-stamp paragraphs */
}

/* === List page (Briefings, Deep Dives, Konzepte, Voices, Tool-Radar, Tags) === */
.list-page {
  padding: var(--s-6) 0 var(--s-7);
}
.list-page > h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--text);
  margin-bottom: var(--s-5);
}
.list-page .list-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: var(--s-6);
}
.list-page .list-description p { margin: 0 0 var(--s-3); }
.list-page .list-description p:last-child { margin-bottom: 0; }
.list-page .grid { margin-top: var(--s-5); }
@media (max-width: 640px) {
  .list-page { padding: var(--s-5) 0 var(--s-6); }
  .list-page > h1 { font-size: 30px; }
  .list-page .list-description { font-size: 16px; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding: var(--s-4) 0 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: '/';
  color: var(--text-faint);
  margin: 0 var(--s-2);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-faint); margin: 0 var(--s-2); }
.breadcrumbs li > span[itemprop="name"] {
  color: var(--text-body);
  margin: 0;
}

/* === About card (replaces inline-styled <p> on home) === */
.about-card {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 720px;
}
.about-card p { margin: 0; }
.about-card p + p { margin-top: var(--s-3); }
.about-card .about-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.about-card .about-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* === Category Pills === */
.categories-section { padding: var(--s-7) 0; background: var(--bg-section); margin-top: var(--s-7); }
@media (max-width: 640px) {
  .categories-section { padding: var(--s-6) 0; margin-top: var(--s-6); }
}
.category-pills { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: var(--s-2) var(--s-4);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}
.category-pill:hover { border-color: var(--accent); color: var(--accent); }
.category-pill .pill-count { color: var(--text-faint); font-weight: 500; }

/* === Footer === */
.site-footer {
  background: var(--text);
  color: #d1d5db;
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-8);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-5);
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner {
    padding: 0 var(--gutter-mobile);
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .footer-col { padding-bottom: var(--s-4); border-bottom: 1px solid #374151; }
  .footer-col:last-of-type { border-bottom: 0; padding-bottom: 0; }
}
.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: #9ca3af; font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  color: #6b7280;
}
.footer-bottom .footer-disclaimer { font-size: 12px; color: #6b7280; max-width: 600px; }
@media (max-width: 600px) {
  .site-footer { padding: var(--s-7) 0 var(--s-5); margin-top: var(--s-7); }
  .footer-bottom { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); margin-top: var(--s-5); }
}

/* === Back to top / utility === */
#back-to-top {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  background: var(--text);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 40;
  font-size: 20px;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* === Animations === */
.fade-in { animation: fade-in 0.4s ease-out both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Editorial stamp box (rendered footer of pipeline-pieces) ===
   The pipeline-prompts append at the end of each piece:
     ---
     **Editorial-Stempel:** Curated YYYY-MM-DD ...
     **Quellen:** ...
   Style the paragraphs after the final <hr> as an editorial stamp box. */
.article-content > hr:last-of-type {
  border: 0;
  border-top: 1px solid var(--border);
  margin-top: var(--s-7);
  margin-bottom: 0;
}
.article-content > hr:last-of-type ~ p {
  background: var(--bg-section);
  border-left: 4px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  border-radius: 0;
}
.article-content > hr:last-of-type ~ p + p {
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}
.article-content > hr:last-of-type ~ p strong { color: var(--text); }
.article-content > hr:last-of-type ~ p a { color: var(--text-muted); text-decoration: underline; }

/* Hide the empty-style fallback */
.editorial-stamp {
  background: var(--bg-section);
  border-left: 4px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-6) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.editorial-stamp strong { color: var(--text); }
