/*
 * CruiseCars UX – Complete Rebuild (Mobile-First)
 * Design: Urlaubsgefühl + Glassmorphism + Parallax
 * Breakpoints: Base=Mobile, 768px=Tablet, 1024px=Desktop
 */

/* ═══════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════ */
:root {
  --navy: #1E3A5F;
  --navy-deep: #0e2240;
  --navy-mid: #193a62;
  --gold: #FFD54F;
  --gold-hover: #ffc107;
  --sky: #0ea5e9;
  --slate-500: #64748b;
  --slate-700: #334155;
  --white-glass: rgba(255,255,255,.85);
  --white-glass-border: rgba(255,255,255,.2);
  --dark-glass: rgba(0,0,0,.4);
  --text-shadow-strong: 0 2px 12px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
  --text-shadow-light: 0 1px 3px rgba(0,0,0,.3);
  --overlay-top: rgba(11,29,53,.35);
  --overlay-mid: rgba(11,29,53,.15);
  --nav-h: 64px;
  --brand-h: 44px;
  --brand-top: max(12px, env(safe-area-inset-top));
}

/* ═══════════════════════════════════════════
   BASE / RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0; padding: 0;
  background: #fff;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:target { scroll-margin-top: clamp(56px, var(--nav-h), 96px); }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }

/* Global focus-visible for accessibility */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  color: var(--navy);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-section {
  position: relative;
  background-image: url('/bilder/hero/hero.png');
  background-size: cover;
  background-position: 25% center;
  min-height: 100vh;
  color: #fff;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 24px;
  margin-bottom: 0;
  text-align: center;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding-top: 60px;
  margin-top: 25px;
}

h1 {
  font-size: clamp(1.8rem, 6vw, 4em);
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  line-height: 1.2;
  text-align: center;
}

.subtitle {
  font-size: 1em;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  font-weight: 600;
  margin-bottom: 28px;
  display: block;
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 769px) {
  .hero-section {
    padding: 0 40px;
    background-position: center;
    justify-content: center;
  }
  .hero-content { max-width: 80%; padding-top: 0; margin-top: 0; }
  h1 { font-size: 4em; }
  .subtitle { font-size: 1.1em; margin-bottom: 20px; white-space: nowrap; }
}

/* ═══════════════════════════════════════════
   LOGO / HEADER BAR
   ═══════════════════════════════════════════ */
