/* ============================================================
   Detailseite für Sprachclub & Themenpaket
   Vollseite statt Dialog – im Sprachklub-Stil.
   ============================================================ */

.detail-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.detail-back {
  align-self: flex-start;
  font-size: var(--fs-300);
  color: var(--brand-navy);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.detail-back:hover {
  background: var(--brand-yellow-soft);
  border-color: rgba(248, 210, 84, 0.45);
  text-decoration: none;
}

.detail-status {
  padding: var(--space-6);
}

.detail-error h2 {
  margin-top: 0;
  color: var(--brand-navy);
}

.detail-error .btn {
  margin-top: var(--space-4);
}

/* ───── Haupt-Card ───── */
.detail-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef8 0%, #fffdf2 100%);
  box-shadow: var(--shadow-2);
}

/* ───── Hero: Bild + Info ───── */
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: var(--space-6);
  align-items: start;
}

.detail-media {
  margin: 0;
  border-radius: var(--radius-3, 16px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.detail-info h1 {
  margin: 0;
  color: var(--brand-navy);
  line-height: 1.15;
}

.detail-host {
  margin: 2px 0;
}

.detail-facts {
  gap: var(--space-3);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.detail-price {
  font-size: var(--fs-600, 1.6rem);
  color: var(--brand-navy);
}

.detail-savings {
  font-size: var(--fs-300);
  color: var(--success, #1d7a4d);
  font-weight: 600;
  background: rgba(29, 122, 77, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.detail-actions .btn {
  flex: 1 1 auto;
  min-width: 160px;
}

/* ───── Abschnitte ───── */
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail-section h2 {
  margin: 0;
  font-size: var(--fs-450, 1.2rem);
  color: var(--brand-navy);
}

.detail-desc {
  line-height: 1.65;
  color: var(--ink, #2a2a2a);
}

.detail-desc p {
  margin: 0 0 0.75em;
}

.detail-desc :last-child {
  margin-bottom: 0;
}

/* ───── Enthaltene Termine: Agenda nach Datum ───── */
.pkg-agenda {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pkg-agenda-day {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pkg-agenda-date {
  font-weight: 600;
  color: var(--brand-navy);
  font-size: var(--fs-300);
  text-transform: capitalize;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.pkg-agenda-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pkg-agenda-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2, 12px);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.05s ease;
}

.pkg-agenda-item:hover {
  background: var(--brand-yellow-soft);
  border-color: rgba(248, 210, 84, 0.55);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, 0.06));
  text-decoration: none;
}

.pkg-agenda-item:active {
  transform: translateY(1px);
}

.pkg-agenda-time {
  font-weight: 700;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.pkg-agenda-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.pkg-agenda-title {
  font-weight: 600;
  color: var(--ink, #2a2a2a);
}

.pkg-agenda-meta {
  gap: var(--space-3);
  font-size: var(--fs-200, 0.85rem);
  color: var(--muted, #666);
}

.pkg-agenda-chevron {
  margin-left: auto;
  color: var(--brand-navy);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ───── Kombi-Hinweis (Club gehört zu einem Paket) ───── */
.detail-combo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 14px 16px;
  border: 1px solid rgba(248, 210, 84, 0.55);
  border-radius: var(--radius-2, 12px);
  background: var(--brand-yellow-soft);
}

.detail-combo-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.detail-combo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.detail-combo-text strong {
  color: var(--brand-navy);
}

.detail-combo-sub {
  font-size: var(--fs-300);
  color: var(--success, #1d7a4d);
  font-weight: 600;
}

.detail-combo-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .detail-combo {
    flex-wrap: wrap;
  }

  .detail-combo-btn {
    flex-basis: 100%;
  }
}

/* ───── Inline-Buchung (kein Dialog) ───── */
.detail-booking-panel {
  /* Modal-Beschränkungen aufheben – das Panel lebt im Seitenfluss */
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: var(--space-5) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-elev);
  box-shadow: var(--shadow-2);
  /* Beim Einblenden sauber unter den Sticky-Header scrollen */
  scroll-margin-top: 90px;
  animation: detail-booking-in 0.18s ease;
}

@keyframes detail-booking-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───── Mobil ───── */
@media (max-width: 720px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-media {
    max-width: 480px;
  }

  .detail-actions .btn {
    flex-basis: 100%;
  }
}
