/* ============================================================
   Liberale Gamer 2026 – Main Stylesheet  (light theme)
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --clr-bg:          #ffffff;
  --clr-bg-2:        #FFF8B2;   /* light yellow — from brand palette */
  --clr-bg-3:        #e8f5fd;   /* light blue  — tint of #A7DDF5    */
  --clr-surface:     #ffffff;
  --clr-surface-2:   #f4f8fb;
  --clr-border:      rgba(0, 58, 82, 0.13);

  /* Yellow — #FFF201 */
  --clr-yellow:      #FFF201;
  --clr-yellow-dark: #e6d900;
  --clr-yellow-glow: rgba(255, 242, 1, 0.35);
  --clr-yellow-tint: #FFF8B2;

  /* Magenta — #E5007D (primary interactive accent) */
  --clr-purple:      #E5007D;
  --clr-purple-2:    #c40068;
  --clr-purple-glow: rgba(229, 0, 125, 0.14);

  /* Blue — #009EE3 (secondary accent) */
  --clr-blue:        #009EE3;
  --clr-blue-light:  #A7DDF5;
  --clr-blue-glow:   rgba(0, 158, 227, 0.14);

  /* Navy — #003A52 (dark base, text, footer) */
  --clr-navy:        #003A52;
  --clr-navy-mid:    #005070;

  /* Text */
  --clr-text:        #003A52;
  --clr-text-muted:  #285f70; /* darkened from #3d7080 — meets 4.5:1 on white (BFSG/WCAG AA) */
  --clr-text-faint:  #7aaabb; /* decorative only — do not use on informational text (contrast ~2.5:1) */
  --clr-white:       #ffffff;

  --font-heading:    'Orbitron', 'Segoe UI', sans-serif;
  --font-body:       'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm:       4px;
  --radius:          8px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  --shadow-card:     0 2px 16px rgba(0, 58, 82, 0.1);
  --shadow-card-hover: 0 8px 32px rgba(0, 58, 82, 0.15);
  --shadow-glow-y:   0 0 24px rgba(255, 242, 1, 0.5);
  --shadow-glow-p:   0 0 24px rgba(229, 0, 125, 0.3);

  --transition:      0.25s ease;
  --nav-height:      72px;
  --container:       1200px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* prevent horizontal scroll caused by any overflowing child */
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fade all colour-bearing elements during theme switch only */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-purple); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--clr-yellow-tint);
  color: var(--clr-navy);
  padding: .5rem 1rem;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 20px rgba(0, 58, 82, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

/* Logo */
.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform var(--transition), filter var(--transition);
}

.nav__brand:hover .nav__logo {
  transform: scale(1.07);
  filter: drop-shadow(0 0 8px rgba(229, 0, 125, .4));
}

/* Footer logo */
.footer__logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform var(--transition), filter var(--transition);
}

.footer__logo-link:hover .footer__logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(255, 242, 1, .4));
}

/* Primary Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1 1 0;
  min-width: 0;
}

/* Hide mobile-only social row on desktop */
@media (min-width: 1101px) {
  .nav__mobile-social { display: none; }
}
/* NOTE: overflow on .nav__menu is intentionally NOT set on desktop —
   overflow:hidden would clip the absolutely-positioned dropdowns. The
   flex: 1 1 0; min-width: 0 on .nav__menu already prevents it from
   pushing .nav__actions off-screen. */

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--clr-purple);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__item.current-menu-item > .nav__link,
.nav__item.current-menu-ancestor > .nav__link {
  color: var(--clr-purple);
  background: var(--clr-purple-glow);
}

/* Non-clickable group label rendered as <button> */
button.nav__link {
  background: none;
  border: none;
  cursor: default;
  font-family: inherit;
}

button.nav__link--no-link {
  cursor: default;
  opacity: .85;
}

.nav__arrow {
  font-size: .5rem;
  transition: transform var(--transition);
  color: var(--clr-text-muted);
}

.nav__item.has-dropdown:hover .nav__arrow,
.nav__item.has-dropdown:focus-within .nav__arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.nav__item.has-dropdown:hover .nav__dropdown,
.nav__item.has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown .nav__item { display: block; }

.nav__dropdown .nav__link {
  display: block;
  padding: .65rem 1.25rem;
  border-radius: 0;
  font-size: .8125rem;
  border-bottom: 1px solid var(--clr-border);
}

.nav__dropdown .nav__item:last-child .nav__link { border-bottom: none; }

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Nav Social Icons */
.nav__social {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nav__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-purple);
  color: #ffffff;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.nav__social-icon svg {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  display: block;
}

.nav__social-icon:hover {
  background: var(--clr-purple-2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-p);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__toggle:hover { background: var(--clr-purple-glow); }

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--clr-purple); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--clr-purple); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--clr-yellow-tint);
  color: var(--clr-navy);
  border-color: var(--clr-yellow-tint);
}
.btn--primary:hover {
  background: var(--clr-yellow-tint);
  color: var(--clr-navy);
  border-color: var(--clr-yellow-tint);
  box-shadow: var(--shadow-glow-y);
  filter: brightness(0.95);
}

.btn--outline {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-navy);
}
.btn--outline:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.btn--magenta {
  background: var(--clr-purple);
  color: var(--clr-white);
  border-color: var(--clr-purple);
}
.btn--magenta:hover {
  background: var(--clr-purple-2);
  border-color: var(--clr-purple-2);
  color: var(--clr-white);
  box-shadow: var(--shadow-glow-p);
}

.btn--purple {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
}
.btn--purple:hover {
  background: #007dbf;
  border-color: #007dbf;
  color: var(--clr-white);
}

.btn--sm {
  padding: .5rem 1.25rem;
  font-size: .75rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ============================================================
   FOCUS VISIBLE — WCAG 2.4.7 / BFSG
   All interactive elements must show a 2 px outline when
   navigated by keyboard. We use :focus-visible so mouse
   users are unaffected.
   ============================================================ */

/* Buttons */
.btn:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 3px;
}
.btn--primary:focus-visible  { outline-color: var(--clr-navy); }
.btn--outline-light:focus-visible { outline-color: #ffffff; }

/* Navigation links */
.nav__link:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

/* Nav hamburger toggle */
.nav__toggle:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

/* Nav header social icons */
.nav__social-icon:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

/* Theme toggle */
#theme-toggle:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

/* Footer social icons */
.footer__social-link:focus-visible {
  outline: 2px solid var(--clr-yellow-tint);
  outline-offset: 2px;
}

/* Footer nav links */
.footer__menu a:focus-visible,
.footer__legal a:focus-visible {
  outline: 2px solid var(--clr-yellow-tint);
  outline-offset: 2px;
}

/* Form inputs — replace shadow-only with real outline */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 0;
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px var(--clr-purple-glow);
}

/* Error state focus */
.form-input--error:focus-visible {
  outline: 2px solid #c4005e;
  outline-offset: 0;
}

/* Team member social links */
.team-member__social-link:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

