/* ============================================================
   Maja Firlé Vetzentrum — Splash Page
   ============================================================ */

/* ── Custom properties (overridden per breakpoint) ────────── */

:root {
  /* Marquee card dimensions */
  --card-w:       628px;
  --card-gap:     50px;
  /* Height of visible marquee band (arch + cream gap below) */
  --marquee-h:    460px;
}

/* ── Reset ────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #FAF3D9;
}

/* ── Page container ───────────────────────────────────────── */

.page {
  position: relative;
  height: 100vh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ── Logo ─────────────────────────────────────────────────── */

.logo-section {
  padding-top: clamp(24px, 5.8vh, 63px);
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: clamp(180px, 22vw, 315px);
  height: auto;
}

/* ── Text content ─────────────────────────────────────────── */

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 48px);
  /* Push center of gravity above the marquee band */
  padding-bottom: var(--marquee-h);
}

.headline {
  color: #31194F;
  font-size: clamp(32px, 5vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.subheadline {
  color: #31194F;
  font-size: clamp(15px, 1.67vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: clamp(14px, 2.3vw, 44px);
}

.note {
  color: #5A476F;
  font-size: clamp(12px, 1.04vw, 20px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: clamp(14px, 2.3vw, 44px);
}

/* ── Marquee wrapper ──────────────────────────────────────── */

.marquee-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--marquee-h);
  overflow: hidden;
}

/* ── Marquee track & animation ────────────────────────────── */

.marquee-track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
  animation: marquee-desktop 35s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Cards ────────────────────────────────────────────────── */

.card {
  flex-shrink: 0;
  width: var(--card-w);
  margin-right: var(--card-gap);
}

.card img {
  display: block;
  width: 100%;   /* fills the card — scales automatically with --card-w */
  height: auto;
}

/* ── Keyframes (one per breakpoint for cross-browser safety) ─ */

/* Desktop: 5 × (628 + 50) = 3390px */
@keyframes marquee-desktop {
  from { transform: translateX(0); }
  to   { transform: translateX(-3390px); }
}

/* Tablet: 5 × (380 + 32) = 2060px */
@keyframes marquee-tablet {
  from { transform: translateX(0); }
  to   { transform: translateX(-2060px); }
}

/* Mobile: 5 × (260 + 20) = 1400px */
@keyframes marquee-mobile {
  from { transform: translateX(0); }
  to   { transform: translateX(-1400px); }
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* ── Tablet  (768px – 1199px) ─────────────────────────────── */

@media (max-width: 1199px) {
  :root {
    --card-w:     380px;
    --card-gap:   32px;
    --marquee-h:  290px;
  }

  .marquee-track {
    /* Keep same visual scroll speed: 35s × (2060/3390) ≈ 21s */
    animation-name: marquee-tablet;
    animation-duration: 21s;
  }
}

/* ── Mobile  (< 768px) ────────────────────────────────────── */

@media (max-width: 767px) {
  :root {
    --card-w:     260px;
    --card-gap:   20px;
    --marquee-h:  200px;
  }

  .marquee-track {
    /* 35s × (1400/3390) ≈ 14s */
    animation-name: marquee-mobile;
    animation-duration: 14s;
  }

  /* Slightly tighter headline on narrow phones */
  .headline {
    font-size: clamp(28px, 9vw, 48px);
  }

  .subheadline {
    font-size: clamp(14px, 4vw, 22px);
  }

  .note {
    font-size: clamp(11px, 3vw, 16px);
  }
}
