:root {
  --bg: #0d0d0d;                 /* Tiefes Schwarzgrau */
  --surface: rgba(30,30,30,0.85); /* Glassmorphism Oberfläche */
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --primary: #00d4ff;            /* Neon-Cyan */
  --accent: #ff0d00;             /* Neon-Pink */
  --outline: rgba(255,255,255,0.1);
  --focus: #ffd166;
  --font: "Poppins", "Inter", system-ui, sans-serif;
  --radius: 0.75rem;
  --shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* Layout safety: prevent horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, #464545 0%, #1a1a1a 40%, #170606 100%);
  background-attachment: fixed;
}

/* Halbtransparente Flächen für Lesbarkeit */
.site-header, .site-footer, section {
  position: relative;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  margin: 1rem auto;
  padding: clamp(1rem, 3vw, 2rem);
}

/* Links */
a { color: var(--primary); text-decoration: none; transition: all .3s ease; }
a:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* Header & Navigation */
.branding { display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; }
.logo { height: auto; width:52px; filter: drop-shadow(0 0 6px var(--primary)); max-width: 100%; }
.site-title { font-weight: 700; font-size: clamp(1rem, 2.5vw, 1.2rem); letter-spacing: 1px; }

/* Toggle (position for desktop header) */
.nav-toggle {
  position: absolute; right: 1rem; top: .75rem;
  background: var(--accent); color: #fff;
  border: none; padding: .6rem .9rem;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .3s ease;
}
.nav-toggle:hover { transform: scale(1.1); }