.logo-container {
  position: absolute;
  top: 20px; left: 40px;
  display: flex; align-items: center;
  z-index: 2;
}
.logo-container img { height: 40px; margin-right: 10px; }
.logo-container span { font-size: 1.5em; font-weight: bold; color: #fff; }

.header-bar {
  position: absolute;
  top: 20px; right: 40px;
  display: flex; gap: 15px; align-items: center;
  z-index: 4;
}

.icon-group { display: inline-flex; align-items: center; gap: 10px; }
.icon {
  font-size: 20px; color: #fff; cursor: pointer;
  transition: color .3s, transform .3s;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.icon:hover { color: #4a90e2; transform: scale(1.1); }
.profile-icon { fill: #fff; width: 20px; height: 20px; transition: fill .3s, transform .3s; }
.profile-icon:hover { fill: #4a90e2; transform: scale(1.1); }

.auth-links { position: relative; display: inline-flex; align-items: center; margin-right: 10px; }
.auth-links .dropdown-content {
  display: none; position: absolute; top: 100%; right: 0;
  background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-radius: 10px; min-width: 150px; z-index: 1000;
}
.auth-links:hover .dropdown-content { display: block; }
.auth-links .dropdown-content a {
  display: block; padding: 10px 15px; font-size: 14px;
  color: #333; text-decoration: none; transition: background .2s, color .2s, padding-left .2s;
  border-radius: 8px; margin: 2px 4px;
}
.auth-links .dropdown-content a:hover { background: #E6F0FA; color: var(--navy); padding-left: 20px; }

.language-switcher { position: relative; display: inline-flex; align-items: center; gap: 6px; }
#currentLang { font-weight: 600; font-size: 14px; color: #fff; line-height: 1; }
.language-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 10px; min-width: 160px; padding: 6px; z-index: 10000;
}
.language-dropdown.open { display: block; }
.language-dropdown button {
  display: block; width: 100%; background: transparent; border: none;
  text-align: left; padding: 10px 12px; font-size: 14px;
  cursor: pointer; color: #333; border-radius: 8px;
  transition: background .2s, color .2s, padding-left .2s;
}
.language-dropdown button:hover { background: #E6F0FA; color: var(--navy); padding-left: 18px; }

/* ═══════════════════════════════════════════
   MOBILE HEADER (<=768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #navToggle, .logo-container, .header-bar, #headerBar {
    position: fixed !important;
    top: var(--brand-top) !important;
    height: var(--brand-h);
    display: inline-flex; align-items: center;
    z-index: 10003;
  }
  #navToggle { left: 12px !important; width: var(--brand-h); justify-content: center; }
  .logo-container {
    left: 50% !important; transform: translateX(-50%);
    gap: 8px; white-space: nowrap; z-index: 10040;
  }
  .logo-container img {
    height: 30px; position: absolute; right: 100%;
    margin-right: 6px; top: 50%; transform: translateY(-50%);
  }
  .logo-container span {
    display: inline-block; font-size: 1.28rem; font-weight: 800;
    letter-spacing: .2px; line-height: var(--brand-h); color: #fff;
  }
  .header-bar, #headerBar {
    right: 12px !important; gap: 10px; height: var(--brand-h);
  }
  .header-bar .icon, .profile-icon { width: 22px; height: 22px; }
  /* Align globe emoji with text baseline */
  .header-bar .icon-group { display: inline-flex; align-items: center; }
  .header-bar .icon {
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; vertical-align: middle;
  }
  .header-bar .language-switcher { display: inline-flex; align-items: center; }
  #currentLang { line-height: 1; vertical-align: middle; }
}

/* ═══════════════════════════════════════════
   TOP NAV (Desktop pill)
   ═══════════════════════════════════════════ */
.top-nav {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.top-nav ul {
  display: flex; gap: 18px; list-style: none; margin: 0;
  padding: 8px 14px;
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.top-nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: .2px; padding: 6px 10px; border-radius: 8px;
  transition: background .25s, color .25s, transform .25s; white-space: nowrap;
  position: relative;
}
.top-nav a:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.top-nav a:active { transform: translateY(0); }

.top-nav.sticky {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10002;
}
.top-nav.sticky ul {
  background: rgba(0,0,0,.4); backdrop-filter: blur(10px);
  border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,.3);
  padding: 8px 14px; margin-top: 1px;
}

@media (max-width: 900px) {
  .top-nav { top: 12px; }
  .top-nav ul { gap: 10px; padding: 6px 10px; }
  .top-nav a { font-size: 12px; padding: 6px 8px; }
}

@media (min-width: 1025px) {
  #navToggle { display: none !important; }
  #navMenu { display: none !important; }
  .top-nav > ul { display: flex !important; }
}

@media (max-width: 768px) {
  .top-nav > ul { display: none !important; }
  .top-nav { position: static !important; left: auto !important; transform: none !important; }
  #navToggle {
    position: fixed !important;
    top: var(--brand-top); left: 12px;
    display: inline-flex !important; z-index: 10100;
    width: var(--brand-h) !important; height: var(--brand-h) !important;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6); border-radius: 14px;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    transition: background .3s, box-shadow .3s, border-color .3s;
  }
  #navToggle:active { transform: scale(.93); }
}

/* ═══════════════════════════════════════════
   BURGER / NAV TOGGLE
   ═══════════════════════════════════════════ */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 12px; color: #fff; position: relative;
}
.nav-toggle .nav-toggle-bar,
.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
  content: ""; display: block; width: 20px; height: 2.5px;
  background: #0f172a; border-radius: 99px; position: relative;
  transition: transform .35s cubic-bezier(.4,.01,.165,.99),
              opacity .25s ease, width .25s ease, background .25s ease;
}
.nav-toggle .nav-toggle-bar::before { position: absolute; top: -6px; left: 0; width: 16px; }
.nav-toggle .nav-toggle-bar::after { position: absolute; top: 6px; left: 0; width: 20px; }

/* Open state: smooth X morph */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  width: 20px; top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  width: 20px; top: 0;
  transform: rotate(-45deg);
}

body.nav-open { overflow: hidden; touch-action: none; }

/* ═══════════════════════════════════════════
   MOBILE NAV MENU
   ═══════════════════════════════════════════ */
.nav-menu[hidden] { display: none !important; }
.nav-menu {
  position: fixed; inset: 0;
  padding: max(16px, env(safe-area-inset-top)) 16px 24px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s ease;
}
body.nav-open .nav-menu { opacity: 1; }

.nav-menu__panel {
  background: #fff; color: #111;
  max-width: 720px; width: 100%; margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.04);
  padding: 8px;
  transform: translateY(-20px); opacity: 0;
  transition: transform .35s cubic-bezier(.4,.01,.165,.99),
              opacity .3s ease;
}
body.nav-open .nav-menu__panel { transform: translateY(0); opacity: 1; }

