/* ===========================
   Grundlegende Styles
=========================== */
:root {
  --primary-color: #2c3e50;
  --accent-color: #e67e22;
  --bg-opacity: 0.95;
  --background-color: #f9f9f9;
  --transition-speed: 0.3s;
  --nav-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gruppo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: var(--background-color);
}

/* ===========================
   Navigation
=========================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, var(--bg-opacity));
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  padding: 0 1rem;
  position: relative;
}

.brand {
  position: absolute;
  left: 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 1rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: transform var(--transition-speed);
  border-radius: 2px;
}

.hamburger::before {
  transform: translateY(-8px);
}
.hamburger::after {
  transform: translateY(5px);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 0 1rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 4px;
}

.dropdown-content a {
  padding: 0.5rem 1rem;
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===========================
   Responsive Navigation
=========================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,var(--bg-opacity));
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
  }
}

/* ===========================
   Hero Section
=========================== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../gallery/hintergrundbild.jpg') center / cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ===========================
   Allgemeine Sektionen
=========================== */
section {
  padding: 5rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.content {
  text-align: justify;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h3 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #1a242e;
}

/* ===========================
   Karte / Map
=========================== */
.map-container {
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
}

.map-iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

/* ===========================
   Band / Projekte
=========================== */
.band-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===========================
   Tabellen (Veranstaltungen)
=========================== */
table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f4f4f4;
}

/* ===========================
   Galerie
=========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.03);
}

/* ===========================
   Video-Galerie
=========================== */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.video-gallery iframe {
  width: 100%;
  max-width: 700px;
  height: 315px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-gallery iframe:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Footer
=========================== */
footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.social-icons a {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color var(--transition-speed), transform var(--transition-speed);
  display: inline-block;
}
.social-icons a:hover {
  transform: scale(1.5);
  color: var(--accent-color);
}

/* ===========================
   Lightbox
=========================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
  border-radius: 5px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}
.lightbox .close:hover {
  color: #bbb;
}

/* ===========================
   Burger-Menü Animation
=========================== */
.nav-toggle.open .hamburger {
  transform: rotate(45deg);
}
.nav-toggle.open .hamburger::before {
  transform: rotate(90deg) translateX(5px);
}
.nav-toggle.open .hamburger::after {
  opacity: 0;
}


/* ===========================
   Zusätzliche Mobile Styles
=========================== */

/* Tablets & kleine Laptops */
@media (max-width: 1024px) {
  section {
    padding: 3rem 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* Smartphones */
@media (max-width: 600px) {

  body {
    font-size: 0.95rem;
  }

  .navbar .container {
    justify-content: space-between;
  }

  .brand {
    font-size: 1.2rem;
  }

  .hero {
    height: 80vh;
    background-attachment: scroll; /* Fix iOS bug */
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .content {
    padding: 1.2rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1rem;
  }

  /* Galerie einspaltig */
  .gallery {
    grid-template-columns: 1fr;
  }

  /* Video responsive */
  .video-gallery iframe {
    height: 200px;
    max-width: 100%;
  }


  /* Tabelle an Bildschirmbreite anpassen */
   table {
    display: table;
    table-layout: fixed; /* gleichmäßige Spaltenbreiten */
    width: 100%;
  }
  th, td {
    word-wrap: break-word;
    text-align: justify;
  }

 <!--
 /* Fixe Hintergründe abschalten */
  [style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  } 
  -->

  /* Optional: falls es mehrere feste Hintergründe gibt */
.is-iphone [style*="background-attachment: fixed"] {
  background-attachment: scroll !important;
}

  /* Footer kompakter */
  footer {
    padding: 1.5rem 1rem;
  }

  .social-icons a {
    margin: 0 0.5rem;
    font-size: 1.2rem;
  }
}





