/* The HorseLoop — Artikel-Template */
:root {
  --bg: #0A1F16;
  --bg-soft: #102A1F;
  --bg-warm: #163828;
  --ink: #ECFDF5;
  --ink-soft: #D1FAE5;
  --muted: #8FB3A1;
  --muted-2: #6B8C7A;
  --line: #1E3B2C;
  --accent: #6CFFC9;
  --accent-deep: #A6FFDC;
  --danger: #F4A672;
  --ok: #A7D98A;

  --font-display: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --pad-x: clamp(20px, 5vw, 80px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }

/* Top bar */
.article-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 22, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.article-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
}
.article-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .15s;
}
.article-nav__back:hover { color: var(--accent); text-decoration: none; }
.article-nav__back svg { width: 16px; height: 16px; }
.article-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.article-nav__brand__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-variation-settings: "SOFT" 40, "opsz" 40;
}
.article-nav__brand__wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.article-nav__brand svg { width: 26px; height: 22px; color: var(--ink); }

/* Hero */
.article-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 32px;
}
.article-hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.article-hero__kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}
.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 80, "opsz" 144, "wght" 450;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.article-hero__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.article-hero__lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-hero__meta b { color: var(--ink); font-weight: 500; letter-spacing: 0.1em; }
.article-hero__meta__item { display: flex; align-items: center; gap: 8px; }
.article-hero__meta__item svg { width: 14px; height: 14px; color: var(--accent); }

.article-hero__image {
  margin: 32px 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-warm);
}
.article-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Body */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 80px;
}

/* TL;DR Box */
.tldr {
  background: linear-gradient(135deg, rgba(108, 255, 201, 0.08) 0%, rgba(108, 255, 201, 0.02) 100%);
  border: 1px solid rgba(108, 255, 201, 0.2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin: 0 0 48px;
  position: relative;
}
.tldr__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tldr__label::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
}
.tldr__text {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  font-variation-settings: "SOFT" 70, "opsz" 24;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

/* Prose */
.prose h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 70, "opsz" 60;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-variation-settings: "SOFT" 60, "opsz" 36;
  font-weight: 500;
  margin: 32px 0 12px;
  color: var(--ink);
}
.prose p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
  float: left;
  margin: 4px 12px 0 -2px;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 400;
  color: var(--accent);
}
.prose ul, .prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}
.prose ul li, .prose ol li {
  margin-bottom: 8px;
}
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  font-variation-settings: "SOFT" 80, "opsz" 36;
  font-style: italic;
  color: var(--ink);
  text-wrap: pretty;
}

/* "Das Wichtigste in Kürze" */
.keypoints {
  margin-top: 56px;
  padding: 36px 36px 32px;
  background: #04130C;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}
.keypoints__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  font-variation-settings: "SOFT" 70, "opsz" 36;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.keypoints__title em { font-style: italic; color: var(--accent); }
.keypoints__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.keypoints__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.keypoints__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.keypoints__list li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  position: relative;
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* Related articles */
.related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 80px;
  border-top: 1px solid var(--line);
}
.related__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-variation-settings: "SOFT" 70, "opsz" 60;
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--ink);
}
.related__title em { font-style: italic; color: var(--accent); }
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  transition: all .3s;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5), 0 0 28px -8px rgba(108,255,201,.2);
  text-decoration: none;
}
.related-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-warm);
}
.related-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.related-card:hover .related-card__media img { transform: scale(1.05); }
.related-card__body {
  padding: 18px 20px 20px;
}
.related-card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.related-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-variation-settings: "SOFT" 60, "opsz" 36;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* Footer */
.article-foot {
  padding: 32px var(--pad-x) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-foot a { color: var(--muted); }
.article-foot a:hover { color: var(--accent); }

/* ───────────── Article-Hero Bookmark (light pill) ───────────── */
.article-bm {
  margin: 0 0 20px;
  display: flex;
  justify-content: flex-start;
}
.article-hero .bm-btn.bm-btn--lg {
  --bm-size: auto;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 9px 18px 9px 14px;
  gap: 8px;
  background: var(--bg-soft, #FFFFFF);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 2px 10px -6px rgba(15, 42, 31, 0.15);
}
.article-hero .bm-btn.bm-btn--lg:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  color: var(--accent-deep, var(--accent));
}
.article-hero .bm-btn.bm-btn--lg.is-on {
  background: color-mix(in oklch, var(--accent) 14%, #FFFFFF);
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  color: var(--accent-deep, var(--accent));
}
.article-hero .bm-btn.bm-btn--lg svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  transition: fill 0.18s ease;
}
.article-hero .bm-btn.bm-btn--lg.is-on svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.article-hero .bm-btn.bm-btn--lg .bm-btn__label {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .article-hero__title { font-size: clamp(32px, 8vw, 52px); }
  .article-hero__lede { font-size: 18px; }
  .related__grid { grid-template-columns: 1fr; }
  .prose p:first-of-type::first-letter { font-size: 48px; }
  .keypoints { padding: 28px 24px; }
  .tldr { padding: 22px 24px; }
}