.nav-menu__list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; }
.nav-menu__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  text-decoration: none; color: #1a1a2e; font-size: 1rem;
  font-weight: 600; min-height: 48px;
  transition: background .2s, transform .15s, color .2s;
  position: relative; overflow: hidden;
}
.nav-menu__list a:hover { background: #f0f4ff; color: var(--navy); transform: translateX(4px); }
.nav-menu__list a:active { transform: scale(.98); background: #e0eaff; }

/* Staggered entry for menu items */
body.nav-open .nav-menu__list li { opacity: 0; animation: navSlideIn .35s ease forwards; }
body.nav-open .nav-menu__list li:nth-child(1) { animation-delay: .05s; }
body.nav-open .nav-menu__list li:nth-child(2) { animation-delay: .08s; }
body.nav-open .nav-menu__list li:nth-child(3) { animation-delay: .11s; }
body.nav-open .nav-menu__list li:nth-child(4) { animation-delay: .14s; }
body.nav-open .nav-menu__list li:nth-child(5) { animation-delay: .17s; }
body.nav-open .nav-menu__list li:nth-child(6) { animation-delay: .20s; }
body.nav-open .nav-menu__list li:nth-child(7) { animation-delay: .23s; }
body.nav-open .nav-menu__list li:nth-child(8) { animation-delay: .26s; }

@keyframes navSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav item icons */
.nav-icon {
  font-size: 1.15rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(14,165,233,.08); border-radius: 10px;
  transition: background .2s, transform .2s;
}
.nav-menu__list a:hover .nav-icon { background: rgba(14,165,233,.15); transform: scale(1.1); }

@media (max-width: 768px) {
  /* Toggle button open state */
  body.nav-open #navToggle {
    background: rgba(15,23,42,.85);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }
  body.nav-open #navToggle .nav-toggle-bar::before,
  body.nav-open #navToggle .nav-toggle-bar::after { background: #fff; }

  /* Override nav-menu for mobile: slide down from top */
  .nav-menu {
    background: transparent !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body.nav-open { overflow-x: hidden; overflow-y: auto; touch-action: pan-y; }

  #navMenu {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 56px);
    left: 0; right: 0;
    transform: none !important; z-index: 10090;
    max-height: 75vh; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; padding: 0 12px;
    background: transparent !important; opacity: 1;
  }
  #navMenu .nav-menu__panel {
    width: 92%; max-width: none; margin: 0;
    padding: 6px;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    color: #111;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  }
  #navMenu *::before, #navMenu *::after {
    content: none !important; background: none !important; box-shadow: none !important;
  }
  #navMenu .nav-menu__list {
    list-style: none; margin: 0; padding: 4px;
    display: grid !important; gap: 2px;
    background: transparent !important;
  }
  #navMenu .nav-menu__list li {
    margin: 0 !important; background: transparent !important;
  }
  #navMenu .nav-menu__list li + li {
    border-top: 1px solid rgba(0,0,0,.06);
  }
  #navMenu .nav-menu__list a {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; font-size: 1.05rem; font-weight: 600;
    line-height: 1.35; color: #1a1a2e; text-decoration: none;
    background: transparent !important; border-radius: 14px !important;
    min-height: 50px;
    transition: background .2s, transform .15s;
  }
  #navMenu .nav-menu__list a:hover {
    background: rgba(14,165,233,.08) !important;
    transform: translateX(4px);
  }
  #navMenu .nav-menu__list a:active {
    transform: scale(.98);
    background: rgba(14,165,233,.12) !important;
  }
  body.nav-open .logo-container,
  body.nav-open #headerBar,
  body.nav-open .header-bar { opacity: 0; pointer-events: none; transition: opacity .2s; }
}

/* ═══════════════════════════════════════════
   SEARCH BOX
   ═══════════════════════════════════════════ */
.search-box {
  position: relative; z-index: 10000;
  background-color: var(--dark-glass);
  padding: 20px 12px 8px;
  border-radius: 12px;
  width: 100%; margin: 12px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
}
.search-label { font-size: 1em; color: #fff; margin-bottom: 14px; display: block; text-align: center; }
.provider-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.provider-button {
  background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 10px;
  cursor: pointer; transition: background .3s, transform .3s, box-shadow .3s, border-color .3s;
  width: 144px; display: flex; justify-content: center; align-items: center; min-height: 44px;
}
.provider-button:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.provider-button:active { transform: scale(.97); }
.provider-button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.provider-button img { height: 36px; max-width: 100%; }
.provider-button.selected { background: var(--gold); border-color: var(--gold-hover); }

/* Desktop: force 4 providers in one row */
@media (min-width: 1025px) {
  .provider-buttons { flex-wrap: nowrap; gap: 12px; }
  .provider-button { flex: 1 1 0; width: auto; max-width: 200px; }
}

.selection-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; justify-content: center; }
.selection-form .custom-choices { flex: 1; width: 100%; }

