/* ============================================================
   az-karte.css — die EINE Stelle für die Gestaltung der Angebotskarte des Bausteins
   (assets/js/az-karte.js, scripts/lib_angebot_karte.py). Geladen von den Slot-Seiten direkt,
   von den Baustein-Seiten über assets/css/angebote.css (@import), als Rückfall von angebote-slot.js.
   Regeln wortgleich aus angebote.css übernommen (W74, 01.12.2026).
   ============================================================ */

.angebot-card {
  display: block;
  background: #0F1418;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #F5F3EF;
  transition: all 0.4s ease;
}

.angebot-card:hover {
  border-color: #C9A84C;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.angebot-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1f25;
}

.angebot-card__image > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.angebot-card:hover .angebot-card__image > img:first-child {
  transform: scale(1.05);
}

.angebot-card__logo {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 28px;
  width: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 4px 8px;
  object-fit: contain;
}

.angebot-card__content {
  padding: 20px;
}

.angebot-card__reederei {
  display: block;
  color: #C9A84C;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.angebot-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #fff;
}

.angebot-card__text {
  color: #B8C4D0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.angebot-card__preis {
  color: #C9A84C;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.angebot-card__kabinen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.angebot-kabine {
  font-size: 0.7rem;
  color: #B8C4D0;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.angebot-card__cta {
  display: inline-block;
  color: #C9A84C;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.angebot-card:hover .angebot-card__cta {
  opacity: 0.8;
}

/* Nur in Angebots-Slots: Knöpfe der zwei Wege am unteren Kartenrand ausrichten (W74 4c).
   Karten der Baustein-Seiten liegen nicht in .angebote-slot und bleiben unberührt. */
.angebote-slot .angebot-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.angebote-slot .angebot-card__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.angebote-slot .angebot-card__content > .az-wege {
  margin-top: auto;
}

/* ------------------------------------------------------------
   W76: Bemessung der Karte in Kartenreihen. Diese Seiten bemessen die Karte über die alte Klasse
   .angebote-card; die Karte des Bausteins (.angebot-card) bekommt hier dieselben Werte.
   Quelle jeweils genannt; Test: tests/karte-bemessung.test.cjs.
   ------------------------------------------------------------ */

/* aida-offer-slider-20260902-v1.css:27 und :57 (Kartenreihe im AIDA-Schiffsberater) */
body.has-aida-schiffsberater .pilot-offers .angebot-card {
  flex: 0 0 calc((100% - 20px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 620px) {
  body.has-aida-schiffsberater .pilot-offers .angebot-card {
    flex-basis: 88%;
  }
}

/* meerzeit-v2.css:1219 (Kartenreihe am Handy) */
@media (max-width: 680px) {
  .meerzeit-offers .angebot-card {
    flex: 0 0 min(84vw, 335px);
    scroll-snap-align: start;
  }
}

/* msc-world-class.css:1254 (Raster in Spaltenrichtung am Handy, Spaltenbreite min(86%, 360px)):
   Die Karte hat overflow: hidden und hielte eine feste erste Spalte sonst nicht offen. */
@media (max-width: 720px) {
  .ship-offer-layout .angebote-slot__cards > .angebot-card {
    min-width: min(calc(86vw - 28px), 360px);
    scroll-snap-align: start;
  }
}
