:root {
  --logo-max-width: 800px;
}

/* Utility-Klassen für ausgelagerte Inline-Styles */
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.ml-20 { margin-left: 20px !important; }
.fs-09em { font-size: 0.9em !important; }
.text-gray { color: #666 !important; }
.text-pink { color: var(--color-primary-pink) !important; }
.no-underline { text-decoration: none !important; }

/* Footer-Linkliste */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}
.footer-links li {
  display: inline;
}
.footer-links a {
  color: #b43088;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #e2007a;
  text-decoration: underline;
}

/* Kontakt & Anfahrt Seite */
.page-title {
  text-align: center;
  color: #e2007a;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
}

.contact-section {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
  background: #fff8fa;
  border: 2px solid #e2007a;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(226,0,122,0.06);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.info-block {
  flex: 1 1 220px;
  min-width: 200px;
}

.info-block h3 {
  color: #b43088;
  margin-bottom: 0.5rem;
}

.opening-hours p {
  margin: 0.2em 0;
}

.map-section {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1rem;
  background: #f9f9f9;
  border: 2px solid #e2007a;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.map-section h3 {
  color: #b43088;
  margin-bottom: 1rem;
  text-align: left;
}

.map-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.2rem;
  gap: 0.6rem;
  background: linear-gradient(135deg, #fffafc 0%, #ffe9f4 100%);
  text-align: center;
  border: 2px dashed #e2007a;
  box-sizing: border-box;
}

.map-consent p { margin: 0; }

.map-load-btn {
  background: #b43088;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.15s;
}
.map-load-btn:hover { background: #921d6b; }
.map-load-btn:active { transform: scale(.97); }
.map-load-btn:focus-visible { outline: 3px solid #e2007a; outline-offset: 3px; }

.remember-choice { font-size: 0.7rem; display: flex; align-items: center; gap: 0.35rem; }
.remember-choice input { transform: scale(1.05); }

.map-iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Setzt den Box-Sizing auf border-box für alle Elemente */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%; /* HTML und Body nehmen die gesamte Höhe des Viewports ein */
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgb(180,90,10) 0%, rgb(218,128,10) 60%, rgb(140,80,30) 100%);
  background-attachment: fixed;
}

.site-wrapper {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: var(--logo-max-width);
  margin: 0 auto;  /* Automatischer linker/rechter Abstand zentriert den Block */
  background-color: rgb(248, 216, 212);
}

header {
  width: 100%;
  max-width: var(--logo-max-width);
  margin: 0 auto;
  text-align: center; /* zentriert das Logo horizontal */
}

header img {
  width: 100%; 
  height: auto;      /* behält Proportionen */
  display: block;
  margin: 0 auto;    /* zentriert das Bild innerhalb des Headers */
}

nav {
  background: linear-gradient(
    90deg,
    #e68a00 0%,      /* Dunkelorange links */
    #f9d5a7 50%,     /* Hellorange in der Mitte */
    #e68a00 100%     /* Dunkelorange rechts */
  );
  padding: 1rem;
  border-bottom: none; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

.nav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.nav-list li {
  flex: 1 1 0;
  max-width: calc(100% / 3);
}

.nav-btn {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: 2px solid #d3d83c;
  font-weight: bold;
  color: #fff; 
  text-shadow:
    0 0 2px #000,   /* leichte schwarze Umrandung */
    0 1px 2px #000, /* Schatten unten */
    0 -1px 2px #000; /* Schatten oben */
  cursor: pointer;
  border-radius: 10px;
  background: 
    url('img/logoKreis.svg') right center no-repeat, /* SVG-Bild */
    #b64690; /* Hintergrundfarbe */
  font-size: 1.2em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}


.nav-btn:hover {
  background-color: #921d6b;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 16px rgba(42,77,105,0.10);
  transition: all 0.2s;
}

.nav-btn.active {
  background: linear-gradient(90deg, #b2d8d8 0%, #e6e6fa 100%);
  color: #222;
  border-bottom: 4px solid #2a4d69;
}

.nav-btn:focus-visible {
  outline: 3px solid #e2007a;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff8fa, 0 2px 12px rgba(226,0,122,0.10);
  z-index: 2;
}

footer {
  color: aliceblue;
  text-align: center;
  padding: 1rem 0;
  background-color: rgb(32, 31, 31);
  margin-top: 1rem;
}

.image-container {
  text-align: center; 
  margin: 1rem 0;    /* Fügt vertikalen Abstand hinzu */
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 3px solid #111;      
  border-radius: 1rem;         
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.welcome-title {
  text-align: center;
  color: #b43088;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(1.4rem, 2.8vw + 0.5rem, 2.1rem);
  line-height: 1.2;
  margin: 1.2rem 0 1.2rem;
  text-align: center;
  color: #e2007a;
  font-weight: 700;
}

.welcome-title h2 {
  font-size: clamp(1.15rem, 2.4vw + 0.3rem, 1.3rem);
  line-height: 1.25;
  margin: 0.8rem 0 1rem;
  font-weight: 600;
  color: #b43088; 
}

.welcome-text {
  max-width: var(--logo-max-width);
  margin: 1rem auto;
  text-align: left;
  padding: 0 1rem;
}

.gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

.gallery h1 {
  color: #b43088;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.event {
  margin-bottom: 2.5rem;
}

.event h2 {
  color: #b43088;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.gallery-row img {
  width: 220px;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gallery-row img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 6px 24px rgba(180,48,136,0.18);
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}
.lightbox-img-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img-container img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  background: #fff;
  color: #b43088;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .page-title {
    font-size: 1.3rem;
    word-break: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
  }
  .footer-links {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }
  .nav-btn {
    font-size: 0.85em;
    height: 44px;
    padding: 0 4px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  nav {
    gap: 6px;
    padding: 0.5rem;
  }
  main {
    padding: 0 0.5rem;
  }
  .hero-title {
    font-size: 1.35rem;
    margin-top: 0.8rem;
  }
  .welcome-title h2 {
    font-size: 1.15rem;
  }
  .map-container {
    /* kleineres Seitenverhältnis auf mobilen Geräten, mehr vertikaler Platz */
    aspect-ratio: 4/3;
    min-height: 220px; /* stellt sicher, dass der Button sichtbar und erreichbar ist */
  }

  .map-consent {
    padding: 1rem;
    gap: 0.5rem;
    box-sizing: border-box;
    overflow: auto; /* falls Inhalt größer ist, kann der Nutzer scrollen */
    align-items: center;
  }

  .map-load-btn {
    min-width: 140px;        /* ausreichend große Tap-Fläche */
    padding: 0.75rem 1rem;   /* größeres Klickziel */
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  }

  .remember-choice {
    font-size: 0.8rem;
  }
  .contact-info {
    flex-direction: column;
    gap: 0px;
  }
}
