/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-glow);
}

/* Elemente mit eigener Farbe bleiben unberührt */
.navbar-logo,
.navbar-link,
.btn-primary,
.btn-outline,
.footer-legal-link,
.footer-nav-list a,
.footer-social-link,
.footer-logo,
.footer-email {
  color: inherit;
}

/* Inline-Links in Fliesstext */
p a,
li a:not(.btn-primary):not(.btn-outline):not(.navbar-link):not(.footer-nav-list a):not(.footer-social-link) {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

p a:hover,
li a:not(.btn-primary):not(.btn-outline):not(.navbar-link):hover {
  color: var(--color-accent-glow);
}

small {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  box-sizing: border-box;
}

.container--narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container,
  .container--narrow { padding: 0 24px; }
}

@media (max-width: 480px) {
  .container,
  .container--narrow { padding: 0 20px; }
}

/* =========================================
   RECHTLICHE SEITEN
   ========================================= */
.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 100px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0 0 40px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 40px 0 12px;
  letter-spacing: 0.04em;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 28px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.legal-content li {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(45, 27, 110, 0.2);
  margin: 32px 0;
}

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-accent-glow);
}

.legal-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  opacity: 0.6;
  margin-bottom: 48px;
  display: block;
}

@media (max-width: 768px) {
  .legal-content { padding: 40px 24px 80px; }
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--dark {
  background-color: var(--color-bg-secondary);
}

.section--border {
  border-top: 1px solid var(--color-border);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.section-subtitle {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--color-accent-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary:hover  { opacity: 0.85; transform: translateY(-1px); color: #fff; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(139, 126, 200, 0.35);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-outline:hover  { border-color: var(--color-accent-primary); transform: translateY(-1px); color: var(--color-text-primary); }
.btn-outline:active { transform: translateY(0); }

.btn-lg { padding: 14px 32px; font-size: 13px; }
.btn-sm { padding: 8px 18px; font-size: 11px; }

/* Focus states — accessibility */
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
}

/* Legacy aliases — keep for components */
.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.22); }

/* =========================================
   BADGES
   ========================================= */
.badge-date {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--color-accent-primary);
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.badge-upcoming {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(34, 212, 168, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(34, 212, 168, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.badge-past {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(138, 138, 138, 0.08);
  color: var(--color-text-secondary);
  border: 1px solid rgba(138, 138, 138, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

/* =========================================
   NAVBAR
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 27, 110, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 26, 0.97);
  border-bottom-color: rgba(45, 27, 110, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  gap: 24px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}

.navbar-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(240, 238, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.navbar-link:hover,
.navbar-link.is-active {
  color: #F0EEFF;
}

.navbar-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #F0EEFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-hamburger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar-hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-hamburger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav — ausserhalb des Headers, inset:0 relativ zum Viewport */
.navbar-mobile {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 48px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
  overflow-y: auto;
}

.navbar-mobile.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Top-Bar: Flags links, Close rechts */
.navbar-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(45, 27, 110, 0.2);
  flex-shrink: 0;
}

.navbar-mobile-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 27, 110, 0.3);
  border-radius: 8px;
  color: var(--color-text-secondary);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.navbar-mobile-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.navbar-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

/* Force override of the global li a rule (higher specificity) */
.navbar-mobile .navbar-mobile-links li a {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 5.5vw, 28px) !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
  display: inline-block;
}

.navbar-mobile .navbar-mobile-links li a:hover {
  color: var(--color-accent-cyan) !important;
}

/* Mobile nav footer: account button only */
.navbar-mobile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Lang switcher — in top bar (keine border-top mehr) */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(45, 27, 110, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 36px;
}

.mobile-lang-btn img {
  border-radius: 2px;
  display: block;
  width: 22px;
  height: 16px;
}

.mobile-lang-btn.is-current {
  background: rgba(123, 47, 255, 0.15);
  border-color: rgba(123, 47, 255, 0.4);
  color: var(--color-text-primary) !important;
}

.mobile-lang-btn:hover {
  background: rgba(123, 47, 255, 0.1);
  border-color: rgba(123, 47, 255, 0.35);
  color: var(--color-text-primary) !important;
}

.navbar-mobile-cta {
  width: 100%;
  max-width: 300px;
  justify-content: center;
  font-size: 13px;
  padding: 14px 24px;
}

/* Push content under fixed navbar */
.site-main {
  padding-top: 104px;
}

/* Lang-Bar: immer versteckt bis JS Flags hineinlädt */
.navbar-lang-bar {
  display: none;
}

/* Mobile: GTranslate-Widget unsichtbar schalten BEVOR JS es verschiebt (kein Flash) */
body.gt-processing [id^="gt-wrapper"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 960px) {
  .navbar-links     { display: none; }
  .navbar-hamburger { display: flex; }

  /* Navbar auf Mobile höher für mehr Atemraum */
  .navbar       { height: 112px; }
  .site-main    { padding-top: 112px; }
  .hero-section { margin-top: -112px; }

  /* Flags-Bar: erst nach JS (.is-ready) sichtbar */
  .navbar-lang-bar.is-ready {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(45, 27, 110, 0.25);
  }

  /* Echten GTranslate-Wrapper in der Flags-Bar: GTranslate-Styling komplett überschreiben */
  .navbar-lang-bar [id^="gt-wrapper"] {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 0 !important;
    pointer-events: auto !important;
    cursor: default !important;
  }

  /* Innerer Switcher-Container */
  .navbar-lang-bar [id^="gt-wrapper"] > div,
  .navbar-lang-bar [id^="gt-wrapper"] .gt_switcher_open,
  .navbar-lang-bar [id^="gt-wrapper"] .gt_switcher {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
  }

  /* Sprach-Links */
  .navbar-lang-bar [id^="gt-wrapper"] a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .navbar-lang-bar [id^="gt-wrapper"] a:hover {
    color: var(--color-text-primary) !important;
    background: rgba(123, 47, 255, 0.08) !important;
  }

  .navbar-lang-bar [id^="gt-wrapper"] img {
    width: 18px !important;
    height: auto !important;
    border-radius: 2px !important;
  }

  .navbar-lang-bar [id^="gt-wrapper"] a.gt-selected,
  .navbar-lang-bar [id^="gt-wrapper"] a.gt-current-lang {
    color: var(--color-accent-cyan) !important;
  }

  /* Padding JS übernimmt nach Flags-Insert */
  .site-main { padding-top: 88px; }
}

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

.hero-section {
  position: relative;
  height: 100dvh;
  margin-top: -104px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 16, 0.88) 0%,
    rgba(10, 8, 32, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 120px 0 100px;
}

.hero-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--color-text-primary);
  margin: 0 0 24px;
}

.hero-title-accent {
  color: var(--color-accent-primary);
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0 0 40px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =========================================
   STATS
   ========================================= */

.stats-section {
  border-top: 1px solid rgba(45, 27, 110, 0.2);
  border-bottom: 1px solid rgba(45, 27, 110, 0.2);
  padding: 44px 0;
  background: rgba(10, 10, 26, 0.5);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-accent-primary);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(45, 27, 110, 0.35);
  flex-shrink: 0;
}

/* =========================================
   SECTION BASE
   ========================================= */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 56px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.section-cta {
  text-align: left;
  margin-top: 48px;
}

/* =========================================
   BREADCRUMBS (Rank Math) — bewusst dezent,
   soll nicht mit Hero/H1 konkurrieren
   ========================================= */

.rank-math-breadcrumb {
  margin: 20px 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.rank-math-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rank-math-breadcrumb a:hover {
  color: var(--color-text-primary);
}

/* =========================================
   EVENTS PREVIEW
   ========================================= */

.events-preview-section {
  background: var(--color-bg-secondary);
}

.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-secondary);
  padding: 60px 0;
  font-size: 16px;
}