/* General links */
a:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark mode overrides */
[data-theme="dark"] .btn:focus-visible           { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] .btn--primary:focus-visible  { outline-color: var(--clr-navy); }
[data-theme="dark"] .nav__link:focus-visible     { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] .nav__toggle:focus-visible   { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] #theme-toggle:focus-visible  { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] .form-input:focus-visible,
[data-theme="dark"] .form-select:focus-visible,
[data-theme="dark"] .form-textarea:focus-visible { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] a:focus-visible              { outline-color: var(--clr-yellow-tint); }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .06;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 35%, rgba(167, 221, 245, .55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 75%, rgba(255, 248, 178, .7)  0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 85%, rgba(229, 0, 125, .07)   0%, transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f4faff 100%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 58, 82, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 58, 82, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 6rem 5rem;
  text-align: center;
  margin-inline: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  background: var(--clr-purple-glow);
  border: 1px solid rgba(229, 0, 125, .25);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: 1.75rem;
}

a.hero__badge {
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

a.hero__badge:hover {
  background: rgba(229, 0, 125, 0.2);
  border-color: rgba(229, 0, 125, 0.45);
  transform: translateY(-1px);
  color: inherit;
}

.hero--dark a.hero__badge:hover {
  background: rgba(255, 248, 178, 0.12);
  border-color: rgba(255, 248, 178, 0.45);
  color: var(--clr-yellow-tint);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.hero__title {
  font-size: clamp(1.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
  color: var(--clr-navy);
}

.hero__title-prefix {
  display: block;
}

.hero__title-highlight {
  color: var(--clr-purple);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--clr-text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--clr-border);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--clr-purple);
}

.hero__stat-label {
  font-size: .8125rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Hero dark variant ────────────────────────────────────── */
.hero--dark {
  min-height: 88vh;
  padding-bottom: 60px; /* room for overlapping pillar icons */
}

.hero--dark .hero__content {
  padding-block: 2rem;
  max-width: 860px;
}

.hero--dark .hero__bg-gradient {
  background:
    linear-gradient(180deg, rgba(0, 25, 41, 0.72) 0%, rgba(0, 58, 82, 0.82) 100%);
}

.hero--dark .hero__bg-image { opacity: 1; }
.hero--dark .hero__grid-overlay { display: none; }

.hero--dark .hero__grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
}

.hero--dark .hero__title  { color: #ffffff; }
.hero--dark .hero__title-highlight { color: var(--clr-yellow-tint); text-shadow: 0 0 40px rgba(255, 248, 178, 0.55); }
.hero--dark .hero__subtitle { color: rgba(255, 255, 255, 0.7); margin-inline: auto; }

.hero--dark .hero__badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.hero__content--center {
  text-align: center;
  margin-inline: auto;
}

.hero__content--center .hero__cta  { justify-content: center; }
.hero__content--center .hero__badge { margin-inline: auto; margin-top: 1.5rem; margin-bottom: 0; }

/* Outline button for dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   PILLARS CARDS (overlap layout — first homepage section)
   ============================================================ */

.pillars-section {
  background: var(--clr-surface);
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.pillars-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--clr-surface);
  text-align: center;
  padding: 3.5rem 1.75rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-card__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clr-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(229, 0, 125, 0.35);
  z-index: 3;
  flex-shrink: 0;
}

.pillar-card__icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.pillar-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.75rem;
}

.pillar-card__desc {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--alt {
  background: var(--clr-bg-2);   /* #FFF8B2 light yellow */
}

.section--dark {
  background: var(--clr-bg-3);   /* #e8f5fd light blue */
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: .875rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--clr-navy);
}

.section__desc {
  color: var(--clr-text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ============================================================
   PILLARS / FEATURES
   ============================================================ */

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
}

.pillar {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-yellow-tint), var(--clr-purple), var(--clr-blue));
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 0, 125, .25);
  box-shadow: var(--shadow-card-hover);
}

.pillar:hover::before { opacity: 1; }

.pillar__icon {
  width: 56px;
  height: 56px;
  background: var(--clr-yellow-tint);
  border: 1px solid rgba(255, 242, 1, .4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar__title {
  font-size: 1.0625rem;
  margin-bottom: .625rem;
  font-weight: 700;
  color: var(--clr-navy);
}

.pillar__desc {
  font-size: .875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================================
   NEWS / BLOG CARDS
   ============================================================ */

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.75rem;
}

.news__grid--featured {
  grid-template-columns: repeat(12, 1fr);
}

.news__grid--featured .card:first-child {
  grid-column: span 7;
}

.news__grid--featured .card:not(:first-child) {
  grid-column: span 5;
}

.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 0, 125, .2);
  box-shadow: var(--shadow-card-hover);
}

.card__thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-bg-3);
}

.card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card__thumbnail img { transform: scale(1.05); }

.card__thumbnail--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg-3) 0%, var(--clr-yellow-tint) 100%);
}

.card__thumbnail--placeholder svg {
  width: 40px;
  height: 40px;
  opacity: .3;
}

.card__category {
  position: absolute;
  top: .875rem;
  left: .875rem;
  padding: .25rem .75rem;
  background: var(--clr-yellow-tint);
  color: var(--clr-navy);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
}

.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--clr-text-muted);
  margin-bottom: .875rem;
}

.card__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--clr-text-faint);
  border-radius: 50%;
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: .75rem;
  font-weight: 700;
  line-height: 1.35;
}

.card__title a {
  color: var(--clr-navy);
  transition: color var(--transition);
}

.card__title a:hover { color: var(--clr-purple); }

.card__excerpt {
  font-size: .875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}

.card__readmore {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition), color var(--transition);
}

.card__readmore:hover { gap: .65rem; color: var(--clr-purple); }

.card__readmore-arrow { font-size: 1rem; line-height: 1; }

/* ============================================================
   DISCORD CTA BANNER
   ============================================================ */

.discord-banner {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.discord-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.discord-banner__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.discord-banner__icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.discord-banner__text { flex: 1; min-width: min(200px, 100%); }

.discord-banner__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

.discord-banner__desc {
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
}

.discord-banner .btn--discord {
  background: #fff;
  color: #5865f2;
  border-color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.discord-banner .btn--discord:hover {
  background: transparent;
  color: #fff;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 58, 82, .12);
  pointer-events: none;
}

.about__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about__image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--clr-bg-3) 0%, var(--clr-yellow-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__content .section__title { text-align: left; }
.about__content .section__eyebrow { display: block; text-align: left; }

.about__text {
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 2rem;
}

.about__value-tag {
  padding: .5rem 1rem;
  background: var(--clr-purple-glow);
  border: 1px solid rgba(229, 0, 125, .2);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--clr-purple);
  letter-spacing: .04em;
}

/* ============================================================
   MEMBERSHIP PAGE
   ============================================================ */

/* Benefits strip */
.membership-benefits {
  background: var(--clr-bg-3);
  min-height: 260px;
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2rem);
}

.membership-benefits .container {
  width: 100%;
}

