/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --color-primary: #5B2D8E;
  --color-primary-light: #7B4DAE;
  --color-primary-dark: #3E1D62;
  --color-biber: #5B2D8E;
  --color-woelfling: #FF6B00;
  --color-jupfi: #0066CC;
  --color-pfadi: #2D7D2D;
  --color-rover: #CC0000;
  --color-accent: #D4A574;
  --color-earth: #8B6914;
  --color-forest: #2D5016;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F0EDE8;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-light); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .5rem;
  color: var(--color-primary-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}
.section-title + .section-subtitle { margin-top: 0; }
.section-title:not(:has(+ .section-subtitle)) { margin-bottom: 2.5rem; }
.loading { text-align: center; color: var(--color-text-muted); }

/* Intro text (index) */
.intro-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .9rem; }

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background .3s;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--color-primary); }
.nav-logo img { height: 40px; width: auto; }
.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width .2s;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}
.nav-menu a.active {
  font-weight: 700;
  color: var(--color-primary-dark);
}
.nav-menu a.active::after {
  width: 100%;
  height: 3px;
}
.nav-menu a.active.nav-cta {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

.nav-cta {
  background: #E8430A !important;
  color: var(--color-white) !important;
  padding: .5rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all .2s !important;
  white-space: nowrap !important;
}
.nav-cta:hover {
  background: #C7370A !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,67,10,.35) !important;
}
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-text);
  transition: all .3s;
}

/* ===========================
   Page Hero (subpages)
   =========================== */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 2.5rem;
  text-align: center;
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: .85;
}

/* ===========================
   Hero (index)
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-dark);
  will-change: transform;
}
.hero-overlay {
  position: relative;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  z-index: 1;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: -100vh -100vw;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(91,45,142,.5));
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: .9;
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 2rem;
}
.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.cta-banner .btn-primary:hover {
  background: transparent;
  color: var(--color-white);
}

/* ===========================
   About
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { margin-bottom: 1rem; font-size: 1.05rem; color: var(--color-text-muted); }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ===========================
   Leiter Grid
   =========================== */
.leiter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.leiter-card {
  text-align: center;
  max-width: 160px;
  cursor: pointer;
}
.leiter-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.leiter-card:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.leiter-card h4 {
  font-size: 1rem;
  margin-bottom: .2rem;
  color: var(--color-text);
}
.leiter-card p {
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ===========================
   Stufen
   =========================== */
.stufen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stufe-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--stufe-color, var(--color-primary));
  transition: transform .3s, box-shadow .3s;
}
.stufe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stufe-header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.stufe-emoji { font-size: 2rem; }
.stufe-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.stufe-header h3 { font-size: 1.2rem; color: var(--stufe-color); }
.stufe-details p { font-size: .9rem; margin-bottom: .4rem; color: var(--color-text-muted); }
.stufe-age { font-weight: 600; color: var(--color-text) !important; }
.stufe-details a { font-size: .85rem; word-break: break-all; }

/* ===========================
   Events
   =========================== */
.events-list { max-width: 700px; margin: 0 auto; }
.event-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  align-items: flex-start;
}
.event-item.past { opacity: .5; }
.event-date {
  min-width: 70px;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: .6rem .5rem;
  font-weight: 700;
  line-height: 1.2;
}
.event-date .month { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.event-date .day { font-size: 1.4rem; }
.event-body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.event-body p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: .3rem; }
.event-body .event-location { font-size: .85rem; }

/* ===========================
   News
   =========================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.news-card-body { padding: 1.2rem; }
.news-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.news-card-body .news-meta { font-size: .8rem; color: var(--color-text-muted); margin-bottom: .7rem; }
.news-card-body .news-excerpt { font-size: .9rem; color: var(--color-text-muted); }

/* ===========================
   Gallery
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-mini {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4/3;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: white;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.gallery-events {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-event-card {
  position: relative;
  cursor: pointer;
  outline: none;
}
.gallery-event-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.gallery-event-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-event-card:hover img,
.gallery-event-card:focus-visible img {
  transform: scale(1.04);
}
.gallery-stack-hint {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,.25);
  transform: rotate(2deg) translate(6px, -6px);
  pointer-events: none;
  z-index: -1;
  background: rgba(91,45,142,.06);
}
.gallery-event-badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: rgba(26,26,26,.78);
  color: var(--color-white);
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  z-index: 2;
}
.gallery-event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: var(--color-white);
  z-index: 2;
}
.gallery-event-overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--color-white);
}
.gallery-event-meta {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .2rem;
}
.gallery-event-card:focus-visible .gallery-event-cover {
  box-shadow: 0 0 0 4px rgba(91,45,142,.25);
}
@media (max-width: 768px) {
  .gallery-caption { opacity: 1; font-size: .78rem; padding: .5rem .6rem; }
  .gallery-events { gap: 1.5rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none; border: none;
  color: white; font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  transition: background .2s;
  z-index: 10;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-meta {
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  max-width: 90vw;
}
.lightbox-meta-kicker {
  font-size: .8rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.lightbox-meta h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}
.lightbox-img {
  max-width: 90vw; max-height: 65vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-caption {
  color: white;
  text-align: center;
  font-size: 1rem;
  margin-top: .75rem;
  padding: .5rem 1rem;
  background: rgba(0,0,0,.5);
  border-radius: 8px;
  max-width: 90vw;
}
.lightbox-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  max-width: min(90vw, 900px);
  overflow-x: auto;
  padding-bottom: .25rem;
}
.lightbox-thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  opacity: .75;
}
.lightbox-thumb.active {
  border-color: var(--color-white);
  opacity: 1;
}
.lightbox-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
}

/* ===========================
   Mitmachen
   =========================== */
