:root {
  --primary: #e94b35;
  --secondary: #2f4ea0;
  --dark: #111111;
  --light: #f8f8f8;
  --gray: #333333;
  
  /* Neue responsive Variablen */
  --header-height: 84px;
  --header-height-mobile: 70px;
  --container-padding: 2rem;
  --container-padding-mobile: 1rem;
  --section-spacing: 4rem;
  --section-spacing-mobile: 2rem;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  -webkit-text-size-adjust: 100%;
  /* Enable smooth scrolling for in-page anchors */
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  height: 84px;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Right-side cluster: links + actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-actions {
  margin-left: 1rem;
}

.btn-login {
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(233, 75, 53, 0.25);
}

/* Show Login as part of mobile menu instead of button */
.login-link-mobile { display: none; }

/* Spiral Logo Effect in Hero */
.spiral-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spiral-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  animation: counter-rotate 20s linear infinite;
}

@keyframes counter-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Hero Section */
.hero {
  height: 80vh;
  width: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
  display: block;
  /* Hide all video controls */
  pointer-events: none;
  outline: none;
}

/* Force hide video controls on all browsers */
.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-panel {
  display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.hero-video::-moz-media-controls {
  display: none !important;
}

.hero-mobile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: none; /* Hidden by default, shown on mobile */
}

.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: none; /* Hidden by default, shown when video fails */
}

/* Mobile video support - try video first, fallback to image */
@media (max-width: 768px) {
  .hero-mobile-image {
    display: none; /* Start hidden, show if video fails */
    z-index: 2;
  }
  
  .hero-video {
    display: block; /* Try video on mobile too */
    z-index: 1;
  }
}

/* iOS/Safari specific - still try video first */
@supports (-webkit-touch-callout: none) {
  .hero-mobile-image {
    display: none; /* Start hidden */
    z-index: 2;
  }
  
  .hero-video {
    display: block; /* Try video */
    z-index: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dunkler Overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3; /* Überlagert das Video und den Overlay */
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(233, 75, 53, 0.3);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure anchor targets aren't hidden behind the fixed navbar */
#hero, #events, #gallery {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

/* Events section specific smooth height changes */
.section#events {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth transitions for content containers */
#events-container,
#gallery-container {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 1rem;
  color: var(--secondary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
}

/* Fix the Professional Muttizettel Document Styles */
.document-header h1 {
  font-size: 18px; /* Reduced from 24px */
  margin: 8px 0;
  font-weight: bold;
  font-family: Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.document-subtitle {
  font-size: 12px; /* Reduced from 14px */
  margin-bottom: 4px;
}

/* Create a specific selector for document section title without affecting main page section titles */
.muttizettel-document .section-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  text-align: left; /* Override the center alignment from the main section titles */
}

/* Remove the general .section-title modifications that affected the landing page */
/* Reset from the changes we made earlier that affected the main page */
.section .section-title {
  font-size: 3rem; /* Restore original size */
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  color: var(--secondary);
}

/* Events Grid */
.events-grid {
  width: 100%; /* Match gallery width */
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 300px; /* Prevents layout shift during loading */
}

@media (max-width: 1024px) {
  .events-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .events-grid {
    width: 100%;
    padding: 1rem;
    gap: 1rem;
  }
}

/* Individual event card animation - improved */
.event-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 350px;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  /* Default loaded state */
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation states for loading effect */
.event-card.card-loading {
  opacity: 0 !important;
  transform: translateY(40px) scale(0.95) !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.event-card.card-loaded {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Staggered animation delay */
.event-card:nth-child(1).card-loaded { transition-delay: 0.1s; }
.event-card:nth-child(2).card-loaded { transition-delay: 0.2s; }
.event-card:nth-child(3).card-loaded { transition-delay: 0.3s; }
.event-card:nth-child(4).card-loaded { transition-delay: 0.4s; }
.event-card:nth-child(5).card-loaded { transition-delay: 0.5s; }
.event-card:nth-child(6).card-loaded { transition-delay: 0.6s; }
.event-card:nth-child(7).card-loaded { transition-delay: 0.7s; }
.event-card:nth-child(8).card-loaded { transition-delay: 0.8s; }
.event-card:nth-child(9).card-loaded { transition-delay: 0.9s; }
.event-card:nth-child(10).card-loaded { transition-delay: 1.0s; }

.events-grid.collapsed .event-card:nth-child(n+5) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 0;
  overflow: hidden;
  margin: 0;
}

.events-grid.expanded .event-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s, 
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              margin 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: auto;
}

/* Show more button */
.show-more-btn {
  display: block;
  margin: 0 auto; /* Removed top margin (was 2rem) */
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
  z-index: 5; /* Ensure button is above gradient */
  margin-top: 1rem; /* Add some margin to separate from content */
}

.show-more-container {
  width: 100%;
  text-align: center;
  margin-top: 0;
  position: relative;
  padding-top: 1rem;
  background-color: var(--light);
}

.show-more-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--light) 0%, rgba(248, 248, 248, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.show-more-btn {
  display: block;
  margin: 0 auto;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(47, 78, 160, 0.3);
}

.show-more-btn:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 75, 53, 0.4);
}

