/**
 * ==========================================================
 * Wohnmobile Junker
 * Joomla 6.x Template
 * Responsive Design
 * css/responsive.css
 * ==========================================================
 */


/* ==========================================================
   GROSSE BILDSCHIRME
========================================================== */

@media (min-width: 1400px) {

    .uk-container {
        max-width: var(--template-container-max-width);
    }

    .site-hero {
        min-height: 780px;
    }

}


/* ==========================================================
   LAPTOP / KLEINERE DESKTOPS
========================================================== */

@media (max-width: 1199px) {

    :root {
        --template-container-padding-x: 1.25rem;
    }

    .uk-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .site-hero {
        min-height: 680px;
    }

    .site-hero h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 959px) {

    .uk-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-hero {
        min-height: auto;
    }

    .site-hero-grid {
        grid-template-columns: 1fr;
    }

    .site-intro-grid {
        grid-template-columns: 1fr;
    }

    .site-vehicles-grid,
    .blog-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .uk-grid-large {
        margin-left: -30px;
    }

}


/* ==========================================================
   SMARTPHONE
========================================================== */

@media (max-width: 639px) {

    html {
        scroll-padding-top: 75px;
    }

    body {
        font-size: 0.95rem;
    }

    .uk-container {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    h1 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    h2 {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

    h3 {
        font-size: 1.25rem;
    }

    .site-hero {
        padding: 3.5rem 0;
    }

    .site-hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .site-hero-text {
        font-size: 1rem;
    }

    .site-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .site-hero-buttons .uk-button {
        width: 100%;
    }

    .site-vehicles-grid,
    .blog-items,
    .site-benefits-grid {
        grid-template-columns: 1fr;
    }

    .site-section,
    .site-intro,
    .site-vehicles,
    .site-benefits {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .site-section-heading {
        margin-bottom: 2rem;
    }

    .site-contact-banner-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .site-contact-banner .uk-button {
        width: 100%;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .com-content-article__body img {
        float: none !important;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }

    .com-content-article__body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .uk-button {
        white-space: normal;
    }

}


/* ==========================================================
   SEHR KLEINE SMARTPHONES
========================================================== */

@media (max-width: 380px) {

    .uk-container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .site-hero h1 {
        font-size: 2rem;
    }

    .vehicle-card-content {
        padding: 1rem;
    }

    .vehicle-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ==========================================================
   REDUZIERTE BEWEGUNG
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}