/* AMINOLABSPRO — TABLET + MOBILE v5 */
@media (max-width: 1023px) {
  .alp-shell,
  .alp-hero-grid-v5 {
    width: min(calc(100% - 34px), 760px);
  }

  .alp-research-bar-inner {
    width: calc(100% - 28px);
    grid-template-columns: 1fr auto;
  }

  .alp-research-bar-brand {
    order: -1;
    justify-self: start;
  }

  .alp-research-bar-side:first-child {
    display: none;
  }

  .alp-research-bar-side:last-child {
    font-size: 7px;
  }

  .alp-hero-v5,
  .alp-hero-grid-v5 {
    min-height: 0;
  }

  .alp-hero-grid-v5 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .alp-hero-copy-v5 {
    padding: 64px 0 22px;
  }

  .alp-hero-title {
    max-width: 720px;
    font-size: clamp(3.1rem, 10vw, 5rem) !important;
  }

  .alp-hero-lead {
    max-width: 580px;
  }

  .alp-hero-scene {
    min-height: 430px;
  }

  .alp-hero-vials {
    right: 50%;
    bottom: 50px;
    width: min(600px, 92vw);
    transform: translateX(50%);
  }

  .alp-hero-platform {
    right: 50%;
    bottom: 42px;
    width: min(580px, 88vw);
    transform: translateX(50%);
  }

  .alp-hero-labglass--one {
    left: 2%;
  }

  .alp-hero-labglass--two {
    right: 2%;
  }

  .alp-trust-wrap {
    margin-top: -26px;
  }

  .alp-trust-strip {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .alp-trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--alp-line);
  }

  .alp-trust-item:nth-child(odd) {
    border-right: 1px solid var(--alp-line);
  }

  .alp-trust-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-right: 0;
  }

  .alp-section-intro,
  .alp-index-head,
  .alp-coa-layout,
  .alp-faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .alp-section-intro .alp-copy {
    justify-self: start;
  }

  .alp-catalog-grid {
    grid-template-columns: 1fr;
  }

  .alp-feature-card {
    min-height: 500px;
  }

  .alp-catalog-side {
    min-height: 500px;
  }

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

  .alp-index-item:nth-child(2) {
    border-right: 0;
  }

  .alp-index-item:nth-child(n+3) {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .alp-coa-layout {
    gap: 40px;
  }

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

  .alp-footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .alp-shell,
  .alp-hero-grid-v5 {
    width: calc(100% - 28px);
  }

  .alp-research-bar-side:last-child {
    display: none;
  }

  .alp-research-bar-inner {
    grid-template-columns: 1fr;
  }

  .alp-research-bar-brand {
    justify-self: center;
  }

  .alp-hero-copy-v5 {
    padding-top: 50px;
  }

  .alp-hero-title {
    font-size: 2.75rem !important;
    line-height: .93 !important;
  }

  .alp-hero-lead {
    margin-top: 20px;
    font-size: 12px;
  }

  .alp-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .alp-btn-v5,
  .alp-home-v5 .button.alp-btn-v5 {
    width: 100% !important;
  }

  .alp-hero-scene {
    min-height: 340px;
  }

  .alp-hero-vials {
    bottom: 45px;
    width: 108vw;
  }

  .alp-hero-platform {
    bottom: 38px;
    width: 100vw;
    height: 72px;
  }

  .alp-hero-labglass {
    display: none;
  }

  .alp-trust-strip {
    grid-template-columns: 1fr;
  }

  .alp-trust-item,
  .alp-trust-item:nth-child(odd),
  .alp-trust-item:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--alp-line);
    padding: 16px 17px;
  }

  .alp-trust-item:last-child {
    border-bottom: 0;
  }

  .alp-catalog-section {
    padding: 84px 0 72px;
  }

  .alp-section-title {
    font-size: 2.2rem !important;
  }

  .alp-feature-card {
    min-height: 470px;
  }

  .alp-feature-media {
    inset: 50px 10px 78px;
  }

  .alp-feature-media img {
    width: 78%;
  }

  .alp-catalog-side {
    grid-template-columns: repeat(2,minmax(0,1fr));
    min-height: 0;
  }

  .alp-product-tile,
  .alp-all-products-card {
    min-height: 230px;
  }

  .alp-product-tile-media {
    height: 148px;
  }

  .alp-product-tile-media img {
    width: 110px;
    height: 140px;
  }

  .alp-all-products-media img {
    width: 100%;
  }

  .alp-index-grid {
    grid-template-columns: 1fr;
  }

  .alp-index-item,
  .alp-index-item + .alp-index-item,
  .alp-index-item:nth-child(n+3) {
    padding: 20px 0;
    margin: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .alp-coa-section-v5,
  .alp-faq-section-v5 {
    padding: 70px 0;
  }

  .alp-coa-doc {
    padding: 15px;
  }

  .alp-coa-doc-title h3 {
    font-size: 16px !important;
  }

  .alp-coa-metrics {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .alp-coa-metric:nth-child(2) {
    border-right: 0;
  }

  .alp-coa-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--alp-line);
  }

  .alp-faq-row {
    grid-template-columns: 28px 1fr 26px;
  }

  .alp-faq-question {
    font-size: 10px;
  }

  .alp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .alp-footer-bottom {
    flex-direction: column;
  }
}

