/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Basis Schriftgrößen-Skalierung für rem === */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

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

/* === Body === */
body {
  background: #F7F0EC;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #290E3B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

.logo img {
  width: auto;
  margin-top: 1px;
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

/* Navigation Links – saubere, gezielte Regeln */
nav a {
  text-decoration: none;
  color: #EFDDE0;
  background: none;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: #EFDDE0;
  color: #290E3B;
  font-weight: 700;
  outline: none;
}

#language-toggle {
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icons-header {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #EFDDE0;
  fill: currentColor !important;
}

/* === Main Content === */
main {
  padding-top: 80px;
}

main a {
  color: #290E3B;
  text-decoration: none;
}

/* === Sektionen === */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading-wrapper,
.svg-text-wrapper,
.default-svg-wrapper {
  text-align: center;
  margin-bottom: 0rem;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-logo {
  text-align: center;
  margin-bottom: 0rem;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  display: inline-block;
  transform-origin: center center;
}

/* === Kompetenzen === */
.dienstleistungen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  padding-top: 30px;
}

.bubble-background {
  position: absolute;
  top: calc(100%-50%);
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  /*border-radius: 50%;*/
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

.bubble1 { width: 770px; height: 420px; top: -40px; left: 0%; }
.bubble4 { width: 770px; height: 420px; top: -40px; left: 50%; }

.dienstleistung {
  flex: 1 1 calc(24% - 1rem);
  padding: 1rem;
  background-color: #A7A4A7;
  color: #F7F0EC;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dienstleistung h3 {
  margin: 0 0 1rem 0;
  display: block;
  text-align: center;
}

.dienstleistung p {
  margin: 0;
  text-align: center;
}

.dienstleistung.zentriert {
  text-align: center;
}

.zusatztext {
  flex-basis: 100%;
  margin-top: 2rem;
  text-align: center;
}

/* === Team === */
.team-member {
  margin: 0rem 0;
  text-align: center;
}

.team-member img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.08);
}

.team-member h3 {
  margin-top: 0rem;
}

.team-member p {
  margin-top: 0rem;
}

/* === Galerie === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* === Bewertungen === */
.reviews p {
  background-color: #A7A4A7;
  color: #F7F0EC;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
}

/* === Kontakt === */
#kontakt {
  text-align: center;
  padding: 2rem 1rem;
}

#kontakt p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* === Footer === */
footer {
  background-color: #290E3B;
  padding: 1rem 2rem;
  text-align: center;
  color: #EFDDE0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-icons-footer {
  display: flex;
  gap: 0.5rem;
}

.social-icons-footer .social-icon {
  width: 22px;
  height: 22px;
  color: #EFDDE0;
  fill: currentColor !important;
}

.footer-legal-link {
  text-align: center;
  width: 100%;
}

.footer-legal-link a {
  text-decoration: none;
  color: #EFDDE0;
}

/* === Mobile Navigation === */
#hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
  z-index: 1100;
}

#hamburger-menu span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background-color: #EFDDE0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

#hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-menu.open span:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  #hamburger-menu {
    display: flex;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #290E3B;
    padding: 1rem 0;
    z-index: 1000;
  }

  #main-nav.open {
    display: flex;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  #main-nav a {
    font-size: 1.2rem;
  }

  .hero-logo img {
    max-height: 120px;
  }

  .dienstleistungen {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .team-member img {
    width: 140px;
    height: 140px;
  }

  .hero-logo img {
    max-height: 90px;
  }
}

/* === SVG Text === */
svg.text-svg {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

svg.text-svg text {
  user-select: none;
  pointer-events: none;
}

/* === Scroll-In Effekt === */
.fade-up-soft {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-up-soft.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-text {
  transition-delay: 0.1s;
}
.delay-img {
  transition-delay: 0.25s;
}
