/* =========================
   Base / Tokens
========================= */
:root {
  color-scheme: light dark; /* better form controls in both modes */
  --bg: #ffffff;
  --text: #101418;
  --muted: #5b6673;
  --brand: #0b3b8f;
  --brand-600: #0a2f72;
  --brand-50: #eaf1fb;
  --surface: #f6f8fb;
  --ring: 0 0 0 3px rgba(11, 59, 143, .15);
  --radius: 14px;

  /* Fluid type */
  --step--1: clamp(.875rem, .80rem + .2vw, .95rem);
  --step-0: clamp(1rem, .9rem + .3vw, 1.1rem);
  --step-1: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.5vw, 3rem);

  /* Cookie banner design tokens (derived from your palette) */
  --cc-bg: color-mix(in oklab, var(--text) 6%, var(--bg));
  --cc-fg: var(--text);
  --cc-accent: var(--brand);
  --cc-muted: var(--muted);
  --cc-border: color-mix(in oklab, var(--text) 15%, transparent);
}

html[data-theme="dark"] {
  --bg: #0c0f12;
  --text: #e6e8eb;
  --muted: #9aa7b5;
  --brand: #7aa2ff;
  --brand-600: #5b82df;
  --brand-50: #0f1520;
  --surface: #12171d;

  /* Dark-tuned cookie tokens */
  --cc-bg: #0f1114;
  --cc-fg: #e6e8eb;
  --cc-accent: var(--brand);
  --cc-muted: var(--muted);
  --cc-border: color-mix(in oklab, var(--text) 22%, transparent);
}

.theme-toggle {
  margin-left: auto;  /* pushes it to the far right */
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .75rem;
  border-radius: .5rem;
  border: 1px solid var(--border, #ccc);
  background: var(--card, #f9f9f9);
  cursor: pointer;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 400 var(--step-0)/1.55 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

img, video { max-width: 100%; display: block; }
.container { width: min(1150px, 92%); margin-inline: auto; }
.align-center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: var(--brand); color: #fff; padding: .5rem .75rem; border-radius: .5rem;
}

/* =========================
   Header / Nav
========================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 15%, transparent);
  transition: border-color .2s ease, background .2s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 32px; height: 32px; }
.brand-text { font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: none; padding: .35rem; border-radius: .5rem; }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

.menu { display: flex; gap: 1rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--text); padding: .5rem .65rem; border-radius: .5rem; }
.menu a:hover { background: var(--surface); }
.icon-btn { background: none; border: 1px solid color-mix(in oklab, var(--text) 15%, transparent); padding: .4rem; border-radius: .6rem; }
.icon-btn:hover { background: var(--surface); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .menu {
    position: fixed; inset: 0 0 0 30%;
    transform: translateX(100%); transition: transform .3s ease;
    flex-direction: column; padding: 5rem 1.25rem; gap: .25rem;
    background: var(--bg);
  }
  .menu[data-open="true"] { transform: translateX(0); }
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  text-decoration: none;
  background: transparent; /* transparent fill */
  color: #fff; /* text color */
  padding: .8rem 1.1rem;
  border-radius: .7rem;
  font-weight: 600;
  border: 2px solid currentColor; /* visible border */
  transition: transform .06s ease, background .2s ease, border-color .2s ease, color .2s ease;
  position: relative;
}
.btn:hover {
  transform: translateY(-1px);
  background: currentColor; /* fill on hover */
  color: #fff; /* text switches to white */
  background: rgba(255, 255, 255, 0.2); /* light overlay instead of solid */
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--text) 20%, transparent);
}
.btn--small {
  padding: .55rem .8rem;
  font-size: var(--step--1);
}

/* Hero button adjustments */
.hero-actions {
  display: inline-flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* === Hero Button Size Adjustments === */
.hero-actions .btn {
  font-size: 2rem;
  padding: 1.2rem 2rem;
  border-radius: 0.9rem;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  min-height: clamp(60svh, 60svh + 12vw, 88svh);
  display: grid;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom:-16rem;
  display: grid;
  place-items: center;
  gap: 1rem;
}

@media (max-width: 640px){
  .hero-content{ bottom: 1.5rem; }
}

/* Removed dark overlay for a clear image */
.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  display: grid;
  align-content: center;
  min-height: inherit;
  text-align: center;
  gap: 1rem;
}
.hero h1 { font-size: var(--step-3); letter-spacing: .2px; }
.hero p { font-size: var(--step-1); color: #e6e9ef; }
.hero-actions {
  display: inline-flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   About/Start Section
========================= */
#start {
  margin-top: 6rem; /* add spacing above the About/Start section */
}

/* =========================
   Sections / Layout
========================= */
.section { padding: clamp(3rem, 5vw, 5rem) 0; }
.section--alt { background: var(--surface); }
.section--split .grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 980px) { .section--split .grid-2 { grid-template-columns: 1fr; } }