/* ============================================================
   V5 BUILDER RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1023px) {
  .alp-hero-grid-v5,
  .alp-catalog-section .section-content > .row,
  .alp-index-section .section-content > .row,
  .alp-coa-section-v5 .section-content > .row,
  .alp-faq-section-v5 .section-content > .row,
  .alp-footer-v5 .section-content > .row {
    width: min(calc(100% - 34px), 760px) !important;
  }

  .alp-hero-grid-v5 {
    min-height: 0 !important;
  }

  .alp-hero-copy-v5 > .col-inner {
    padding: 64px 0 20px !important;
  }

  .alp-hero-visual-col,
  .alp-hero-visual-col > .col-inner {
    min-height: 430px !important;
  }

  .alp-hero-vials-image {
    width: min(650px, 94vw) !important;
    margin: 0 auto 52px !important;
  }

  .alp-hero-visual-col > .col-inner::before {
    width: min(590px, 90vw);
    bottom: 42px;
  }

  .alp-trust-section {
    margin-top: -26px;
  }

  .alp-trust-section .section-content {
    width: min(calc(100% - 34px), 760px);
  }

  .alp-trust-row {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .alp-trust-row > .col:nth-child(odd) .alp-trust-item {
    border-right: 1px solid var(--alp-line);
  }

  .alp-trust-row > .col:nth-child(-n+4) .alp-trust-item {
    border-bottom: 1px solid var(--alp-line);
  }

  .alp-trust-row > .col:last-child {
    grid-column: 1 / -1;
  }

  .alp-trust-row > .col:last-child .alp-trust-item {
    border-right: 0;
  }

  .alp-index-row {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .alp-index-row > .col:nth-child(2) .alp-index-item {
    border-right: 0;
  }

  .alp-index-row > .col:nth-child(n+3) .alp-index-item {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .alp-section-intro-row .alp-copy,
  .alp-index-head-row .alp-copy {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .alp-hero-grid-v5,
  .alp-catalog-section .section-content > .row,
  .alp-index-section .section-content > .row,
  .alp-coa-section-v5 .section-content > .row,
  .alp-faq-section-v5 .section-content > .row,
  .alp-footer-v5 .section-content > .row {
    width: calc(100% - 28px) !important;
  }

  .alp-hero-copy-v5 > .col-inner {
    padding-top: 50px !important;
  }

  .alp-hero-visual-col,
  .alp-hero-visual-col > .col-inner {
    min-height: 340px !important;
  }

  .alp-hero-vials-image {
    width: 108vw !important;
    margin-left: -8vw !important;
    margin-bottom: 44px !important;
  }

  .alp-hero-visual-col > .col-inner::before {
    width: 100vw;
    height: 72px;
    bottom: 38px;
  }

  .alp-hero-visual-col > .col-inner::after {
    display: none;
  }

  .alp-trust-section .section-content {
    width: calc(100% - 28px);
  }

  .alp-trust-row {
    grid-template-columns: 1fr;
  }

  .alp-trust-row > .col,
  .alp-trust-row > .col:last-child {
    grid-column: auto;
  }

  .alp-trust-row > .col .alp-trust-item,
  .alp-trust-row > .col:nth-child(odd) .alp-trust-item,
  .alp-trust-row > .col:last-child .alp-trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--alp-line);
    padding: 16px 17px;
  }

  .alp-trust-row > .col:last-child .alp-trust-item {
    border-bottom: 0;
  }

  .alp-index-row {
    grid-template-columns: 1fr;
  }

  .alp-index-row > .col .alp-index-item,
  .alp-index-row > .col:nth-child(n+3) .alp-index-item {
    padding: 20px 0 !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }

  .alp-footer-grid-v5 > .col:first-child {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   V5.1 DARK HERO — TABLET / MOBILE
   ============================================================ */
