@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ======== Base Styles ======== */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: #f5f7fa;
  color: #2c2c2c;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ======== Slider Section ======== */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: clamp(50vh, 55vh, 70vh);
  position: relative;
  border-bottom: 1px solid #ccc;
  background-color: #000;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 20, 40, 0.5), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(5px);
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 960px;
  padding: 0 1.5rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.2s ease forwards;
}

.slide-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slide-content p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 300;
  background-color: rgba(9, 104, 156, 0.3);
  color: #f1f1f1;
  padding: 1rem 2rem;
  border-radius: 14px;
  line-height: 1.7;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 auto;
  display: inline-block;
}

.slide-content p:hover {
  background-color: rgba(9, 104, 156, 0.45);
  transform: scale(1.01);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(45deg, #0d90b5, #09689C);
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(9, 104, 156, 0.3);
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #ff9900;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ======== Galerie Section ======== */
.Gallery {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #f7f9fb, #e3e9f0);
}

.wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bilder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.bild {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInStagger 0.9s ease-out forwards;
  opacity: 0;
}

.bild img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.bild:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.bild:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.bild::after {
  /* content: ""; */
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bild:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .bild img {
    height: 180px;
  }

  .bild::after {
    font-size: 0.6rem;
    bottom: 8px;
    left: 8px;
  }
}

@keyframes fadeInStagger {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.bild:nth-child(1) { animation-delay: 0.2s; }
.bild:nth-child(2) { animation-delay: 0.4s; }
.bild:nth-child(3) { animation-delay: 0.6s; }
.bild:nth-child(4) { animation-delay: 0.8s; }
.bild:nth-child(5) { animation-delay: 1s; }
.bild:nth-child(6) { animation-delay: 1.2s; }
.bild:nth-child(7) { animation-delay: 1.4s; }
.bild:nth-child(8) { animation-delay: 1.6s; }
.bild:nth-child(9) { animation-delay: 1.8s; }
.bild:nth-child(10) { animation-delay: 2s; }

.bilder span {
  display: flex;
  width: 100%;
  overflow: hidden;
}
