/* ===========================
   ÜBER-UNS SEITE
   =========================== */

/* HERO */
.page-hero--ueberuns {
  color: #fff;
  padding: 5rem 0;
}

.page-hero--ueberuns .page-hero__title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.page-hero--ueberuns .page-hero__text {
  max-width: 40rem;
  line-height: 1.6;
}

.page-hero--ueberuns .page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* ===========================
   EXPERTEN-BEREICH
   =========================== */

.experts {
  padding: 4rem 0 3rem;
  background: #f3f4f6;
}

.experts__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.experts__header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.experts__header p {
  color: #4b5563;
  line-height: 1.6;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .experts-grid {
    grid-template-columns: 1fr;
  }
}

.expert-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 190px;   /* Boxen werden etwas höher */
}


.expert-card:hover,
.expert-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: #9ca3af;
  outline: none;
}

.expert-card__image img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.expert-card__content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.expert-card__role {
  margin: 0 0 0.6rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.expert-card__more {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===========================
   MODALS
   =========================== */

.no-scroll {
  overflow: hidden;
}

.expert-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.expert-modal.is-open {
  display: flex;
}

.expert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.expert-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  max-width: 840px;
  width: calc(100% - 2rem);
  z-index: 1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.expert-modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .expert-modal__inner {
    grid-template-columns: 1fr;
  }
}

.expert-modal__image img {
  width: 100%;
  border-radius: 1.25rem;
  object-fit: cover;
}

.expert-modal__content h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.expert-modal__role {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-weight: 500;
}

.expert-modal__content p {
  margin-bottom: 0.75rem;
  color: #374151;
}

.expert-modal__contact h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.expert-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.expert-modal__close:hover {
  background: rgba(15, 23, 42, 0.09);
}

/* ===========================
   ZERTIFIKATE-SLIDER
   =========================== */

.cert-slider-section {
  padding: 3rem 0;
  background: #ffffff;
}


.cert-slider__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}

.cert-slider__header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.cert-slider__header p {
  color: #4b5563;
}

.cert-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-slider__viewport {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  flex: 1;
}

.cert-slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.cert-slider__item {
  min-width: 100%;
  padding: 1rem;
  text-align: center;
}


.cert-slider__item img {
  max-width: 100%;
  max-height: 260px;      /* begrenzt die Höhe */
  height: auto;
  border-radius: 0.75rem;
  display: block;
  margin: 0 auto 0.75rem;
  object-fit: contain;    /* schneidet nichts ab */
}


.cert-slider__item figcaption {
  font-size: 0.95rem;
  color: #374151;
}

.cert-slider__item--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-slider__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.cert-slider__pdf-link i {
  font-size: 1.1rem;
}

.cert-slider__control {
  border: none;
  background: #e5e7eb;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cert-slider__control:hover {
  background: #d1d5db;
}

.cert-slider__dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.4rem;
}

.cert-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.cert-slider__dot.is-active {
  width: 16px;
  background: #9ca3af;
}

/* ===========================
   LOGO-ABSCHNITT (DEKRA / BvD / GDD)
   =========================== */

.memberships {
  padding: 4rem 0 4.5rem;
  background: #f9fafb;
}

.memberships__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.memberships__header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.memberships__header p {
  color: #4b5563;
}

.memberships-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .memberships-grid {
    grid-template-columns: 1fr;
  }
}

.membership {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.membership__logo img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.9rem;
}

.membership h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.membership p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ===========================
   LIGHTBOX FÜR ZERTIFIKATE
   =========================== */

.cert-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.cert-lightbox.is-open {
  display: flex;
}

.cert-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.cert-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: min(90vh, 700px);
  padding: 0.75rem;
  border-radius: 1rem;
  background: #020617;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox__dialog img {
  max-width: 100%;
  max-height: 82vh;
  height: auto;
  border-radius: 0.75rem;
  object-fit: contain;
}

.cert-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cert-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* Mauszeiger „Zoom“ für klickbare Slider-Bilder */
.cert-slider__item img {
  cursor: zoom-in;
}
