/* ============================================================
   mobile.css — Innoways UG | Gemeinsame Mobile-Styles
   Einbinden nach der seitenspezifischen styles.css
   ============================================================ */

/* --- Tablet (bis 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-pad-x: 28px;
    --section-pad-y: 64px;
  }

  [class*="__grid"],
  [class*="-grid"] {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-info__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Mobil (bis 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-pad-x: 16px;
    --section-pad-y: 48px;
  }

  /* === Typografie === */
  h1 { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
  h2 { font-size: clamp(1.2rem, 5vw, 1.6rem) !important; }
  h3 { font-size: clamp(1rem, 4vw, 1.2rem) !important; }
  p  { font-size: 0.92rem; line-height: 1.7; }

  /* === Layouts auf 1 Spalte === */
  [class*="__grid"],
  [class*="-grid"] {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* === Navigation === */
  .nav__inner {
    height: auto !important;
    min-height: 72px;
    padding: 16px var(--section-pad-x, 16px);
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav__actions {
    width: 100%;
    justify-content: space-between;
  }
  .logo-placeholder {
    font-size: 1.1rem;
  }

  /* === Hero-Bereich === */
  .page-hero {
    min-height: 36vh;
    padding: 40px 0;
  }
  .page-hero__title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
  }
  .page-hero__sub {
    font-size: 0.88rem;
  }

  /* === Buttons === */
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* === Karten === */
  .contact-card {
    padding: 20px 16px;
  }

  /* === Floating Sidebar === */
  .floating-sidebar {
    display: none !important;
  }

  /* === Floating CTA === */
  .floating-cta {
    bottom: 16px;
    right: 12px;
    gap: 8px;
  }
  .floating-cta__phone {
    display: none;
  }
  .floating-cta__btn {
    padding: 12px 18px;
    font-size: 0.82rem;
  }

  /* === Scroll-to-top Button === */
  #scrollTopBtn {
    bottom: 16px;
    left: 12px;
    width: 42px;
    height: 42px;
  }

  /* === Footer === */
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .footer-info__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* === Impressum-spezifisch === */
  .impressum__grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .impressum-prose__inner {
    padding: 0 var(--section-pad-x, 16px);
  }

  /* === Tabellen === */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* === Bilder === */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* --- Kleines Mobil (bis 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-pad-x: 12px;
    --section-pad-y: 40px;
  }

  .section-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
  }

  .floating-cta {
    right: 8px;
    bottom: 12px;
  }

  .footer__pillars {
    gap: 5px;
  }

  .contact-cards__grid {
    grid-template-columns: 1fr !important;
  }
}

/* === Touch-Verbesserungen (alle Touch-Geräte) === */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .floating-cta__btn,
  .floating-cta__phone,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  .btn,
  .nav__back,
  .floating-cta__btn {
    min-height: 44px; /* Apple/Google Mindestgröße für Touch-Ziele */
  }

  /* Hover-Animationen auf Touch deaktivieren */
  .contact-card:hover {
    transform: none;
  }
  .floating-cta__btn:hover {
    transform: none;
  }
}
