body {
  margin: 0;
  padding-top: 90px;
  padding-bottom: 80px;
  background-image: url('../images/bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
}

/* NAVIGATIONSBALKEN */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 70px;
  width: 85%;
  max-width: 800px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: rgba(128, 128, 128, 0.178);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  animation: slideDown 1s ease-out forwards;
  z-index: 9999;
}

.navbar-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  padding: 10px 20px;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.navbar-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-links li {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.navbar-links li:nth-child(1) { animation-delay: 0.5s; }
.navbar-links li:nth-child(2) { animation-delay: 0.7s; }
.navbar-links li:nth-child(3) { animation-delay: 0.9s; }
.navbar-links li:nth-child(4) { animation-delay: 1.1s; }
.navbar-links li:nth-child(5) { animation-delay: 1.3s; }

/* ANIMATIONEN */
@keyframes slideDown {
  0% {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ZENTRIERTES LOGO UNTER NAVBAR */
.static-top-logo {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.static-top-logo img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* SECTION-STYLES */
.section {
  margin: 10px auto;
  width: 80%;
  max-width: 800px;
  padding: 10px 20px;
  background-color: rgba(128, 128, 128, 0.178);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.2em;
  text-align: center;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: none;
}

.section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.section:nth-of-type(1) { animation-delay: 1.5s; }
.section:nth-of-type(2) { animation-delay: 1.7s; }
.section:nth-of-type(3) { animation-delay: 1.9s; }
.section:nth-of-type(4) { animation-delay: 2.1s; }

#dienstleistungen,
#standort,
#kontakt,
#bewertungen {
  scroll-margin-top: 90px;
}

/* KONTAKT-FORMULAR */
#kontakt form {
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.425);
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgb(0, 0, 0);
  color: #000000;
  font-family: Arial, sans-serif;
}

#kontakt label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 1rem;
}

#kontakt input[type="text"],
#kontakt input[type="tel"],
#kontakt input[type="email"],
#kontakt textarea,
#kontakt input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
  color: #ffffff;
  background-color: #ffffff7c;
  outline-offset: 2px;
}

#kontakt textarea {
  min-height: 100px;
}

#kontakt button[type="submit"] {
  width: 100%;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#kontakt button[type="submit"]:hover {
  background-color: #005fa3;
}

/* ZWEITES LOGO OBEN RECHTS */


/* TELEFON-SEITENBOX */
.phone-sidebar {
  position: fixed;
  top: 1px;
  left: 100px;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* FOOTER */
.footerbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 800px;
  background-color: rgba(128, 128, 128, 0.178);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  z-index: 9999;
  box-sizing: border-box;
  padding: 0 30px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.footerbar .footer-content {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footerbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footerbar a:hover {
  text-decoration: underline;
}

/* Cookie Banner Styles */
.cookie-consent {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 400px;
  text-align: center;
  font-size: 1rem;
}

.cookie-consent.show {
  display: block;
}

/* Medienabfragen für kleinere Bildschirme */
@media (max-width: 768px) {
  body{
    overflow: hidden;
  }
  
  
  
  .navbar {
    box-sizing: border-box; /* wichtig für korrektes Padding */
    width: 100%;
    padding: 0 20px;
    overflow-x: hidden;
  }
  .navbar-links {
    flex-direction: column;
    gap: 10px;
  }

  .static-top-logo img {
    width: 150px;
  }

  .section {
    width: 90%;
    padding: 15px;
    font-size: 1rem;
  }

  #kontakt form {
    padding: 30px;
    max-width: 100%;
  }

  .phone-sidebar {
    left: 10px;
    top: 10px;
  }

  .footerbar {
    width: 100%;
    padding: 10px 20px;
    height: auto;
  }

  .footerbar .footer-content {
    flex-direction: column;
    gap: 5px;
  }

  .cookie-consent {
    width: 90%;
    font-size: 0.9rem;
  }
}
