/* html */
html { scroll-behavior: smooth; }
 
/* Navigation */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;


  background-color: #ffffff;
  z-index: 9999;

  transition: transform 0.3s ease-in-out;
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Body */
#datenschutz, #impressum, #leistungen, #projekte, #ueber-uns {
  padding-bottom: 44vh;
}

/* Slideshow animation */
@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.logos {
  overflow: hidden;
  position: relative;
  background: transparent;

  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%);

  mask-image: linear-gradient(to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 30s linear infinite;
}

.logos-slide {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.logos-slide img {
  display: block;
  flex: 0 0 auto;
  width: 130px;
  height: 80px;
  margin: 0 40px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.3;
}

@media (max-width: 767px) {
  .logos-slide img {
    width: 100px;
    height: 60px;
    margin: 0 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid #334155;
  border-radius: 0.875rem;
  background: #f5f5f7;
  transition: border-color 180ms ease,
    transform 180ms ease;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.service-card p {
  margin-bottom: 1.5rem;
  color: #334155;
  line-height: 1.75;
}

.service-card a {
  margin-top: auto;
  color: #0066cc;
  font-weight: 600;
}

.service-card a:hover {
  color: #0066cc;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}