/* --- Base & Variables --- */
:root {
  --primary-light: #14A2AB;
  --primary-dark:  #0B8AB8;
  --text-dark: #1f2937; /* gray-800 */
  --text-medium: #4b5563; /* gray-600 */
  --text-light: #f9fafb; /* gray-50 */
  --bg-light: #f9fafb; /* gray-50 */
  --bg-white: #ffffff;
  --bg-dark: #1f2937; /* gray-800 */
}

input[type="range"] {
/* Grundfarbe des Tracks und des Thumbs */
accent-color: #0B8AB8;  /* z.B. dein Primary-Dark */
}
/* Local Poppins Fonts */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/Poppins-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Poppins-SemiBold.ttf') format('truetype');
}

/* --- General Styling --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.6;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem; /* 128px, increased for larger logo */
}
.logo img {
  height: 100px; /* Changed from 3rem */
  width: auto;
}
.nav-desktop {
  display: none; /* Hidden on mobile */
}
.nav-desktop a:not(.btn) {
  color: var(--text-medium);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-desktop a:not(.btn):hover {
  color: var(--text-dark);
  background-color: #f3f4f6;
}
.nav-desktop .btn { /* Contact button */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.mobile-menu-btn {
  display: block; /* Visible on mobile */
}
.mobile-menu {
  display: none; /* Initially hidden */
  padding: 1rem;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: color 0.2s, background-color 0.2s;
}
.mobile-menu a:not(.btn):hover {
  background-color: #f3f4f6; /* gray-100 */
  color: var(--text-dark);
}
.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.75rem 1rem;
}

/* --- Components --- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: opacity 0.2s;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--bg-white);
}
.btn:hover {
  opacity: 0.9;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding-top: 6rem; /* Adjusted padding */
  padding-bottom: 5rem; /* Adjusted padding */
  background: linear-gradient(135deg, rgba(20,162,171,.15), rgba(11,138,184,.15)); /* Light blue background */
}
.hero h1 {
  color: #111827; /* gray-900 */
}
.hero p {
  max-width: 56rem; /* max-w-3xl */
  margin: 1rem auto 0;
  font-size: 1.125rem; /* text-lg */
  color: var(--text-medium);
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.hero-buttons .btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--primary-dark);
}
.hero-buttons .btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

/* --- Stats & Map Section --- */
#map-section {
  padding-top: 0; /* Remove top padding to allow overlap */
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: -3rem; /* Overlap effect */
  position: relative;
  z-index: 1;
}
.stat-card {
  background-color: var(--bg-white);
  padding: 2rem 1.5rem; /* Increased padding */
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.04);
}
.stat-card h3 {
  font-size: 2rem; /* Increased font size */
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-dark); /* Solid color */
}
.stat-card span {
  font-size: 0.875rem; /* text-sm */
  color: #6b7280; /* gray-500 */
}
#map {
  width: 100%;
  height: 500px;
  border-radius: 0.75rem;
  z-index: 0;
  margin-top: 3rem; /* Adjusted margin */
  background-color: var(--bg-white);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- About Section --- */
.about-section {
  background-color: var(--bg-white);
}
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-grid img {
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.about-grid p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-medium);
}
.about-grid .btn {
  margin-top: 1.5rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
}
.cta-box {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  color: var(--text-light);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.cta-box p {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: #dbeafe; /* blue-100 */
}
.cta-box .btn {
  margin-top: 2rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
}
.cta-box .btn:hover {
  background-color: #e5e7eb; /* gray-200 */
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--bg-white);
}
.contact-wrapper {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-wrapper .header {
  text-align: center;
}
.contact-wrapper .header p {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--text-medium);
}
.contact-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
}
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.contact-form .submit-button {
  text-align: center;
}

