/* =============================================================================
   MERKLISTE — page-favoriten.php
   Der Merken-Button selbst (.fav-btn) liegt global in css/pages/index.css.
   JS: js/favoriten.js
   ============================================================================= */

.fav-page { padding-top: clamp(2rem, 4vw, 3.5rem); background: var(--theme-bg-page); }

/* Kopfzeile: links Eyebrow + Titel gestapelt, rechts die Aktionen.
   align-items: flex-end setzt die Buttons auf die Grundlinie der Headline. */
.fav-page__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--hair-soft);
}

.fav-page__head { min-width: 0; }

.fav-page__title {
  font-family: var(--display);
  font-weight: var(--font-weight-regular);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--color-brand-primary-600);
  margin: .7rem 0 0;
  font-variation-settings: "opsz" 96;
}

.fav-page__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.fav-page__actions[hidden] { display: none; }
.fav-page__actions .btn svg { width: 1rem; height: 1rem; }

/* Kein .btn--text: der erbt Grossbuchstaben und Laufweite der Buttons und
   würde neben der Primary-Pille als zweite Aktion gleichrangig konkurrieren. */
.fav-page__clear {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: var(--font-fontSize-sm);
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: .1875rem;
  white-space: nowrap;
  transition: color .2s var(--ease, ease), text-decoration-color .2s;
}
.fav-page__clear:hover {
  color: var(--color-brand-primary-600);
  text-decoration-color: currentColor;
}

/* Leeres Grid soll keinen Abstand erzeugen */
.fav-page .rf-grid:empty { display: none; }

/* Die Reise-Karten selbst kommen unverändert aus css/pages/reisefinder.css
   (.rf-grid + .trip) — identisch zum Reisefinder. Hier nur der Rahmen. */

/* ── Leerzustand ───────────────────────────────────────────────────────────── */
.fav-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
}
.fav-empty[hidden] { display: none; }

.fav-empty__icon { width: 3.5rem; height: 3.5rem; color: var(--hair); }
.fav-empty__icon svg { width: 100%; height: 100%; }

.fav-empty__title {
  font-family: var(--display);
  font-weight: var(--font-weight-regular);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-brand-primary-600);
  margin: 0;
}

.fav-empty__text {
  font-size: var(--font-fontSize-md);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 .75rem;
}

@media (max-width: 860px) {
  /* Kopf und Aktionen untereinander, sobald die Zeile zu eng wird */
  .fav-page__bar { align-items: stretch; }
  .fav-page__actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 600px) {
  .fav-page__actions { flex-direction: column; align-items: flex-start; gap: 1.125rem; }
  .fav-page__actions .btn { width: 100%; justify-content: center; }
}