.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: var(--step-2); margin-bottom: .4rem; color: var(--text); }
.section-header p { color: var(--muted); }

.stack > * + * { margin-top: 1rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700;
}

.media-card { overflow: hidden; border-radius: var(--radius); box-shadow: 0 10px 35px rgba(0,0,0,.08); background: var(--bg); }
.media-card img { width: 100%; height: auto; display: block; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 780px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* Center the cards in the Wie es geht section */
#wie-es-geht .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* center header + card grid */
}

#wie-es-geht .card-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1000px; /* keep grid contained */
}

#wie-es-geht .card {
  flex: 0 1 280px;
  background: #222;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
}

#wie-es-geht .card-body {
  text-align: left; /* reset text alignment inside cards */
}
/* FIX: truncated rule restored */
.card {
  background: var(--bg);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  border-radius: var(--radius);
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr;
}
.card-media img { aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1rem; display: grid; gap: .6rem; }
.card h3 { margin: 0; }
.card-link { text-decoration: none; color: var(--brand); font-weight: 600; }

/* Research highlights */
.highlight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: 1fr; } }
.highlight {
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  padding: 1.25rem; border-radius: var(--radius); background: var(--bg);
}
.text-link { color: var(--brand); text-decoration: none; }

/* Masonry-ish gallery */
.masonry {
  columns: 3 260px; column-gap: 1rem;
}
.masonry figure { break-inside: avoid; margin: 0 0 1rem 0; border-radius: var(--radius); overflow: clip; }
.masonry img { width: 100%; height: auto; display: block; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg); border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.stat-num { font-size: var(--step-2); font-weight: 800; color: var(--brand); }
.stat-label { color: var(--muted); }

/* CTA */
.section--cta { background: linear-gradient(180deg, var(--brand-50), transparent); }
.cta { text-align: center; display: grid; gap: 1rem; }
.cta p { color: var(--muted); }

/* Forms */
.form { background: var(--bg); border: 1px solid color-mix(in oklab, var(--text) 12%, transparent); border-radius: var(--radius); padding: 1rem; }
.form-row { display: grid; gap: .4rem; margin-bottom: .75rem; }
label { font-weight: 600; }
input, textarea {
  font: inherit; color: inherit; background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--text) 15%, transparent);
  border-radius: .6rem; padding: .7rem .75rem;
}
input:focus, textarea:focus { outline: none; box-shadow: var(--ring); }
.error { color: #b4003b; font-size: .9rem; min-height: 1.1em; }
.form-success { margin-top: .5rem; color: #185b1d; }

/* Newsletter */
.newsletter { display: grid; gap: .5rem; }
.newsletter-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
@media (max-width: 520px) { .newsletter-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid color-mix(in oklab, var(--text) 12%, transparent); padding: 2rem 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-nav { display: grid; grid-auto-flow: column; gap: 1rem; }
.footer-nav a { text-decoration: none; color: var(--text); }
.footer-brand img { width: 36px; height: 36px; margin-bottom: .4rem; }
.back-to-top {
  position: absolute; right: 1rem; bottom: 1rem; text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--text) 15%, transparent); padding: .5rem .6rem; border-radius: .6rem;
  opacity: .85;
}

/* Center the entire section horizontally */
#start .container {
  display: flex;
  justify-content: center; /* centers horizontally */
}

/* Center the text inside */
#start .stack {
  text-align: center;
  max-width: 800px;
}
/* =========================
   Animations / Reveal
========================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); will-change: opacity, transform; }
  .reveal[data-visible="true"] { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
}

/* =========================
   Cookie Consent (merged)
   - Uses site tokens
   - High z-index to sit over header/hero
========================= */
.cc-hidden { display: none !important; }