.mitmachen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.mitmachen-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.mitmachen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.mitmachen-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.mitmachen-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ===========================
   Kontakt
   =========================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.kontakt-info h3 { margin-bottom: 1rem; }
.kontakt-info p { margin-bottom: .7rem; font-size: 1.05rem; }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo { margin-bottom: .7rem; max-width: 120px; height: auto; display: block; }
.footer h4 { color: var(--color-white); margin-bottom: .8rem; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer a:hover { color: var(--color-white); }
.footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  opacity: .6;
}

/* ===========================
   Desktop (>1024px)
   =========================== */
@media (min-width: 1025px) {
  :root { --max-width: 1400px; }
  body { font-size: 1.05rem; }
  .section { padding: 6rem 0; }
  .stufen-grid.stufen-full {
    grid-template-columns: repeat(5, 1fr);
  }
  .stufen-grid:not(.stufen-full) {
    grid-template-columns: repeat(5, 1fr);
  }
  .leiter-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .leiter-card img {
    width: 140px;
    height: 140px;
  }
}

/* ===========================
   Tablet
   =========================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-mini { grid-template-columns: repeat(3, 1fr); }
  .stufen-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================
   Mobile
   =========================== */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height); right: -100%;
    width: 70%; max-width: 320px; height: calc(100vh - var(--nav-height));
    flex-direction: column;
    background: var(--color-white);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right .3s;
  }
  .nav-menu.open { right: 0; }
  .nav-cta { text-align: center !important; }
}
@media (max-width: 768px) {
  .about-grid,
  .mitmachen-grid,
  .kontakt-grid { grid-template-columns: 1fr; }
  .stufen-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .gallery-mini { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .leiter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .leiter-card img {
    width: 90px;
    height: 90px;
  }
  .gallery-event-badge {
    top: .5rem; right: .5rem;
    padding: .2rem .45rem;
    font-size: .7rem;
  }
  .gallery-event-overlay { padding: .8rem .7rem .6rem; }
  .gallery-event-overlay h3 { font-size: .9rem; }
  .gallery-event-meta { font-size: .68rem; }
  .gallery-stack-hint { transform: rotate(1.5deg) translate(4px, -4px); }
  .lightbox { padding: 1rem; }
  .lightbox-img { max-width: 100%; max-height: 50vh; }
  .lightbox-prev, .lightbox-next {
    padding: .45rem .8rem;
    font-size: 1.7rem;
  }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
  .lightbox-thumbs {
    gap: .4rem;
    margin-top: .75rem;
    max-width: 100%;
  }
  .lightbox-thumb img {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .stufen-grid { grid-template-columns: 1fr; }
  .leiter-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .gallery-mini { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: calc(var(--nav-height) + 2.2rem) 1rem 2rem; }
  .container { padding: 0 1rem; }
  .gallery-event-overlay h3 { font-size: .85rem; }
  .lightbox-meta h3 { font-size: 1.25rem; }
  .lightbox-caption { font-size: .95rem; padding: .45rem .75rem; }
}

/* Legal pages */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.4rem; color: var(--color-primary-dark); margin-top: 2.5rem; margin-bottom: .8rem; }
.legal-content h3 { font-size: 1.15rem; color: var(--color-text); margin-top: 1.5rem; margin-bottom: .5rem; }
.legal-content p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: .8rem; }
.legal-content a { color: var(--color-primary); }

/* Article Modal */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.article-modal[hidden] { display: none; }
.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.article-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--color-white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: .5rem 1rem;
  color: var(--color-text-muted);
  z-index: 1;
  border-radius: 0 var(--radius-lg) 0 var(--radius);
}
.article-modal-close:hover { color: var(--color-text); }
.article-modal-body { padding: 2rem; }
.article-modal-body img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.article-modal-body .article-meta {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.article-modal-body h1 {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}
.article-modal-body p {
  line-height: 1.7;
  margin-bottom: .8rem;
  color: var(--color-text-muted);
}
.news-card { cursor: pointer; }

/* Event images */
.event-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: auto;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 480px) {
  .event-image { display: none; }
}

/* Stufen description text */
.stufe-desc {
  margin-top: .8rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--color-text-muted) !important;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: .8rem;
}

.leiter-card:has(img[src*="placeholder"]) { cursor: default; }

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  color: var(--color-primary-dark);
}
.faq-item p {
  font-size: .95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Mitmachen card equal height with buttons pinned to bottom */
.mitmachen-grid {
  align-items: stretch;
}
.mitmachen-card {
  display: flex;
  flex-direction: column;
}
.mitmachen-card p {
  flex: 1;
}
.mitmachen-buttons {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
}

/* Nav logo: shorter text on small screens */
.nav-logo .logo-short { display: none; }
@media (max-width: 480px) {
  .nav-logo .logo-full { display: none; }
  .nav-logo .logo-short { display: inline; }
}
