/*
 * Geräteabhängige Anpassungen für Desktop, Tablet und Smartphone
 * ANTRILOPE – unabhängig von Joomla
 */

/* Große Desktop-Bildschirme ab 1800 px */
@media (min-width:1800px) {
  .site-header {
    height: 130px;
  }

  .hero {
    height: 655px;
  }

  .home-actions {
    padding-top: 62px;
  }

  .quick {
    min-width: 188px;
  }

  .site-nav a {
    font-size: 12px;
  }
}

/* Schmalere Desktop- und Tabletansichten */
@media (max-width:1100px) {
  .wrap {
    width: calc(100% - 70px);
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 10px;
  }

  .brand {
    font-size: 28px;
    letter-spacing: .19em;
  }

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

/* Smartphones und schmale Tablets */
@media (max-width:720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 80px;
  }

  .brand {
    font-size: clamp(22px,5vw,29px);
    letter-spacing: .18em;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #202020;
    border: 1px solid #424242;
    padding: 5px 0;
    box-shadow: 0 18px 24px #0008;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 19px;
    border-bottom: 1px solid #353535;
    font-size: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    height: 63vh;
    min-height: 350px;
    max-height: 620px;
  }

  .hero-image {
    object-position: center;
  }

  .hero-label {
    left: 18px;
    bottom: 67px;
    font-size: 11px;
  }

  .hero-ui {
    left: 18px;
    right: 18px;
    bottom: 15px;
    justify-content: space-between;
  }

  .hero-actions button {
    width: 34px;
    height: 34px;
  }

  .home-actions {
    padding: 44px 0 56px;
  }

  .home-actions h1 {
    font-size: 14px;
    letter-spacing: .06em;
    margin-bottom: 24px;
  }

  .quick-grid {
    gap: 10px;
  }

  .quick {
    min-width: calc(50% - 5px);
    padding: 13px;
    min-height: 49px;
    font-size: 11px;
    gap: 9px;
  }

  .quick:last-child {
    min-width: 180px;
  }

  .quick svg {
    width: 18px;
    height: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 19px;
  }

  .footer-nav {
    gap: 15px;
  }

  .footer address {
    text-align: center;
  }

  .inner {
    padding-bottom: 55px;
  }

  .page-heading {
    margin: 20px 0 32px;
  }

  .page-heading h1,
  .article-head h1 {
    font-size: clamp(35px,8vw,52px);
  }

  .project-grid,
  .video-grid,
  .about-main,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-grid {
    gap: 30px;
  }

  .project-card h2 {
    font-size: 16px;
  }

  .filters {
    margin-bottom: 24px;
  }

  .filters button {
    padding: 8px 12px;
  }

  .article-hero {
    height: clamp(260px,55vw,460px);
  }

  .article-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .article-side {
    flex-direction: row;
    justify-content: space-between;
  }

  .article-copy {
    font-size: 14px;
    line-height: 1.9;
  }

  .article-next {
    margin-top: 28px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-zoom {
    opacity: 1;
  }

  .about-main .about-art {
    height: 350px;
  }

  .about-projects {
    columns: 1;
  }

  .contact-grid {
    gap: 20px;
  }

  .video-grid {
    gap: 34px;
  }
}

/* Sehr schmale Smartphone-Displays */
@media (max-width:460px) {
  .hero {
    min-height: 310px;
    max-height: 480px;
  }

  .brand {
    font-size: 21px;
    letter-spacing: .14em;
  }

  .quick {
    font-size: 10px;
    min-width: calc(50% - 5px);
  }

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

  .article-head h1 {
    font-size: 35px;
  }

  .footer-nav {
    gap: 12px;
  }

  .video-play {
    width: 62px;
    height: 62px;
  }
}

/* Bewegungsreduktion für Barrierefreiheit */
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smartphones und schmale Tablets */
@media (max-width:720px) {
  .partner-logos {
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    padding: 15px;
  }

  .partner-logos img {
    height: 50px;
  }
}


/*
 * Smartphone-/Tablet-Navigation: spätestens ab 900 px die Textlinks
 * durch den Hamburger-Schalter ersetzen. Das restliche Seitenlayout bleibt
 * unverändert und verwendet weiterhin seine ursprünglichen Breakpoints.
 */
@media (min-width: 721px) and (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #202020;
    border: 1px solid #424242;
    padding: 5px 0;
    box-shadow: 0 18px 24px #0008;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 19px; border-bottom: 1px solid #353535; font-size: 12px; }
  .site-nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Kleine Displays: Partnerlogos zweispaltig statt zu klein darstellen. */
@media (max-width: 560px) {
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logos img { height: 65px; }
}
