/* ==========================================================================
   NEO-SWISS EDITORIAL DESIGN SYSTEM
   Theme: German Readings (https://germanreadings.de)
   ========================================================================== */

/* 1. Design Tokens & CSS Variables */
:root {
  /* Colors */
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-muted: #4c4546;
  --color-primary: #000000;
  --color-on-primary: #ffffff;
  --color-accent: #1D428A;       /* KKI Blue */
  --color-accent-on: #ffffff;
  --color-accent-tint: #E8EEF9;  /* Tinted Blue */
  --color-border: #000000;
  --color-gray-light: #eeeeee;
  --color-gray-medium: #dadada;

  /* Typography - System Inter Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout & Spacing */
  --spacing-base: 4px;
  --gutter: 24px;
  --margin-outer: 16px;
  --max-width: 1280px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --margin-outer: 64px;
  }
}

/* 2. Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Swiss Dot Grid background */
.swiss-grid-bg {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: radial-gradient(circle, var(--color-text) 1.2px, transparent 1.2px);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* 3. Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(3rem, 8vw, 5rem); /* 48px to 80px */
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.display-lg {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* 40px to 72px */
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* 28px to 40px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-md {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); /* 20px to 28px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.body-lg {
  font-size: clamp(1rem, 1.2vw, 1.125rem); /* 16px to 18px */
  line-height: 1.6;
  font-weight: 400;
}

.body-md {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 400;
}

.label-caps {
  font-size: 0.75rem; /* 12px */
  line-height: 1.33;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mono-label {
  font-size: 0.875rem; /* 14px */
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.8;
}

/* 4. Grid System & Layout Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding-left: var(--margin-outer);
  padding-right: var(--margin-outer);
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Sections structure */
section {
  position: relative;
  border-bottom: 2px solid var(--color-border);
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--color-bg);
}

@media (min-width: 768px) {
  section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* 5. Structural Divider Lines */
.divider-heavy {
  border-top: 2px solid var(--color-border);
}

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

/* 6. Component Styles */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.75rem; /* 12px label-caps */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-on);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Hover lift effect for action-oriented components */
.btn-lift {
  position: relative;
}

.btn-lift:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--color-border);
}

.btn-lift:active {
  transform: translate(0, 0);
  box-shadow: 0px 0px 0px var(--color-border);
}

/* Header & Navigation */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  transition: background-color var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--margin-outer);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

nav.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  nav.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

.nav-link {
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  padding: 6px 12px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
}