/* =========================================
   ABOUT TEASER
   ========================================= */

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-teaser-text .section-label,
.about-teaser-text .section-title {
  text-align: left;
}

.about-teaser-text .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.about-teaser-body {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

.about-teaser-more-content p {
  margin: 0 0 16px;
}

.about-teaser-more-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 24px 0 12px;
}

.about-teaser-more-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin: 20px 0;
  display: block;
}

.about-teaser-more-content a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-teaser-more {
  margin-top: 4px;
}

.about-teaser-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-primary);
  letter-spacing: 0.02em;
}

.about-teaser-more summary::-webkit-details-marker {
  display: none;
}

.about-teaser-more summary::marker {
  content: '';
}

.about-teaser-more summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.about-teaser-more[open] summary::after {
  transform: rotate(-135deg);
}

.about-teaser-more[open] summary {
  margin-bottom: 16px;
}

.about-teaser-more-content {
  max-width: 42em;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.about-teaser-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid rgba(45, 27, 110, 0.2);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.value-item:hover {
  border-color: rgba(123, 47, 255, 0.35);
}

.value-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.value-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

.value-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* =========================================
   SPLIT TEASER (Tickets / Community / Galerie)
   ========================================= */

.tickets-teaser-section {
  background: var(--color-bg-primary);
}

.community-teaser-section,
.gallery-teaser-section {
  background: var(--color-bg-secondary);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.teaser-text .section-label,
.teaser-text .section-title {
  text-align: left;
}

.teaser-text .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.teaser-body {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

.teaser-visual {
  aspect-ratio: 4 / 3;
}

.teaser-visual-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-bg-primary));
  box-shadow: var(--shadow-card);
}

