/* ============================================================
   MOBILE — consolidated responsive overrides
   Breakpoints:
   - 1024: tablet / small laptop
   - 768:  tablet portrait / large phone
   - 480:  phone
   ============================================================ */

/* ---------- Global typography & spacing ---------- */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(40px, 9vw, 52px) !important; }
  h2 { font-size: clamp(32px, 7vw, 42px) !important; }
  h3 { font-size: clamp(20px, 5vw, 26px) !important; }

  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; gap: 16px; }
  .section-lede { font-size: 15px; }
  .label, .eyebrow, .mono { font-size: 10px; }
  .eyebrow::before { width: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
}

/* ---------- Nav ---------- */
@media (max-width: 768px) {
  .nav-inner { height: 60px; padding: 0 18px; }
  .logo-mark { font-size: 20px; letter-spacing: 0.28em; }
  .logo-est { font-size: 7.5px; letter-spacing: 0.32em; }
  .nav-inner > a.btn {
    padding: 12px 16px;
    font-size: 10px;
    letter-spacing: 0.18em;
    gap: 8px;
  }
}
@media (max-width: 380px) {
  .nav-inner > a.btn { padding: 10px 12px; font-size: 9.5px; }
  .nav-inner > a.btn .btn-arrow { display: none; }
}

/* ---------- Hamburger + Mobile Menu ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.nav-mobile.is-open { max-height: 480px; }

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links li { border-bottom: 1px solid var(--line); }
.nav-mobile-links a {
  display: block;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-cta { margin: 20px 0 24px; justify-content: center; width: 100%; }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-cta { display: none !important; }
  .nav-mobile { display: flex; }
}

/* ---------- Buttons ---------- */
@media (max-width: 768px) {
  .btn {
    padding: 14px 22px;
    font-size: 11px;
    letter-spacing: 0.18em;
    min-height: 48px;     /* hit target */
  }
  .btn-ghost { padding: 12px 0; min-height: 44px; }
}

/* ---------- HERO ---------- */
@media (max-width: 1024px) {
  .hero {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 80px 0 72px;
  }
  .hero-grid {
    padding: 0 24px;
    min-height: 540px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 72px 0 64px;
  }
  .hero-grid {
    padding: 0 20px;
    min-height: 520px;
    align-items: center;
  }
  .hero-text {
    gap: 22px;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(38px, 9.5vw, 52px) !important;
    line-height: 1.05;
  }
  .hero-sub {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 100%;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .hero-cta .btn {
    justify-content: center;
    width: 100%;
  }
  .hero-cta .btn-ghost {
    width: auto;
    align-self: flex-start;
    padding: 8px 0;
  }
  .hero-meta {
    gap: 16px;
    padding-top: 22px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .hero-meta-item { flex: 0 0 calc(33% - 16px); min-width: 80px; }
  .hero-meta-num { font-size: 14px; }
  .hero-meta-divider { display: none; }

  .hero-video-label {
    top: 20px;
    right: 20px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .hero-video-corners span {
    width: 12px;
    height: 12px;
  }
  .hero-video-corners span:nth-child(1) { top: 16px; left: 16px; }
  .hero-video-corners span:nth-child(2) { top: 16px; right: 16px; }
  .hero-video-corners span:nth-child(3) { bottom: 16px; left: 16px; }
  .hero-video-corners span:nth-child(4) { bottom: 16px; right: 16px; }

  /* Stronger overall scrim on small screens — video stays atmospheric, text wins */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(10, 18, 48, 0.5) 0%,
        rgba(10, 18, 48, 0.75) 50%,
        rgba(10, 18, 48, 0.92) 100%);
  }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { padding: 0 18px; min-height: 460px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px) !important; }
  .hero-sub { font-size: 14.5px; }
  .hero-meta-item { flex: 0 0 calc(50% - 8px); }
  .hero-meta { gap: 12px; }
}

/* ---------- PAIN POINTS ---------- */
@media (max-width: 768px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-card { padding: 32px 22px 38px; }
  .pain-num { margin-bottom: 18px; }
  .pain-line { margin-bottom: 20px; width: 24px; }
  .pain-title { font-size: 20px !important; margin-bottom: 12px; }
  .pain-body { font-size: 13.5px; line-height: 1.5; }
}
@media (max-width: 480px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { padding: 32px 22px 36px; }
  .pain-title { font-size: 22px !important; }
  .pain-body { font-size: 14.5px; }
}

