body {
  font-family: 'Poppins', sans-serif;
}

.navbar-custom {
  background-color: #0d1117;
}

.navbar-custom .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
  color: #0d6efd;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.hero-container {
  height: 100vh;
  background-image: url('../img/top_bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}




.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}




.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 2rem;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  background-color: #5384cf;
  border: 2px solid transparent;
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background-color: transparent;
  border-color: rgb(87, 154, 255);
  color: rgb(87, 154, 255);
}



.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #0d1117;
}

#einblicke {
  background: linear-gradient(135deg, #e9f0fb, #f7fafc);
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  text-align: center; /* Container textzentriert für Flexbox-Mittig */
}

#einblicke .row {
  display: flex; /* inline-flex für Zentrierung */
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center; /* Bilder mittig in der Reihe */
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

#einblicke .row > div {
  position: relative;
  flex: 0 0 auto;
  width: 300px;   /* etwas größer */
  height: 180px;  /* etwas größer */
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(13, 17, 23, 0.1);
  transition: box-shadow 0.3s ease;
}

#einblicke .row > div:hover {
  box-shadow: 0 10px 30px rgba(13, 17, 23, 0.3);
}

#einblicke img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
  border-radius: 0.75rem;
  filter: brightness(0.95);
}

#einblicke .row > div:hover img {
  transform: scale(1.07);
  filter: brightness(1);
}

/* Overlay */
#einblicke .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0) 50%, rgba(13,17,23,0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.75rem;
}

#einblicke .row > div:hover .overlay {
  opacity: 1;
}

/* Caption */
#einblicke .caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  pointer-events: none;
}

#einblicke .row > div:hover .caption {
  opacity: 1;
}



#shops {
  background-color: #ffffff;
}

.shop-card {
  background-color: #f8f9fa;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-card img {
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(13, 17, 23, 0.15);
}

.shop-card:hover img {
  transform: scale(1.05);
}

.shop-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0d1117;
}

.shop-info p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #495057;
}

.btn-outline-primary {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

#referenzen {
  background: linear-gradient(135deg, #e9f0fb, #f7fafc);
  padding: 3rem 0;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #212529;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.referenz-card {
  background-color: white;
  padding: 1.5rem 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(13, 17, 23, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 180px;
}

.referenz-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(13, 17, 23, 0.15);
}

.referenz-logo {
  max-width: 140px;
  max-height: 90px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: filter 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.referenz-card:hover .referenz-logo {
  filter: grayscale(0%);
  transform: scale(1.1) rotate(1deg);
}

#kundenmeinungen {
  margin-top: 3rem;
  background: linear-gradient(135deg, #e9f0fb, #f7fafc);
  padding: 3rem 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.trusted-shops-widget etrusted-widget {
  display: block;
  margin: 0 auto;
  width: 100% !important;
  max-width: 990px;
}

footer a {
  transition: .3s color;
}

footer a:hover {
  text-decoration: underline;
  color: #0d6efd !important;
}

/* ============ MOBILE OPTIMIERUNG ============ */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
  }
  .hero-content {
    padding: 1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    width: 100% !important;
    padding: 0;
    margin-bottom: 1.2rem;
  }
  #einblicke .row {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 0;
  }
  #einblicke .row > div {
    width: 180px;
    height: 110px;
  }
  #einblicke img {
    height: 110px;
  }
  #einblicke .caption {
    font-size: 0.92rem;
    bottom: 6px;
    left: 10px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .shop-title {
    font-size: 1.15rem;
  }
  .shop-info {
    padding: 1rem !important;
  }
  .shop-card img {
    max-height: 500px !important;
  }
  .referenz-card {
    max-width: 110px;
    padding: 1rem 0.4rem;
  }
  .referenz-logo {
    max-width: 80px;
    max-height: 54px;
  }
  .map-container {
    height: 300px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
    padding: 0.6rem 0;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.3rem;
  }
  .shop-title {
    font-size: 1rem;
  }
  .shop-card img {
    max-height: 500px !important;
  }
  #einblicke .row > div {
    width: 120px;
    height: 80px;
  }
  #einblicke img {
    height: 80px;
  }
  #einblicke .caption {
    font-size: 0.78rem;
    left: 7px;
    bottom: 4px;
  }
  .referenz-card {
    max-width: 80px;
    padding: 0.5rem 0.2rem;
  }
  .referenz-logo {
    max-width: 50px;
    max-height: 30px;
  }
  .map-container {
    height: 170px !important;
  }
  footer .fw-bold, footer p, footer a {
    font-size: 0.97rem;
  }
}
