/* ==========================================================================
   Emailfy — Mobile additions (preserves desktop)
   ========================================================================== */

/* Base: prevent horizontal scroll on any page */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video { max-width: 100%; height: auto; }

/* ---------- Nav: burger + drawer ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav__burger:hover { border-color: var(--fg); }
.nav__burger-line {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
  transform-origin: center;
}
.nav__burger-line--a { transform: translateY(3.5px) rotate(45deg); }
.nav__burger-line--b { transform: translateY(-3px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.25s ease;
}
.nav-drawer--open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-drawer__panel {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  max-width: 440px;
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.nav-drawer--open .nav-drawer__panel {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  margin: 8px 0 28px;
  border-top: 1px solid var(--line);
}
.nav-drawer__link {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1;
  transition: padding-left 0.2s ease, color 0.2s;
}
.nav-drawer__link:hover, .nav-drawer__link:active {
  color: var(--accent);
  padding-left: 12px;
}
.nav-drawer__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.nav-drawer__arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-mute);
}
.nav-drawer__link:hover .nav-drawer__arrow { color: var(--accent); }
.nav-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.nav-drawer__email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-align: center;
}

/* hide burger by default; show on mobile */
@media (max-width: 820px) {
  .nav__burger { display: inline-flex; }
  .nav__cta-desktop { display: none !important; }
  .nav { padding: 14px 12px; }
  .nav--scrolled { padding: 10px 12px; }
  .nav__inner {
    padding: 8px 8px 8px 14px;
    background: rgba(10, 5, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
  }
  .nav__brand { font-size: 15px; }
}

/* ==========================================================================
   Mobile: V1 Hero
   ========================================================================== */
@media (max-width: 720px) {
  .v1-hero {
    padding: 108px 18px 64px;
    min-height: auto;
  }
  .v1-hero__eyebrow-row {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 10px;
  }
  .v1-hero__rotator {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .v1-hero__rotator::-webkit-scrollbar { display: none; }
  .v1-hero__rotator button {
    font-size: 10px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .v1-hero__title {
    font-size: 50px;
    line-height: 1.10;
    letter-spacing: -0.028em;
    margin-bottom: 24px;
  }
  .v1-hero__sub {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .v1-hero__ctas .cta {
    flex: 1;
    justify-content: center;
  }
  .v1-hero__ctas { gap: 10px; }
  .v1-hero__stats { display: none; }
}

/* ==========================================================================
   Mobile: V1 Sections
   ========================================================================== */
@media (max-width: 720px) {
  .v1-section { padding: 72px 18px; }
  .v1-section__head {
    margin-bottom: 40px;
    padding-top: 20px;
  }
  .v1-section__meta {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .v1-section__title {
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .v1-section__sub {
    font-size: 15px;
    margin-top: 8px;
  }

  /* Problem */
  .v1-problem__cell {
    padding: 28px 20px;
  }
  .v1-problem__num { margin-bottom: 18px; }
  .v1-problem__t { font-size: 20px; }
  .v1-problem__d { font-size: 14.5px; }
  .v1-problem__kicker {
    font-size: 26px;
    margin-top: 96px;
    margin-bottom: 20px;
    padding: 0;
  }
  .v1-section:has(> .v1-problem__kicker) { padding-bottom: 0; }

  /* Services */
  .v1-service { padding: 28px 22px; min-height: auto; }
  .v1-service__t { font-size: 20px; }
  .v1-service__d { font-size: 14.5px; }

  /* Klaviyo */
  .v1-klav { padding: 72px 18px; }

  /* Diff / Founder */
  .v1-diff__row { padding: 22px 0; grid-template-columns: 40px 1fr; gap: 12px; }
  .v1-diff__t { font-size: 18px; }
  .v1-diff__d { font-size: 14.5px; }
  .v1-founder { padding: 24px; border-radius: 16px; }
  .v1-founder__name { font-size: 20px; }
  .v1-founder__bio { font-size: 14.5px; }

  /* Process */
  .v1-process__step { padding: 32px 22px; }
  .v1-process__n { font-size: 56px; margin-bottom: 20px; }
  .v1-process__t { font-size: 20px; }
  .v1-process__d { font-size: 14.5px; }

  /* Final CTA */
  .v1-final { padding: 96px 18px; }
  .v1-final h2 { font-size: 40px; }
  .v1-final p { font-size: 16px; }

  /* Ticker */
  .v1-ticker { font-size: 12px; padding: 16px 0; }
}

/* ==========================================================================
   Mobile: FAQ
   ========================================================================== */
@media (max-width: 720px) {
  .faq__q {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 20px 0;
    font-size: 16px;
  }
  .faq__num { font-size: 10px; }
  .faq__toggle { font-size: 24px; width: 22px; }
  .faq__a { padding-left: 30px; }
  .faq__a p { font-size: 14.5px; padding-bottom: 22px; }
}

/* ==========================================================================
   Mobile: Footer
   ========================================================================== */
@media (max-width: 720px) {
  .footer { padding: 56px 18px 32px; margin-top: 72px; }
  .footer__top { padding-bottom: 36px; gap: 28px; }
  .footer__links {
    justify-content: flex-start;
    gap: 20px;
  }
  .footer__bottom {
    padding-top: 20px;
    font-size: 11px;
    gap: 10px;
  }
}

/* ==========================================================================
   Mobile: Analyse Page
   ========================================================================== */
@media (max-width: 720px) {
  .an-hero {
    padding: 108px 18px 40px;
  }
  .an-hero__back { margin-bottom: 24px; font-size: 11px; }
  .an-hero__top {
    padding-top: 20px;
    margin-bottom: 24px;
    font-size: 10px;
  }
  .an-hero__top > span:last-child { display: none; }
  .an-hero__chip { font-size: 10px; padding: 5px 10px; }
  .an-hero__title {
    font-size: 40px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.022em !important;
  }

  .an-grid {
    padding: 0 18px 48px !important;
    gap: 32px !important;
  }
  .an-bullet {
    grid-template-columns: 36px 1fr !important;
    gap: 14px !important;
    padding: 18px 0 !important;
  }
  .an-bullet__n {
    font-size: 12px !important;
  }
  .an-bullet__t {
    font-size: 17px !important;
  }
  .an-bullet__d {
    font-size: 14px !important;
  }

  /* Booking embed */
  .an-book {
    padding: 0 !important;
    border-radius: 0 !important;
    position: static !important;
  }
  .an-book__embed {
    min-height: 620px !important;
  }
  .an-book__embed iframe {
    height: 620px !important;
  }

  /* Trust strip */
  .an-trust { padding: 18px 16px !important; }
  .an-trust__inner {
    gap: 10px 18px !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  .an-trust__inner::-webkit-scrollbar { display: none; }
  .an-trust__item {
    font-size: 10px !important;
    white-space: nowrap;
  }

  /* Quote */
  .an-quote { padding: 64px 18px !important; }
  .an-quote__inner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    justify-items: center !important;
    text-align: center !important;
  }
  .an-quote__photo {
    width: 120px !important;
    height: 120px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    margin: 0 auto !important;
  }
  .an-quote__text {
    font-size: 26px !important;
    line-height: 1.18 !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  .an-quote__meta {
    font-size: 12px !important;
    text-align: center !important;
  }

  /* Steps */
  .an-steps { padding: 64px 18px !important; }
  .an-steps__list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .an-step {
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
  .an-step__n { font-size: 42px !important; margin-bottom: 14px !important; }
  .an-step__t { font-size: 18px !important; }
  .an-step__d { font-size: 14px !important; }
}

/* ==========================================================================
   Mobile: Legal (Impressum / Datenschutz)
   ========================================================================== */
@media (max-width: 720px) {
  .legal {
    padding: 108px 18px 80px;
  }
  .legal__back { margin-bottom: 24px; font-size: 11px; }
  .legal__top {
    padding-top: 20px;
    margin-bottom: 24px;
    font-size: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .legal__title {
    font-size: 64px;
    line-height: 0.98;
  }
  .legal__sub {
    font-size: 15.5px;
    margin-bottom: 48px;
  }
  .legal-body {
    padding-top: 32px;
    gap: 24px;
  }
  .legal-body__meta {
    position: static;
    font-size: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    line-height: 1.9;
  }
  .legal-body__content { font-size: 14.5px; line-height: 1.65; }
  .legal-body__content h2 { font-size: 28px; margin: 36px 0 12px; }
  .legal-body__content h3 { font-size: 16px; margin: 24px 0 8px; }
  .legal-body__content h4 { font-size: 13px; margin: 18px 0 6px; }
  .legal-body__content .addr {
    padding: 16px 18px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Mobile: Blog
   ========================================================================== */
@media (max-width: 720px) {
  .blog {
    padding: 108px 18px 80px;
  }
  .blog__header { margin-bottom: 44px; }
  .blog__filters {
    padding-top: 20px;
    margin-bottom: 28px;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .blog__filters::-webkit-scrollbar { display: none; }
  .blog__chip {
    font-size: 10px;
    padding: 7px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .blog__count {
    display: none;
  }
  .blog-row {
    padding: 22px 0 !important;
    gap: 6px !important;
  }
  .blog-row__cat { font-size: 10px; margin-bottom: 6px; }
  .blog-row__title {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 4px;
  }
  .blog-row__desc {
    font-size: 13.5px;
    line-height: 1.5;
    padding-right: 0;
    color: var(--fg-dim);
    opacity: 0.82;
  }
  .blog-row__meta {
    text-align: left;
    font-size: 10px;
    margin-top: 6px;
  }
}

/* ==========================================================================
   Mobile: Tweaks panel — smaller + floating
   ========================================================================== */
@media (max-width: 720px) {
  .tweaks {
    width: calc(100vw - 20px) !important;
    max-width: 320px !important;
    right: 10px !important;
    left: auto !important;
    bottom: 10px !important;
  }
}
