/* ==========================================================
   CIO-WISSEN.DE — Main Stylesheet
   Version 2.0 · Revamp März 2026
   Inspired by: Linear, Stripe Press, The Verge
   ========================================================== */

/* ──────────────────────────────────────────
   DESIGN TOKENS
   ────────────────────────────────────────── */
:root {
  /* Brand Colors — kept from v1, refined */
  --color-primary: #0F1117;
  --color-primary-light: #2D3142;
  --color-primary-muted: #5C6178;

  --color-secondary: #F0EDE8;
  --color-secondary-dark: #D9D4CC;
  --color-secondary-light: #F7F5F2;

  --color-accent: #C8842A;
  --color-accent-dark: #A66B1E;
  --color-accent-light: #D9A54E;
  --color-accent-bg: rgba(200, 132, 42, 0.06);

  --color-accent-secondary: #2A6F6F;
  --color-accent-secondary-dark: #1E5454;
  --color-accent-secondary-light: #3A8F8F;
  --color-accent-secondary-bg: rgba(42, 111, 111, 0.06);

  /* Neutral Scale */
  --color-obsidian: #0F1117;
  --color-graphit: #2D3142;
  --color-schiefer: #5C6178;
  --color-kiesel: #8E94A8;
  --color-stein: #C4C7D0;
  --color-sand: #E4E5EA;
  --color-kalk: #F4F4F6;
  --color-kreide: #FAFAFA;

  /* Semantic Colors */
  --color-text-primary: var(--color-obsidian);
  --color-text-secondary: var(--color-graphit);
  --color-text-muted: var(--color-schiefer);
  --color-text-disabled: var(--color-kiesel);

  --color-bg-page: #FFFFFF;
  --color-bg-surface: var(--color-kreide);
  --color-bg-card: #FFFFFF;
  --color-bg-elevated: #FFFFFF;
  --color-bg-muted: var(--color-kalk);

  --color-border-default: var(--color-sand);
  --color-border-light: #EEEFF2;
  --color-border-strong: var(--color-stein);

  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-dark);
  --color-link-visited: var(--color-accent-secondary);

  --color-success: #1A7F5A;
  --color-warning: #C8842A;
  --color-error: #C43528;
  --color-info: #2A6F6F;

  /* Category Colors */
  --cat-cloud: #2563EB;
  --cat-compliance: #7C3AED;
  --cat-cybersecurity: #DC2626;
  --cat-daten: #059669;
  --cat-beschaffung: #D97706;
  --cat-governance: #4F46E5;
  --cat-leadership: #0891B2;
  --cat-ki: #C026D3;

  /* Typography — Inter unified */
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes — tighter scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.04em;
  --tracking-widest: 0.08em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width-page: 1200px;
  --max-width-content: 680px;
  --max-width-narrow: 560px;
  --max-width-wide: 920px;
  --grid-margin: clamp(1.25rem, 4vw, 3rem);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 17, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 17, 23, 0.06), 0 1px 2px rgba(15, 17, 23, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 17, 23, 0.06), 0 2px 4px -2px rgba(15, 17, 23, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 17, 23, 0.06), 0 4px 6px -4px rgba(15, 17, 23, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 17, 23, 0.08), 0 8px 10px -6px rgba(15, 17, 23, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 17, 23, 0.04), 0 0 0 1px rgba(15, 17, 23, 0.03);
  --shadow-card-hover: 0 8px 24px rgba(15, 17, 23, 0.08), 0 0 0 1px rgba(15, 17, 23, 0.06);

  /* Transitions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;

  /* Z-Index */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 40;
  --z-modal: 50;
}

/* ──────────────────────────────────────────
   DARK MODE
   ────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #EDEEF0;
    --color-text-secondary: #B8BBC4;
    --color-text-muted: #8E94A8;
    --color-text-disabled: #5C6178;

    --color-bg-page: #0C0D12;
    --color-bg-surface: #13141A;
    --color-bg-card: #181920;
    --color-bg-elevated: #1E2028;
    --color-bg-muted: #22242C;

    --color-border-default: #2D3142;
    --color-border-light: #22242C;
    --color-border-strong: #5C6178;

    --color-accent: #D9A54E;
    --color-accent-dark: #C8842A;
    --color-accent-light: #E8BF72;
    --color-accent-bg: rgba(200, 132, 42, 0.08);

    --color-accent-secondary: #3A8F8F;
    --color-accent-secondary-bg: rgba(42, 111, 111, 0.08);

    --color-link: #D9A54E;
    --color-link-hover: #E8BF72;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-card-hover: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Category Colors — brighter for dark */
    --cat-cloud: #60A5FA;
    --cat-compliance: #A78BFA;
    --cat-cybersecurity: #F87171;
    --cat-daten: #34D399;
    --cat-beschaffung: #FBBF24;
    --cat-governance: #818CF8;
    --cat-leadership: #22D3EE;
    --cat-ki: #E879F9;
  }
}

