/* ============================================================
   CityPark Hotel – Modern Layer v4
   ============================================================ */

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes cpHeroIn {
  from { opacity: 0; transform: translateY(36px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Nav – kein Zeilenumbruch ─────────────────────────── */
.nav-links a {
  white-space: nowrap;
}

/* ── Hero – Hintergrundbild Skyline ───────────────────── */
.hero::before {
  background: url("../images/skyline-hero.jpg") center / cover no-repeat !important;
}

/* ── Hero – Form oben, Text unten ─────────────────────── */
.hero {
  align-items: stretch !important;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: clamp(1.2rem, 3vw, 2rem) !important;
}

/* Hero-Text unten – weiß mit grüner Outline */
.hero-text {
  color: #fff;
}
.hero-text .eyebrow {
  color: rgba(255,255,255,.9);
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -2px  0   0 #000,
     2px  0   0 #000,
     0   -2px 0 #000,
     0    2px 0 #000,
     4px  4px 7px rgba(0,0,0,.65);
}
.hero-text h1 {
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -2px  0   0 #000,
     2px  0   0 #000,
     0   -2px 0 #000,
     0    2px 0 #000,
     4px  4px 7px rgba(0,0,0,.65);
}
.hero-text .lead,
.hero-text .hero-price {
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -2px  0   0 #000,
     2px  0   0 #000,
     0   -2px 0 #000,
     0    2px 0 #000,
     4px  4px 7px rgba(0,0,0,.65);
}

/* ── Hero – Staggerter Einzug (3 direkte Kinder: form, actions, text) ── */
.hero-inner > *:nth-child(1) {
  animation: cpHeroIn .9s cubic-bezier(.22,1,.36,1) .06s both;
}
.hero-inner > *:nth-child(2) {
  animation: cpHeroIn .9s cubic-bezier(.22,1,.36,1) .24s both;
}
.hero-inner > *:nth-child(3) {
  animation: cpHeroIn .9s cubic-bezier(.22,1,.36,1) .44s both;
}

/* ── Quick-Book Form – grün-getöntes Glas ──────────────── */
/* Grid: Anreise(col1 r2) | Abreise(col2 r2) | Button(col3 r2)
                                              | Gäste (col3 r3) */
.quick-book {
  max-width: 720px !important;
  margin-top: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  background: linear-gradient(
    135deg,
    rgba(235,252,195,.93) 0%,
    rgba(215,245,155,.88) 100%
  ) !important;
  border: 2px solid rgba(116,181,20,.45) !important;
  box-shadow:
    0 12px 48px rgba(0,0,0,.28),
    0 0 0 1px rgba(155,213,33,.25),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-radius: 12px !important;
}
.quick-book:focus-within {
  border-color: rgba(116,181,20,.75) !important;
  box-shadow:
    0 16px 56px rgba(0,0,0,.3),
    0 0 0 3px rgba(155,213,33,.4),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}
/* Submit-Button gleiche Höhe wie andere Hero-Buttons */
.quick-book button[type="submit"] {
  align-self: center !important;
}
/* Buchungsart-Feld: nur 2 von 3 Spalten (Platz für Button rechts) */
.quick-book .quick-book-type-field { grid-column: span 2 !important; grid-row: 1; }
/* Button rauf in Zeile 1, Spalte 3 – neben Buchungsart */
.quick-book > *:nth-child(5) { grid-column: 3; grid-row: 1; }
/* Anreise / Abreise / Gäste alle in Zeile 2 */
.quick-book > *:nth-child(2) { grid-column: 1; grid-row: 2; }
.quick-book > *:nth-child(3) { grid-column: 2; grid-row: 2; }
.quick-book > *:nth-child(4) { grid-column: 3; grid-row: 2; }
@media (max-width: 920px) {
  .quick-book { grid-template-columns: 1fr !important; }
  .quick-book .quick-book-type-field { grid-column: 1 !important; grid-row: auto; }
  .quick-book > *:nth-child(2),
  .quick-book > *:nth-child(3),
  .quick-book > *:nth-child(4),
  .quick-book > *:nth-child(5) { grid-column: 1; grid-row: auto; }
}

/* Wrapper: exakt so breit wie die Form */
.hero-booking-area {
  max-width: 720px;
  width: 100%;
}
/* hero-actions: außerhalb der Box, unterhalb Gäste-Spalte (col 3 ≈ 66 % von links), leicht nach links */
.hero-booking-area .hero-actions {
  margin-left: 62% !important;
  width: 26.5% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .45rem !important;
}
@media (max-width: 920px) {
  .hero-booking-area .hero-actions { margin-left: 0 !important; width: 100% !important; }
}

/* ── Buttons – sichtbarer Glow + Lift ─────────────────── */
.button {
  transition:
    background .2s ease,
    transform .18s cubic-bezier(.34,1.56,.64,1),
    box-shadow .2s ease;
  box-shadow:
    0 5px 20px rgba(116,181,20,.50),
    0 1px 4px rgba(0,0,0,.15);
}
.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 36px rgba(116,181,20,.65),
    0 2px 8px rgba(0,0,0,.15);
}
.button:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}
.button.light {
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.button.light:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* ── Stats – permanentes Glass-Panel ───────────────────── */
.stats {
  background: linear-gradient(
    180deg,
    rgba(245,252,230,.95) 0%,
    rgba(235,248,210,.95) 100%
  );
  border-bottom: 2px solid rgba(155,213,33,.2);
}
.stat {
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(155,213,33,.22);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition:
    transform .28s cubic-bezier(.34,1.56,.64,1),
    background .25s,
    box-shadow .25s;
}
.stat:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,.85);
  box-shadow: 0 20px 48px rgba(0,0,0,.16);
}

/* ── Bild Zoom on Hover ────────────────────────────────── */
.media {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.media img {
  transition: transform .65s cubic-bezier(.22,1,.36,1) !important;
}
.media:hover img,
.media:focus-within img {
  transform: scale(1.09) !important;
}

/* ── Nav – Scrolled Glow ───────────────────────────────── */
.site-header {
  transition: box-shadow .35s ease;
}
.site-header.scrolled {
  box-shadow:
    0 4px 28px rgba(0,0,0,.15),
    0 1px 0 rgba(155,213,33,.3);
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .72s cubic-bezier(.22,1,.36,1),
    transform .72s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity .72s cubic-bezier(.22,1,.36,1),
    transform .72s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Transport-Karten ──────────────────────────────────── */
/* WICHTIG: nach den .reveal-Regeln platziert, damit :hover
   den Spezifizitätskonflikt mit .reveal.visible gewinnt    */
.transport-card {
  position: relative;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(155,213,33,.25);
  border-bottom: 3px solid rgba(155,213,33,.40);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  border-radius: 12px;
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .32s cubic-bezier(.34,1.56,.64,1),
    border-color .2s,
    box-shadow .32s,
    background .25s;
}
.transport-card:hover {
  transform: translateY(-10px) scale(1.06) !important;
  background: #fff;
  border-color: rgba(116,181,20,.5);
  box-shadow: 0 24px 56px rgba(0,0,0,.20);
  z-index: 10;
}

/* ── Reduzierte Bewegung ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .reveal, .reveal.visible,
  .reveal-right, .reveal-right.visible,
  .button, .stat, .transport-card, .media img, .site-header {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
