/* ==========================================================================
   Okava Website - Responsive Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

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

  .features-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about {
    gap: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card--featured {
    grid-column: 1 / -1;
    order: -1;
  }

  /* Card Horizontal */
  .card--horizontal {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

/* --------------------------------------------------------------------------
   Mobile Landscape / Small Tablet (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  /* Cookie Banner */
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__description {
    font-size: var(--text-base);
  }

  /* Logo */
  .logo img,
  .logo__img,
  .header__inner > .logo img,
  .header__inner > .logo .logo__img {
    height: 45px;
    max-height: 45px;
  }

  .logo__icon {
    width: 45px;
    height: 45px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  /* Sections */
  .section {
    padding: var(--spacing-md) 0;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .features-grid--2col,
  .features-grid--3col,
  .features-grid--4col {
    grid-template-columns: 1fr;
  }

  .person-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery — bleibt mehrspaltig bis 480px */

  .gallery-item__overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    order: 0;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__image {
    order: -1;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Mobile Portrait (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --spacing-4xl: 4rem;
    --spacing-3xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .features-grid,
  .gallery-grid,
  .about {
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + 2 * var(--spacing-md));
  }

  .gallery-row {
    flex-direction: column;
  }

  /* Logo */
  .logo img,
  .logo__img,
  .header__inner > .logo img,
  .header__inner > .logo .logo__img {
    height: 32px;
    max-height: 32px;
  }

  .logo__icon {
    width: 32px;
    height: 32px;
  }

  .hero__subtitle {
    font-size: var(--text-xs);
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--text-xs);
  }

  .btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-sm);
  }

  .card__content {
    padding: var(--spacing-lg);
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline__marker {
    left: -2rem;
  }

  .section-header {
    margin-bottom: var(--spacing-2xl);
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Modal */
  .modal__close {
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Reduced 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;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   High Contrast Mode
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #6B5537;
    --color-gray: #666666;
  }

  .btn--outline {
    border-width: 3px;
  }

  .nav__link::after {
    height: 3px;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .nav-toggle,
  .lang-switcher,
  .scroll-indicator,
  .hero__cta,
  .footer__social {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: none !important;
  }

  .hero::before {
    display: none;
  }

  .hero__title,
  .hero__description {
    color: #000;
  }

  .section {
    padding: 2rem 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