@media (max-width: 1023px) {
  .alp-hero-v5 {
    background:
      radial-gradient(circle at 70% 62%, rgba(49,199,165,.13), transparent 29%),
      linear-gradient(150deg,#071116 0%,#0b1a1f 100%) !important;
  }

  .alp-hero-grid-v5 {
    width: min(calc(100% - 34px),760px) !important;
  }

  .alp-hero-copy-v5 > .col-inner {
    padding: 56px 0 10px !important;
  }

  .alp-hero-v5 .alp-hero-title {
    font-size: clamp(3rem,9.5vw,4.8rem) !important;
    line-height: .92 !important;
  }

  .alp-hero-visual-col,
  .alp-hero-visual-col > .col-inner {
    min-height: 430px;
  }

  .alp-hero-visual-col > .col-inner::before {
    bottom: 28px;
    width: min(620px,98vw);
    height: 94px;
  }

  .alp-hero-visual-col > .col-inner::after {
    display: none;
  }

  .alp-hero-vials-image {
    width: min(760px,108vw) !important;
    max-width: none !important;
    margin: 0 0 35px !important;
    transform: none;
  }

  .alp-trust-section .section-content {
    width: 100% !important;
  }

  .alp-trust-row {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .alp-trust-row > .col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .alp-hero-grid-v5 {
    width: calc(100% - 28px) !important;
  }

  .alp-hero-copy-v5 > .col-inner {
    padding: 44px 0 4px !important;
  }

  .alp-hero-v5 .alp-hero-title {
    font-size: 2.72rem !important;
    line-height: .93 !important;
  }

  .alp-hero-v5 .alp-hero-lead {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .alp-hero-copy-v5 .button.alp-btn-v4 {
    display: flex !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .alp-hero-visual-col,
  .alp-hero-visual-col > .col-inner {
    min-height: 330px;
  }

  .alp-hero-visual-col > .col-inner::before {
    bottom: 18px;
    width: 102vw;
    height: 72px;
  }

  .alp-hero-vials-image {
    width: 119vw !important;
    margin-bottom: 20px !important;
  }

  .alp-trust-row {
    grid-template-columns: 1fr !important;
  }

  .alp-trust-row > .col:last-child {
    grid-column: auto;
  }

  .alp-trust-item {
    min-height: 0;
    padding: 15px 20px !important;
  }
}

/* ============================================================
   V5.3.4 MOBILE HERO ORDER
   Mobile: Bild zuerst -> Buttons direkt darunter -> Text
   Desktop bleibt unverändert.
   ============================================================ */
@media (max-width: 640px) {

  /* Hero-Reihenfolge komplett kontrollieren */
  .alp-hero-grid-v5 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* 1. Bild/Flaschen zuerst */
  .alp-hero-grid-v5 > .alp-hero-visual-col {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .alp-hero-visual-col,
  .alp-hero-visual-col > .col-inner {
    min-height: 365px !important;
  }

  .alp-hero-visual-col > .col-inner {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .alp-hero-vials-image {
    width: 112vw !important;
    max-width: none !important;
    margin: 0 0 22px -6vw !important;
    transform: none !important;
  }

  .alp-hero-visual-col > .col-inner::before {
    bottom: 19px !important;
    width: 104vw !important;
    height: 76px !important;
  }

  /* 2. Copy-Spalte folgt danach */
  .alp-hero-grid-v5 > .alp-hero-copy-v5 {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding: 0 20px 38px !important;
    margin: 0 !important;
  }

  /* Innerhalb der Copy-Spalte: Buttons vor den Text */
  .alp-hero-copy-v5 > .col-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .alp-hero-copy-v5 > .col-inner > .ux-text {
    order: 3 !important;
    margin-top: 26px !important;
  }

  .alp-hero-copy-v5 > .col-inner > .button,
  .alp-hero-copy-v5 > .col-inner > a.button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 9px 0 !important;
  }

  .alp-hero-copy-v5 > .col-inner > .button:first-of-type,
  .alp-hero-copy-v5 > .col-inner > a.button:first-of-type {
    order: 1 !important;
  }

  .alp-hero-copy-v5 > .col-inner > .button:nth-of-type(2),
  .alp-hero-copy-v5 > .col-inner > a.button:nth-of-type(2) {
    order: 2 !important;
  }

  /* Text danach etwas kompakter */
  .alp-hero-v5 .alp-kicker {
    margin-bottom: 12px !important;
  }

  .alp-hero-v5 .alp-hero-title {
    font-size: 2.55rem !important;
    line-height: .94 !important;
  }

  .alp-hero-v5 .alp-hero-lead {
    margin: 18px 0 0 !important;
    font-size: 11.5px !important;
    line-height: 1.7 !important;
  }
}

/* ============================================================
   V5.3.5 — MOBILE CLEANUP
   Trust-Leiste auf Smartphones entfernen. Die Qualitätsargumente
   erscheinen weiter unten im Research Index und COA-Bereich.
   ============================================================ */
@media (max-width: 767px) {
  .alp-trust-section {
    display: none !important;
  }

  .alp-catalog-section {
    padding-top: 62px !important;
  }

  .alp-product-tile-footer {
    min-height: 60px !important;
  }

  .alp-product-tile-footer > div {
    min-height: 44px !important;
  }

  .alp-product-tile-footer .alp-round-link {
    align-self: flex-end !important;
    margin-bottom: 0 !important;
  }
}