.nav-link.active {
  background-color: var(--color-accent);
  color: var(--color-accent-on);
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.menu-toggle-btn {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Material Symbols Outlined styling */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Side Drawer Navigation */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background-color: var(--color-surface);
  border-right: 2px solid var(--color-border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 32px var(--margin-outer);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.drawer-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.drawer-link:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
}

.drawer-link.active {
  background-color: var(--color-accent);
  color: var(--color-accent-on);
  border-color: var(--color-accent);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section Styles */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 80px;
  overflow: hidden;
  background-image: url('assets/images/hero_bg_swiss.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero-content {
  grid-column: 1 / -1;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--color-border);
  padding: 32px;
  max-width: 700px;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

@media (min-width: 768px) {
  .hero-content {
    grid-column: 1 / 9;
    padding: 48px;
  }
}

.badge {
  display: inline-block;
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-description {
  margin-top: 24px;
  max-width: 600px;
}

/* Event List Section */
.termine-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 16px;
}

.termine-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 2px solid var(--color-border);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.event-row:first-child {
  border-top: 2px solid var(--color-border);
}

.event-date-cell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.event-date-day {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-meta {
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.event-info-cell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.event-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

.event-location-cell {
  padding: 24px;
  display: flex;
  align-items: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.event-action-cell {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-arrow {
  font-size: 24px;
  transition: transform var(--transition-fast);
}

.event-row:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
}

.event-row:hover .event-arrow {
  transform: translateX(8px);
}

@media (min-width: 768px) {
  .event-row {
    grid-template-columns: 2fr 5fr 4fr 1fr;
  }
  .event-date-cell {
    border-right: 2px solid var(--color-border);
    border-bottom: none;
  }
  .event-info-cell {
    border-right: 2px solid var(--color-border);
    border-bottom: none;
  }
  .event-location-cell {
    border-right: 2px solid var(--color-border);
    border-bottom: none;
  }
  .event-action-cell {
    border-bottom: none;
  }
}

/* Alternate Grid Version for Events (Optional / Desktop alternative layout) */
.events-cards-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.event-card {
  border: 2px solid var(--color-border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.event-card:hover {
  background-color: var(--color-accent-tint);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.event-card-date-badge {
  background-color: var(--color-accent);
  color: var(--color-accent-on);
  border: 2px solid var(--color-border);
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.event-card-date-badge .day {
  font-size: 1.5rem;
  line-height: 1;
}

.event-card-date-badge .month {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-card-time {
  text-align: right;
}

.event-card-title {
  margin-bottom: 12px;
}

.event-card-subtitle {
  margin-bottom: 32px;
  opacity: 0.7;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-weight: 500;
}

.event-card-btn {
  margin-top: auto;
  width: 100%;
}

/* Mission Section (Das Projekt) */
.mission-section {
  background-color: #0A172C; /* Deep Dark KKI Blue */
  color: var(--color-on-primary);
  position: relative;
  overflow: hidden;
}

/* Parallax Grid Layer for Das Projekt */
.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  
  /* EINSTELLUNGEN FÜR DEN PARALLAX-EFFEKT:
     1. Gitter-Abstand (aktuell: 60px × 60px): Ändere diesen Wert, um die Punkte weiter auseinander oder enger zusammenzurücken.
     2. Punkt-Größe (aktuell: 1.5px): Ändere den ersten Wert im radial-gradient (z.B. 1.5px für kleiner, 4px für größer).
     3. Helligkeit (aktuell: 0.1): Ändere den Alpha-Kanal-Wert am Ende der rgba-Farbe (z.B. 0.1 für dunkler, 0.5 für viel heller). */
  background-size: 60px 60px;
  background-image: 
    radial-gradient(circle, rgba(143, 175, 254, 0.1) 1.5px, transparent 1.5px);
  
  background-attachment: fixed; /* Erzeugt den Parallax-Effekt (Hintergrund bleibt beim Scrollen fixiert) */
  z-index: 0;
  pointer-events: none;
}

.mission-section > * {
  position: relative;
  z-index: 1;
}

.mission-left {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mission-title {
  border-bottom: 2px solid var(--color-on-primary);
  padding-bottom: 16px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 48px;
}

.mission-quote {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}

.mission-right {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-text {
  max-width: 600px;
}

.mission-text p {
  margin-bottom: 24px;
}

.mission-accent-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.mission-line-bar {
  height: 4px;
  width: 96px;
  background-color: var(--color-accent-tint);
}

@media (min-width: 768px) {
  .mission-left {
    grid-column: 1 / 6;
    margin-bottom: 0;
    border-right: 2px solid var(--color-on-primary);
    padding-right: 48px;
  }
  .mission-right {
    grid-column: 7 / 13;
    padding-left: 24px;
  }
}

/* Call to Submission Section */
.submission-section {
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  text-align: center;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Parallax Grid Background Layer */
.submission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(29, 66, 138, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 66, 138, 0.07) 1px, transparent 1px);
  background-attachment: fixed; /* Parallax effect */
  z-index: 0;
  pointer-events: none;
}

/* Ensure contents stay on top of the background */
.submission-section > * {
  position: relative;
  z-index: 1;
}

.submission-content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.submission-title {
  margin-bottom: 24px;
}

.submission-description {
  max-width: 700px;
  margin-bottom: 40px;
  color: var(--color-text);
}

/* Team Section */
.team-header {
  grid-column: 1 / -1;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 16px;
}

.team-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.team-card {
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.team-card:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--color-border);
}

.team-photo-container {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 2px solid var(--color-border);
  background-color: var(--color-gray-light);
}

.team-photo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-accent);
  mix-blend-mode: screen;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 2;
}

.team-card:hover .team-photo-container::after {
  opacity: 0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: transform var(--transition-normal);
  z-index: 1;
}

.team-card:hover .team-photo {
  transform: scale(1.05);
}

.team-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-role {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.team-card:hover .team-role {
  color: var(--color-accent-tint);
}

/* Footer Section */
footer {
  background-color: var(--color-bg);
  border-top: 2px solid var(--color-border);
  padding: 64px 0 32px 0;
  margin-top: auto;
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-links-group {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-gray-medium);
  padding-top: 24px;
  margin-top: 24px;
  opacity: 0.6;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 16px 24px;
  background-color: var(--color-accent-tint);
  border: 2px solid var(--color-border);
  color: var(--color-accent);
  box-shadow: 4px 4px 0px var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-border);
  background-color: var(--color-accent);
  color: var(--color-accent-on);
  border-color: var(--color-border);
}

.fab:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--color-border);
}

/* Modern Swiss Modal Dialog */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--color-surface);
  border: 3px solid var(--color-border);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  z-index: 10;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-body p {
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--color-bg);
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-surface);
}

/* Event Filter / Search Controls */
.filter-container {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid var(--color-border);
  font-family: var(--font-family);
  font-size: 0.875rem;
  border-radius: 0;
  background-color: var(--color-surface);
}

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

.search-icon-inside {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

/* Supporters Logo Grid */
.logo-grid {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  flex: 0 1 calc(50% - 16px);
  max-width: 200px;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.7;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%) contrast(1.0);
}

.logo-item img {
  max-height: 65px;
  max-width: 100%;
  object-fit: contain;
}

.logo-pfefferberg img {
  max-height: 76px;
}

@media (min-width: 768px) {
  .logo-item {
    flex: 0 1 200px;
  }
}


/* iOS Safari background-attachment: fixed fallback */
@supports (-webkit-touch-callout: none) {
  .mission-section::before,
  .submission-section::before {
    background-attachment: scroll !important;
  }
}

/* Utilities */
.text-accent { color: var(--color-accent); }
.bg-accent-tint { background-color: var(--color-accent-tint); }
.hidden { display: none !important; }
.italic { font-style: italic; }
.font-light { font-weight: 300; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
