/* ── Squeezy Carousel ──────────────────────────────────────────────────────── */

.squeezy-carousel {
  position: relative;
  max-width: 1190px;
  margin-left: auto;
  margin-right: auto;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Pfeil-Navigation ──────────────────────────────────────────────────────── */

.squeezy-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 14px;
}

.squeezy-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: #122F4D;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.squeezy-carousel__btn:hover:not(:disabled) {
  background: #1a4168;
}

.squeezy-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.squeezy-carousel__btn .icon {
  display: inline-flex;
  align-items: center;
}

.squeezy-carousel__btn .icon svg {
  width: 16px;
  height: auto;
}

/* ── Viewport: nur dieser Bereich schneidet die Karten ab ──────────────────── */

.squeezy-carousel__viewport {
  overflow: hidden;
}

/* ── Track ─────────────────────────────────────────────────────────────────── */

.squeezy-carousel__track {
  display: flex;
  align-items: stretch;
  padding-bottom: 32px;
  width: max-content;
  will-change: transform;
}

/* ── Karte ─────────────────────────────────────────────────────────────────── */

.squeezy-carousel__card {
  flex-shrink: 0;
  margin-right: 20px; /* = CARD_GAP im JS */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
  transform-origin: left center;
}

/* Mobile: volle Breite (Breite wird per JS gesetzt) */
@media (max-width: 767px) {
  .squeezy-carousel__card {
    /* JS setzt width = viewport.offsetWidth */
    margin-right: 16px;
  }

  .squeezy-carousel__track {
    padding-bottom: 24px;
  }
}

/* Desktop: "recht breite" Ausgangskarte — Proportion der Folge-Karten via JS */
@media (min-width: 768px) {
  .squeezy-carousel__card {
    width: clamp(320px, 48vw, 640px);
  }
}

/* ── Bild ──────────────────────────────────────────────────────────────────── */

.squeezy-carousel__card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer; /* Klick = Carousel-Navigation */
}

.squeezy-carousel__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Bild wird geschnitten, nicht gestaucht */
  display: block;
  pointer-events: none;
  transition: transform 0.45s ease;
}


.squeezy-carousel__card-image--empty {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* ── Info-Box (statisch unter dem Viewport) ────────────────────────────────── */

.squeezy-carousel__info {
  padding: 20px 0 0;
  max-width: 70vw;
}

.squeezy-carousel__info-inner {
  transition: opacity 0.18s ease;
}

.squeezy-carousel__info-title {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.squeezy-carousel__info-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #555;
}

.squeezy-carousel__info-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.squeezy-carousel__info-link .icon {
  display: inline-flex;
  align-items: center;
}

.squeezy-carousel__info-link .icon svg {
  width: 14px;
  height: auto;
}

/* ── Lightbox ──────────────────────────────────────────────────────────────── */

.squeezy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none; /* wird via JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.squeezy-lightbox.is-open {
  opacity: 1;
}

.squeezy-lightbox__body {
  position: relative;
  display: flex;
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
  background: #fff;
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s ease;
}

.squeezy-lightbox.is-open .squeezy-lightbox__body {
  transform: translateY(0) scale(1);
}

.squeezy-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.10);
  color: #333;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
  padding: 0;
}

.squeezy-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.20);
}

.squeezy-lightbox__img-wrap {
  flex: 0 0 55%;
  min-height: 280px;
  overflow: hidden;
}

.squeezy-lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.squeezy-lightbox__info {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.squeezy-lightbox__title {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 14px;
}

.squeezy-lightbox__excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 28px;
}

.squeezy-lightbox__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: inherit;
  margin-top: auto;
}

@media (max-width: 600px) {
  .squeezy-lightbox__body {
    flex-direction: column;
    max-height: 88vh;
  }

  .squeezy-lightbox__img-wrap {
    flex: 0 0 45%;
    min-height: 160px;
  }

  .squeezy-lightbox__info {
    padding: 24px 20px;
  }
}
