/* =====================================================================
   components.css · Stile für die wiederverwendbaren Astro-Komponenten
   (astro/src/components/*) und die fork-eigenen Landings (club-pages/<id>/).

   BEWUSST EINE RELATIVE, GLOBALE Stylesheet-Schicht – KEINE Astro-`<style>`-
   Scoping. Astro bündelt scoped/component-styles nach `/_astro/*.css` mit
   ABSOLUTEM Pfad; das bricht, sobald ein Build in einen Unterordner deployt
   wird (Demo-Galerie: /musterverein/, /klettern/, /rudern/). Wie styles.css
   wird diese Datei daher relativ (assets/css/components.css) eingebunden und
   bleibt base-agnostisch. Klassennamen sind eindeutig genug, dass keine
   Scoping-Kollision entsteht. MUSS nach styles.css geladen werden.
   ===================================================================== */

/* ---- SectionHeading.astro ------------------------------------------------ */
.section-head[data-invert] h2 { color: var(--text-invert, #fff); }
.section-head[data-invert] p { color: var(--text-invert-soft, #c9d1d9); }

/* ---- FeatureCards.astro -------------------------------------------------- */
.fc-grid { display: grid; gap: 22px; }
.fc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .fc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fc-grid { grid-template-columns: 1fr; } }

/* ---- StatBand.astro ----------------------------------------------------- */
.statband { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 18px; }
.statband__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 22px 20px; text-align: center; }
.statband__item strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1; color: var(--accent); }
.statband__item span { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--text-soft); }
@media (max-width: 620px) { .statband { grid-template-columns: 1fr 1fr; } }

/* ---- PriceTable.astro --------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.price-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-6px); }
.price-card__flag { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card__price { margin-bottom: 18px; }
.price-card__price strong { font-family: var(--font-display); font-size: 2.1rem; color: var(--text); }
.price-card__price span { color: var(--text-soft); font-size: 0.92rem; margin-left: 4px; }
.price-card__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; flex: 1; }
.price-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--text-soft); }
.price-card__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.price-card__note { font-size: 0.82rem; color: var(--text-soft); margin: -10px 0 16px; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } .price-card.is-featured { transform: none; } }

/* ---- Timeline.astro ----------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 0 0 28px 32px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline__year { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.05rem; padding-top: 1px; }
.timeline__body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.timeline__body p { color: var(--text-soft); font-size: 0.96rem; }
@media (max-width: 560px) { .timeline__item { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Gallery.astro ------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__tile { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.gallery--masonry .gallery__tile:nth-child(3n + 1) { aspect-ratio: 3 / 4; }
.gallery--masonry .gallery__tile:nth-child(4n) { aspect-ratio: 16 / 10; }
.gallery__art { width: 100%; height: 100%; display: block; }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; }
.gallery__cap strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.gallery__cap span { font-size: 0.82rem; opacity: 0.85; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---- AnchorNav.astro ---------------------------------------------------- */
.anchornav { position: sticky; top: 72px; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.anchornav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.anchornav__inner::-webkit-scrollbar { display: none; }
.anchornav__link { flex: none; padding: 7px 15px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--text-soft); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.anchornav__link:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.anchornav__link.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---- DemoSwitcher.astro (Übersicht-Link) -------------------------------- */
.demo-switch__overview { font-weight: 600; margin-right: 8px; }

/* =====================================================================
   Klettern – Onepager-Landing (club-pages/klettern/start.astro)
   Lokales Vollton-Dunkel: übersteuert die (hellen) Theme-Tokens NUR im
   .onepager-Teilbaum. Alle Kind-Komponenten erben das per CSS-Custom-Property.
   ===================================================================== */
.onepager {
  --paper: #15181e;
  --sand: #0f1216;
  --mist: #1b1f26;
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef2e6;
  --text-soft: #9aa399;
  --accent: #a3e635;
  --accent-dark: #65a30d;
  --accent-bright: #bef264;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  background: #0d0f12;
  color: var(--text);
}
.onepager .btn--primary { background: var(--accent); color: #0d0f12; box-shadow: 0 12px 26px rgba(163, 230, 53, 0.28); }
.onepager .btn--primary:hover { background: var(--accent-bright); }
.onepager .btn--outline { color: var(--text); border-color: var(--line); }
.onepager .btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.onepager .card__icon { background: linear-gradient(135deg, rgba(163, 230, 53, 0.18), rgba(163, 230, 53, 0.06)); color: var(--accent); }

.op-section { padding-block: clamp(54px, 8vw, 96px); scroll-margin-top: 130px; }
.op-section--tight { padding-block: clamp(34px, 5vw, 56px); }
.op-section--alt { background: var(--sand); }
.op-spacer { height: 34px; }
.op-h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-top: 12px; }
.op-sub { color: var(--text-soft); font-size: 1.08rem; max-width: 560px; margin-top: 10px; }
.op-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.op-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 78% -10%, #1f2b12 0%, #0d0f12 58%); }
.op-hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); background: rgba(163, 230, 53, 0.22); top: -200px; right: -120px; }
.op-hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; padding-block: clamp(56px, 9vw, 104px); }
.op-hero__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--accent-bright); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.op-hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.2); }
.op-hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; margin: 18px 0 0; letter-spacing: -0.01em; }
.op-hero h1 .hl { color: var(--accent); }
.op-hero__lead { color: var(--text-soft); font-size: 1.16rem; max-width: 480px; margin: 20px 0 30px; }
.op-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.op-hero__art svg { width: 100%; height: auto; max-width: 340px; margin-left: auto; display: block; }

.op-cta { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--mist), var(--sand)); padding: clamp(36px, 6vw, 64px); }
.op-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.op-cta p { color: var(--text-soft); max-width: 520px; margin: 14px auto 26px; font-size: 1.08rem; }
.op-cta .op-hero__cta { justify-content: center; }

@media (max-width: 860px) {
  .op-hero__inner { grid-template-columns: 1fr; }
  .op-hero__art { display: none; }
}

/* =====================================================================
   Rudern – Magazin-/Editorial-Landing (club-pages/rudern/start.astro)
   Helles Design direkt aus theme.rudern.css (kein lokales Token-Override).
   ===================================================================== */
.mag { background: var(--paper); }
.mag-section { padding-block: clamp(52px, 8vw, 100px); }
.mag-section--sand { background: var(--sand); }
.mag-kicker { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.mag-hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.mag-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.mag-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.04; letter-spacing: -0.015em; margin: 16px 0 0; }
.mag-hero__title em { color: var(--accent); font-style: italic; }
.mag-hero__lead { font-size: 1.18rem; color: var(--text-soft); max-width: 460px; margin: 22px 0 30px; }
.mag-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mag-hero__media { margin: 0; }
.mag-hero__media svg { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow); }
.mag-hero__media figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-soft); font-style: italic; }

.mag-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.mag-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; color: var(--text); margin: 0; padding-left: 24px; border-left: 3px solid var(--accent); }

.mag-history { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mag-history__head { position: sticky; top: 96px; }

.mag-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.mag-news-head .section-head { margin-bottom: 0; }

.mag-section--cta { background: var(--gradient-night); }
.mag-cta { text-align: center; max-width: 620px; margin-inline: auto; }
.mag-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text-invert); }
.mag-cta p { color: var(--text-invert-soft); font-size: 1.1rem; margin: 14px 0 26px; }

@media (max-width: 880px) {
  .mag-hero__grid, .mag-intro, .mag-history { grid-template-columns: 1fr; }
  .mag-history__head { position: static; }
  .mag-hero__media { order: -1; }
}
