/* ============================================================
   AMINOLABSPRO.COM — responsive.css
   Breakpoints:
   - Mobile S:  max-width: 480px   (kleine Phones)
   - Mobile L:  max-width: 767px   (große Phones)
   - Tablet:    768px – 1023px     (iPads)
   - Desktop:   min-width: 1024px
   - Large:     min-width: 1200px
   ============================================================ */


/* ============================================================
   TABLET & DESKTOP — aufbauend auf Mobile-first
   ============================================================ */

/* Ab 480px — 2 Spalten für kleine Grids */
@media (min-width: 480px) {
  /* CTA Form nebeneinander */
  .alp-cta-form {
    flex-direction: row;
  }
}

/* Ab 600px — 2 Spalten für USP + Produkte */
@media (min-width: 600px) {
  .alp-usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alp-prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alp-rev-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats: alle 4 nebeneinander */
  .alp-stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ab 768px — Navigation sichtbar, Desktop-Layout beginnt */
@media (min-width: 768px) {

  /* Header */
  .alp-nav {
    display: flex;
  }

  .alp-header-right {
    display: flex;
  }

  .alp-burger {
    display: none;
  }

  /* Hero */
  .alp-hero-inner {
    padding: 80px 40px 0;
  }

  /* Section padding größer */
  .section {
    padding: 108px 40px;
  }

  /* Products header nebeneinander */
  .alp-prod-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  /* How it works: 4 Spalten */
  .alp-how-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Connecting line zwischen Steps */
  .alp-how-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--line);
    z-index: 0;
  }

  /* Reviews: 3 Spalten */
  .alp-rev-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer grid */
  .alp-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
  }

  .alp-footer-bot {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .alp-footer-links {
    justify-content: flex-end;
  }
}

/* Ab 900px — Split Layouts (About, COA) */
@media (min-width: 900px) {

  /* Hero: 2 Spalten */
  .alp-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  /* Hero Bild sichtbar */
  .alp-hero-right {
    display: block;
  }

  /* About: 2 Spalten */
  .alp-about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .alp-about-img {
    order: 0; /* Bild rechts */
  }

  /* COA: 2 Spalten */
  .alp-coa-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Ab 1024px — 4 Spalten für USP + 3 für Produkte */
@media (min-width: 1024px) {

  .alp-usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .alp-prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* WooCommerce Shop: 3 Spalten */
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Ab 1200px — Container maximal */
@media (min-width: 1200px) {
  .alp-hero-inner {
    padding: 100px 40px 0;
  }
}


/* ============================================================
   MOBILE FIXES — max-width queries
   ============================================================ */

/* Kleine Phones: max 480px */
@media (max-width: 480px) {

  /* Hero */
  .alp-hero-h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .alp-hero-p {
    font-size: 15px;
  }

  .alp-hero-btns {
    flex-direction: column;
  }

  .alp-hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats: 2×2 */
  .alp-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stat trennlinie nur vertikal in der Mitte */
  .alp-stat:nth-child(2)::after,
  .alp-stat:nth-child(4)::after {
    display: none;
  }

  /* Section title kleiner */
  .section-title {
    font-size: 24px;
  }

  /* COA Card */
  .alp-coa-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Footer: etwas weniger padding */
  .alp-footer {
    padding: 48px 20px 24px;
  }

  /* FAQ: weniger padding rechts */
  .alp-faq-a {
    padding-right: 0;
  }
}

/* Phones allgemein: max 767px */
@media (max-width: 767px) {

  /* Header burger sichtbar */
  .alp-burger {
    display: flex;
  }

  .alp-nav,
  .alp-header-right {
    display: none;
  }

  /* Produkt card: stacked */
  .alp-prod-grid {
    grid-template-columns: 1fr;
  }

  /* About: bild oben */
  .alp-about-img {
    order: -1;
  }

  /* Hero: kein Bild rechts */
  .alp-hero-right {
    display: none;
  }

  /* Hero inner: volle Breite */
  .alp-hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  /* How it works: einspaltig */
  .alp-how-grid {
    grid-template-columns: 1fr;
  }

  /* Connecting line: verstecken */
  .alp-how-grid::before {
    display: none;
  }

  /* Step: linksbündig statt zentriert */
  .alp-step {
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  .alp-step-n {
    margin: 0;
    flex-shrink: 0;
  }

  /* USP: einspaltig */
  .alp-usp-grid {
    grid-template-columns: 1fr;
  }

  /* Reviews: einspaltig */
  .alp-rev-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: einspaltig */
  .alp-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Footer links zentriert */
  .alp-footer-bot {
    flex-direction: column;
    text-align: center;
  }

  .alp-footer-links {
    justify-content: center;
  }

  /* WooCommerce: Mobile Fixes */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    padding: 12px 12px 4px !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 15px !important;
    padding: 0 12px 8px !important;
  }

  .woocommerce ul.products li.product .button {
    margin: 0 12px 12px !important;
    width: calc(100% - 24px) !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
  }

  /* Single Product */
  .woocommerce div.product {
    padding-top: 90px;
  }

  /* Tabs: scrollbar auf mobile */
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none !important;
  }

  /* Checkout: felder volle Breite */
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  /* Cart: kompakter */
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 10px !important;
  }

  /* Remove column auf mobil kleiner */
  .woocommerce table.shop_table .product-remove {
    padding: 10px 6px !important;
  }
}

/* ============================================================
   TOUCH / HOVER: keine Hover-Effekte auf Touch-Geräten
   ============================================================ */
@media (hover: none) {
  .alp-prod-card:hover,
  .alp-usp-card:hover,
  .alp-rev-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
  }

  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   REDUCED MOTION — Barrierefreiheit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .alp-header,
  .alp-mobile-nav,
  .alp-hero-float,
  .alp-cta,
  .alp-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }
}