.membership-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.membership-benefit {
  background: var(--clr-surface);
  text-align: center;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.membership-benefit__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: .75rem;
}

.membership-benefit__desc {
  font-size: .9375rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.membership-benefit__desc a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership-benefit__desc a:hover {
  color: var(--clr-accent-hover, var(--clr-accent));
  text-decoration: none;
}

.membership-benefit__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-accent);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s, gap .2s;
}

.membership-benefit__link:hover {
  color: var(--clr-accent-hover, var(--clr-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .membership-benefits__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.page-header.page-header--membership {
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  background:
    linear-gradient(180deg, rgba(229, 0, 125, 0.55) 0%, rgba(180, 0, 98, 0.70) 100%),
    url('../images/membership-hero.jpg') center / cover no-repeat;
  border-bottom: none;
  text-align: center;
}

.page-header.page-header--membership .page-header__eyebrow,
.page-header.page-header--membership .section__eyebrow {
  color: var(--clr-yellow-tint);
}

.page-header.page-header--membership .page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-block: .75rem 1rem;
  color: #ffffff;
}

.page-header.page-header--membership .page-header__desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ── Dark hero variant (matches main page colour scheme) ─── */
.page-header.page-header--dark {
  background: linear-gradient(160deg, #003A52 0%, #001929 100%);
  border-bottom-color: rgba(0, 158, 227, .15);
}

.page-header.page-header--dark .section__eyebrow,
.page-header.page-header--dark .page-header__eyebrow { color: var(--clr-yellow-tint); }
.page-header.page-header--dark .page-header__title { color: #ffffff; }
.page-header.page-header--dark .page-header__desc  { color: rgba(255, 255, 255, .75); }

/* ── Hero overlay colours (admin-selectable) ─────────────────
   Applied when no image is set. When an image is set, the same
   class names are used for the tinted overlay layer (::before).
   ──────────────────────────────────────────────────────────── */

/* Yellow — two-class selectors beat the base .page-header rule */
.page-header.page-header--overlay-yellow {
  background: linear-gradient(160deg, #fffbe0 0%, #fff5a0 100%);
  border-bottom-color: rgba(255,242,1,.4);
}
.page-header.page-header--overlay-yellow .page-header__eyebrow { color: var(--clr-navy); }
.page-header.page-header--overlay-yellow .page-header__title   { color: var(--clr-navy); }
.page-header.page-header--overlay-yellow .page-header__desc    { color: #2a4a5a; }

/* Magenta */
.page-header.page-header--overlay-magenta {
  background: linear-gradient(160deg, var(--clr-purple) 0%, #9a0050 100%);
  border-bottom: none;
}
.page-header.page-header--overlay-magenta .page-header__eyebrow,
.page-header.page-header--overlay-magenta .page-header__title,
.page-header.page-header--overlay-magenta .page-header__desc { color: #ffffff; }

/* Navy */
.page-header.page-header--overlay-navy {
  background: linear-gradient(160deg, #003A52 0%, #001929 100%);
  border-bottom: none;
}
.page-header.page-header--overlay-navy .page-header__eyebrow { color: var(--clr-yellow-tint); }
.page-header.page-header--overlay-navy .page-header__title   { color: #ffffff; }
.page-header.page-header--overlay-navy .page-header__desc    { color: rgba(255,255,255,.75); }

/* Purple */
.page-header.page-header--overlay-purple {
  background: linear-gradient(160deg, #6d28d9 0%, #4c1d95 100%);
  border-bottom: none;
}
.page-header.page-header--overlay-purple .page-header__eyebrow,
.page-header.page-header--overlay-purple .page-header__title,
.page-header.page-header--overlay-purple .page-header__desc { color: #ffffff; }
.page-header.page-header--overlay-purple .page-header__eyebrow { color: var(--clr-yellow-tint); }

/* ── Hero image mode ─────────────────────────────────────────
   --lg-hero-img is set as an inline CSS custom property by PHP.
   background-image is used separately (not shorthand) so it
   cannot be accidentally overridden by a later background rule.
   The ::before pseudo-element provides the coloured tint layer.
   ──────────────────────────────────────────────────────────── */
.page-header.page-header--has-hero {
  position: relative;
  background-image: var(--lg-hero-img);
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.page-header.page-header--has-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.38) 100%);
}
.page-header.page-header--has-hero .container { position: relative; z-index: 1; }

/* Default text colours when image is shown without an overlay */
.page-header.page-header--has-hero .page-header__eyebrow { color: var(--clr-yellow-tint); }
.page-header.page-header--has-hero .page-header__title   { color: #ffffff; }
.page-header.page-header--has-hero .page-header__desc    { color: rgba(255,255,255,.8); }

/* Image + overlay colour — replace the default tint */
.page-header.page-header--has-hero.page-header--overlay-yellow::before {
  background: linear-gradient(160deg, rgba(255,242,1,.62) 0%, rgba(255,220,0,.55) 100%);
}
.page-header.page-header--has-hero.page-header--overlay-yellow .page-header__eyebrow { color: var(--clr-navy); }
.page-header.page-header--has-hero.page-header--overlay-yellow .page-header__title   { color: var(--clr-navy); }
.page-header.page-header--has-hero.page-header--overlay-yellow .page-header__desc    { color: rgba(0,31,45,.85); }

.page-header.page-header--has-hero.page-header--overlay-magenta::before {
  background: linear-gradient(160deg, rgba(229,0,125,.72) 0%, rgba(153,0,83,.65) 100%);
}
.page-header.page-header--has-hero.page-header--overlay-navy::before {
  background: linear-gradient(160deg, rgba(0,58,82,.82) 0%, rgba(0,25,41,.78) 100%);
}
.page-header.page-header--has-hero.page-header--overlay-purple::before {
  background: linear-gradient(160deg, rgba(109,40,217,.76) 0%, rgba(76,29,149,.70) 100%);
}

/* Dark-mode adjustments for overlay colours */
[data-theme="dark"] .page-header.page-header--overlay-yellow {
  background: linear-gradient(160deg, #3d3300 0%, #262200 100%);
}
[data-theme="dark"] .page-header.page-header--overlay-yellow .page-header__eyebrow,
[data-theme="dark"] .page-header.page-header--overlay-yellow .page-header__title   { color: var(--clr-yellow-tint); }
[data-theme="dark"] .page-header.page-header--overlay-yellow .page-header__desc    { color: rgba(255,242,1,.7); }

/* ── Single post hero ────────────────────────────────────── */
.page-header.page-header--single {
  text-align: center;
}

.page-header.page-header--single .section__eyebrow { color: var(--clr-purple); }

.page-header.page-header--single .page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-block: .75rem 1rem;
  margin-inline: auto;
}

.page-header.page-header--single .page-header__meta {
  justify-content: center;
  margin-inline: auto;
}

/* With featured image: white text over dark overlay */
.page-header--has-image .page-header__eyebrow { color: var(--clr-yellow-tint); }
.page-header--has-image .page-header__title   { color: #ffffff; }
.page-header--has-image .page-header__meta,
.page-header--has-image .page-header__meta a,
.page-header--has-image .card__meta-dot       { color: rgba(255,255,255,.75); }

/* ── Vereinsleitung ──────────────────────────────────────── */
.team-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* eSport Team section header */
.esport-team-section + .esport-team-section { padding-top: 0; }

.esport-team-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-purple);
}

.esport-team-header__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin: 0;
}

.esport-team-header__game {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--clr-purple);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

[data-theme="dark"] .esport-team-header__name { color: #ffffff; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  container-type: inline-size;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.team-member__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  border: 3px solid var(--clr-border);
}

.team-member__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-3);
  color: var(--clr-text-faint);
}

.team-member__info { flex: 1; }

.team-member__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: .375rem;
}

.team-member__role {
  font-size: .8125rem;
  color: var(--clr-purple);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.team-member__desc {
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.team-member__email {
  display: block;
  margin-top: .75rem;
  /* Scale font down with card width so long addresses stay on one line.
     cqi = % of the container's inline size (set via container-type above).
     clamp(min, preferred, max): shrinks below 0.8125rem on narrow cards,
     never below 0.6rem. Ellipsis fires only for extremely long addresses. */
  font-size: clamp(0.6rem, 3.2cqi, 0.8125rem);
  color: var(--clr-accent);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.team-member__email:hover,
.team-member__email:focus-visible {
  text-decoration: underline;
}

.team-member__social {
  display: flex;
  gap: .625rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.team-member__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  color: var(--clr-text-muted);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.team-member__social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.team-member__social-link:hover,
.team-member__social-link:focus-visible {
  background: var(--clr-yellow);
  color: var(--clr-navy);
  outline: none;
}

.team-empty {
  text-align: center;
  color: var(--clr-text-faint);
  padding-block: 4rem;
}

/* Dark mode */
[data-theme="dark"] .team-member {
  background: var(--clr-surface);
  border-color: var(--clr-border);
}

[data-theme="dark"] .team-member:hover { border-color: rgba(255,242,1,.25); }

[data-theme="dark"] .team-member__photo { border-color: var(--clr-border); }

[data-theme="dark"] .team-member__name { color: #ffffff; }

[data-theme="dark"] .team-member__role { color: var(--clr-yellow-tint); }

/* ── Unsere Geschichte – Timeline ───────────────────────── */
.geschichte-section {
  padding: 5rem 0 7rem;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(1.625rem + 7px);
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-purple) var(--timeline-fade-start, 80%), transparent 100%);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: calc(50% - 3rem);
  padding-bottom: 3.5rem;
}

.timeline__item--left  { margin-left: 0; margin-right: auto; }
.timeline__item--right { margin-left: auto; margin-right: 0; }

/* Connector dot — sits exactly on the centre line */
.timeline__dot {
  position: absolute;
  top: 1.625rem;
  left: calc(100% + 3rem - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-purple);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--clr-purple);
  z-index: 1;
}

.timeline__item--right .timeline__dot {
  left: calc(-3rem - 7px);
  right: auto;
}

/* Horizontal connector line from card to centre line */
.timeline__card {
  position: relative;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: box-shadow .25s, border-color .25s;
}

.timeline__card::after {
  content: '';
  position: absolute;
  top: 1.875rem;
  right: -3rem;
  width: 3rem;
  height: 2px;
  background: var(--clr-purple);
}

.timeline__item--right .timeline__card::after {
  right: auto;
  left: -3rem;
}

.timeline__card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  border-color: rgba(0, 158, 227, .4);
}

.timeline__year {
  position: absolute;
  top: 1.5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-purple);
  white-space: nowrap;
}

.timeline__item--left .timeline__year {
  left: calc(100% + 6rem);
  text-align: left;
}

.timeline__item--right .timeline__year {
  right: calc(100% + 6rem);
  text-align: right;
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin: 0 0 .5rem;
  line-height: 1.35;
}

.timeline__desc {
  font-size: .875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin: 0;
}

.timeline-empty {
  text-align: center;
  color: var(--clr-text-faint);
  padding-block: 4rem;
}

/* Directional reveal for timeline items */
.timeline__item--left.reveal  { transform: translateX(-24px); opacity: 0; }
.timeline__item--right.reveal { transform: translateX(24px);  opacity: 0; }
.timeline__item.reveal.is-visible { transform: translateX(0); opacity: 1; }

/* Mobile – collapse to single column */
@media (max-width: 640px) {
  .timeline::before {
    left: .75rem;
  }

  .timeline__item,
  .timeline__item--left,
  .timeline__item--right {
    width: 100%;
    margin-left: 0;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
  }

  .timeline__dot,
  .timeline__item--right .timeline__dot {
    left: .75rem;
    right: auto;
    transform: translateX(-50%);
  }

  .timeline__card::after,
  .timeline__item--right .timeline__card::after {
    display: none;
  }

  .timeline__item--left .timeline__year,
  .timeline__item--right .timeline__year {
    position: static;
    display: block;
    margin-bottom: .35rem;
    text-align: left;
    white-space: normal;
  }

  .timeline__item--left.reveal,
  .timeline__item--right.reveal {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Dark mode */
[data-theme="dark"] .timeline__card {
  background: var(--clr-surface);
  border-color: var(--clr-border);
}

[data-theme="dark"] .timeline__card:hover {
  border-color: rgba(255, 242, 1, .3);
}

[data-theme="dark"] .timeline__card::after {
  background: var(--clr-border);
}

[data-theme="dark"] .timeline__dot {
  border-color: var(--clr-surface);
  box-shadow: 0 0 0 2px var(--clr-purple);
}

/* ── News & Updates page ─────────────────────────────────── */
.page-header.page-header--news {
  padding-block: clamp(2.5rem, 6vw, 8rem) clamp(1.75rem, 4vw, 5rem);
  padding-top: calc(var(--nav-height) + clamp(1.5rem, 4vw, 5rem));
  background:
    linear-gradient(180deg, rgba(255, 248, 178, 0.78) 0%, rgba(255, 248, 178, 0.72) 100%),
    url('../images/news-hero.jpg') center / cover no-repeat;
  border-bottom: none;
  text-align: center;
}

.page-header.page-header--news .section__eyebrow { color: var(--clr-purple); }

.page-header.page-header--news .page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-block: .75rem 1rem;
  margin-inline: auto;
  color: var(--clr-navy);
}

.page-header.page-header--news .page-header__desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--clr-navy);
  opacity: .8;
  max-width: 560px;
  margin-inline: auto;
}

.news-filter {
  border-bottom: 1px solid var(--clr-border);
  padding-block: 1.125rem;
  background: var(--clr-white);
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
}

.news-filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.news-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: .375rem 1rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.news-filter__pill:hover {
  border-color: var(--clr-purple);
  color: var(--clr-purple);
  background: rgba(91, 0, 108, .05);
}

.news-filter__pill--active {
  background: var(--clr-purple);
  border-color: var(--clr-purple);
  color: #ffffff;
}

.news-filter__pill--active:hover {
  background: var(--clr-purple);
  color: #ffffff;
  opacity: .9;
}

.news-page-section {
  padding-block: clamp(1.75rem, 4vw, 5rem);
}

.membership-form-section {
  background: var(--clr-bg-3);
  padding-top: 1.5rem;
}

.membership-wrap {
  max-width: 800px;
  margin-inline: auto;
}

/* Form sections */
.form-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.form-section__header {
  margin-bottom: 2rem;
}

.form-section__title {
  font-size: 1.375rem;
  margin-block: .5rem .625rem;
}

.form-section__desc {
  color: var(--clr-text-muted);
  font-size: .9375rem;
  line-height: 1.7;
}

/* Grid */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.form-group--span2  { grid-column: span 2; }
.form-group--street { grid-column: span 1; }
.form-group--hausnr { grid-column: span 1; }
.form-group--plz    { grid-column: 1 / 2; max-width: 160px; }
.form-group--ort    { grid-column: 2 / 3; }

/* Labels & inputs */
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: .5rem;
  letter-spacing: .01em;
}

.form-required { color: var(--clr-purple); margin-left: .125rem; }
.form-optional  { color: var(--clr-text-faint); font-weight: 400; font-size: .8125rem; }

.form-input,
.form-select {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--clr-text);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--clr-purple);
  outline-offset: 0;
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px var(--clr-purple-glow);
}

.form-input--mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: .08em;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Submit section */
.form-section--submit {
  background: var(--clr-bg-3);
  border-color: transparent;
  text-align: center;
}

.form-legal {
  font-size: .8125rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.form-legal a { color: var(--clr-blue); }
.form-legal a:hover { color: var(--clr-purple); }

/* ── Checkboxes ──────────────────────────────────────────── */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}

.form-check__input {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: .15em;
  border: 2px solid var(--clr-border);
  border-radius: 4px;
  background: var(--clr-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative;
}

.form-check__input:hover {
  border-color: var(--clr-purple);
}

.form-check__input:checked {
  background: var(--clr-purple);
  border-color: var(--clr-purple);
}

.form-check__input:checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(45deg);
}

.form-check__input:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}

.form-check__label {
  font-size: .875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  cursor: pointer;
}

.form-check__label a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-check__label a:hover { color: var(--clr-purple); }

.form-submit { min-width: 320px; }

.form-required-note {
  margin-top: 1rem;
  font-size: .8125rem;
  color: var(--clr-text-faint);
}

/* Alerts */
.form-alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: .9375rem;
}

