/* ─── HIGHLIGHT MARKER ─── */
.highlight-marker {
  position: relative;
  padding: 2px 4px;
  display: inline-block;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
}

.highlight-marker::before {
  content: '';
  position: absolute;
  top: auto;
  bottom: 6px;
  left: -4px;
  right: -4px;
  height: 16px;
  background: linear-gradient(to bottom,
    rgba(82, 183, 255, 0.8) 0%,
    rgba(82, 183, 255, 0.95) 50%,
    rgba(82, 183, 255, 0.8) 100%
  );
  border-radius: 8px / 12px;
  z-index: 999;
  pointer-events: none;
  transform: skewY(-2deg);
}

@media (max-width: 768px) {
  .highlight-marker::before {
    height: 12px;
    bottom: 3px;
  }
}

/* ─── SECTION CARD & GRADIENT TEXT ─── */
.section-card {
  position: relative;
  z-index: 1;
  padding: 88px 40px;
}

#galerie {
  padding: 40px 12px;
}

#galerie h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.5px;
}

#galerie h2 .grad {
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--white);
  font-weight: 600;
}

.grad {
  background: linear-gradient(135deg, #52b7ff 0%, #52b7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ─── HIGHLIGHTS SECTION ─── */
.highlights {
  padding: 80px 40px;
  background: var(--bg);
}

.highlights h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 60px;
  text-align: center;
}

.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .highlights-grid {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .highlights-grid {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    padding: 0;
  }
}

.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(82, 183, 255, 0.06);
  border-radius: 0;
  transition: background 0.3s ease;
  position: relative;
  flex: 1 1 25%;
  overflow: hidden;
  text-overflow: ellipsis;
}
}

.highlight-card:last-child {
  border-right: none;
}

.highlight-card::after {
  display: none;
}

.highlight-card:hover {
  border-color: transparent;
  background: rgba(82, 183, 255, 0.03);
}

@media (max-width: 768px) {
  .highlight-card {
    flex: 1 1 50%;
    min-width: 50%;
    border-right: 1px solid rgba(82, 183, 255, 0.05);
    border-bottom: 1px solid rgba(82, 183, 255, 0.05);
    padding: 28px 16px;
  }

  .highlight-card:nth-child(2n) {
    border-right: none;
  }

  .highlight-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .highlight-card {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(82, 183, 255, 0.05);
    padding: 24px 16px;
  }

  .highlight-card:last-child {
    border-bottom: none;
  }
}

.highlight-number {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ─── GALLERY SECTION ─── */
.gallery {
  padding: 80px 40px;
  background: var(--bg);
}

.gallery h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 60px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: calc(100vw - 24px);
  width: 100%;
  margin: 0 auto;
  padding: 0 6px;
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(82, 183, 255, 0.2);
  cursor: pointer;
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.75), rgba(10, 12, 16, 0.25) 60%, transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
}

.gallery-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(82, 183, 255, 0.1) 0%, rgba(82, 183, 255, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(82,183,255,0.2)" stroke-width="1"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>') center / 60px no-repeat;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-caption {
  padding: 16px;
  background: rgba(10, 12, 16, 0.8);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ─── PARTNERS SECTION (RÜCKBLICK) ─── */
.section .partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 44px;
}

.section .partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.section .partner-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.section .partner-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.3px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .section .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .highlights {
    padding: 60px 20px;
  }

  .highlights h2,
  .gallery h2 {
    margin-bottom: 40px;
  }

  .highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .highlight-card {
    padding: 30px 20px;
  }

  .highlight-number {
    font-size: 2rem;
  }

  .gallery {
    padding: 60px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-placeholder {
    height: 160px;
  }

  .gallery-item img {
    height: 180px;
  }

  .section .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .highlight-card {
    padding: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery-item img {
    height: 150px;
  }
}

  .gallery-item img {
    height: 200px;
  }
}
