/* ============================================================
   DÖLCO Schadenmanager — Responsive Styles
   Breakpoints: 1200px (laptop), 1024px (tablet), 768px (phablet),
   600px (large phone), 480px (phone), 375px (small phone)
   ============================================================ */

/* --- Prevent horizontal scroll on all devices --------------- */
html, body { overflow-x: hidden; }
video, iframe { max-width: 100%; height: auto; }

/* --- Laptop / small desktop (≤ 1200px) --------------------- */
@media (max-width: 1200px) {
  :root { --container: 980px; }
}

/* --- Tablet (≤ 1024px) ------------------------------------ */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }

  .hero-title { font-size: 44px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0px;
    padding: 140px 0 80px;
    max-width: 100%;
  }
  .hero-container { padding: 0 24px; }
  .hero-left { display: contents; }
  .hero-badge { order: 1; }
  .hero-title {
    order: 2;
    text-align: center;
  }
  .hero-right { order: 3; }
  .hero-sub { order: 4; max-width: 100%; }
  .hero-cta { order: 5; }
  .hero-stats { order: 6; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-image img { height: 380px; }
  .workflow-visual { margin-bottom: 40px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .workflow-steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .app-inner { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .compliance-badges { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --- Phablet (≤ 768px) ------------------------------------ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section--lg { padding: 80px 0; }
  .section--sm { padding: 48px 0; }

  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }

  .hero-title { font-size: 36px; }
  .hero-content { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 28px; }

  .nav { display: none; }
  .hamburger { display: flex; min-width: 44px; min-height: 44px; padding: 10px; }
  .header-actions .btn:not(.btn-sm) { display: none; }

  .features-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 32px; }
  .workflow-visual { margin-bottom: 32px; max-width: 100%; }
  .video-wrapper { margin-top: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .app-inner { gap: 36px; }
  .app-image img { height: 360px; }
  .app-badges { flex-direction: column; }
  .app-badge { min-height: 44px; justify-content: center; }

  .split-image img { height: 320px; }
  .split-badge { bottom: auto; top: 16px; right: 16px; }
  .split-image-actions { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .split-image-actions .btn { flex: 1; min-width: 120px; }
  .compliance-badges { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer-social a { min-width: 44px; min-height: 44px; }
  .footer-contact a { display: inline-block; padding: 2px 0; }

  .floating-call { bottom: 16px; right: 16px; padding: 12px 16px; font-size: 14px; }
  .floating-call span { display: none; }
  .floating-call .ph { font-size: 24px; }
  .cta-inner { padding: 72px 0; }
  .cta-form-grid { grid-template-columns: 1fr; }
}

/* --- Large phone (≤ 600px) -------------------------------- */
@media (max-width: 600px) {
  .header-actions .btn { display: none !important; }
  .header-actions .hamburger { margin-left: auto; }
  .container { padding: 0 20px; }
  .hero-container { padding: 0 20px; }
}

/* --- Mobile (≤ 480px) ------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-container { padding: 0 16px; }

  h1 { font-size: 28px; line-height: 1.2; }
  h2 { font-size: 26px; line-height: 1.25; }
  .section-title { margin-bottom: 12px; }
  .section-sub { font-size: 15px; }

  .hero-content { padding: 100px 0 48px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; margin-bottom: 40px; }
  .hero-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 28px;
    padding-top: 24px;
  }
  .hero-stat { text-align: center; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }


  .features-grid { margin-top: 32px; gap: 20px; }
  .feature-card { padding: 28px 24px; }
  .split-image img { height: 260px; }
  .split-badge { top: 12px; right: 12px; padding: 12px 16px; }
  .split-badge-num { font-size: 28px; }
  .split-image-actions { flex-direction: column; padding: 16px; }
  .split-image-actions .btn { width: 100%; justify-content: center; min-width: 0; }
  .workflow-visual { margin-bottom: 28px; }
  .video-wrapper { margin-top: 28px; border-radius: 12px; }

  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-num { font-size: 42px; }
  #stats { padding: 56px 0; }

  .app-image img { height: 280px; }
  .app-feature { font-size: 14px; }
  .testimonial-card { padding: 28px 24px; }

  .pricing-card { padding: 28px 24px; }
  .price-amount { font-size: 44px; }

  .compliance-badges { grid-template-columns: 1fr; gap: 12px; }
  .compliance-badges > div { padding: 18px 16px; }

  .cta-inner { padding: 56px 0; }
  .cta-inner h2 { font-size: 24px; }
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-buttons .btn { width: 100%; max-width: none; justify-content: center; min-height: 48px; }
  .cta-form-wrap { margin-top: 28px; }
  .cta-form-grid { grid-template-columns: 1fr; }
  .cta-note { font-size: 12px; }

  .footer-contact { margin-top: 16px; font-size: 13px; }
  .footer-social { margin-top: 16px; gap: 12px; }
  .footer-social a { width: 44px; height: 44px; }
}

/* --- Small phone (≤ 375px) --------------------------------- */
@media (max-width: 375px) {
  .container { padding: 0 14px; }
  .hero-container { padding: 0 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  .hero-title { font-size: 26px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .app-image img { height: 240px; }
  .stat-num { font-size: 36px; }
  .footer-legal { flex-direction: column; gap: 12px; }
}

/* --- iOS safe area (notch / home indicator devices) --------- */
@supports (padding: max(0px)) {
  .container,
  .hero-container {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  @media (max-width: 600px) {
    .container,
    .hero-container {
      padding-left: max(20px, env(safe-area-inset-left, 0px));
      padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
  }
  @media (max-width: 480px) {
    .container,
    .hero-container {
      padding-left: max(16px, env(safe-area-inset-left, 0px));
      padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
  }
  @media (max-width: 375px) {
    .container,
    .hero-container {
      padding-left: max(14px, env(safe-area-inset-left, 0px));
      padding-right: max(14px, env(safe-area-inset-right, 0px));
    }
  }
  .footer-bottom { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
}

/* --- Mobile Nav Overlay ----------------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  transition: color .2s;
}

.mobile-nav a:hover { color: var(--color-primary); }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