.form-alert--error {
  background: rgba(229, 0, 125, .08);
  border: 1px solid rgba(229, 0, 125, .3);
  color: var(--clr-purple);
}

.form-alert__heading {
  font-weight: 700;
  margin-bottom: .5rem;
}

.form-alert__list {
  margin: 0;
  padding-left: 1.25rem;
  font-weight: 400;
}

.form-alert__list li { margin-bottom: .25rem; }

.form-alert__list a {
  color: var(--clr-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-alert__list a:hover { opacity: .75; }

/* Field-level error state */
.form-input--error {
  border-color: #e5007d !important;
  background-color: rgba(229, 0, 125, .04);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(229, 0, 125, .2);
  border-color: #e5007d !important;
}

.form-field-error {
  margin: .375rem 0 0;
  font-size: .8125rem;
  color: #c4005e;
  line-height: 1.4;
}

.form-check--error .form-check__input {
  border-color: #e5007d;
}

/* Success state */
.membership-success {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.membership-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 158, 227, .12);
  color: var(--clr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.membership-success h2 { margin-bottom: .75rem; }
.membership-success p  { color: var(--clr-text-muted); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 600px) {
  .form-grid--2          { grid-template-columns: 1fr; }
  .form-group--span2,
  .form-group--street,
  .form-group--hausnr,
  .form-group--plz,
  .form-group--ort       { grid-column: span 1; max-width: 100%; }
  .form-section          { padding: 1.5rem; }
  .form-submit           { min-width: 0; width: 100%; }
}

/* ============================================================
   SPONSORS / PARTNERS
   ============================================================ */

.partners__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
}

.partners__row:hover { opacity: 1; filter: grayscale(0); }

.partners__logo {
  max-height: 50px;
  width: auto;
}

/* ============================================================
   FOOTER  (stays dark for contrast)
   ============================================================ */

.site-footer {
  background: #003A52;
  border-top: none;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,.1);
}


.footer__about {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__social-link:hover {
  background: var(--clr-yellow-glow);
  border-color: rgba(255, 242, 1, .5);
  color: var(--clr-navy);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

.footer__menu { display: flex; flex-direction: column; gap: .625rem; }

.footer__menu a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer__menu a:hover { color: var(--clr-yellow-tint); }

.footer__bottom {
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}

.footer__legal a:hover { color: var(--clr-yellow-tint); }

.footer__teamdiversity {
  height: 36px;
  width: auto;
  opacity: 1;
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */

.page-header {
  padding-block: clamp(5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem);
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  min-height: clamp(360px, 44vw, 480px);
  background: linear-gradient(160deg, var(--clr-bg-2) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}

.page-header__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: .875rem;
}

.page-header__title {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--clr-navy);
}

.page-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8125rem;
  color: var(--clr-text-muted);
}

.main-content {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
}

.content-wrap--full { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }

/* Post Content */
.entry-content {
  color: var(--clr-text);
  line-height: 1.85;
}

/* ── Legal pages (Impressum / Datenschutz) ─────────────────── */
.legal-content {
  max-width: 780px;
  margin-inline: auto;
}

.legal-block {
  padding-block: 2rem;
  border-bottom: 1px solid var(--clr-border);
}

.legal-block:first-child { padding-top: 0; }
.legal-block:last-child  { border-bottom: none; }

.legal-block h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: .875rem;
  font-family: var(--font-heading);
}

.legal-block h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  font-family: var(--font-heading);
}

