/* FemVital Magazin — Shared Styles v1 · April 2026
 * Aligned with design-system/tokens/tokens.css (v2.1 Muted Aubergine)
 * Used by: magazin.html, artikel/*.html, all subpages.
 */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; background: #FAF7F2; color: #2d2b32; }

/* ─── Typography accents ─────────────────────────────────────────── */
.em-serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: #6b4a8e; letter-spacing: 0; }
.em-serif--ink { color: #2d2b32; }

.eyebrow { font-family: 'Figtree', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #8a8579; }
.eyebrow--brand { color: #6b4a8e; }
.eyebrow--ink { color: #2d2b32; }

/* ─── Containers ─────────────────────────────────────────────────── */
.col { max-width: 45rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.col-home { max-width: 64rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.col-wide { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) {
  .col { padding-left: 2rem; padding-right: 2rem; }
  .col-home { padding-left: 2rem; padding-right: 2rem; }
  .col-wide { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1280px) { .col-wide { padding-left: 3rem; padding-right: 3rem; } }

/* ─── Header & nav ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #e8e2d6; }
/* Fluid logo — scales from mobile to desktop, capped at ultrawide */
.site-header img[alt="FemVital"] { height: clamp(32px, 27.08px + 1.37vw, 52px) !important; width: auto !important; }
.site-nav a { position: relative; color: #2d2b32; font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; padding: 6px 0; transition: color 0.15s ease; }
.site-nav a:hover { color: #6b4a8e; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #6b4a8e; transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }

/* ─── Display type — FLUID via clamp() ────────────────────────────
 * Scales smoothly between 360px and 1920px viewport.
 * Formula: clamp(min, slope·100vw + intercept, max)
 */
.masthead-title { font-family: 'Figtree', system-ui, sans-serif; font-weight: 300; font-size: clamp(44px, 31.38px + 3.5vw, 88px); line-height: 1; letter-spacing: -0.02em; color: #2d2b32; }

.display-xxl { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: clamp(34px, 27.71px + 1.74vw, 60px); line-height: 1.08; letter-spacing: -0.025em; color: #2d2b32; }

.display-xl { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: clamp(32px, 25.54px + 1.79vw, 60px); line-height: 1.08; letter-spacing: -0.02em; color: #2d2b32; }

.display-l { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: clamp(26px, 22.31px + 1.03vw, 42px); line-height: 1.1; letter-spacing: -0.015em; color: #2d2b32; }

/* ─── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb { font-family: 'Figtree', system-ui, sans-serif; font-size: 12.5px; color: #8a8579; }
.breadcrumb a { color: #8a8579; transition: color 0.15s ease; }
.breadcrumb a:hover { color: #6b4a8e; }

/* ─── Editorial cover plates ─────────────────────────────────────── */
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.04); isolation: isolate; }
.cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6), transparent 65%); pointer-events: none; z-index: 1; }
.cover > * { position: relative; z-index: 2; }
.cover--zyklus       { background: linear-gradient(140deg, #F4EFE5 0%, #f0ebf4 100%); }
.cover--mikrobiom    { background: linear-gradient(140deg, #e8f3ec 0%, #F1EFE5 100%); }
.cover--intim        { background: linear-gradient(140deg, #f0ebf4 0%, #EDE2F0 100%); }
.cover--hormone      { background: linear-gradient(140deg, #fef3c7 0%, #F4EFE5 55%, #f0ebf4 100%); }
.cover--wechseljahre { background: linear-gradient(140deg, #F4EFE5 0%, #EEE9DD 100%); }
.cover--mental       { background: linear-gradient(140deg, #EEE9DD 0%, #f0ebf4 100%); }
.cover--neutral      { background: linear-gradient(140deg, #FDFCFA 0%, #F4EFE5 100%); }

.cover-mark { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(72px, 52.62px + 5.38vw, 156px); line-height: 0.9; color: rgba(107, 74, 142, 0.55); letter-spacing: -0.02em; }

.cover-label { position: absolute; top: 14px; left: 16px; font-family: 'Figtree', system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(45, 43, 50, 0.55); }
.cover-issue { position: absolute; bottom: 12px; right: 16px; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; color: #6b4a8e; font-size: 15px; line-height: 1; letter-spacing: -0.01em; }

/* Hero cover (bigger) — FLUID */
.hero-cover { aspect-ratio: 5 / 4; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.hero-cover .cover-mark { font-size: clamp(110px, 73.85px + 10.03vw, 270px); }

/* Article cover on article page (wide ratio) — FLUID */
.article-cover { aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.article-cover .cover-mark { font-size: clamp(110px, 73.85px + 10.03vw, 270px); }
.article-cover .cover-label { top: 18px; left: 22px; }
.article-cover .cover-issue { bottom: 14px; right: 22px; }

/* Wider cover variant for large screens */
.article-cover--wide { aspect-ratio: 21 / 9; }
@media (max-width: 767px) { .article-cover--wide { aspect-ratio: 16 / 9; } }

/* Hero image for real photographs (replacing cover plates) */
.article-hero-img { aspect-ratio: 21 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
@media (max-width: 767px) { .article-hero-img { aspect-ratio: 4 / 3; } }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cover with real photo — override the gradient-plate background */
.cover-img { background: #EEE9DD; padding: 0; border: 1px solid rgba(0,0,0,0.04); }
.cover-img::after { display: none; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.hero-cover-img { aspect-ratio: 5 / 4; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); overflow: hidden; }
.hero-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mini cover on related cards */
.mini-cover { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.mini-cover .cover-mark { font-size: 70px; }
@media (min-width: 640px) { .mini-cover .cover-mark { font-size: 90px; } }
.mini-cover .cover-label { top: 12px; left: 14px; font-size: 9.5px; }
.mini-cover .cover-issue { bottom: 10px; right: 14px; font-size: 13px; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Article card (homepage grid + related) ─────────────────────── */
.article-card { display: flex; flex-direction: column; gap: 14px; background: transparent; cursor: pointer; transition: transform 0.25s ease; }
.article-card:hover { transform: translateY(-2px); }
.article-card:hover .cover { box-shadow: 0 16px 40px rgba(0,0,0,0.09); }
.article-card .cover { transition: box-shadow 0.25s ease; }
.article-category { font-family: 'Figtree', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #6b4a8e; }
.article-title { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: clamp(20px, 17.23px + 0.77vw, 32px); line-height: 1.18; letter-spacing: -0.01em; color: #2d2b32; margin: 0; }
.article-title--sm { font-size: clamp(17px, 15.62px + 0.38vw, 23px); line-height: 1.22; }
.article-excerpt { font-family: 'Figtree', system-ui, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.55; color: #555; margin: 0; }
.article-meta { font-family: 'Figtree', system-ui, sans-serif; font-size: 12px; color: #8a8579; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: #cfc9bb; }

/* ─── Category pills ─────────────────────────────────────────────── */
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #FDFCFA; border: 1px solid #e8e2d6; font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #2d2b32; transition: all 0.2s ease; white-space: nowrap; }
.cat-pill:hover { border-color: #6b4a8e; color: #6b4a8e; background: #f0ebf4; }
.cat-pill .count { font-size: 11px; color: #8a8579; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; }
.cat-pill:hover .count { color: #6b4a8e; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; background: #6b4a8e; color: #fff; font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: -0.005em; box-shadow: 0 6px 18px -4px rgba(107,74,142,0.4); transition: all 0.2s ease; border: 0; cursor: pointer; }
.btn-primary:hover { background: #5a3d78; transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(107,74,142,0.5); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: transparent; color: #2d2b32; font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: 14px; border: 1px solid #e8e2d6; transition: all 0.2s ease; cursor: pointer; }
.btn-ghost:hover { border-color: #6b4a8e; color: #6b4a8e; }

.btn-link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Figtree', system-ui, sans-serif; font-weight: 600; font-size: 13.5px; color: #6b4a8e; letter-spacing: -0.005em; transition: gap 0.2s ease; }
.btn-link:hover { gap: 10px; }
.btn-link svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.btn-link:hover svg { transform: translateX(2px); }

/* ─── Article prose — FLUID, editorial-calibrated ────────────────── */
.prose { font-family: 'Figtree', system-ui, sans-serif; }
.prose p { font-size: clamp(17px, 16.31px + 0.19vw, 20px); line-height: 1.65; color: #2d2b32; margin-bottom: 1.25em; }
.prose h2 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: clamp(24px, 22.15px + 0.51vw, 32px); line-height: 1.22; letter-spacing: -0.015em; color: #2d2b32; margin-top: 2.5em; margin-bottom: 0.6em; }
.prose h3 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 600; font-size: clamp(19px, 17.85px + 0.32vw, 24px); line-height: 1.3; color: #2d2b32; margin-top: 1.8em; margin-bottom: 0.5em; }
.prose strong { font-weight: 600; color: #2d2b32; }
.prose em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.prose a { color: #6b4a8e; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #4d346a; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { font-size: clamp(17px, 16.31px + 0.19vw, 20px); line-height: 1.65; color: #2d2b32; margin-bottom: 0.4em; }

.dek { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(20px, 17.69px + 0.64vw, 28px); line-height: 1.4; color: #2d2b32; letter-spacing: 0; }

.byline { font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; color: #555; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.byline .dot { width: 3px; height: 3px; border-radius: 999px; background: #cfc9bb; }
.byline strong { font-weight: 600; color: #2d2b32; }

/* ─── Key Takeaways (pharma-soft evidence box) ──────────────────── */
.takeaways { background: #e8f3ec; border-left: 3px solid #15803d; border-radius: 10px; padding: 24px 24px 24px 28px; margin: 2.5em 0; }
@media (min-width: 640px) { .takeaways { padding: 32px 36px 32px 40px; } }
.takeaways-label { font-family: 'Figtree', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #15803d; margin-bottom: 14px; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { font-family: 'Figtree', system-ui, sans-serif; font-size: 15.5px; line-height: 1.55; color: #2d2b32; padding-left: 22px; position: relative; margin-bottom: 12px; }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: #15803d; border-radius: 2px; }

/* ─── FAQ accordion ─────────────────────────────────────────────── */
.faq { border-top: 1px solid #e8e2d6; }
.faq-item { border-bottom: 1px solid #e8e2d6; }
.faq-q { width: 100%; background: transparent; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; text-align: left; cursor: pointer; font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.35; color: #2d2b32; letter-spacing: -0.005em; }
.faq-q:hover { color: #6b4a8e; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; font-family: 'Figtree', system-ui, sans-serif; font-size: 15.5px; line-height: 1.65; color: #555; }
.faq-a > div { padding: 0 0 22px 0; }
.faq-item.open .faq-a { max-height: 800px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; transition: transform 0.3s ease; color: #6b4a8e; margin-top: 4px; }

/* ─── Pullquote (used on home + about) — FLUID ──────────────────── */
.pullquote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(24px, 19.31px + 1.31vw, 44px); line-height: 1.3; color: #2d2b32; letter-spacing: 0; margin: 0; }

/* ─── Newsletter card ───────────────────────────────────────────── */
.newsletter-card { background: #FDFCFA; border: 1px solid #e8e2d6; border-radius: 20px; padding: 40px 24px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .newsletter-card { padding: 56px 48px; } }
@media (min-width: 1024px) { .newsletter-card { padding: 72px 72px; } }
.newsletter-card::before { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 999px; background: radial-gradient(circle, #f0ebf4 0%, transparent 70%); pointer-events: none; }

.newsletter-input, .form-input, .form-textarea { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid #e8e2d6; background: #fff; font-family: 'Figtree', system-ui, sans-serif; font-size: 15px; color: #2d2b32; transition: border-color 0.2s ease; }
.form-input, .form-textarea { border-radius: 10px; }
.form-textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
.newsletter-input:focus, .form-input:focus, .form-textarea:focus { outline: none; border-color: #6b4a8e; }
.newsletter-input::placeholder, .form-input::placeholder, .form-textarea::placeholder { color: #8a8579; }

.form-label { font-family: 'Figtree', system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #555; margin-bottom: 6px; display: block; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer { background: #EEE9DD; padding: 64px 0 28px; border-top: 1px solid #e8e2d6; }
@media (min-width: 768px) { .site-footer { padding-top: 80px; } }

/* Masthead sign-off — logo at header scale for brand consistency */
.footer-masthead { text-align: center; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-masthead { margin-bottom: 64px; } }
.footer-brand { display: inline-block; }
.footer-brand img { height: 56px; width: auto; display: block; margin: 0 auto; }
@media (min-width: 640px) { .footer-brand img { height: 72px; } }
.footer-claim {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
  margin: 16px auto 0;
  max-width: 32ch;
}

/* Link grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
}
.footer-col h4 {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8579;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14px;
  color: #2d2b32;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #6b4a8e; }

/* Colophon row */
.footer-colophon {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid #e1d9c6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-colophon { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy { font-family: 'Figtree', sans-serif; font-size: 12px; color: #8a8579; margin: 0; }
.footer-signoff { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 13px; color: #8a8579; margin: 0; }

/* ─── Utility ───────────────────────────────────────────────────── */
.divider-line { display: block; width: 48px; height: 1px; background: #6b4a8e; }
.section { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 640px) { .section { padding-top: 56px; padding-bottom: 56px; } }
.section--lg { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .section--lg { padding-top: 80px; padding-bottom: 80px; } }
@media (min-width: 1024px) { .section--lg { padding-top: 104px; padding-bottom: 104px; } }

/* ─── Team / card grids for about/redaktion/beirat ──────────────── */
.team-card { background: #FDFCFA; border: 1px solid #e8e2d6; border-radius: 16px; padding: 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.team-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.team-avatar { width: 72px; height: 72px; border-radius: 999px; background: linear-gradient(140deg, #f0ebf4 0%, #F4EFE5 100%); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 28px; color: rgba(107, 74, 142, 0.75); margin-bottom: 16px; }
.team-name { font-family: 'Figtree', system-ui, sans-serif; font-weight: 500; font-size: 19px; color: #2d2b32; line-height: 1.2; margin: 0 0 2px; }
.team-role { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; color: #6b4a8e; font-size: 15px; margin: 0 0 12px; }
.team-bio { font-family: 'Figtree', system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; color: #555; margin: 0; }

/* ─── Cookie toggle (UI demo) ───────────────────────────────────── */
.cookie-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e8e2d6; }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row h3 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 600; font-size: 17px; color: #2d2b32; margin: 0 0 6px; }
.cookie-row p { font-family: 'Figtree', system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; color: #555; margin: 0; max-width: 560px; }
.toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; margin-top: 4px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; cursor: pointer; inset: 0; background: #e8e2d6; border-radius: 999px; transition: background 0.2s ease; }
.toggle .slider::before { content: ''; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 999px; transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle input:checked + .slider { background: #6b4a8e; }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { opacity: 0.55; cursor: not-allowed; }
