/* ============================================
   RESPONSIVE DESIGN - ORGANIZED BY BREAKPOINT
   ============================================ */

/* Large Desktop: min-width 820px */
@media (min-width: 820px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 32px;
    font-size: 16px;
    letter-spacing: 2px;
  }
}

/* Tablet Large: max-width 1350px */
@media (max-width: 1350px) {
  .hero {
    /* Ab hier stapelt .hero-inner Text und Bild (statt nebeneinander), wodurch sich
       ihre Höhen addieren. min-height:auto lässt die Section mit dem Inhalt wachsen/
       schrumpfen statt ihn in 100dvh zu zwingen (Quetschen) oder ihn stumm über den
       Viewport hinauswachsen zu lassen (wirkt wie abgeschnittenes Bild). */
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero-content {
    flex: 0;
    align-items: center;
  }

  .hero-content-wrapper {
    gap: 24px;
    align-items: center;
  }

  .hero-title {
    /* Fluid statt fester Stufen (früher 48/40/32px bei 1350/600/400px):
       48px im gestapelten Tablet-Layout, gleitend bis min. 32px auf Smartphones */
    font-size: clamp(32px, 4.5vw + 14px, 48px);
    text-align: center;
  }

  .hero-desc {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  /* Carousel */
  .hero-inner {
    flex-direction: column;
    gap: 0;
  }

  .hero-description-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel {
    height: auto;
    /* vormals clamp(40%, 55%, 70%) – drei statische Prozentwerte ergeben konstant
       den Mittelwert, daher direkt als fester Wert notiert */
    width: 55%;
  }
}

/* Tablet: max-width 1024px */
@media (max-width: 1024px) {
  .about-me-inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-me-media {
    width: 70%;
    max-width: 340px;
  }

  .carousel {
    width: 70%;
  }
}

/* Price-Grid: max-width 900px (aus Homepage_Design-Vorlage übernommen) */
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet: min-width 820px and max-width 1024px */
@media (min-width: 820px) and (max-width: 1024px) {
  .hero-inner {
    gap: unset;
  }

  .box {
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Large: max-width 819px */
@media (max-width: 819px) {
  nav .btn-primary {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  /* Padding statt reinem Gap: hebt jeden Menüpunkt auf ~43px Tap-Fläche */
  .nav-links a {
    padding: 12px 16px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .hero-inner {
    gap: unset;
  }

  .hero-image-wrap {
    flex: none;
    width: 100%;
  }

  .hero-title {
    text-align: center;
    margin-bottom: unset;
  }

  .hero-image {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .hero-desc {
    font-size: 20px;
    align-self: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .box {
    width: 100%;
  }

  footer {
    padding: 24px 16px;
  }
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
  .hero-image-wrap {
    order: -1;
  }

  .footer-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .carousel {
    width: 80%;
  }
}

/* Mobile: max-width 700px – „Das Was / Das Wie" stapelt ab hier deterministisch;
   der Richtungspfeil zeigt dann nach unten statt seitwärts ins Leere */
@media (max-width: 700px) {
  .contrast-row {
    flex-direction: column;
  }

  .contrast-arrow {
    transform: rotate(90deg);
  }
}

/* Mobile Small: max-width 600px */
@media (max-width: 600px) {
  .div-logo {
    display: none;
  }

  .footer-links {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .seal {
    text-align: center;
  }

  p,
  .generic-p {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .about-me-text {
    font-size: 16px;
  }

  .about-me-media {
    width: 90%;
    max-width: 280px;
  }

  .btn-primary,
  .hero-btns {
    font-size: 16px;
    text-align: center;
  }

  .hero-btns .btn-primary {
    font-size: 16px;
  }

  .price-card {
    padding: 24px 20px;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .carousel {
    width: 100%;
  }

}

/* Mobile Extra Small: max-width 400px */
@media (max-width: 400px) {
  footer {
    padding: 24px 4px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Accessibility: respect reduced-motion preference (disables reveal/slam/carousel motion) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}