.legal-block p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul,
.legal-block ol {
  padding-left: 1.5rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.legal-block ul { list-style: disc; }
.legal-block ol { list-style: decimal; }
.legal-block ol ol { list-style: lower-alpha; padding-left: 1.25rem; }
.legal-block ol ol ol { list-style: lower-roman; }

.legal-block ul li,
.legal-block ol li { margin-bottom: .375rem; }
.legal-block ol li { margin-bottom: .5rem; }

.legal-block a {
  color: var(--clr-blue);
  word-break: break-all;
}

.legal-block a:hover { color: var(--clr-purple); }

.legal-block--muted p {
  font-size: .8125rem;
  color: var(--clr-text-faint);
}

.entry-content h2, .entry-content h3, .entry-content h4 { margin-block: 2rem 1rem; color: var(--clr-navy); }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .375rem; }
.entry-content a { color: var(--clr-blue); text-decoration: underline; }
.entry-content a:hover { color: var(--clr-purple); }
.entry-content blockquote {
  border-left: 3px solid var(--clr-purple);
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--clr-purple-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--clr-text-muted);
  font-style: italic;
}
.entry-content img { border-radius: var(--radius); margin-block: 1.5rem; }
.entry-content pre, .entry-content code {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: .875em;
}
.entry-content pre { padding: 1.25rem; overflow-x: auto; margin-block: 1.5rem; }
.entry-content code { padding: .15em .4em; }
.entry-content pre code { padding: 0; background: none; border: none; }
.entry-content table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 1px solid var(--clr-border); text-align: left; }
.entry-content th { background: var(--clr-bg-3); color: var(--clr-navy); font-weight: 700; }
.entry-content hr { border: none; border-top: 1px solid var(--clr-border); margin-block: 2rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.widget__title {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-purple);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--clr-border);
}

