/* ============================================================
   mobile.css – Responsive Breakpoints & Mobile Nav
============================================================ */

/* ══════════════════════════════════════════════════════════
   OVERFLOW FIX – verhindert seitliches Scrollen
   Auf html KEIN overflow (bricht sticky/fixed)
   Auf body overflow-x: hidden
══════════════════════════════════════════════════════════ */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ══════════════════════════════════════════════════════════
   BURGER MENU ANIMATIONEN
   @keyframes MÜSSEN außerhalb von @media stehen!
══════════════════════════════════════════════════════════ */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════
   TABLET – max 900px
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  section       { padding: 60px 24px; }
  nav           { padding: 10px 20px; }
  .nav-logo img { height: 40px; }

  /* Nav: Links weg, Hamburger rein */
  .nav-links    { display: none !important; }
  .hamburger    { display: flex !important; }
  .nav-cta      { display: none; }

  /* Menü offen – slide down */
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height, 62px); /* wird per JS gesetzt */
    left: 0;
    right: 0;
    background: #1e4a4a;
    padding: 10px 16px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    z-index: 199; /* UNTER nav (z-index:200) → erscheint hinter Header */
    gap: 4px;
    animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: top center;
  }

  /* Links im offenen Menü – staggered fade in */
  .nav-links.mobile-open a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 16px;
    border-radius: 8px;
    display: block;
    width: 100%;
    animation: navItemIn 0.22s ease both;
  }

  .nav-links.mobile-open a:nth-child(1) { animation-delay: 0.06s; }
  .nav-links.mobile-open a:nth-child(2) { animation-delay: 0.13s; }
  .nav-links.mobile-open a:nth-child(3) { animation-delay: 0.20s; }
  .nav-links.mobile-open a:nth-child(4) { animation-delay: 0.27s; }
  .nav-links.mobile-open a:nth-child(5) { animation-delay: 0.34s; }

  .nav-links.mobile-open a:hover { background: rgba(255,255,255,0.1); }

  /* Layout */
  .hero         { grid-template-columns: 1fr; padding: 48px 24px 56px; gap: 32px; min-height: auto; }
  .hero h1      { font-size: clamp(30px, 7vw, 44px); }
  .hero-visual  { display: none; }

  .features     { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(45,74,138,0.08); padding: 20px 16px; }
  .feature-item:nth-child(odd) { border-right: 1px solid rgba(45,74,138,0.08); }
  .feature-item:nth-child(3),
  .feature-item:nth-child(4)   { border-bottom: none; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .process       { grid-template-columns: 1fr; gap: 40px; }
  .why-grid      { grid-template-columns: 1fr; gap: 16px; }
  .reviews-grid  { grid-template-columns: 1fr; gap: 16px; }
  .contact       { grid-template-columns: 1fr; gap: 40px; }

  .cta-banner    { grid-template-columns: 1fr; padding: 48px 24px; text-align: center; }
  .cta-btns      { justify-content: center; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer         { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════
   SMARTPHONE – max 768px
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .topbar        { font-size: 12px; padding: 6px 16px; gap: 16px; }
  nav            { padding: 10px 16px; }
  .nav-logo img  { height: 36px; }
  .nav-brand     { font-size: 14px; }
  .lang-btn      { font-size: 12px; padding: 6px 12px; }

  .hero          { padding: 40px 16px 48px; }
  .hero h1       { font-size: clamp(26px, 8vw, 36px); margin-bottom: 16px; }
  .hero-eyebrow  { font-size: 10px; margin-bottom: 14px; }
  .hero-desc     { font-size: 14px; margin-bottom: 28px; }
  .hero-btns     { flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .btn-primary,
  .btn-ghost     { width: 100%; text-align: center; padding: 13px 20px; font-size: 15px; }
  .hero-badge    { font-size: 12px; }

  .features      { padding: 24px 16px; }
  .feature-num   { font-size: 26px; }
  .feature-item h4 { font-size: 13px; }
  .feature-item p  { font-size: 12px; }

  section        { padding: 48px 16px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .section-sub   { font-size: 14px; margin-bottom: 28px; }

  .service-card  { padding: 22px 18px; }
  .service-icon  { width: 44px; height: 44px; }
  .service-card h3 { font-size: 16px; }
  .service-card p  { font-size: 13px; }

  .step-num         { width: 34px; height: 34px; min-width: 34px; font-size: 14px; }
  .step-content h4  { font-size: 15px; }
  .step-content p   { font-size: 13px; }
  .process-visual   { padding: 28px 20px; }
  .process-visual h3 { font-size: 20px; }
  .p-stat-num       { font-size: 26px; }
  .p-stat-label     { font-size: 13px; }
  .process-stat     { padding: 14px 16px; gap: 12px; }

  .why-card    { padding: 22px 18px; }
  .why-icon    { width: 42px; height: 42px; }
  .why-card h3 { font-size: 15px; }
  .why-card p  { font-size: 13px; }

  .review-card   { padding: 22px 18px; }
  .review-card p { font-size: 13px; }

  .cta-banner    { padding: 40px 16px; }
  .cta-banner h2 { font-size: 24px; }
  .cta-banner p  { font-size: 14px; }
  .cta-btns      { flex-direction: column; gap: 10px; width: 100%; }
  .btn-dark,
  .btn-light     { width: 100%; text-align: center; padding: 13px 20px; }

  .contact-info h3    { font-size: 22px; margin-bottom: 20px; }
  .contact-item       { gap: 12px; margin-bottom: 18px; }
  .contact-ic         { width: 36px; height: 36px; min-width: 36px; }
  .contact-ic svg     { width: 15px; height: 15px; }
  .contact-text strong { font-size: 13px; }
  .contact-text span  { font-size: 12px; }
  .contact-form h3    { font-size: 20px; }
  .form-row           { grid-template-columns: 1fr; }
  .form-group input,
  .form-group textarea,
  .form-group select  { font-size: 16px; padding: 12px 14px; }
  .btn-submit         { padding: 14px; font-size: 15px; }

  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   KLEINES SMARTPHONE – max 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .topbar    { font-size: 11px; padding: 5px 12px; gap: 12px; }
  nav        { padding: 8px 12px; }
  .nav-brand { display: none; }
  .lang-btn  { font-size: 11px; padding: 5px 10px; }

  .hero      { padding: 32px 12px 40px; }
  .hero h1   { font-size: clamp(22px, 9vw, 30px); }

  section    { padding: 40px 12px; }
  .cta-banner { padding: 32px 12px; }
  footer      { padding: 40px 12px 20px; }
}