.custom-choices { position: relative; }
.choices__inner,
.custom-choices .choices__inner {
  background: rgba(0,0,0,.5); color: #fff; border: none; border-radius: 12px;
  padding: 10px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; min-height: 44px; width: 100%;
  transition: background .3s, box-shadow .3s;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat; background-position: right 10px center;
}
.choices__inner:hover,
.custom-choices .choices__inner:hover { background: rgba(0,0,0,.6); }
.choices__inner::placeholder,
.custom-choices .choices__inner::placeholder { color: #fff; }

.custom-choices .choices__list--dropdown {
  display: none; border: none; border-radius: 12px;
  background: #fff; z-index: 1000; max-height: 200px;
  overflow-y: auto; position: absolute; width: 100%; top: calc(100% + 4px); left: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.custom-choices.is-open .choices__list--dropdown { display: block; }
.custom-choices .choices__item--selectable {
  padding: 12px 14px; cursor: pointer; color: #333;
  transition: background .2s, color .2s; border-radius: 8px; margin: 2px 4px;
}
.custom-choices .choices__item--selectable:hover { background: #E6F0FA; color: var(--navy); }

.next-btn {
  background: var(--gold); color: var(--navy); border: none;
  padding: 15px; border-radius: 12px; cursor: pointer;
  font-size: 1.2em; font-weight: bold; width: 100%;
  transition: background .3s, transform .3s, box-shadow .3s; min-height: 44px;
}
.next-btn:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,193,7,.35); }
.next-btn:active { transform: translateY(0) scale(.98); }
.next-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.error-message { color: #d32f2f; font-style: italic; text-align: center; margin-top: 10px; }
.success-message { color: #28a745; font-style: italic; text-align: center; margin-top: 10px; }

/* Shrunk state */
.search-box.shrunk { padding: 12px; }
.search-box.shrunk .subtitle,
.search-box.shrunk .search-label,
.search-box.shrunk .selection-form,
.search-box.shrunk #errorMessage,
.search-box.shrunk #successMessage { display: none; }
.search-box.shrunk .provider-buttons { display: none !important; }
.search-box.shrunk .next-btn { padding: 10px 20px; font-size: 1em; width: fit-content; margin: 0 auto; }
.search-box.shrunk button { width: 100%; display: block; }

/* Mobile opened searchbox darker */
.search-box:not(.shrunk) {
  background-color: rgba(0,0,0,.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Desktop search adjustments */
@media (min-width: 1025px) {
  .search-box { width: 72%; padding: 40px 30px 30px; border-radius: 10px; }
  .selection-form { flex-direction: row; }
  .selection-form .custom-choices { max-width: 288px; }
  .search-box.shrunk:hover {
    padding: 40px 15px 15px; background-color: rgba(0,0,0,.8);
  }
  .search-box.shrunk:hover .subtitle,
  .search-box.shrunk:hover .search-label,
  .search-box.shrunk:hover .selection-form,
  .search-box.shrunk:hover #errorMessage,
  .search-box.shrunk:hover #successMessage { display: block; }
  .search-box.shrunk:hover .selection-form { display: flex; flex-direction: row; }
  .search-box.shrunk:hover .provider-buttons { display: flex !important; }
  .search-box.shrunk .next-btn,
  .search-box.shrunk:hover .next-btn { width: 100%; display: block; margin: 2px 0 0; }
  .choices__inner, .custom-choices .choices__inner { background: rgba(0,0,0,.3); }
}

/* ═══════════════════════════════════════════
   MOBILE STICKY SEARCH + CTA (<=1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --cc-cta-top: 0px; --cc-gap-arrow: 4px; }
  .search-box.shrunk .cta-proxy { display: block !important; width: 100%; }
  .search-box.shrunk .next-btn:not(.cta-proxy) { display: none !important; }
  .search-box:not(.shrunk) .cta-proxy { display: none !important; }
  #searchBox.shrunk[style*="position: fixed"] #stickyCtaWrap {
    position: static !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
  }
  #searchBox.shrunk[style*="position: fixed"] {
    display: flex !important; flex-direction: column !important;
    padding: var(--cc-cta-top) 12px 15px !important;
    min-height: 0 !important; overflow: visible !important;
  }
  #searchBox.shrunk[style*="position: fixed"] #mobileHandle,
  #searchBox.shrunk[style*="position: fixed"] .mobile-handle {
    order: 1; display: flex !important; justify-content: center; align-items: center;
    position: static !important; margin: 0 0 var(--cc-gap-arrow) 0 !important;
    padding: 0 !important; background: transparent !important; border: 0 !important; z-index: 2;
  }
  #searchBox .mobile-handle-btn {
    background: transparent !important; border: 0 !important;
    font-size: 20px !important; color: #fff !important; cursor: pointer !important;
  }
  #searchBox.shrunk[style*="position: fixed"] #stickyCtaWrap { order: 2; }
  #searchBox.shrunk[style*="position: fixed"] #stickyCtaBtn,
  #searchBox.shrunk[style*="position: fixed"] .cta-proxy {
    display: block !important; width: 100% !important; margin: 0 !important;
  }
  .search-box .mobile-handle { display: none; }
  .search-box.shrunk[style*="position: fixed"] .mobile-handle { display: flex !important; }
  .search-expand { display: none !important; }
  .search-box.shrunk:hover {
    padding: 12px !important; background-color: rgba(0,0,0,.4) !important;
  }
  .search-box.shrunk:hover .subtitle,
  .search-box.shrunk:hover .search-label,
  .search-box.shrunk:hover .provider-buttons,
  .search-box.shrunk:hover .selection-form,
  .search-box.shrunk:hover #errorMessage,
  .search-box.shrunk:hover #successMessage { display: none !important; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  SLA STRIP (Exklusive CruiseCars Vorteile)  ███
   ═══════════════════════════════════════════════════════════════ */
.sla-strip {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  padding: 56px 14px 40px;
  scroll-margin-top: 60px;
}
.sla-strip__inner { max-width: 1200px; margin: 0 auto; }
.sla-strip__title {
  color: #fff; font-size: 1.4rem; font-weight: 800;
  text-align: center; margin: 0 0 28px;
}

/* Mobile: vertical list, NO horizontal scroll */
.sla-strip__cards {
  display: flex !important; flex-direction: column !important; gap: 10px;
  overflow: visible !important; scroll-snap-type: none !important;
}
.sla-card {
  display: flex !important; gap: 12px; align-items: flex-start;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(14,165,233,.2);
  border-left: 3px solid rgba(14,165,233,.5);
  border-radius: 12px;
  transition: background .3s, transform .3s, box-shadow .3s;
  min-height: 0 !important; height: auto !important;
  max-height: none !important;
  flex: none !important; width: 100% !important;
  min-width: 0 !important; max-width: 100% !important;
  scroll-snap-align: unset !important;
  flex-direction: row !important;
}
.sla-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14,165,233,.15); }
.sla-card__icon {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px !important; height: 44px !important; min-width: 44px;
  background: rgba(14,165,233,.15);
  border: 1.5px solid rgba(14,165,233,.3);
  border-radius: 10px; font-size: 1.15rem;
  flex-shrink: 0;
}
.sla-card__text { flex: 1; min-width: 0; }
.sla-card__text strong {
  display: block; font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.sla-card__text p {
  margin: 0; font-size: .72rem; line-height: 1.45; color: rgba(255,255,255,.7);
}

/* Tablet: 3+2 grid */
@media (min-width: 768px) and (max-width: 1023px) {
  .sla-strip__cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; flex-direction: unset !important; }
  .sla-card { flex-direction: row !important; width: auto !important; }
}
/* Desktop: 5 columns */
@media (min-width: 1024px) {
  .sla-strip { padding: 110px 24px 100px; }
  .sla-strip__cards { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 18px; flex-direction: unset !important; }
  .sla-card { flex-direction: column !important; text-align: center; padding: 20px 14px !important; width: auto !important; }
  .sla-card__icon { margin: 0 auto 8px; }
  .sla-card__text strong { font-size: .95rem; }
  .sla-card__text p { font-size: .72rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  SHARED: Image-Section Base Styles  ███
   ═══════════════════════════════════════════════════════════════ */
.what-is-hero,
.how-works-hero,
.benefits-section,
.testimonial-hero,
.gallery-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #fff;
  overflow: visible;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 80px 16px;
  margin-bottom: 0; z-index: 1;
}

/* VERY light overlays */
.what-is-overlay,
.how-works-overlay,
.why-overlay,
.testimonial-overlay,
.gallery-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    var(--overlay-top) 0%,
    var(--overlay-mid) 40%,
    var(--overlay-mid) 60%,
    var(--overlay-top) 100%
  );
}

/* Gradient fade transitions (::before top, ::after bottom) */
.what-is-hero::before,
.how-works-hero::before,
.benefits-section::before,
.testimonial-hero::before,
.gallery-hero::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to bottom, rgba(14,34,64,.9), transparent);
  z-index: 2;
}
.what-is-hero::after,
.how-works-hero::after,
.benefits-section::after,
.testimonial-hero::after,
.gallery-hero::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to top, rgba(14,34,64,.9), transparent);
  z-index: 2;
}