.site-nav ul {
  list-style: none; margin: 0; padding: clamp(.25rem, 2vw, 1rem);
  display: flex; gap: clamp(.75rem, 3vw, 1.5rem); flex-wrap: wrap;
}
.site-nav a {
  padding: .4rem .7rem;
  border-radius: var(--radius);
  transition: background-color .3s ease, color .3s ease;
}
.site-nav a:hover { background: var(--accent); color: #fff; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--primary); }

/* Hero */
.hero, .page-hero {
  padding: clamp(3rem, 10vh, 5rem) 1rem;
  background: linear-gradient(135deg, #1e1e1e, #262626);
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.page-hero-event {
  padding: clamp(3rem, 10vh, 5rem) 1rem;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 0.9) 80%
    ),
    url('assets/hintergrund.jpeg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1, .page-hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .motto { color: var(--muted); font-style: italic; font-size: clamp(1rem, 3.5vw, 1.2rem); }

/* Sections */
section { padding: clamp(2rem, 6vw, 3rem) 1rem; max-width: 1200px; margin: 0 auto; }

.features .card-grid, .fees .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  border-left: 3px solid var(--accent);
  padding: .5rem 1rem; margin: clamp(1rem, 3vw, 1.5rem) 0; position: relative;
  transition: transform .3s ease;
}
.timeline li:hover { transform: translateX(5px); }
.timeline time { display: inline-block; min-width: 120px; color: var(--primary); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.3rem;
  border-radius: var(--radius); font-weight: 600;
  border: 2px solid transparent; transition: all .3s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: #001a1d; }
.btn-primary:hover { background: #00bce6; box-shadow: 0 0 12px var(--primary); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--primary); box-shadow: 0 0 12px var(--accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #001a1d; }
.btn + .btn { margin-left: .5rem; }

/* Footer */
.site-footer {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border-top: 1px solid var(--outline);
  padding: clamp(2rem, 5vw, 3rem) 1rem; text-align: center;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem); text-align: left; max-width: 1200px; margin: 0 auto clamp(1rem, 3vw, 1.5rem);
}

.social {
  list-style: none;
  padding: 0;
  display: block;
  text-align: left;   /* zentriert */
   gap: clamp(.75rem, 3vw, 1.2rem); flex-wrap: wrap;
}

.social li {
  margin-bottom: .6rem;
}

.social a { font-weight: 600; transition: color .3s ease; }
.social a:hover { color: var(--accent); }

/* Images */
.two-images-center {
  display: flex;
  justify-content: center;   /* zentriert horizontal */
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;           /* auf Handy untereinander */
  margin: 2rem auto;
  text-align: center;
}

.two-images-center img {
  width: 400px;              /* feste, schöne Größe */
  max-width: 100%;           /* skaliert auf Handy */
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  transition: transform .4s ease;
  box-shadow: var(--shadow);
}

.info { text-align: center; }
.flyer { text-align: center; margin-top: clamp(1rem, 6vh, 3rem); margin-bottom: clamp(1rem, 6vh, 3rem); }
.flyer img,.gallery-grid img{
  width: min(70%, 100%); height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  transition: transform .4s ease;
  display: block; margin: 0 auto;
}
.flyer img:hover, .gallery-grid img:hover, .two-images-center img:hover { transform: scale(1.05) rotate(1deg); }

.gallery-grid{ 
  justify-content: center; /* zentriert horizontal */ 
  align-items: center; /* zentriert vertikal */ 
}

.flyerstart { text-align: center; }
.flyerstart img {
  width: min(50%, 70%); height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  transition: transform .4s ease;
  display: block; margin: 0 auto;
}
.flyerstart img:hover, .gallery-grid img:hover { transform: scale(1.05) rotate(1deg); }

/* Sponsors */
/* SPONSOREN – LOGO GRID */ 
.sponsor-section { 
  text-align: center; 
  padding: clamp(2rem, 6vw, 3rem) 1rem; } 
.sponsor-section h2 { 
    font-size: clamp(1.6rem, 4vw, 2.2rem); 
    margin-bottom: 2rem; 
    background: linear-gradient(90deg, var(--primary), var(--accent)); 
    -webkit-background-clip: text; background-clip: text; 
    -webkit-text-fill-color: transparent; } 

    /* Grid für Logos */ 
.sponsor-grid { 
      display: grid; 
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
      gap: clamp(1.5rem, 3vw, 2.5rem); 
      align-items: center; 
      justify-items: center; 
      padding: 1rem; } 

      /* Sponsor-Logos */
/* Jede Zelle wird eine "Karte" */ 
.sponsor-grid img { 
  width: 100%; 
  height: 100%; 
  aspect-ratio: 3 / 2; 
  /* Einheitliche Form */ 
  object-fit: contain; 
  /* Bild bleibt unverzerrt */ 
  background: var(--surface);
   border: 1px solid var(--outline); 
   border-radius: var(--radius); 
   padding: 1.5rem; box-shadow: var(--shadow); 
   transition: transform .35s ease, filter .35s ease, 
   box-shadow .35s ease; 
  filter: grayscale(40%) brightness(0.9); }

/* Hover-Effekt */ 
.sponsor-grid img:hover {
           filter: grayscale(0%) brightness(1); 
           transform: scale(1.08); 
           box-shadow: 0 12px 28px rgba(0,0,0,0.7); } 


/* 📱 MOBILE OPTIMIERUNG */
 @media (max-width: 600px) 
 { .sponsor-grid { 
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
  gap: 1.2rem; } 
  .sponsor-grid img { 
    max-width: 160px; 
  /* kleiner für Handy */ 
  max-height: 110px; padding: 0.8rem; } 
}
.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s ease, background-color .3s ease;
}
.sponsor-card:hover { transform: translateY(-6px); background: rgba(40,40,40,0.9); }

/* Forms */
form { display: grid; gap: 1rem; max-width: 600px; width: 100%; margin: 0 auto; }
input, textarea {
  background: rgba(20,20,20,0.8); color: var(--text);
  border: 1px solid var(--outline);
  padding: .8rem; border-radius: var(--radius);
  transition: border-color .3s ease, box-shadow .3s ease;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.form-note { color: var(--muted); font-size: .9rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive nav – small screens */
@media (max-width: 800px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; align-items: center; }
  .nav-toggle { position: static; margin: .5rem 1rem; }
  .h1 { text-align: center; font-size: 1rem; }
}

/* MENÜ-BUTTON DREI STRICHE – visual styling */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #f5f5f5;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Extra small devices – tighten spacing, prevent overflow */
@media (max-width: 480px) {
  section { padding: 1rem; margin: .5rem; }
  .hero, .page-hero, .page-hero-event { padding: 3rem 1rem; }
  .flyer img, .flyerstart img { width: 100%; }
  .footer-grid { gap: 1rem; }
}


.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3rem) 1rem;
}

.gallery-grid {
  columns: 3 300px;
  column-gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--primary);
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-grid {
    columns: 2 150px;
  }
}



/* IMAGE SLIDER – stabil, modern, mobilfreundlich */
.image-slider {
  max-width: 1200px;
  margin: 1rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* sorgt für gleichmäßige Höhe */
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
}


.slider-track {
  display: flex;
  width: 100%;
  height: 95%;
  transition: transform 0.6s ease-in-out;
  border-radius: var(--radius);
}

.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  flex: 0 0 100%;
  border-radius: calc(var(--radius) - 0.25rem)
}

/* Vollbild-Ansicht beim Anklicken */
.slider-lightbox {
  position: fixed;
  inset: 0;
  background: var(--surface);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.slider-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}





/* Pfeile */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  padding: .5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  z-index: 10;
  transition: background .3s ease;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

.slider-btn.left { left: 10px; }
.slider-btn.right { right: 10px; }

/* Mobile */
@media (max-width: 600px) {
  .slider-wrapper {
    aspect-ratio: 4 / 3;
  }

  .slider-btn {
    font-size: 1.5rem;
    padding: .3rem .7rem;
  }
}