/* ──────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-link-hover);
}

::selection {
  background: rgba(200, 132, 42, 0.15);
  color: var(--color-text-primary);
}

/* ──────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: 1.4em;
}

strong {
  font-weight: var(--weight-semibold);
}

/* ──────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────── */
.container {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

.container--narrow {
  max-width: var(--max-width-content);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ──────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--color-border-light);
}

@media (prefers-color-scheme: dark) {
  .site-nav {
    background-color: rgba(12, 13, 18, 0.82);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links > li > a,
.nav-dropdown-trigger {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.nav-links > li > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--color-text-primary);
  background-color: var(--color-bg-muted);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  margin-left: 2px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-default),
              visibility var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.nav-hamburger:hover {
  background-color: var(--color-bg-muted);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-default),
              opacity var(--duration-normal) var(--ease-default);
  margin: 2px 0;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-page);
    padding: var(--space-4) var(--grid-margin);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    z-index: var(--z-overlay);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links > li > a,
  .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-3);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    min-height: 48px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    padding: 0 0 var(--space-2) var(--space-4);
    min-width: auto;
    background: transparent;
  }

  .nav-dropdown-menu a {
    padding: var(--space-3) var(--space-3);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-dropdown-trigger::after {
    display: none;
  }
}

/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 132, 42, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(42, 111, 111, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 132, 42, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 50%, rgba(42, 111, 111, 0.08) 0%, transparent 50%);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
  line-height: 1.05;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-normal);
  position: relative;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-10);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-tagline {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }
}

/* ──────────────────────────────────────────
   SECTION HEADINGS
   ────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.section-heading a {
  color: inherit;
  text-decoration: none;
}

.section-heading a:hover {
  color: var(--color-accent);
}

/* ──────────────────────────────────────────
   CATEGORY LABEL (Pill Badge)
   ────────────────────────────────────────── */
.category-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-accent-bg);
  color: var(--color-accent);
  line-height: 1.4;
}

.category-label a {
  color: inherit;
  text-decoration: none;
}

.category-label a:hover {
  opacity: 0.8;
}

/* ──────────────────────────────────────────
   FEATURED ARTICLE
   ────────────────────────────────────────── */
.featured-article {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space-16);
  transition: box-shadow var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
  border: 1px solid var(--color-border-light);
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
}

.featured-article:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.featured-article-content {
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article .category-label {
  margin-bottom: var(--space-4);
}

.featured-article h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  margin-top: 0;
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.featured-article p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 640px;
}

.featured-article .card-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .featured-article-content {
    padding: var(--space-6);
  }

  .featured-article h2 {
    font-size: var(--text-2xl);
  }
}

/* ──────────────────────────────────────────
   ARTICLE CARDS
   ────────────────────────────────────────── */
.articles-section {
  margin-bottom: var(--space-16);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.article-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card .category-label {
  margin-bottom: var(--space-3);
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-top: 0;
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.article-card h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.article-card:hover h3 a {
  color: var(--color-accent);
}

.article-card .card-description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.article-card .card-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-disabled);
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

@media (max-width: 640px) {
  .article-card {
    padding: var(--space-5);
  }
}

/* ──────────────────────────────────────────
   ARTICLE PAGE LAYOUT
   ────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-16);
  max-width: calc(var(--max-width-content) + 260px + var(--space-16));
  margin: 0 auto;
  padding: var(--space-10) var(--grid-margin) var(--space-20);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-top: var(--space-6);
  }
}

/* Article Header */
.article-header {
  margin-bottom: var(--space-10);
}

.article-header .category-label {
  margin-bottom: var(--space-4);
}

.article-header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

@media (max-width: 640px) {
  .article-header h1 {
    font-size: var(--text-3xl);
  }
}

.article-subline {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.article-meta {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.article-meta span:not(:last-child)::after {
  content: '·';
  margin-left: var(--space-2);
  opacity: 0.4;
}

/* Executive Summary */
.executive-summary {
  background: var(--color-bg-muted);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-10);
}

.executive-summary h2 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.executive-summary ul {
  list-style: none;
  padding: 0;
}

.executive-summary li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.executive-summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

.executive-summary li:last-child {
  margin-bottom: 0;
}

/* Article Body */
.article-body {
  max-width: var(--max-width-content);
}

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-top: var(--space-16);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.article-body p {
  margin-bottom: 1.4em;
  line-height: var(--leading-relaxed);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.4em;
  padding-left: var(--space-6);
}

.article-body li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.article-body a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(200, 132, 42, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) var(--ease-default);
}

.article-body a:hover {
  text-decoration-color: var(--color-link-hover);
}

/* Blockquotes */
.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-accent-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables — responsive */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

.article-body .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-default);
}

