/* Allgemeine Grundgestaltung */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  margin-bottom: 5em;
  font-family: 'Roboto', sans-serif;
  text-align: justify;
  background-color: #f4f4f5;
  background-repeat: repeat;
  background-size: auto, cover;
  background-blend-mode: multiply;
  color: #1a1a1a;
  line-height: 1.8;
  font-size: 20px;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 0.6em;
  letter-spacing: 0.5px;
  color: #2e2e2e;

}

h4 {
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 0.6em;
  letter-spacing: 0.5px;
  color: #2e2e2e;
}

p {
  margin-bottom: 1.2em;
}

ul {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}

section {
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
} 

.section-inner {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4em;
}

.section-inner-gallery-placeholder p {
  text-align: center;
}

.gallery-placeholder {
  margin-top: 5em;
}

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4em 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.section-divider.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider img {
  max-width: 300px;
  width: 100%;
  opacity: 0.6;
}

/* Hero-Bereich */
.hero {
  position: relative;
  background: url('Bilder/image1 ver2.jpg') no-repeat center top/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4em;
  margin: 0.2em 0;
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.countdown {
  font-size: 0.8em;
  margin-top: 1em;
  margin-bottom: 1em;
  font-weight: bold;
  color: #f7d1c5;
  letter-spacing: 1px;
}

.count-num {
  font-size: 1.8em;
  font-weight: bold;
  color: #d08a6b;
  margin: 0 0.1em;
}

.hero button {
  background: transparent;
  border: 2px solid white;
  padding: 10px 20px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s ease-in-out; /* Hover */
  margin-top: 1em;;
}

.hero button:hover {
  background: white;
  color: #333;
  transform: scale(1.05); /* Leichtes Vergrößern beim Hover */
}

/* Navigation */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  z-index: 2;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 3em;
  margin: 0;
  margin-bottom: 2em;
  padding: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #f7d1c5;
}

/* Formular */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 3em;
}

input, textarea, select {
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px; /* Leichte Rundung */
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

input:focus, textarea:focus, select:focus { /* Fokus-Effekt */
  border-color: black;
  box-shadow: 0 0 0 3px rgba(75, 28, 42, 0.3); /* Leichter Schatten */
  outline: none; /* Standard-Outline entfernen */
    }

textarea {
  min-height: 150px;
  resize: vertical;
}

select {
  width: 200px; /* Dropdown breiter machen */
  font-size: 1.2em; /* Schrift vergrößern */
  padding: 8px; /* Optional: Fügt etwas Innenabstand hinzu */
}

button[type="submit"], .gallery-button {
  background-color: black;
  color: #f4f4f5;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.3s, transform 0.3s ease-in-out; /* Hover-Effekt */
  display: block; 
  width: fit-content; /* Der Button nimmt nur die Breite seines Inhalts an */
  margin: 2em auto;
  text-decoration: none; 
  text-align: center; 
}

.calendar-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

button[type="submit"]:hover, .gallery-button:hover { /* Hover-Effekt */
  background-color: #f4f4f5;
  color: black; 
  transform: scale(1.05); /* Skalierung beim Hover */
    }

/* Glow & Pulse Effekt für Anmeldung */
.anmeldung-highlight {
  animation: anmeldung-glow-pulse 2.5s infinite;
  border-radius: 12px;
  background: rgba(255, 255, 224, 0.08);
  transition: box-shadow 0.3s, background 0.3s;
  padding: 0.25em 1.2em; /* Mehr Abstand zum Text */
}

@keyframes anmeldung-glow-pulse {
  0% {
    box-shadow: 0 0 0px 0px #ffe06644, 0 0 0 0 #ffe06622;
  }
  50% {
    box-shadow: 0 0 10px 4px #ffe06655, 0 0 18px 8px #ffe06622;
  }
  100% {
    box-shadow: 0 0 0px 0px #ffe06644, 0 0 0 0 #ffe06622;
  }
}

  /*Tooltip */
.info-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
}

.info-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: black;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  font-style: normal;
  font-weight: bold;
  transition: background 0.2s;
}

.info-tooltip:hover .info-icon,
.info-tooltip:focus .info-icon {
  background: #88dcbc;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background-color: black;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* über dem Icon */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  font-size: 0.95em;
  pointer-events: none;
}

.info-tooltip:hover .tooltip-text,
.info-tooltip:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.anmeldung label input[type="radio"] {
  margin-left: 1.5em; /* Abstand zwischen Radio-Button und Label-Text */
}

/* Dynamische Breite für Dropdowns */
select.dynamic-width {
  width: 150px; /* Einheitliche Anfangsbreite */
  padding: 0.4em;
  font: inherit;
  transition: width 0.2s ease;
  }

  /* Unsichtbarer Text-Messer */
#select-measurer {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  font: inherit;
  padding: 0.4em;
  }

/* Toast-Style Pop-Up */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
}
.toast.success {
  background-color: #4BB543;
}
.toast.error {
  background-color: #d9534f;
}

/* Medienanpassung */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .nav-menu{
    font-size: 0.68em;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.3em;
    justify-content: center;
    margin-bottom: 1.5em;
    margin-top: 1em;
    max-width: 93%;
  }

  .navbar {
    padding: 10px 0;
  }

  .hero-text {
    margin-top: 2em;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.2em;
  }

  .hero button {
    width: 100%;
    padding: 14px 0;
  }

  .section-inner {
  padding: 0 2em;
  }

  form {
  padding: 0;
  }
}
