/* ─────────────────────────────────────────
   KETER – Mobile / Tablet Styles
   Applied on top of per-page inline styles.
   Breakpoints: ≤ 768px (tablet), ≤ 480px (phone)
───────────────────────────────────────── */

/* ── Mobile Menu Button (hidden on desktop) ── */
.navbar-menu-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.navbar-menu-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.navbar-menu-btn svg {
  width: 15px; height: 15px; flex-shrink: 0;
}

/* ── Mobile Nav Overlay (full-screen blurred backdrop) ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 50, 0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Mobile Nav Panel (the white-glass card sliding in from top) ── */
.mobile-nav-panel {
  background: rgba(12, 18, 80, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(-16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
}
.mobile-nav-panel::-webkit-scrollbar { display: none; }
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateY(0);
}

/* ── Panel Header ── */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.mobile-nav-header .navbar-logo img {
  height: 36px;
}

/* Close button (mirrors the Menu button style) */
.mobile-nav-close {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-nav-close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

/* ── Nav Links List ── */
.mobile-nav-links {
  list-style: none;
  padding: 0.6rem 0;
  flex: 1;
}

.mobile-nav-links > li > a,
.mobile-nav-links > li > button.mobile-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  border-radius: 0;
}
.mobile-nav-links > li > a:hover,
.mobile-nav-links > li > button.mobile-nav-dropdown-toggle:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.mobile-nav-links > li > a.nav-active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ── Social Media Accordion Sub-Menu ── */
.mobile-nav-sub {
  list-style: none;
  padding: 0 0 0.35rem 1.25rem;
  display: none;
}
.mobile-nav-sub.open {
  display: block;
}
.mobile-nav-sub li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-sub li a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.mobile-nav-sub li a img,
.mobile-nav-sub li a svg {
  width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85;
}

.mobile-nav-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
  opacity: 0.45;
  flex-shrink: 0;
}
.mobile-nav-dropdown-toggle.open .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* ── Panel Actions (Dashboard + Waitlist) ── */
.mobile-nav-actions {
  padding: 0.9rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.mobile-nav-btn-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-btn-dashboard:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

.mobile-nav-btn-waitlist {
  padding: 0.7rem;
  border-radius: 10px;
  background: #fff;
  color: #1a1e8a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  text-align: center;
}
.mobile-nav-btn-waitlist:hover {
  background: rgba(255,255,255,0.92);
}

/* "Mitgliedschaft kündigen" — muted text link below waitlist */
.mobile-nav-btn-cancellation {
  display: block;
  text-align: center;
  padding: 0.4rem;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav-btn-cancellation:hover {
  color: rgba(255,255,255,0.55);
}

@media (max-width: 1100px) {
  .navbar-links  { display: none !important; }
  .navbar-actions { display: none !important; }
  .navbar-menu-btn { display: flex; }
}

/* ────────────────────────────────────────────────────────
   Responsive: Tablet + Mobile  (≤ 768px)
──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Scroll snap: proximity lets tall sections scroll naturally; footer stays accessible */
  body { scroll-snap-type: y proximity !important; }
  .main, .landing-section { scroll-snap-stop: normal !important; }

  .section-shell {
    width: min(100vw - 2rem, 1120px) !important;
    padding: 5.5rem 0 2rem !important;
    min-height: 100svh !important;
  }
  .section-copy {
    padding: 1.5rem !important;
  }
  .section-points {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .section-point {
    min-height: auto !important;
    padding: 0.9rem 1rem !important;
  }

  /* Divider section: slimmer, tighter gradients */
  .divider-section { min-height: 14svh !important; }
  .main::after { height: 90px !important; }
  .divider-section::before,
  .divider-section::after { height: 44px !important; }

  /* Side fades: narrower so logos don't disappear on small screens */
  .divider-marquee::before,
  .divider-marquee::after { width: min(8vw, 3.5rem) !important; }

  .divider-header {
    font-size: 0.62rem !important;
    letter-spacing: 0.24em !important;
    top: 0.7rem !important;
  }
  .divider-row {
    gap: 2rem !important;
    padding: 0 1rem !important;
  }
  .divider-item {
    min-width: 72px !important;
  }
  .divider-item img {
    max-width: 84px !important;
    max-height: 22px !important;
  }

  /* Container 1: reduce oversized top gradient on mobile */
  .section-dark::before { height: 80px !important; }

  /* Pricing card: full width, compact */
  .pricing-shell { justify-content: stretch !important; }
  .pricing-card {
    max-width: 100% !important;
    padding: 1.75rem 1.4rem 1.75rem !important;
    gap: 1.2rem !important;
    border-radius: 20px !important;
  }
  .pricing-amount {
    font-size: clamp(2.8rem, 11vw, 3.6rem) !important;
  }
  .pricing-price-block { flex-wrap: wrap !important; }
  .pricing-vat {
    margin-left: 0 !important;
    align-self: auto !important;
    padding-bottom: 0 !important;
    flex-basis: 100% !important;
  }
  .pricing-feature { font-size: 0.86rem !important; }

  /* Prevent pricing card bottom from visually merging with footer */
  .section-static { padding-bottom: 4.5rem !important; }

  /* ── Waitlist Modal: sheet from bottom ── */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .modal-header { padding: 1.25rem 1.25rem 1rem; }
  .modal-body   { padding: 1.1rem 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem 1.5rem; }

  /* ── Forms: prevent iOS auto-zoom (font-size ≥ 16px on inputs) ── */
  .form-input,
  .form-textarea {
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
  }

  /* "How did you find us" 4-col → 2-col grid */
  .toggle-group.source-group {
    grid-template-columns: 1fr 1fr;
  }

  /* Minimum tap target on toggle buttons */
  .toggle-btn { min-height: 44px; }

  /* ── Team page ── */
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .card-name { font-size: 1.75rem; }
  .card-body { padding: 1.25rem 1.25rem 1.5rem; }
  .slider-area { padding: 84px 1rem 2rem; }

  /* ── Blog + Legal + Cookies + Cancellation card pages ── */
  .content { padding: 84px 1rem 2rem; }
  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  /* ── Landing page hero ── */
  .main {
    padding: 6.25rem 1rem 2rem !important;
  }
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero-content {
    max-width: 100% !important;
  }
  .hero-title {
    animation: heroFadeInMobile 0.75s ease-out 0.18s forwards !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    color: #fff !important;
    backface-visibility: hidden;
    transform: translateY(10px) !important;
  }
  .hero-subtitle {
    animation: heroFadeInMobile 0.65s ease-out 0.34s forwards !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transform: translateY(8px) !important;
  }
  .hero-actions {
    flex-wrap: nowrap !important;
    gap: 0.65rem !important;
    animation: heroFadeInMobile 0.6s ease-out 0.46s forwards !important;
    filter: none !important;
    backface-visibility: hidden;
    transform: translateY(8px) !important;
  }
  .cta-hero-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.85rem 0.7rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
  }
  .hero-undertext {
    font-size: 0.74rem !important;
    line-height: 1.5 !important;
    animation: heroFadeInMobile 0.55s ease-out 0.58s forwards !important;
    filter: none !important;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transform: translateY(6px) !important;
  }

  /* ── Cookie banner ── */
  .cookie-banner {
    width: calc(100% - 1rem);
    bottom: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    width: 100%;
    display: flex;
  }
  .btn-cookie { flex: 1; }
}

/* ────────────────────────────────────────────────────────
   Phone  (≤ 480px)
──────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  .navbar { padding: 0 1rem; }

  .hero-title {
    max-width: 9ch !important;
    font-size: clamp(3rem, 15vw, 4.4rem) !important;
  }
  .hero-subtitle {
    font-size: 0.94rem !important;
  }
  .hero-undertext {
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
  }

  .modal-header .modal-title { font-size: 1.1rem; }

  .card-name { font-size: 1.5rem; }
  .card-body { padding: 1rem 1rem 1.25rem; }

  .mobile-nav-links > li > a,
  .mobile-nav-links > li > button.mobile-nav-dropdown-toggle {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

@keyframes heroFadeInMobile {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
