/* =========================================================
   AUT0LOTTO – GLOBALER RESPONSIVE-FEINSCHLIFF
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;

    overflow-x: clip;
}

body {
    min-width: 320px;
}

main,
section,
header,
footer {
    max-width: 100%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

/* Große Desktop-Bildschirme */

@media (min-width: 1600px) {
    :root {
        --al-container: 1380px;
    }

    .home-hero {
        padding-top: 68px;
    }

    .hero-layout {
        min-height: 540px;
    }
}

/* Laptop */

@media (max-width: 1280px) {
    :root {
        --al-container: 1160px;
    }

    .container {
        width: min(
            calc(100% - 46px),
            var(--al-container)
        );
    }

    .hero-layout {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(470px, 1.1fr);
    }
}

/* Tablet quer */

@media (max-width: 1024px) {
    :root {
        --al-space-11: 70px;
        --al-space-12: 88px;
    }

    .section {
        padding-block: 76px;
    }

    .section-header-new,
    .current-raffle-heading,
    .winners-heading,
    .faq-home-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Tablet hoch */

@media (max-width: 820px) {
    .container,
    .container-small {
        width: min(
            calc(100% - 30px),
            var(--al-container)
        );
    }

    .section-title-new {
        font-size: clamp(
            32px,
            7vw,
            44px
        );
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 680px;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-information-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone */

@media (max-width: 600px) {
    :root {
        --al-space-10: 50px;
        --al-space-11: 60px;
        --al-space-12: 72px;
    }

    .container,
    .container-small {
        width: min(
            calc(100% - 22px),
            var(--al-container)
        );
    }

    .section {
        padding-block: 62px;
    }

    .section-eyebrow {
        min-height: 28px;
        padding: 6px 11px;

        font-size: 9px;
    }

    .section-title-new {
        font-size: clamp(
            29px,
            9vw,
            38px
        );
    }

    .section-description-new {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-information-grid {
        grid-template-columns: 1fr;
    }

    .hero-information-card {
        min-height: 92px;
    }

    .current-raffle-heading > .al-button,
    .winners-heading > .al-button,
    .faq-home-heading > .al-button {
        width: 100%;
    }

    .al-button {
        min-height: 49px;
    }
}

/* Sehr kleine Geräte */

@media (max-width: 380px) {
    .container,
    .container-small {
        width: calc(100% - 18px);
    }

    .hero-title {
        font-size: 34px;
    }

    .section-title-new {
        font-size: 28px;
    }

    .al-button {
        padding-inline: 15px;

        font-size: 13px;
    }
}

/* Touch-Geräte */

@media (hover: none) {
    .al-card:hover,
    .winner-card:hover,
    .hero-information-card:hover,
    .how-step:hover,
    .faq-home-item:hover {
        transform: none;
    }

    .hero-visual:hover .hero-car-image,
    .current-gallery-main:hover
    .current-gallery-main-image {
        transform: none;
    }
}

/* Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}