.cc-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  background: var(--cc-bg);
  color: var(--cc-fg);
  border: 1px solid var(--cc-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 1rem;
  z-index: 9999; /* above sticky header (1000) and hero */
  max-width: 720px;
  margin: 0 auto;
}
.cc-banner h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.cc-banner p { margin: 0 0 .75rem; color: var(--cc-muted); line-height: 1.4; }
.cc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cc-btn {
  padding: .6rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--cc-border);
  color: var(--cc-fg);
  cursor: pointer;
  background: color-mix(in oklab, var(--bg) 10%, #0000);
}
.cc-btn.primary {
  background: var(--cc-accent);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.cc-btn.text {
  background: transparent;
  border: none;
  color: var(--cc-muted);
  text-decoration: underline;
}
.cc-link { color: var(--cc-accent); text-decoration: underline; }

/* Modal + backdrop */
.cc-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
  display: none;
}
.cc-modal {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 10000;
}
.cc-modal .card {
  width: min(680px, 92vw);
  background: var(--cc-bg);
  color: var(--cc-fg);
  border: 1px solid var(--cc-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 1rem 1rem;
}
.cc-modal h3 { margin: 0 0 .5rem; }
.cc-desc { color: var(--cc-muted); margin-bottom: .75rem; }
.cc-list { border-top: 1px solid var(--cc-border); margin-top: .5rem; padding-top: .5rem; }
.cc-item {
  display: flex; justify-content: space-between; align-items: start; gap: .5rem;
  padding: .6rem 0; border-bottom: 1px solid var(--cc-border);
}
.cc-item:last-child { border-bottom: none; }
.cc-item .meta { max-width: 75%; }
.cc-item h4 { margin: 0 0 .25rem; font-size: 1rem; }
.cc-item p { margin: 0; color: var(--cc-muted); font-size: .95rem; }

/* Toggle switch */
.cc-switch { display: inline-flex; align-items: center; gap: .5rem; }
.cc-switch input[type="checkbox"] {
  width: 42px; height: 22px; appearance: none; background: color-mix(in oklab, var(--text) 20%, transparent);
  border-radius: 999px; position: relative; outline: none; cursor: pointer; transition: background .2s ease;
}
.cc-switch input[type="checkbox"]::after {
  content: ""; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 999px; transition: transform .2s ease;
}
.cc-switch input[type="checkbox"]:checked { background: var(--cc-accent); }
.cc-switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.cc-switch .lock { font-size: .85rem; color: var(--cc-muted); }

/* Modal actions */
.cc-modal .actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .75rem; }

/* Manage preferences button (in footer) */
.cc-manage {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 9990;
  background: color-mix(in oklab, var(--bg) 5%, #0000);
  color: var(--text);
  border: 1px solid var(--cc-border);
  padding: .5rem .75rem;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  backdrop-filter: saturate(1.1) blur(4px);
}

/* Responsive tweaks */
@media (max-width: 520px){
  .cc-actions { flex-direction: column; align-items: stretch; }
  .cc-btn { width: 100%; text-align: center; }
}

/* =========================
   FAQ carousel styles
========================= */
#faq .highlight-grid {
  display: flex;
  overflow: hidden;
  position: relative;
}

#faq .highlight {
  flex: 0 0 100%;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateX(100%);
}

#faq .highlight.active {
  opacity: 1;
  transform: translateX(0);
}

#faq .highlight.exit-left {
  opacity: 0;
  transform: translateX(-100%);
}

#faq .highlight.exit-right {
  opacity: 0;
  transform: translateX(100%);
}

#faq .faq-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

#faq .faq-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

#faq .faq-btn:hover {
  background: var(--brand-600);
}

/* Change FAQ section background only */
#faq.section {
  background-color: #2c0250;
}

.faq-header { text-align: center; margin-bottom: 2rem; }
.faq-header h2 { font-size: var(--step-2); margin-bottom: .4rem; color: #fff; }
.faq-header p { color: #fff; }
/* =========================
   FAQ Carousel (in #faq)
   - JS will wrap .highlight-grid children into .faq-track and add .faq-card
========================= */
#faq .highlight-grid {
  /* acts as the viewport */
  --faq-per-view: 3;
  position: relative;
  overflow: hidden;
  padding: 0.25rem 2.75rem; /* space for arrows */
}
@media (max-width: 1100px){
  #faq .highlight-grid { --faq-per-view: 2; }
}
@media (max-width: 780px){
  #faq .highlight-grid { --faq-per-view: 1; padding: 0.25rem 2.25rem; }
}

#faq .faq-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  position: relative;
  z-index: 1;              /* cards below arrows */
  min-width: 0;
}
#faq .faq-track::before,
#faq .faq-track::after {
  content: "";
  flex: 0 0 0.5rem;        /* edge spacers so first/last card can fully show */
}