.widget ul { display: flex; flex-direction: column; gap: .5rem; }
.widget ul li a { font-size: .875rem; color: var(--clr-text-muted); }
.widget ul li a:hover { color: var(--clr-purple); }

/* ============================================================
   PAGINATION
   ============================================================ */

.nav-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: .75rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: var(--clr-yellow-tint);
  border-color: var(--clr-yellow-tint);
  color: var(--clr-navy);
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-area {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border);
}

.comments-title,
.comment-reply-title {
  font-size: 1rem;
  margin-bottom: .875rem;
  color: var(--clr-navy);
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.comment-list .children {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: .625rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.comment-item { list-style: none; }

.comment-body {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .75rem;
}

.comment-meta {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
}

.comment-avatar__img {
  border-radius: 50%;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.comment-author-info {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  flex: 1;
}

.comment-author {
  font-weight: 700;
  font-size: .8125rem;
  color: var(--clr-navy);
}

.comment-date {
  font-size: .6875rem;
  color: var(--clr-text-faint);
}

.comment-reply a {
  margin-left: auto;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--clr-purple);
}

.comment-reply a:hover { color: var(--clr-blue); }

.comment-content {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--clr-text);
}

.comment-content p { margin-bottom: .375rem; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-awaiting-moderation {
  font-size: .6875rem;
  color: var(--clr-text-faint);
  font-style: italic;
  margin-bottom: .375rem;
}

/* Comment form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.comment-form-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
}

.comment-form-field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--clr-navy);
}

.comment-form-field .required { color: var(--clr-purple); }

.comment-notes {
  font-size: .6875rem;
  color: var(--clr-text-faint);
  margin: 0;
}

.comment-form .btn { align-self: flex-start; }

/* ============================================================
   404
   ============================================================ */

.error-404 {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 900;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 58, 82, .15);
  margin-bottom: 1.5rem;
}

.error-404__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--clr-navy);
  margin-bottom: 1rem;
}

.error-404__desc {
  color: var(--clr-text-muted);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: .75rem 1rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px var(--clr-blue-glow);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--clr-text-faint); }

/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
  display: flex;
  gap: .5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: .625rem 1rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: .875rem;
  transition: border-color var(--transition);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--clr-blue);
}

.search-form button {
  padding: .625rem 1.25rem;
  background: var(--clr-yellow-tint);
  color: var(--clr-navy);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-form button:hover { background: var(--clr-yellow-dark); }

/* ============================================================
   ARCHIVE / BLOG HEADER
   ============================================================ */

.archive-header {
  padding-block: clamp(4rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
  padding-top: calc(var(--nav-height) + clamp(2.5rem, 5vw, 4rem));
  background: linear-gradient(160deg, var(--clr-bg-3) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   UTILITY
   ============================================================ */

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-yellow  { color: var(--clr-yellow-tint); }
.text-muted   { color: var(--clr-text-muted); }
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .news__grid--featured { grid-template-columns: 1fr 1fr; }
  .news__grid--featured .card:first-child { grid-column: span 2; }
  .news__grid--featured .card:not(:first-child) { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__image-wrap { max-width: 560px; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .pillars-cards { grid-template-columns: 1fr; }
}

/* ── Nav collapses to hamburger at 1100 px ─────────────────── */
@media (max-width: 1100px) {
  :root { --nav-height: 64px; }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-height));
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
  }

  .nav__menu.is-open { transform: translateX(0); }

  .nav__item { width: 100%; }

  .nav__link {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    border-radius: var(--radius);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--clr-bg-3);
    border-radius: var(--radius);
    padding: .25rem;
    margin-top: .25rem;
    display: none;
  }

  .nav__item.has-dropdown.is-open .nav__dropdown { display: block; }

  .nav__dropdown .nav__link { padding: .625rem 1rem; font-size: .9375rem; }

  .nav__toggle { display: flex; }

  .nav__actions .btn { display: none; }
  .nav__actions .nav__social { display: none; }

  /* Social row inside the overlay */
  .nav__mobile-social {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--clr-border);
  }
  .nav__mobile-social .nav__social {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }
  .nav__mobile-social .nav__social-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; }

  .news__grid--featured { grid-template-columns: 1fr; }
  .news__grid--featured .card:first-child,
  .news__grid--featured .card:not(:first-child) { grid-column: span 1; }

  .discord-banner { flex-direction: column; text-align: center; }
  .discord-banner__icon { margin-inline: auto; }

  .hero__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .pillars__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-wrap: wrap; gap: 1rem; }
}

/* ============================================================
   ANIMATIONS / SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   WP ALIGNMENT & CORE BLOCK COMPAT
   ============================================================ */

.alignleft  { float: left; margin: .5rem 1.5rem .5rem 0; }
.alignright { float: right; margin: .5rem 0 .5rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--clr-text-muted); text-align: center; margin-top: .5rem; }

.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote {
  border-left: 3px solid var(--clr-purple);
  padding-left: 1.5rem;
  color: var(--clr-text-muted);
  font-style: italic;
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--clr-bg-3);
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--clr-navy);
  color: #ffffff;
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: opacity var(--transition), transform var(--transition);
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, .1);
  color: #e2e8f0;
}
[data-theme="dark"] .theme-toggle:hover {
  background: var(--clr-yellow-tint);
  color: #001929;
  transform: rotate(15deg);
}

/* ============================================================
   DARK MODE  — [data-theme="dark"] on <html>
   ============================================================ */

/* ── Variable overrides ─────────────────────────────────────── */
[data-theme="dark"] {
  --clr-bg:          #001929;
  --clr-bg-2:        #003A52;
  --clr-bg-3:        #200029;
  --clr-surface:     #3D0045;
  --clr-surface-2:   #510059;
  --clr-border:      rgba(0, 158, 227, 0.22);
  --clr-yellow-glow: rgba(255, 242, 1, 0.16);
  --clr-purple-glow: rgba(229, 0, 125, 0.2);
  --clr-blue-glow:   rgba(0, 158, 227, 0.18);
  --clr-text:        #e2e8f0;
  --clr-text-muted:  #8baab8;
  --clr-text-faint:  #3d6070;
  --clr-navy:        #ffffff;           /* repurpose nav: navy → white for headings */
  --shadow-card:         0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-card-hover:   0 8px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow-y:   0 0 24px rgba(255, 242, 1, 0.28);
  --shadow-glow-p:   0 0 24px rgba(229, 0, 125, 0.35);
}