/* ---------- LEISTUNGEN ---------- */
@media (max-width: 768px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .leist-card {
    padding: 32px 24px;
    min-height: 0;
    gap: 14px;
  }
  .leist-title { font-size: 22px !important; }
  .leist-body { font-size: 14.5px; }
  .leist-cta { font-size: 10px; padding-top: 14px; }
  .leist-badge { font-size: 8.5px; padding: 5px 9px; }
  .leist-trust {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-top: 24px;
  }
  .leist-trust p { font-size: 9.5px; line-height: 1.6; }
}

/* ---------- ROI ---------- */
@media (max-width: 1024px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-inputs, .roi-output { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .roi-inputs {
    padding: 28px 22px;
    gap: 32px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .roi-output {
    padding: 28px 22px;
    grid-template-columns: 1fr;
  }
  .roi-slider-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }
  .roi-slider-val { font-size: 28px; }
  .roi-slider-foot { font-size: 9px; }
  .roi-slider-track input[type="range"] {
    height: 4px;       /* easier to tap */
  }
  .roi-slider-track input[type="range"]::-webkit-slider-thumb {
    width: 22px; height: 22px;
  }
  .roi-slider-track input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
  }
  .roi-result,
  .roi-result:nth-child(1),
  .roi-result:nth-child(2) {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .roi-result.is-big {
    padding: 24px 0 12px;
    border-top: 1px solid var(--accent);
  }
  .roi-result-val .serif { font-size: 36px !important; }
  .roi-result.is-big .roi-result-val .serif { font-size: 48px !important; }
  .roi-result-unit { font-size: 11px; }
  .roi-cta { width: 100%; margin-top: 20px; }
}

/* ---------- PROZESS ---------- */
@media (max-width: 768px) {
  .prozess-grid { gap: 32px; }
  .prozess-step { gap: 16px; }
  .prozess-num { font-size: 64px !important; }
  .prozess-content h3 { font-size: 24px !important; }
  .prozess-content p { font-size: 14.5px; }
}

/* ---------- DEMO ---------- */
@media (max-width: 1024px) {
  .demo-card { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .demo-section { padding: 72px 0; }
  .demo-card { gap: 40px; }
  .demo-left { gap: 22px; }
  .demo-title { font-size: clamp(34px, 8.5vw, 44px) !important; }
  .demo-sub { font-size: 15px; max-width: 100%; }
  .demo-phone {
    padding: 26px 24px;
  }
  .demo-phone-num {
    font-size: clamp(28px, 7.5vw, 38px) !important;
    word-break: break-word;
    line-height: 1.1;
  }
  .demo-phone-cta { font-size: 10px; letter-spacing: 0.18em; }
  .demo-features li {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 20px 0;
  }
  .demo-features li > span { font-size: 10px; }
  .demo-features li > div { font-size: 14px; line-height: 1.55; }
  .demo-flow-track { gap: 8px; }
  .demo-flow-node {
    padding: 8px 12px;
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}

/* ---------- KONTAKT ---------- */
@media (max-width: 768px) {
  .kontakt-head { margin-bottom: 40px; gap: 16px; }
  .kontakt-head h2 { font-size: clamp(34px, 8vw, 44px) !important; }
  .kontakt-lede { font-size: 15px; }
  .kontakt-grid { gap: 16px; }
  .kontakt-card {
    padding: 32px 26px;
    min-height: 180px;
    gap: 14px;
  }
  .kontakt-method {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    word-break: break-word;
  }
  .kontakt-foot { font-size: 10px; letter-spacing: 0.16em; padding-top: 12px; }
}

/* ---------- FOOTER ---------- */
@media (max-width: 768px) {
  .footer { padding: 48px 0 28px; }
  .footer-top { gap: 28px; padding-bottom: 28px; }
  .footer-tagline { font-size: 18px; max-width: 100%; }
  .footer-logos { font-size: 12px; gap: 10px; flex-wrap: wrap; }
  .footer-bottom { font-size: 10px; gap: 14px; }
  .footer-legal { gap: 18px; }
  .footer-legal a { font-size: 10px; }
}

/* ---------- Tweaks panel: keep usable on mobile ---------- */
@media (max-width: 768px) {
  /* Tweaks panel is host-controlled, but if it has its own wrapper,
     ensure it doesn't get clipped on small viewports */
  body { overflow-x: hidden; }
}

/* ---------- Touch-device hover suppression ---------- */
@media (hover: none) {
  .pain-card:hover { background: var(--bg); }
  .pain-card:hover .pain-line { width: 32px; }
  .leist-card:hover {
    background: var(--card);
    transform: none;
  }
  .kontakt-card:hover {
    border-color: var(--line);
    transform: none;
  }
  .kontakt-card:hover::after { width: 0; }
  .demo-phone:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
  .demo-phone:hover::before { transform: translateX(-100%); }
  .btn:hover .btn-arrow { transform: none; }
}