#faq .faq-card {
  flex: 0 0 calc(100% / var(--faq-per-view));
  padding: 0 .5rem; /* visual gap */
  box-sizing: border-box;
  min-width: 0;
}
#faq .faq-card .highlight { height: 100%; }

#faq .faq-controls { /* overlay container for arrows */
  position: absolute; inset: 0; pointer-events: none;
  z-index: 5; /* keep controls above cards */
}
#faq .faq-controls .ctrl {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--text) 20%, transparent);
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  z-index: 6; /* ensure arrows clickable */
}
#faq .faq-controls .ctrl:hover { transform: translateY(-50%) scale(1.05); }
#faq .faq-controls .prev { left: .5rem; }
#faq .faq-controls .next { right: .5rem; }
#faq .faq-controls svg { width: 22px; height: 22px; }
#faq .faq-controls .ctrl:focus-visible { outline: none; box-shadow: var(--ring); }

/* Ensure FAQ cards are visible inside the carousel even if IntersectionObserver hasn't fired yet */
#faq .faq-card .reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* =========================
   Event ticket showcase
========================= */
#event .ticket-card {
  width: min(900px, 96%);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

#event .ticket-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Only affect the social links inside the kontakt section */
#kontakt .social-link svg {
  stroke: white;
  fill: none;
}
#kontakt .social-link:hover svg {
  stroke: #77c914; /* highlight on hover */
}

/* === Logo Alignment and Spacing Fix === */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align everything left */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* avoids weird flex overflow */
}

.brand-mark {
  /* keep natural aspect ratio */
  height: 40px;
  width: auto;

  /* prevent the image from being squished by flex/grid */
  flex: 0 0 auto;

  /* safety nets */
  max-width: 100%;
  object-fit: contain;
}

/* Default state (dark theme first) */
.logo-light {
  display: none;
}
.logo-dark {
  display: inline;
}

/* When theme is light */
[data-theme="light"] .logo-light {
  display: inline;
}
[data-theme="light"] .logo-dark {
  display: none;
}

/* Default state (dark theme first) */
.logo-light {
  display: none;
}
.logo-dark {
  display: inline;
}

/* When theme is light */
[data-theme="light"] .logo-light {
  display: inline;
}
[data-theme="light"] .logo-dark {
  display: none;
}


.logo-box {
  width: 120px;      /* size of the box */
  height: 120px;     /* makes it square */
  overflow: hidden;  /* hides cropped parts */
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}

.nav {
  margin-left: auto; /* push nav to the far right */
}


/* === FORCE brand hard-left, nav hard-right (override conflicting styles) === */
.site-header .header-inner {
  display: flex !important;
  align-items: center;
  justify-content: flex-start; /* start; we push nav with margin-left */
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0 !important;
  margin-right: auto !important; /* occupy leftover space to the right */
  text-align: left;
}
.site-header .nav {
  margin-left: auto !important; /* pushes nav to the far right */
}
/* If any earlier centering exists, neutralize it */
.site-header, .site-header .container, .site-header .header-inner {
  text-align: left !important;
}

/* Links, borders, etc. */
a { color: var(--link); }
.card { background: var(--card); border: 1px solid var(--border); }

/* Brand/logo sizing (keeps aspect ratio; transparency preserved) */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-mark { height: 40px; width: auto; flex: 0 0 auto; }

/* Toggle button styling (example) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-toggle .sun { display: inline; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }

/* Themed social icons (works even if SVGs have stroke="white") */
.social .icon-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Force strokes/fills to follow your theme text color */
.social .icon-link svg *,
.social .icon-link svg {
  stroke: var(--text) !important;  /* outline icons */
  fill: none !important;           /* keep them as outlines; change to var(--text) if you want solid */
  transition: stroke .2s ease, fill .2s ease, opacity .2s ease;
}

/* Optional: hover feedback */
.social .icon-link:hover svg { opacity: .85; }