@media (hover: hover) {
  .event-card:not(.card-loading) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .event-card:not(.card-loading):hover {
    transform: translateY(-8px);
    box-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.012),
      0 8px 24px rgba(0, 0, 0, 0.016),
      0 16px 48px rgba(0, 0, 0, 0.012);
  }
}

/* Keep responsive styles */
@media (max-width: 1600px) {
  .events-grid {
    max-width: none; /* Keep full width like gallery */
  }
}

@media (max-width: 1300px) {
  .events-grid {
    max-width: none; /* Keep full width like gallery */
  }
}

@media (max-width: 1200px) {
  .event-card {
    width: 320px;
  }
}

@media (max-width: 992px) {
  .event-card {
    width: 300px;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.5rem 1rem;
    height: 70px;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .logo-img {
    height: 50px;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-actions { display: none; }
  .login-link-mobile { display: block; }

  .hero {
    height: 70vh;
    padding-top: 70px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-main-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section {
    padding: 2rem 1rem;
    overflow-x: hidden;
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .events-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 1rem auto;
    width: 100%;
    max-width: 100%;
  }

  .event-card {
    width: calc(100% - 2rem);
    max-width: 400px;
    margin: 0;
    border-radius: 12px;
  }

  .event-card:last-child {
    margin-bottom: 0;
  }

  .show-more-container {
    display: none !important;
  }

  .event-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
  }

  .event-content {
    padding: 1rem;
  }

  .event-title {
    font-size: 1.2rem;
    height: auto;
    margin-bottom: 0.8rem;
    min-height: 0;
  }

  .event-info {
    margin-bottom: 1rem;
  }

  .event-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-outline,
  .btn-nobtn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .btn-share,
  .btn-muttizettel {
    font-size: 0.9rem;
    padding: 0.5rem;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 0.5rem;
    width: 100%;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-overlay h3 {
    font-size: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    width: 100%;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    border-radius: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* iPhone-spezifische Anpassungen */
@supports (-webkit-touch-callout: none) {
  .events-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
  }

  .event-card {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .events-grid {
    gap: 0.8rem;
    padding: 0 1rem;
  }
  
  .events-grid .event-card {
    width: calc(100vw - 3rem); /* Adjust for smaller screens */
    max-width: 300px;
    min-width: 250px;
  }
  
  .event-image {
    width: 300px;
    height: 150px; /* Smaller image height */
  }
  
  .event-content {
    padding: 1rem;
    min-height: 240px; /* Adjusted for smaller screens */
  }
  
  .event-title {
    font-size: 1.1rem;
    height: 3.5rem; /* Fixed height for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 0.25rem;
  }
  
  .event-date,
  .event-dj,
  .event-specials,
  .event-location {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .event-buttons {
    gap: 0.3rem;
    margin-top: 0.8rem;
  }
  
  .btn-outline, .btn-nobtn, .btn-share, .btn-muttizettel {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    height: 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .navbar {
    height: var(--header-height-mobile);
  }

  .hero-main-title {
    font-size: 2rem;
  }

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

  .section {
    padding: var(--section-spacing-mobile) var(--container-padding-mobile);
  }

  .events-grid .event-card {
    width: 90vw;
    max-width: 300px;
    min-width: 250px;
  }
  
  .event-image {
    height: 160px;
  }
  
  .event-content {
    padding: 0.8rem;
    min-height: 180px;
  }
  
  .event-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .event-details {
    gap: 0.5rem;
  }
  
  .event-date,
  .event-dj,
  .event-specials,
  .event-location {
    font-size: 0.85rem;
  }
  
  .event-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .btn-outline, 
  .btn-nobtn {
    grid-column: 1 / -1;
    padding: 0.5rem 1rem;
  }
  
  .btn-share,
  .btn-muttizettel {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 200px);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: 1;
    grid-row: span 1;
  }

  .newsletter {
    padding: var(--section-spacing-mobile);
  }

  .newsletter-title {
    font-size: 1.8rem;
  }

  .footer-content {
    text-align: center;
    gap: 1.5rem;
  }

  .footer-title {
    margin-top: 1rem;
  }

  .footer-links {
    margin: 0.5rem 0;
  }
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0 12px; /* fill the top-right corner, rounded towards center */
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.event-dj {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.event-dj i {
    margin-right: 0.5rem;
    color: var(--secondary); /* Ändere die Farbe des DJ-Icons */
}

.event-specials {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.event-specials i {
    margin-right: 0.5rem;
    color: var(--primary); /* Ändere die Farbe des Specials-Icons */
}

/* Keep event card content center-aligned overall */
.event-content {
  padding: 1.5rem;
  text-align: center; /* Keeps title and button centered */
  display: flex;
  flex-direction: column;
  min-height: 280px; /* Fixed minimum height for consistent layout */
}

/* Make specific details left-aligned */
.event-date,
.event-dj,
.event-specials,
.event-location {
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}

/* Adjust alignment of icons in the details */
.event-date i,
.event-dj i,
.event-specials i,
.event-location i {
  width: 20px; /* Fixed width for icons to align text properly */
  text-align: center;
  margin-right: 0.5rem;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  /* Fixed height for consistent layout */
  height: 4.5rem; /* Increased from min-height: 3.6rem */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  /* Remove border and padding for perfect centering */
  margin: 0 0 0.5rem 0;
}

/* Event details wrapper to push buttons to bottom */
.event-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Event info section */
.event-info {
  flex: 1;
}

.event-date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.event-date i {
  margin-right: 0.5rem;
}

.event-location {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--secondary);
  transition: color 0.3s ease;
}


/* Entferne Hover-Effekt für das Icon in .event-location */
.event-location i {
  margin-right: 0.5rem;
  color: var(--secondary);
}


.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: inline-block; /* Stellt sicher, dass der Button zentriert bleibt */
  margin: 1rem auto 0; /* Fügt oben Abstand hinzu und zentriert den Button */
}

.btn-nobtn {
    background-color: transparent;
    color: var(--primary);
    display: inline-block; /* Stellt sicher, dass der Button zentriert bleibt */
    margin: 1rem auto 0; /* Fügt oben Abstand hinzu und zentriert den Button */
    pointer-events: none;
    cursor: default;
  }

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}


/* Gallery */
.gallery {
  background-color: var(--light);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
  margin-top: 2rem; /* Add a value if not already specified */
}

/* Zeige nur 7 Gallery-Items auf mobilen Geräten */
@media (max-width: 600px) {
  .gallery-item:nth-child(8) {
    display: none !important;
  }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gallery loading animation */
.gallery-item.gallery-loading {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.gallery-item.gallery-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered animation delays for gallery */
.gallery-item:nth-child(1).gallery-loaded { transition-delay: 0.1s; }
.gallery-item:nth-child(2).gallery-loaded { transition-delay: 0.2s; }
.gallery-item:nth-child(3).gallery-loaded { transition-delay: 0.3s; }
.gallery-item:nth-child(4).gallery-loaded { transition-delay: 0.4s; }
.gallery-item:nth-child(5).gallery-loaded { transition-delay: 0.5s; }
.gallery-item:nth-child(6).gallery-loaded { transition-delay: 0.6s; }
.gallery-item:nth-child(7).gallery-loaded { transition-delay: 0.7s; }
.gallery-item:nth-child(8).gallery-loaded { transition-delay: 0.8s; }

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(233, 75, 53, 0.7), rgba(47, 78, 160, 0.7));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.gallery-date,
.gallery-location {
  font-size: 0.9rem;
  text-align: center;
  margin: 0.2rem 0;
  opacity: 0.9;
}

.gallery-view-more {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.5rem;
  opacity: 0.8;
  font-weight: 500;
}

.gallery-view-more i {
  margin-left: 0.3rem;
  font-size: 0.7rem;
}

#gallery-loading,
#gallery-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
  font-size: 1.1rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#gallery-loading i {
  font-size: 1.2rem;
}

#gallery-error {
  color: #dc3545;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
  margin-top: 2rem;
  min-height: 200px; /* Ensure minimum height during loading */
  transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Newsletter */
.newsletter {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  text-align: center;
  padding: 3rem 2rem; /* Reduced from 5rem to 3rem */
  color: white;
}

.newsletter-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  outline: none;
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.newsletter-btn:hover {
  background: #222;
  color: #fff;
}

/* Footer */
.footer {
  background-color: var(--dark);
  padding: 3rem 2rem; /* Reduced from 4rem to 3rem */
  color: var(--light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-text {
  margin-bottom: 1.5rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--primary);
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;   /* Entfernt Standard-Einzug von UL */
  margin: 0;    /* Entfernt Standard-Margin von UL */
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--light); /* Hover behält weiße Schrift im Footer */
}

/* Footer contact: keep icon and email on one line */
.footer-contact {
  display: flex;               /* Erlaubt horizontales Zentrieren des einzigen Listenelements */
  justify-content: center;     /* Zentriert die E-Mail mittig in der Spalte */
}

.footer-contact li {
  display: flex;
  align-items: center;
  justify-content: center;     /* Zentriert Inhalt im Listenelement */
  width: 100%;                 /* Nimmt die Spaltenbreite ein, damit Zentrierung wirkt */
}

.footer-contact .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.footer-contact i {
  color: inherit; /* Icon übernimmt Linkfarbe (standardmäßig weiß) */
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  opacity: 0.7;
}

/* Mobile: Footer title underline centered */
@media (max-width: 768px) {
  .footer-title {
    text-align: center;
  }
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .spiral-container {
    width: 250px;
    height: 250px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    height: 64px;
    min-height: 64px;
  }

  .logo-img {
    height: 44px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%; /* war: 100vw */
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    z-index: 999;
    padding: 0;
  }

  .nav-links.nav-active {
    max-height: 400px;
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    color: var(--secondary);
  }

  .nav-links a:hover {
    background: var(--light);
    color: var(--primary);
  }

  .mobile-menu {
    display: block;
    z-index: 1001;
  }
}

/* Optional: burger icon animation when active */
.mobile-menu.active i {
  color: var(--primary);
  transform: rotate(90deg);
  transition: color 0.3s, transform 0.3s;
}

.hero-main-title {
    font-size: 5rem; /* Größere Schriftgröße */
    font-weight: 900; /* Extra fett */
    color: white; /* Weiße Schriftfarbe */
    text-transform: uppercase; /* Großbuchstaben */
    margin-bottom: 1rem; /* Abstand zum Untertitel */
}

/* Impressum */
.impressum {
    background-color: var(--light);
    padding: 4rem 2rem;
    text-align: center;
    padding-top: 150px;
}

.impressum-content {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
}

/* Admin Login */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(45deg, rgba(233, 75, 53, 0.9), rgba(47, 78, 160, 0.9));
    color: white;
    font-family: "Montserrat", sans-serif;
}

.login-container {
    background-color: white;
    color: var(--dark);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(233, 75, 53, 0.5);
}

.login-btn {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(233, 75, 53, 0.5);

}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.login-container a {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-container a:hover {
    color: var(--secondary);
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 4rem 2rem;
    background-color: var(--light);
    text-align: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-logo {
    width: 100px;
    height: auto;
}

.dashboard-title {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
}

.welcome-text {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

.logout-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--primary);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.dashboard-card p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

/* Add these styles to the existing CSS file */

.loading-indicator {
    display: center;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;              /* Abstand zwischen Spinner und Text */
    padding: 2rem;
    width: 100%;
    color: var(--secondary);
    font-size: 1.2rem;
    margin: 0 auto;          /* zentriert innerhalb des Eltern-Containers */
    min-height: 400px;       /* Fixed height to prevent layout shift */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.error-message {
    text-align: center;
    padding: 2rem;
    width: 100%;
    color: #dc3545;
    font-size: 1.2rem;
}

/* Message styling for both event and DJ containers */
.no-events-message, .no-djs-message {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  color: var(--secondary);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.no-events-message {
  display: center !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  width: 100%; /* This ensures it takes full width for centering */
  max-width: 600px;
  margin: 2rem auto;
  color: var(--secondary);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fa-spinner {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event buttons layout */
.event-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-share {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.btn-share:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 78, 160, 0.3);
}

/* Add button styling for the Muttizettel button */
.btn-muttizettel {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  text-decoration: none;
}

.btn-muttizettel:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 75, 53, 0.3);
}

/* Adjust the event-buttons layout for three buttons */
.event-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

/* Update all button styling for consistent look */
.btn-outline, .btn-nobtn, .btn-share, .btn-muttizettel {
  margin: 0;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* For small screens, make buttons stack better */
@media (max-width: 350px) {
  .event-buttons {
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .btn-outline, .btn-nobtn, .btn-share, .btn-muttizettel {
    width: 100%;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 50px 0;
}

.modal-content {
  background-color: var(--light);
  margin: auto;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  color: var(--gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary);
}

/* Muttizettel Generator Styles */
.muttizettel-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.muttizettel-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-size: 1.3em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.signature-container {
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

#signatureCanvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: crosshair;
    background: white;
}

.signature-controls {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signature-hint {
    color: #666;
    font-style: italic;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.result-section {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.qr-code-container {
    margin: 30px 0;
}

.qr-code-container img {
    max-width: 200px;
    margin-bottom: 15px;
}

.result-actions {
    margin-top: 30px;
}

/* --- Event Card Styles (Neu) --- */
/* Event card styles are defined above in the animation section */

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.event-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 0;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: auto;
}

.btn-outline,
.btn-nobtn {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .events-grid {
    gap: 1.5rem;
  }
  
  .event-card {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .events-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
    margin: 0;
  }

  .event-card {
    margin: 0 0 1rem 0;
    width: calc(100% - 2rem);
    max-width: 400px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .event-card:last-child {
    margin-bottom: 0;
  }

  .event-image {
    height: 180px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .event-content {
    padding: 1rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .event-title {
    font-size: 1.1rem;
  }
}

/* Safari-spezifische Fixes */
@supports (-webkit-touch-callout: none) {
  .section {
    width: 100vw;
    overflow-x: hidden;
  }

  .events-grid {
    display: flex;
    flex-direction: column;
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }
  
  .event-card {
    width: 100%;
    margin-bottom: 1rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .event-content {
    width: 100%;
  }

  .event-buttons {
    width: 100%;
  }
}

/* --- Responsive Navbar Burger (Dropdown, volle Breite) --- */
@media (max-width: 1200px) {
  .navbar {
    padding: 1.2rem 1.5rem;
    height: 76px;
    min-height: 76px;
  }
  .logo-img {
    height: 44px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%; /* war: 100vw */
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    z-index: 999;
    padding: 0;
  }
  .nav-links.nav-active {
    max-height: 400px;
    padding: 1rem 0;
  }
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    color: var(--secondary);
  }
  .nav-links a:hover {
    background: var(--light);
    color: var(--primary);
  }
  .mobile-menu {
    display: block;
    z-index: 1001;
  }
}
@media (max-width: 900px) {
  .navbar {
    padding: 1.2rem 1.5rem;
    height: 76px;
    min-height: 76px;
  }
  .logo-img {
    height: 44px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%; /* war: 100vw */
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    z-index: 999;
    padding: 0;
  }
  .nav-links.nav-active {
    max-height: 400px;
    padding: 1rem 0;
  }
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    color: var(--secondary);
  }
  .nav-links a:hover {
    background: var(--light);
    color: var(--primary);
  }
  .mobile-menu {
    display: block;
    z-index: 1001;
  }
}

/* 404 Error Page - Simple hover effects */
.section a[style*="background-color: var(--primary)"]:hover {
  background-color: #d63e2a !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 75, 53, 0.3);
}

.section a[style*="background-color: var(--secondary)"]:hover {
  background-color: #1e3a7a !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 78, 160, 0.3);
}

.section a[style*="border: 2px solid var(--primary)"]:hover {
  background-color: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 75, 53, 0.3);
}

.section a[style*="border: 2px solid var(--secondary)"]:hover {
  background-color: var(--secondary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 78, 160, 0.3);
}

/* Mobile responsive for 404 */
@media (max-width: 768px) {
  .section h1[style*="font-size: 8rem"] {
    font-size: 6rem !important;
  }
  
  .section h2[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
  }
  
  .section div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .section div[style*="gap: 1rem"] {
    gap: 0.5rem !important;
  }
}

/* Ensure event card images keep 16:9 aspect ratio across all breakpoints */
.event-card .event-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;            /* override previous fixed heights */
  object-fit: cover;
  display: block;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 16px;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-text strong { display: block; color: var(--secondary); margin-bottom: 6px; }
.cookie-text p { color: var(--gray); font-size: 0.95rem; }
.cookie-text a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 700; }
.cookie-actions .btn-outline { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); }
.cookie-actions .btn-secondary { background: #f2f4f8; color: var(--secondary); border: 2px solid #e8edf4; }

.cookie-settings {
  max-width: 1100px;
  margin: 10px auto 0 auto;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
}

/* Animate settings panel on open */
.cookie-banner .cookie-settings {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}
.cookie-banner.open-settings .cookie-settings {
  opacity: 1;
  transform: translateY(0);
}

.cookie-settings-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.cookie-setting-text strong { color: var(--secondary); }
.cookie-setting-text p { color: var(--gray); font-size: 0.9rem; }

/* iOS-like switch */
.cookie-switch { position: relative; display: inline-block; width: 48px; height: 28px; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #d1d5db; transition: .3s; border-radius: 999px; }
.cookie-switch .slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.cookie-switch input:checked + .slider { background-color: var(--secondary); }
.cookie-switch input:checked + .slider:before { transform: translateX(20px); }
.cookie-switch input:disabled + .slider { background-color: #cdd5df; cursor: not-allowed; }

.cookie-settings-actions { text-align: right; padding-top: 8px; }
.cookie-settings-actions .btn { padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; }

@media (max-width: 768px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}

/* Hide animation state */
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Settings-only clean view when opened from footer */
.cookie-banner.settings-only .cookie-inner { display: none; }
.cookie-banner.settings-only .cookie-settings { margin-top: 0; }

/* Snapchat Promo Popup */
.promo-snap {
  position: fixed;
  right: 20px;
  bottom: 120px; /* keep clear of cookie banner */
  z-index: 10000; /* above cookie banner */
  background: #fff;
  border: 1px solid #e5e9f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-radius: 14px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 16px 14px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.promo-snap.visible { transform: translateY(0); opacity: 1; }
.promo-snap .promo-snap-close {
  position: absolute; top: 6px; right: 6px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #667085;
}
.promo-snap .promo-snap-close:hover { color: #111; }
.promo-snap .promo-snap-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.promo-snap .promo-snap-header i { font-size: 28px; color: #FFFC00; text-shadow: 0 0 0 #000; }
.promo-snap h3 { margin: 0; font-size: 1.05rem; letter-spacing: 0.5px; color: var(--secondary); }
.promo-snap p { margin: 6px 0 12px 0; color: var(--gray); font-size: .95rem; }
.promo-snap .promo-snap-cta { display: inline-block; }

@media (max-width: 768px) {
  .promo-snap { right: 12px; left: 12px; bottom: 96px; width: auto; }
}