.teaser-visual-card svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-primary);
  opacity: 0.9;
}

.teaser-visual-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.teaser-visual-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.75);
}

/* =========================================
   APP TEASER (Earthline Portal)
   ========================================= */

.app-teaser-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid rgba(45, 27, 110, 0.2);
  border-bottom: 1px solid rgba(45, 27, 110, 0.2);
  background: radial-gradient(circle at 50% 0%, var(--color-accent-dim) 0%, transparent 70%);
}

.app-teaser-container {
  max-width: 700px;
}

.app-teaser-icon {
  display: block;
  margin: 0 auto 20px;
  color: var(--color-accent-cyan);
}

.app-teaser-section .section-title {
  margin-bottom: 20px;
}

.app-teaser-body {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

.app-teaser-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   APP NEWSLETTER MODAL
   ========================================= */

.app-newsletter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(5, 5, 16, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-newsletter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-newsletter-modal {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(45, 27, 110, 0.3);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.app-newsletter-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.app-newsletter-modal-close:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.app-newsletter-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}

.app-newsletter-modal-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

#appNewsletterForm {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#appNewsletterForm input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(45, 27, 110, 0.4);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

#appNewsletterForm input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent-primary);
}

#appNewsletterForm input[type="email"]::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.app-newsletter-modal-legal {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.app-newsletter-modal-legal a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-newsletter-modal-success {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .app-newsletter-modal { padding: 28px 20px; }
  #appNewsletterForm { flex-direction: column; }
}

/* =========================================
   RESPONSIVE (Homepage)
   ========================================= */

@media (max-width: 900px) {
  .events-grid       { grid-template-columns: 1fr 1fr; }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 48px; }
  .teaser-grid        { grid-template-columns: 1fr; gap: 48px; }
  .stat-item         { padding: 0 36px; }
}

@media (min-width: 901px) {
  .teaser-grid--reverse .teaser-visual { order: -1; }
}

@media (max-width: 600px) {
  .section           { padding: 64px 0; }
  .events-grid       { grid-template-columns: 1fr; }
  .hero-btns         { flex-direction: column; }
  .hero-content      { padding: 100px 0 80px; }
  .stats-grid        { flex-direction: column; gap: 28px; }
  .stat-divider      { width: 48px; height: 1px; }
}

/* Navbar: Button-Label ab 640px verstecken — nur Icon sichtbar, spart Platz */
@media (max-width: 640px) {
  .navbar-btn-label { display: none; }
  .navbar-actions   { gap: 8px; }
  .navbar-actions .btn-primary.btn-sm,
  .navbar-actions .btn-outline.btn-sm {
    padding: 0 12px;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 10px;
  }
  /* Mobile Nav Padding reduzieren */
  .navbar-mobile { padding: 0 20px 40px; }
}