.sponsors-section {
  text-align: center;
}
.sponsors-section {
  background-color: var(--bg-white);
}
.sponsors-section h2, .info-section h2 {
  margin-top: 0;
  color: var(--text-medium);
  font-size: 1.25rem;
  font-weight: 400;
}
.logo-grid {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
}
.logo-grid img {
  max-height: 55px; /* Höhe der Sponsoren-Logos anpassen */
  max-width: 200px;
   /*filter: grayscale(100%);*/
  /*opacity: 0.7;*/
  transition: all 0.2s ease-in-out;
}
.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Impressum Section --- */
.impressum-section {
  background-color: var(--bg-white);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.impressum-section .container {
  max-width: 48rem;
}
.impressum-section p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-medium);
  text-align: left;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: #9ca3af; /* gray-400 */
  text-align: center;
  padding: 2rem 1rem;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 0.75rem;
  margin: 0.75rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transform: translateY(-120%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

/* --- Responsive Design (Media Queries) --- */
@media (min-width: 768px) { /* Corresponds to Tailwind's 'md' breakpoint */
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  h1 {
    font-size: 3.75rem; /* 60px */
  }
  h2 {
    font-size: 2.25rem; /* 36px */
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem; /* Adjusted gap for button-like links */
  }
  .mobile-menu-btn {
    display: none;
  }
  .hero-buttons {
    flex-direction: row;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  #map {
    margin-top: 3rem;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid .content {
    order: 1;
  }
  .about-grid .image {
    order: 2;
  }
} 

/* --- About (modernized, image‑free) --- */
.about-modern {
  position: relative;
  background:
    radial-gradient(1000px 500px at -10% -10%, rgba(20,162,171,.08), transparent 60%),
    radial-gradient(1000px 600px at 110% 0%, rgba(11,138,184,.06), transparent 60%),
    var(--bg-white);
}
.about-modern .about-header {
  text-align: center;
  max-width: 58rem;
  margin: 0 auto 2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background-color: rgba(11,138,184,.08);
  padding: .35rem .6rem;
  border-radius: .5rem;
  border: 1px solid rgba(11,138,184,.2);
}
.about-modern .lead {
  margin-top: 1rem;
  color: var(--text-medium);
  font-size: 1.125rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.chip {
  padding: .4rem .75rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,162,171,.06), transparent 30%);
  pointer-events: none;
}
.feature h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.feature p { color: var(--text-medium); }
.icon {
  width: 42px; height: 42px;
  border-radius: .75rem;
  background: linear-gradient(135deg, rgba(11,138,184,.12), rgba(20,162,171,.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  border: 1px solid rgba(11,138,184,.25);
}
.icon svg { width: 22px; height: 22px; }

.about-modern .note {
  margin-top: 2rem;
  border: 1px dashed rgba(11,138,184,.3);
  border-radius: 1rem;
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(180deg, rgba(11,138,184,.06), rgba(20,162,171,.06));
}
.about-modern .note svg { width: 20px; height: 20px; }
.about-modern .note p { margin: 0; flex: 1; color: var(--text-medium); }
.about-modern .note .btn { margin-left: auto; }

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Impressum zentrieren (Override) --- */
.impressum-section {
  text-align: center; /* zentriert Überschrift und Inline-Elemente */
}

.impressum-section .container {
  /* bestehendes max-width bleibt erhalten; die Container-Klasse zentriert bereits per margin:auto */
  margin-left: auto;
  margin-right: auto;
}

.impressum-section h2 {
  margin-bottom: 1rem;
}

.impressum-section p {
  text-align: center; /* überschreibt die bisherige left-Ausrichtung */
  margin-left: auto;
  margin-right: auto;
}

    /* ================= Corner Ribbon (bulletproof) =================
       - Wrapper sitzt fix im Viewport (kein Clipping)
       - Band ist zweizeilig und per CSS-Variablen feintunebar
       - Keine negativen top-Margins, nur definierte Offsets
    ================================================================= */
    :root {
      --ribbon-top: 30px;     /* vertikaler Versatz innerhalb der Ecke */
      --ribbon-right: -35px;  /* nach rechts rausziehen (negativ) */
      --ribbon-width: 180px;  /* Breite => 2 Zeilen bei langem Text */
      --ribbon-font: 700 14px/1.15 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      --ribbon-bg: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    }