/* All text over images needs strong shadow */
.what-is-hero h2, .how-works-hero h2, .benefits-section h2,
.testimonial-hero h2, .gallery-hero h2 {
  text-shadow: var(--text-shadow-strong);
}

/* Desktop: parallax + bigger sections */
@media (min-width: 1024px) {
  .what-is-hero, .how-works-hero, .benefits-section,
  .testimonial-hero, .gallery-hero {
    background-attachment: fixed;
    min-height: 100vh; padding: 120px 40px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ███  WAS IST CRUISECARS  ███
   ═══════════════════════════════════════════════════════════════ */
.what-is-hero { background-image: url('/bilder/hero/hero2.png'); }

.what-is-content {
  position: relative; z-index: 2;
  max-width: 640px; width: 100%;
  margin: 0 auto; padding: 20px 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px; border: 1px solid rgba(255,255,255,.2);
}
.what-is-content h2 {
  color: #fff; font-size: clamp(1.5rem, 5vw, 2.8rem);
  text-align: center; margin-bottom: 12px;
}
.what-is-headrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px;
}
.what-is-headrow h2 { order: 2; }
.what-is-logo {
  order: 1;
  height: 48px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.what-is-text {
  font-size: .82rem; font-weight: 500; line-height: 1.6;
  color: #fff; text-shadow: var(--text-shadow-strong);
  margin: 0 0 16px;
}
.what-is-highlight {
  font-size: 1rem; font-weight: 600; color: var(--gold);
  text-shadow: var(--text-shadow-light); margin-top: 12px;
}

/* Highlights: 2x2 glassmorphism */
.what-is-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-top: 20px;
}
.highlight-item {
  padding: 16px 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; text-align: center; color: #fff;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.highlight-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,255,255,.12); background: rgba(255,255,255,.18); }
/* Pure emoji icons – NO circles/borders */
.highlight-item .icon {
  font-size: 1.3rem;
  background: none !important; border: none !important;
  border-radius: 0 !important; padding: 0 !important;
  width: auto !important; height: auto !important;
  box-shadow: none !important; display: block; margin-bottom: 8px;
}
.highlight-item h4 {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin: 6px 0 4px; line-height: 1.25; text-shadow: none;
}
.highlight-item p {
  font-size: .85rem; font-weight: 400; color: rgba(255,255,255,.85);
  line-height: 1.5; margin: 0; text-shadow: none;
}

/* Story Box */
.the-story-content {
  position: relative; z-index: 2;
  max-width: 640px; width: 100%; margin: 20px auto 0;
  padding: 20px 16px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 14px;
  text-align: center;
}
.the-story-content h2 {
  color: #fff; font-size: clamp(1.4rem, 5vw, 2.8rem);
  text-shadow: var(--text-shadow-strong); margin-bottom: 20px;
}
.the-story-content p {
  font-size: 1rem; font-weight: 500; line-height: 1.7;
  color: #fff; text-shadow: var(--text-shadow-light); margin: 0 0 16px;
}
.the-story-content :is(h1,h2,h3,h4,h5,h6,p,li,span,a,strong,em,small) {
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.the-story-content a {
  color: var(--gold); text-decoration: none; font-weight: 600;
  background-image: linear-gradient(var(--gold-hover), var(--gold-hover));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease, color .3s;
  padding-bottom: 2px;
}
.the-story-content a:hover { color: var(--gold-hover); background-size: 100% 2px; }

.story-link { color: var(--gold); }

@media (min-width: 1024px) {
  .what-is-content, .the-story-content { max-width: 960px; padding: 40px; }
  .what-is-highlights { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .what-is-logo { height: 80px; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  HOW IT WORKS (Wie funktioniert CruiseCars?)  ███
   ═══════════════════════════════════════════════════════════════ */
.how-works-hero { background-image: url('/bilder/hero/hero3.png'); }

.how-works-content-upper {
  position: relative; z-index: 2;
  max-width: 640px; width: 100%;
  margin: 0 auto; padding: 0 8px; text-align: center;
}
.how-works-content-upper h2 {
  color: #fff; font-size: clamp(1.6rem, 5.5vw, 2.8rem); margin-bottom: 24px;
}

/* Steps: 2x2 grid on mobile */
.how-works-steps {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 20px;
}
.how-works-steps .step-arrow { display: none; }

/* Step cards — white glassmorphism */
.how-works-steps .step {
  padding: 20px 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  text-align: center; color: #333;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.how-works-steps .step:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
/* Pure emoji icons – NO circles */
.how-works-steps .step .icon {
  font-size: 1.7rem;
  background: none !important; border: none !important;
  border-radius: 0 !important; padding: 0 !important;
  width: auto !important; height: auto !important;
  box-shadow: none !important; display: block; margin-bottom: 10px; color: inherit;
}
.how-works-steps .step h3 {
  font-size: .8rem; font-weight: 700;
  color: var(--navy); margin: 6px 0 6px; line-height: 1.3;
}
.how-works-steps .step p {
  font-size: .7rem; font-weight: 400;
  color: var(--slate-500); line-height: 1.5; margin: 0;
}
/* Tooltip inside step */
.how-works-steps .step .tooltip { font-size: .7rem; }

/* Desktop: 4 cols with arrows */
@media (min-width: 1024px) {
  .how-works-content-upper { max-width: 960px; }
  .how-works-steps {
    display: flex; justify-content: center; align-items: stretch;
    gap: 24px; flex-wrap: nowrap;
  }
  .how-works-steps .step { width: 220px; padding: 28px 22px; }
  .how-works-steps .step:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
  .how-works-steps .step h3 { font-size: 1.1rem; }
  .how-works-steps .step p { font-size: .9rem; }
  .how-works-steps .step-arrow {
    display: flex; align-items: center; justify-content: center;
    font-size: 3em; color: #fff; font-weight: 700; margin: 0 8px; opacity: .7;
  }
  .how-works-steps .step-arrow::before { content: "\203A"; display: inline-block; transform: scale(1.2); }
}
/* ═══════════════════════════════════════════════════════════════
   ███  BENEFITS (Vorteile auf einen Blick)  ███
   ═══════════════════════════════════════════════════════════════ */
.benefits-section { background-image: url('/bilder/hero/hero4.png'); }

.process-content-lower {
  position: relative; z-index: 2;
  max-width: 640px; width: 100%;
  margin: 0 auto; text-align: center;
}
.process-content-lower h2,
.benefits-section h2 {
  color: #fff; font-size: clamp(1.6rem, 5.5vw, 2.8rem); margin-bottom: 24px;
}

/* Grid: 2x2 on mobile */
.benefits-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 20px;
}
.benefits-column { display: contents; }

/* Benefit cards — white glassmorphism */
.benefit-card {
  padding: 20px 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  text-align: center; color: #333;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
/* Pure emoji icons – NO circles */
.benefit-card .icon {
  font-size: 1.5rem;
  background: none !important; border: none !important;
  border-radius: 0 !important; padding: 0 !important;
  width: auto !important; height: auto !important;
  box-shadow: none !important; display: block; margin-bottom: 10px;
}
.benefit-card h3 {
  font-size: .8rem; font-weight: 700;
  color: var(--navy); margin: 6px 0 6px; line-height: 1.3;
}
.benefit-card p {
  font-size: .7rem; font-weight: 400;
  color: var(--slate-500); line-height: 1.5; margin: 0; flex: 1;
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .process-content-lower { max-width: 1100px; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 20px; }
  .benefit-card { padding: 24px 18px; }
  .benefit-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
  .benefit-card h3 { font-size: 1.1rem; }
  .benefit-card p { font-size: .9rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  TESTIMONIALS  ███
   ═══════════════════════════════════════════════════════════════ */
.testimonial-hero { background-image: url('/bilder/hero/feedback.png'); }

.testimonial-content {
  position: relative; z-index: 2;
  max-width: 640px; width: 100%;
  margin: 0 auto; text-align: center;
}
.testimonial-content h2 {
  color: #fff; font-size: clamp(1.5rem, 5vw, 2.8rem); margin-bottom: 24px;
}

/* 1 column on mobile */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.testimonial-card {
  padding: 14px 16px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  text-align: left; color: #333; transition: transform .3s, box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.testimonial-card .stars { font-size: .85rem; color: gold; margin: 0 0 6px; }
.testimonial-card p {
  font-size: .78rem; font-style: italic;
  color: var(--slate-700); line-height: 1.5; margin: 0 0 10px;
}
.testimonial-card span { font-size: .72rem; font-weight: 700; color: var(--navy); display: block; }

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .testimonial-content { max-width: 800px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .testimonial-content { max-width: 960px; }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .testimonial-card p { font-size: .85rem; }
  .testimonial-card span { font-size: .78rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  GALLERY / CRUISE AGENTS  ███
   ═══════════════════════════════════════════════════════════════ */
.gallery-hero {
  background-image: url('/bilder/hero/hero5.png'); min-height: 60vh;
  background-size: cover; background-position: center center;
}

.gallery-content { position: relative; z-index: 2; text-align: center; }
.cruiseagent-btn {
  padding: 16px 32px; background: var(--gold); color: var(--navy);
  border: none; border-radius: 999px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.cruiseagent-btn:hover { background: var(--gold-hover); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,193,7,.4); }
.cruiseagent-btn:active { transform: translateY(0) scale(.97); }
.cruiseagent-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 1024px) { .gallery-hero { min-height: 85vh; } }
/* ═══════════════════════════════════════════════════════════════
   ███  FAQ SECTION  ███
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
  background: #fff; padding: 60px 16px;
  max-width: 900px; margin: 0 auto;
}
.faq-section h2 {
  text-align: center; font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 32px; color: var(--navy);
}
.faq-category { margin-bottom: 24px; }
.faq-category-title {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb;
}
.faq-item {
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s; border-radius: 8px; margin: 0 -8px; padding: 0 8px;
}
.faq-item:hover { background: #f8fafc; }
.faq-question {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 16px 0; font-size: .95rem; font-weight: 600; color: #333; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  transition: color .2s;
}
.faq-question:hover { color: var(--navy); }
.faq-question:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 6px; }
.faq-question::after {
  content: "+"; font-size: 1.4rem; font-weight: 300; color: #999;
  transition: transform .3s, color .2s;
}
.faq-question:hover::after { color: var(--navy); }
.faq-question[aria-expanded="true"]::after { content: "\2212"; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer.open { max-height: 600px; padding: 0 0 16px; }
.faq-answer p, .faq-answer ul, .faq-answer ol, .faq-answer li {
  font-size: .9rem; line-height: 1.6; color: #555;
}
@media (min-width: 1024px) { .faq-section { padding: 80px 40px; } }
/* ═══════════════════════════════════════════════════════════════
   ███  FOOTER (basic fallback; legal footer in ux-legal-popup.css)  ███
   ═══════════════════════════════════════════════════════════════ */
.footer { background: #111; padding: 60px 20px; text-align: center; }
.footer-logo img { max-width: 240px; height: auto; margin: 0 auto 30px; display: block; }
.footer-content { font-size: .95rem; color: #ccc; }
/* ═══════════════════════════════════════════════════════════════
   ███  WELCOME MESSAGE  ███
   ═══════════════════════════════════════════════════════════════ */
.welcome-message {
  color: #fff; font-size: .9em; font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5); white-space: nowrap;
}
#welcomeMessage:empty, .welcome-message:empty { display: none !important; }

@media (max-width: 768px) {
  .hero-section > #welcomeMessage,
  .hero-section > .welcome-message {
    position: absolute !important; top: 65px !important;
    left: 0 !important; right: 0 !important; width: 100% !important;
    text-align: center !important; font-size: .9rem !important;
    font-weight: bold !important; font-style: italic !important;
    color: #fff !important; text-shadow: 1px 1px 2px rgba(0,0,0,.5) !important;
    z-index: 100 !important; padding: 0 16px !important;
    background: transparent !important; pointer-events: none !important; margin: 0 !important;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ███  MOBILE FULLSCREEN PICKER  ███
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cc-mobile-picker {
    position: fixed; inset: 0; background: #fff;
    z-index: 100000; display: flex; flex-direction: column;
  }
  .ccmp-header {
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 12px; border-bottom: 1px solid #eee;
  }
  .ccmp-back { appearance: none; background: none; border: 0; font-size: 28px; padding: 6px 10px; cursor: pointer; }
  .ccmp-title { font-weight: 700; font-size: 16px; }
  .ccmp-searchbar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
  }
  .ccmp-search-icon { font-size: 16px; }
  #ccmpQuery {
    flex: 1; height: 40px; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 0 12px; font-size: 16px; outline: none;
  }
  .ccmp-clear { appearance: none; background: none; border: 0; font-size: 20px; padding: 6px 8px; cursor: pointer; color: #888; }
  .ccmp-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 0; flex: 1; }
  .ccmp-item { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background .2s, padding-left .2s; }
  .ccmp-item:hover { background: #E6F0FA; padding-left: 22px; }
  .ccmp-item:active { background: #dbeafe; }
  .ccmp-item strong { display: block; color: #111827; }
  .ccmp-item small { color: #6b7280; }
}
/* ═══════════════════════════════════════════════════════════════
   ███  TOOLTIP  ███
   ═══════════════════════════════════════════════════════════════ */
.tooltip { position: relative; cursor: help; }
.tooltip .tooltiptext {
  visibility: hidden; opacity: 0;
  position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff;
  padding: 8px 12px; border-radius: 8px;
  font-size: .75rem; font-style: normal; font-weight: 400;
  white-space: normal; width: 220px; text-align: left;
  transition: opacity .2s; z-index: 100;
}
.tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }
/* ═══════════════════════════════════════════════════════════════
   ███  DESKTOP DROPDOWN (injected by JS)  ███
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .custom-choices .choices__list--dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0;
    width: 100%; max-height: 200px; overflow-y: auto;
    background: #fff; border: none; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 1000;
  }
  .custom-choices.is-open .choices__list--dropdown { display: block; }
}

/* Utilities */
body.first-sticky .search-box { transition: none !important; }
.nav-sticky .search-box.shrunk { margin-top: calc(var(--nav-h, 64px)); }

/* ═══════════════════════════════════════════════════════════════
   ███  SCROLL REVEAL ANIMATIONS  ███
   ═══════════════════════════════════════════════════════════════ */

/* Base hidden state — all variants */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}

/* Slide up (default) */
[data-reveal="up"] { transform: translateY(50px); }

/* Slide from left */
[data-reveal="left"] { transform: translateX(-50px); }

/* Slide from right */
[data-reveal="right"] { transform: translateX(50px); }

/* Scale up */
[data-reveal="scale"] { transform: scale(.88); }

/* Fade only */
[data-reveal="fade"] { transform: none; }

/* Revealed state — all variants reset */
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for children */
[data-reveal-stagger] > [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger] > [data-reveal]:nth-child(2) { transition-delay: .1s; }
[data-reveal-stagger] > [data-reveal]:nth-child(3) { transition-delay: .2s; }
[data-reveal-stagger] > [data-reveal]:nth-child(4) { transition-delay: .25s; }
[data-reveal-stagger] > [data-reveal]:nth-child(5) { transition-delay: .3s; }
[data-reveal-stagger] > [data-reveal]:nth-child(6) { transition-delay: .35s; }
[data-reveal-stagger] > [data-reveal]:nth-child(7) { transition-delay: .4s; }
[data-reveal-stagger] > [data-reveal]:nth-child(8) { transition-delay: .45s; }

/* Section headings — slightly bigger motion */
.section-heading[data-reveal] {
  transform: translateY(30px) scale(.96);
}
.section-heading[data-reveal].revealed {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body.nav-open .nav-menu__list li { animation: none !important; opacity: 1 !important; }
  .nav-menu__panel { transform: none !important; opacity: 1 !important; }
}