@media (max-width: 480px) {
  .section           { padding: 48px 0; }
  .section-header    { margin-bottom: 36px; }
  .hero-content      { padding: 80px 0 60px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; justify-content: center; }
  /* Navbar auf kleinen Screens */
  .navbar    { height: 96px; }
  /* padding-top wird via JS gesetzt wenn Flags-Bar erscheint */
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(45, 27, 110, 0.25);
}

/* Oberer Footer */
.footer-main {
  padding: 64px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 0.8fr;
  gap: 48px;
}

/* Brand */
.footer-logo-mark {
  display: block;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 10px;
}

.footer-logo-mark img {
  display: block;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-primary);
  margin: 0 0 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}

.footer-email {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.footer-email:hover {
  color: var(--color-accent-cyan);
}

.footer-brand-icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-brand-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 27, 110, 0.3);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-brand-icon-link:hover {
  background: rgba(123, 47, 255, 0.15);
  border-color: var(--color-accent-primary);
  color: var(--color-text-primary);
}

/* Values column */
.footer-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(123, 47, 255, 0.12);
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.footer-value-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 3px;
}

.footer-value-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Spalten-Titel */
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0 0 20px;
}

/* Navigation */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
  color: var(--color-text-primary);
}

/* Social */
.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: var(--color-text-primary);
}

/* Newsletter Stripe */
.footer-newsletter {
  border-top: 1px solid rgba(45, 27, 110, 0.2);
  border-bottom: 1px solid rgba(45, 27, 110, 0.2);
  padding: 32px 0;
  background: rgba(123, 47, 255, 0.03);
}

.footer-newsletter-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-newsletter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(123, 47, 255, 0.18);
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.footer-newsletter-text {
  flex-shrink: 0;
}

.footer-newsletter-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

.footer-newsletter-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(45, 27, 110, 0.4);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
}

.footer-newsletter-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.footer-newsletter-btn {
  padding: 10px 20px;
  background: var(--color-accent-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-newsletter-btn:hover {
  opacity: 0.85;
}

.footer-newsletter-privacy {
  width: 100%;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  opacity: 0.7;
}

.footer-newsletter-privacy a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bottom Bar */
.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--color-text-primary);
}

.footer-legal-sep {
  font-size: 12px;
  color: var(--color-text-secondary);
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-values,
  .footer-social-col {
    grid-column: 1 / -1;
  }
}

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

  .footer-newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-newsletter-form {
    width: 100%;
    min-width: unset;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .footer-main {
    padding: 48px 0 40px;
  }
}

/* =========================================
   PAGE CONTENT
   ========================================= */
.page-title {
  margin-bottom: 1.5rem;
}

.page-body {
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.page-body p + p {
  margin-top: 1rem;
}

.post-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.post-header {
  margin-bottom: 2rem;
}

/* =========================================
   PAGE HERO (Sub-Pages)
   ========================================= */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(45, 27, 110, 0.15);
}

/* Left-aligned variant used by page.php (legal pages) */
.page-hero--left {
  text-align: left;
  padding-bottom: 2.5rem;
}

.page-hero--left .section-label {
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-hero__subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   PROSE CONTENT (Impressum, Datenschutz etc.)
   ========================================= */
.section--page-content {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.prose-content {
  max-width: 720px;
}

/* Suppress the duplicate H1 from editor content —
   the title is already shown in the page-hero above */
.prose-content h1:first-child,
.prose-content > h1 {
  display: none;
}

/* Override global display sizes for readable prose headings */
.prose-content h2 {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-border);
}

.prose-content h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose-content h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

.prose-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 66ch;
}

.prose-content a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover {
  color: var(--color-text-primary);
}

.prose-content ul,
.prose-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-content li {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.375rem;
}

/* =========================================
   ARCHIVE / EVENTS GRID
   ========================================= */
.archive-header {
  margin-bottom: 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =========================================
   ACCESSIBILITY UTILITY
   ========================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Focus ring for keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
}