.article-body .table-wrapper table {
  margin: 0;
}

.article-body thead th {
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-bottom: 1px solid var(--color-border-default);
}

.article-body tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

/* Code */
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-muted);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
}

.article-body pre {
  background: var(--color-obsidian);
  color: #D1D5DB;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  line-height: var(--leading-normal);
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

/* HR */
.article-body hr {
  border: none;
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-12) 0;
}

/* ──────────────────────────────────────────
   TABLE OF CONTENTS (Sidebar)
   ────────────────────────────────────────── */
.article-sidebar {
  position: relative;
}

.toc {
  position: sticky;
  top: calc(60px + var(--space-8));
}

.toc-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.toc-list {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--color-border-light);
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: var(--leading-normal);
  border-left: 2px solid transparent;
  margin-left: -1px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--duration-fast) var(--ease-default);
}

.toc-list a:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-muted);
}

.toc-list a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-bg);
}

.toc-list .toc-h3 {
  padding-left: var(--space-8);
}

@media (max-width: 1024px) {
  .article-sidebar {
    order: -1;
  }

  .toc {
    position: static;
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }

  .toc-list {
    border-left: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .toc-list a {
    border-left: none;
    margin-left: 0;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    background: var(--color-bg-page);
  }

  .toc-list a:hover,
  .toc-list a.active {
    background: var(--color-accent-bg);
  }

  .toc-list .toc-h3 {
    padding-left: var(--space-3);
  }
}

/* ──────────────────────────────────────────
   RELATED ARTICLES
   ────────────────────────────────────────── */
.related-articles {
  margin-top: var(--space-20);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border-light);
}

.related-articles h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-top: 0;
  margin-bottom: var(--space-8);
}

@media (max-width: 640px) {
  .related-articles .article-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
  }

  .related-articles .article-card {
    scroll-snap-align: start;
  }
}

/* ──────────────────────────────────────────
   BREADCRUMBS
   ────────────────────────────────────────── */
.breadcrumbs {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
  max-width: calc(var(--max-width-content) + 260px + var(--space-16));
  margin: 0 auto;
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  margin: 0 var(--space-2);
  opacity: 0.4;
}

/* ──────────────────────────────────────────
   CATEGORY PAGE
   ────────────────────────────────────────── */
.category-header {
  padding: var(--space-16) 0 var(--space-10);
}

.category-header h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-3);
}

.category-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .category-header {
    padding: var(--space-10) 0 var(--space-6);
  }

  .category-header h1 {
    font-size: var(--text-3xl);
  }
}

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.site-footer {
  background: var(--color-obsidian);
  color: var(--color-kiesel);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-inner {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.footer-entity {
  font-size: var(--text-xs);
  color: var(--color-schiefer);
  line-height: var(--leading-relaxed);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-kiesel);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: var(--color-schiefer);
  text-align: center;
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ──────────────────────────────────────────
   LEGAL PAGES
   ────────────────────────────────────────── */
.legal-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-12) var(--grid-margin) var(--space-20);
}

.legal-page h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-8);
}

.legal-page h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-page p, .legal-page li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.legal-page ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-page a {
  color: var(--color-link);
}

/* ──────────────────────────────────────────
   UTILITIES
   ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* ──────────────────────────────────────────
   MOBILE GLOBAL OVERRIDES
   ────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --grid-margin: 1rem;
  }

  body {
    font-size: 0.9375rem;
  }

  .container {
    padding: 0 1rem;
  }
}
