/* ============================================================
   Shared CSS for individual news article pages.
   Extracted from the ESPR template — applied via <link> in each
   article file. Standalone build script inlines this at deploy.
   ============================================================ */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg-primary) 70%, transparent); border-bottom: 1px solid var(--border-soft); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 16px var(--container-x-desktop); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
@media (max-width: 640px) { .nav-inner { padding: 14px var(--container-x-mobile); } }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary); }
.nav-logo svg { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.4)); }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: var(--fw-medium); }
.nav-links a { color: var(--text-secondary); transition: color var(--dur-micro) var(--ease-out); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }
@media (max-width: 920px) { .nav-links { display: none; } }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-full); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--dur-micro) var(--ease-out); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta { font-size: 13.5px; font-weight: var(--fw-semibold); padding: 10px 20px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--electric), var(--electric-2)); color: #fff; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(59, 130, 246, 0.55); }

/* ARTICLE HERO */
.article-hero { position: relative; padding: 130px 0 50px; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.article-hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(59, 130, 246, 0.16), transparent 60%), radial-gradient(ellipse 50% 50% at 80% 100%, rgba(123, 164, 208, 0.10), transparent 60%); filter: blur(60px) saturate(140%); }
.article-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 var(--container-x-desktop); }
.article-breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 22px; letter-spacing: 0.04em; }
.article-breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { color: var(--text-muted); margin: 0 8px; opacity: 0.6; }
.article-cat { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: var(--fw-bold); color: var(--electric-2); padding: 6px 12px; border: 1px solid rgba(96, 165, 250, 0.32); border-radius: var(--radius-full); background: color-mix(in srgb, var(--bg-elevated) 60%, transparent); margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.032em; font-weight: var(--fw-black); color: var(--text-primary); margin-bottom: 22px; }
.article-hero h1 .it { color: var(--electric-2); -webkit-text-fill-color: var(--electric-2); }
.article-lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--text-secondary); max-width: 720px; margin-bottom: 32px; }
.article-meta-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; padding-top: 24px; border-top: 1px solid var(--border); }
.article-meta-bar .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.6; }
.article-meta-bar a { color: var(--text-secondary); }
.article-meta-bar a:hover { color: var(--accent); }

/* ARTICLE BODY */
.article-content { padding: 60px 0 80px; }
.article-content-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--container-x-desktop); font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.article-content-inner > p { margin-bottom: 22px; }
.article-content-inner > p strong { color: var(--text-primary); font-weight: var(--fw-semibold); }
.article-content-inner h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: var(--fw-bold); letter-spacing: -0.022em; line-height: 1.2; color: var(--text-primary); margin: 48px 0 18px; }
.article-content-inner h3 { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: -0.018em; color: var(--text-primary); margin: 32px 0 14px; }
.article-content-inner ul, .article-content-inner ol { margin: 0 0 22px 22px; padding: 0; }
.article-content-inner ul li, .article-content-inner ol li { margin-bottom: 10px; padding-left: 8px; }
.article-content-inner ul li::marker { color: var(--electric-2); }
.article-content-inner blockquote { margin: 28px 0; padding: 22px 26px; border-left: 3px solid var(--electric-2); background: color-mix(in srgb, var(--bg-elevated) 80%, transparent); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 17px; font-style: normal; color: var(--text-primary); }
.article-content-inner blockquote strong { color: var(--text-primary); }
.article-content-inner a { color: var(--electric-2); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
.article-content-inner a:hover { color: var(--accent); }

/* KEY-FACT CALLOUT */
.key-fact { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 32px 0; padding: 22px 26px; background: var(--bg-elevated); border: 1px solid rgba(96, 165, 250, 0.20); border-radius: var(--radius-lg); }
.key-fact-num { font-size: clamp(36px, 4.4vw, 52px); font-weight: var(--fw-black); letter-spacing: -0.03em; line-height: 1; color: var(--electric-2); font-family: var(--font-sans); }
.key-fact-label { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.key-fact-label strong { color: var(--text-primary); }
/* Mobile: .key-fact is `auto 1fr`. The auto column sizes to its content, and most
   articles put a short figure there ("2,3%"). jrc-18 puts TEXT there ("3 horizontale")
   at 36px, so auto(~200px) + gap + the 1fr min-content floor ("produktuebergreifend:")
   = 418px on a 390px screen -> the whole page zooms out. Stack it and let the text
   column shrink below min-content. Found 2026-07-17 via text-node measurement. */
@media (max-width: 640px) {
  .key-fact { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .key-fact-num { font-size: 34px; }
  .key-fact-label { min-width: 0; }
}

/* SOURCES */
.article-sources { margin-top: 48px; padding: 28px 30px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article-sources h3 { font-size: 14px; font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.article-sources ol { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.7; }
.article-sources li { margin-bottom: 10px; color: var(--text-secondary); }
.article-sources a { color: var(--electric-2); text-decoration: none; font-weight: var(--fw-semibold); }
.article-sources a:hover { text-decoration: underline; }

/* RELATED ARTICLES */
.section-related { padding: 60px 0 80px; background: var(--bg-alt); border-top: 1px solid var(--border-soft); }
.related-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-x-desktop); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.related-head h2 { font-size: clamp(20px, 1.8vw, 26px); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--text-primary); }
.related-head a { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.related-head a:hover { color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: flex; flex-direction: column; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: all 0.28s var(--ease-luxe); text-decoration: none; color: inherit; }
.related-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.related-cover { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #081B33 0%, #0D2440 55%, #11305A 100%); border-bottom: 1px solid rgba(96, 165, 250, 0.10); overflow: hidden; }
.related-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(165, 200, 240, 0.10) 1px, transparent 1px); background-size: 16px 16px; }
.related-cover svg { position: relative; z-index: 1; width: 50%; max-width: 150px; color: rgba(190, 215, 245, 0.88); }
.related-cover .cat { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: var(--fw-bold); color: #93C5FD; }
.related-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.related-body h3 { font-size: 16px; font-weight: var(--fw-bold); letter-spacing: -0.018em; line-height: 1.3; color: var(--text-primary); margin-bottom: 10px; flex: 1; }
.related-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; }

/* NEWSLETTER */
.section-newsletter { padding: 70px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.newsletter-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 var(--container-x-desktop); }
.newsletter-eye { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--electric-2); margin-bottom: 14px; font-weight: var(--fw-semibold); }
.newsletter-inner h2 { font-size: clamp(26px, 3vw, 40px); font-weight: var(--fw-black); letter-spacing: -0.028em; line-height: 1.1; color: var(--text-primary); margin-bottom: 16px; }
.newsletter-inner h2 .it { color: var(--electric-2); }
.newsletter-inner p { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
@media (max-width: 540px) { .newsletter-form { flex-direction: column; } }
.newsletter-input { flex: 1; padding: 13px 18px; font-family: inherit; font-size: 15px; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-md); color: var(--text-primary); outline: none; transition: border-color 0.2s ease; }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-submit { padding: 13px 22px; font-family: inherit; font-size: 14px; font-weight: var(--fw-bold); background: linear-gradient(135deg, var(--electric), var(--electric-2)); color: #fff; border: none; border-radius: var(--radius-md); cursor: pointer; letter-spacing: 0.01em; box-shadow: 0 6px 22px rgba(59,130,246,0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.newsletter-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(59,130,246,0.55); }

/* FOOTER */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding: 32px 0; font-size: 13px; color: var(--text-muted); }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-x-desktop); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--text-secondary); transition: color 0.2s ease; }
.footer a:hover { color: var(--accent); }