/* ── Base ───────────────────────────────────────────────────── */
[data-theme="dark"] a                { color: var(--clr-yellow-tint); }
[data-theme="dark"] a:hover          { color: #ffffff; }

/* ── Navigation ─────────────────────────────────────────────── */
[data-theme="dark"] .site-header {
  background: rgba(0, 25, 41, 0.92);
  border-bottom-color: rgba(0, 158, 227, 0.22);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(0, 25, 41, 0.98);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .nav__brand:hover .nav__logo {
  filter: drop-shadow(0 0 8px rgba(255, 242, 1, .45));
}

[data-theme="dark"] .nav__link       { color: #e2e8f0; }
[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__item.current-menu-item > .nav__link,
[data-theme="dark"] .nav__item.current-menu-ancestor > .nav__link {
  color: var(--clr-purple);
  background: var(--clr-purple-glow);
}
[data-theme="dark"] .nav__toggle span { background: #e2e8f0; }
[data-theme="dark"] .nav__toggle.is-open span:nth-child(1),
[data-theme="dark"] .nav__toggle.is-open span:nth-child(3) { background: var(--clr-purple); }
[data-theme="dark"] .nav__dropdown   { background: var(--clr-bg-2); }

/* ── Buttons ────────────────────────────────────────────────── */
[data-theme="dark"] .btn--primary { color: #001929; }
[data-theme="dark"] .btn--primary:hover {
  background: var(--clr-yellow-tint);
  color: #001929;
  border-color: var(--clr-yellow-tint);
  filter: brightness(0.95);
}
[data-theme="dark"] .btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .btn--outline:hover {
  background: transparent;
  color: var(--clr-yellow-tint);
  border-color: var(--clr-yellow-tint);
}
[data-theme="dark"] .btn--outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .btn--outline-light:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Hero — mirrors light mode exactly ──────────────────────── */
[data-theme="dark"] .hero__bg-image     { opacity: 1; }
[data-theme="dark"] .hero__bg-gradient  { background: linear-gradient(180deg, rgba(0, 25, 41, 0.72) 0%, rgba(0, 58, 82, 0.82) 100%); }
[data-theme="dark"] .hero__grid-overlay { display: none; }
[data-theme="dark"] .hero__badge        { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }
[data-theme="dark"] .hero__badge-dot    { background: var(--clr-purple); }
[data-theme="dark"] .hero__title-highlight { color: var(--clr-yellow-tint); text-shadow: 0 0 40px rgba(255, 248, 178, 0.55); }
[data-theme="dark"] .hero__stat-value   { color: var(--clr-purple); }

/* ── Sections ───────────────────────────────────────────────── */
[data-theme="dark"] .section__eyebrow { color: var(--clr-yellow-tint); }

/* ── Pillars ────────────────────────────────────────────────── */
[data-theme="dark"] .pillar { background: var(--clr-surface); }
[data-theme="dark"] .pillar:hover {
  border-color: rgba(255, 242, 1, .3);
  box-shadow: 0 4px 24px rgba(0,0,0,.5), 0 0 32px var(--clr-yellow-glow);
}
[data-theme="dark"] .pillar__icon {
  background: var(--clr-yellow-glow);
  border-color: rgba(255, 242, 1, .2);
}

/* ── Cards ──────────────────────────────────────────────────── */
[data-theme="dark"] .card           { background: var(--clr-surface); }
[data-theme="dark"] .card:hover     { border-color: rgba(255, 242, 1, .25); }
[data-theme="dark"] .card__thumbnail { background: var(--clr-bg-3); }
[data-theme="dark"] .card__category        { color: #003A52; }
[data-theme="dark"] .card__thumbnail--placeholder {
  background: linear-gradient(135deg, var(--clr-bg-3) 0%, var(--clr-surface) 100%);
}
[data-theme="dark"] .card__title a        { color: #ffffff; }
[data-theme="dark"] .card__title a:hover  { color: var(--clr-yellow-tint); }
[data-theme="dark"] .card__readmore       { color: var(--clr-yellow-tint); }
[data-theme="dark"] .card__readmore:hover { color: #ffffff; }

/* ── About ──────────────────────────────────────────────────── */
[data-theme="dark"] .about__image-wrap::after   { border-color: rgba(255, 242, 1, .2); }
[data-theme="dark"] .about__image-placeholder   {
  background: linear-gradient(135deg, var(--clr-bg-3) 0%, var(--clr-surface-2) 100%);
}
[data-theme="dark"] .about__value-tag {
  background: var(--clr-purple-glow);
  border-color: rgba(229, 0, 125, .2);
  color: var(--clr-purple);
}

/* ── Footer ─────────────────────────────────────────────────── */
/* Footer is already dark in both modes — no overrides needed   */

/* ── Page / Archive headers ─────────────────────────────────── */
[data-theme="dark"] .page-header {
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
}
[data-theme="dark"] .page-header.page-header--membership {
  background:
    linear-gradient(180deg, rgba(229, 0, 125, 0.55) 0%, rgba(180, 0, 98, 0.70) 100%),
    url('../images/membership-hero.jpg') center / cover no-repeat;
}
[data-theme="dark"] .page-header__eyebrow { color: var(--clr-yellow-tint); }
[data-theme="dark"] .archive-header {
  background: linear-gradient(160deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
}

/* ── Sidebar & Widgets ──────────────────────────────────────── */
[data-theme="dark"] .widget          { background: var(--clr-surface); box-shadow: none; }
[data-theme="dark"] .widget__title   { color: var(--clr-yellow-tint); }
[data-theme="dark"] .widget ul li a:hover { color: var(--clr-yellow-tint); }

/* ── Pagination ─────────────────────────────────────────────── */
[data-theme="dark"] .nav-links .page-numbers { background: var(--clr-surface); }
[data-theme="dark"] .nav-links .page-numbers:hover,
[data-theme="dark"] .nav-links .page-numbers.current {
  background: var(--clr-yellow-tint);
  border-color: var(--clr-yellow-tint);
  color: #001929;
}

/* ── Entry Content ──────────────────────────────────────────── */
[data-theme="dark"] .entry-content a         { color: var(--clr-yellow-tint); }
[data-theme="dark"] .entry-content a:hover   { color: #ffffff; }
[data-theme="dark"] .entry-content blockquote {
  background: var(--clr-surface);
  border-left-color: var(--clr-yellow-tint);
}
[data-theme="dark"] .entry-content th        { background: var(--clr-surface); }
[data-theme="dark"] .entry-content pre,
[data-theme="dark"] .entry-content code      { background: var(--clr-bg-3); }

/* ── Forms ──────────────────────────────────────────────────── */
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea,
[data-theme="dark"] .form-field select {
  background: var(--clr-bg-3);
  color: #e2e8f0;
}
[data-theme="dark"] .form-field input:focus,
[data-theme="dark"] .form-field textarea:focus,
[data-theme="dark"] .form-field select:focus {
  border-color: var(--clr-yellow-tint);
  box-shadow: 0 0 0 3px var(--clr-yellow-glow);
}
[data-theme="dark"] .search-form input[type="search"] {
  background: var(--clr-bg-3);
  color: #e2e8f0;
}
[data-theme="dark"] .search-form input[type="search"]:focus {
  border-color: var(--clr-yellow-tint);
}

/* ── 404 ────────────────────────────────────────────────────── */
[data-theme="dark"] .error-404__code { -webkit-text-stroke: 2px var(--clr-border); }

/* ── Gutenberg ──────────────────────────────────────────────── */
[data-theme="dark"] .wp-block-quote {
  border-left-color: var(--clr-yellow-tint);
}

/* ── Mobile nav overlay ─────────────────────────────────────── */
@media (max-width: 1100px) {
  [data-theme="dark"] .nav__menu {
    background: rgba(0, 25, 41, .98);
  }
  [data-theme="dark"] .nav__dropdown {
    background: var(--clr-bg-3);
  }
  [data-theme="dark"] .nav__mobile-social {
    border-top-color: rgba(0, 158, 227, 0.22);
  }
}

/* ── Pillar cards ────────────────────────────────────────────── */
[data-theme="dark"] .pillars-section {
  background: var(--clr-bg);
}
[data-theme="dark"] .pillar-card {
  background: var(--clr-bg);
  border: none;
}
[data-theme="dark"] .pillar-card__title { color: #ffffff; }

/* ── Membership page sections ───────────────────────────────── */
[data-theme="dark"] .membership-benefits,
[data-theme="dark"] .membership-form-section {
  background: var(--clr-bg);
}
[data-theme="dark"] .membership-benefit { background: var(--clr-bg-2); }
[data-theme="dark"] .membership-benefit__title { color: #ffffff; }

/* ── Form cards ─────────────────────────────────────────────── */
[data-theme="dark"] .form-section {
  background: var(--clr-bg-2);
  border-color: var(--clr-border);
}
[data-theme="dark"] .form-section--submit {
  background: var(--clr-bg);
  border-color: transparent;
}
[data-theme="dark"] .form-section__title { color: #ffffff; }

/* ── Form inputs ─────────────────────────────────────────────── */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background-color: var(--clr-bg);
  color: #e2e8f0;
  border-color: var(--clr-border);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--clr-yellow-tint);
  box-shadow: 0 0 0 3px var(--clr-yellow-glow);
}
[data-theme="dark"] .form-input::placeholder { color: var(--clr-text-faint); }
/* Dropdown arrow: light stroke for dark backgrounds */
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
[data-theme="dark"] .form-label { color: #e2e8f0; }

/* ── Checkboxes ─────────────────────────────────────────────── */
[data-theme="dark"] .form-check__input {
  background: var(--clr-bg);
  border-color: var(--clr-border);
}
[data-theme="dark"] .form-check__input:hover { border-color: var(--clr-yellow-tint); }
[data-theme="dark"] .form-check__input:checked {
  background: var(--clr-yellow-tint);
  border-color: var(--clr-yellow-tint);
}
[data-theme="dark"] .form-check__input:checked::after { border-color: #001929; }
[data-theme="dark"] .form-check__input:focus-visible { outline-color: var(--clr-yellow-tint); }
[data-theme="dark"] .form-check__label { color: #8baab8; }
[data-theme="dark"] .form-check__label a { color: var(--clr-yellow-tint); }

/* ── Form alerts ─────────────────────────────────────────────── */
[data-theme="dark"] .form-alert--error {
  background: rgba(220, 38, 38, .15);
  border-color: rgba(220, 38, 38, .4);
  color: #fca5a5;
}

[data-theme="dark"] .form-alert__list a { color: #fca5a5; }

[data-theme="dark"] .form-input--error {
  border-color: #f87171 !important;
  background-color: rgba(248, 113, 113, .06);
}

[data-theme="dark"] .form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .2);
  border-color: #f87171 !important;
}

[data-theme="dark"] .form-field-error { color: #fca5a5; }

[data-theme="dark"] .form-check--error .form-check__input { border-color: #f87171; }

/* ── Membership success ──────────────────────────────────────── */
[data-theme="dark"] .membership-success {
  background: var(--clr-bg-2);
  border-color: var(--clr-border);
}


/* ── Kontakt page ────────────────────────────────────────────── */
.form-textarea {
  resize: vertical;
  min-height: 160px;
}

/* Honeypot */
.kontakt-hp {
  display: none; /* hidden from all users and assistive technology */
}

/* ── News & Updates page ─────────────────────────────────────── */
[data-theme="dark"] .page-header.page-header--news {
  background:
    linear-gradient(180deg, rgba(255, 248, 178, 0.78) 0%, rgba(255, 248, 178, 0.72) 100%),
    url('../images/news-hero.jpg') center / cover no-repeat;
}

[data-theme="dark"] .page-header.page-header--news .section__eyebrow { color: #5b006c; }

[data-theme="dark"] .page-header.page-header--news .page-header__title,
[data-theme="dark"] .page-header.page-header--news .page-header__desc { color: #001929; }

[data-theme="dark"] .news-filter {
  background: var(--clr-bg-2);
  border-bottom-color: var(--clr-border);
}

[data-theme="dark"] .news-filter__pill {
  border-color: rgba(255,255,255,.15);
  color: #8baab8;
}

[data-theme="dark"] .news-filter__pill:hover {
  border-color: var(--clr-yellow-tint);
  color: var(--clr-yellow-tint);
  background: rgba(255, 242, 1, .06);
}

[data-theme="dark"] .news-filter__pill--active {
  background: var(--clr-yellow-tint);
  border-color: var(--clr-yellow-tint);
  color: #003A52;
  opacity: 1;
}

[data-theme="dark"] .news-filter__pill--active:hover { opacity: .9; }

/* ── Legal pages ─────────────────────────────────────────────── */
[data-theme="dark"] .legal-block { border-bottom-color: var(--clr-border); }
[data-theme="dark"] .legal-block a { color: var(--clr-yellow-tint); }
[data-theme="dark"] .legal-block a:hover { color: #ffffff; }
[data-theme="dark"] .legal-block--muted p { color: var(--clr-text-faint); }

/* ── Comments ────────────────────────────────────────────────── */
[data-theme="dark"] .comments-area { border-top-color: var(--clr-border); }
[data-theme="dark"] .comments-title,
[data-theme="dark"] .comment-reply-title { color: #ffffff; }
[data-theme="dark"] .comment-body { background: var(--clr-bg-2); border-color: var(--clr-border); }
[data-theme="dark"] .comment-author { color: #ffffff; }
[data-theme="dark"] .comment-form-field label { color: #ffffff; }
