/* =========================================================
   H2 CHAUFFEURSERVICE
   Responsive Styles
========================================================= */


/* ---------- Große Tablets / kleine Laptops ---------- */

@media (max-width: 1180px) {

    :root {
        --header-height: 84px;
    }

    .header-inner {
        grid-template-columns: 190px 1fr auto;
    }

    .brand-logo {
        width: 155px;
    }

    .navigation-list {
        gap: 24px;
    }

    .header-actions {
        gap: 14px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        align-items: end;
        padding-bottom: 110px;
    }

    .hero-content {
        align-self: center;
    }

    .hero-details {
        grid-template-columns: repeat(3, auto);
        justify-self: start;
        gap: 24px;
        padding-bottom: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promise-layout {
        gap: 60px;
    }

    .promise-image img {
        min-height: 600px;
    }

    .fleet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fleet-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.2fr repeat(2, 0.8fr);
    }

    .footer-column:last-child {
        grid-column: 2 / 4;
    }
}


/* ---------- Tablets ---------- */

@media (max-width: 960px) {

    :root {
        --header-height: 78px;
    }

    .container {
        width: min(calc(100% - 36px), var(--container-width));
    }

    .section {
        padding: 100px 0;
    }

    .site-header {
        height: var(--header-height);
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .brand-logo {
        width: 145px;
        max-height: 58px;
    }

    .main-navigation {
        position: fixed;
        inset:
            var(--header-height)
            0
            0
            0;
        z-index: 999;
        display: flex;
        visibility: hidden;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding: 70px 24px 50px;
        background: rgba(7, 7, 7, 0.98);
        opacity: 0;
        transform: translateY(-10px);
        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-navigation.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .navigation-list {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .navigation-list a {
        font-family: var(--font-heading);
        font-size: 2rem;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        min-height: 900px;
    }

    .hero-layout {
        min-height: 900px;
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 5, 5, 0.97) 0%,
                rgba(5, 5, 5, 0.82) 60%,
                rgba(5, 5, 5, 0.3) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0.15) 55%,
                rgba(0, 0, 0, 0.72) 100%
            );
    }

    .hero-content {
        max-width: 720px;
    }

    .hero-details {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 620px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 55px;
    }

    .section-heading > p {
        max-width: 640px;
    }

    .promise-layout {
        grid-template-columns: 1fr;
    }

    .promise-image {
        max-width: 760px;
    }

    .promise-image img {
        min-height: 500px;
    }

    .booking-cta {
        min-height: 600px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: auto;
    }
}


/* ---------- Smartphones quer / kleine Tablets ---------- */

@media (max-width: 720px) {

    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .section {
        padding: 82px 0;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 4.6rem);
    }

    h2 {
        font-size: clamp(2.35rem, 11vw, 3.7rem);
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .hero {
        min-height: 820px;
    }

    .hero-background {
        background-position: 63% center;
    }

    .hero-layout {
        min-height: 820px;
        gap: 48px;
        padding-top: 125px;
        padding-bottom: 90px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4, 4, 4, 0.97) 0%,
                rgba(4, 4, 4, 0.84) 70%,
                rgba(4, 4, 4, 0.45) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0.2) 55%,
                rgba(0, 0, 0, 0.78) 100%
            );
    }

    .hero-description {
        margin-top: 24px;
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 34px;
    }

    .hero-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-detail {
        min-width: 0;
    }

    .scroll-indicator {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 320px;
    }

    .service-card h3 {
        margin-top: 42px;
    }

    .promise-layout {
        gap: 50px;
    }

    .promise-image::before {
        top: -12px;
        right: -12px;
        width: 80px;
        height: 80px;
    }

    .promise-image img {
        min-height: 420px;
    }

    .promise-item {
        grid-template-columns: 38px 1fr;
    }

    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .fleet-card:last-child {
        grid-column: auto;
        width: auto;
        max-width: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: 250px;
    }

    .process-step h3 {
        margin-top: 48px;
    }

    .booking-cta {
        min-height: 560px;
    }

    .booking-cta-background {
        background-position: 62% center;
    }

    .booking-cta-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4, 4, 4, 0.94) 0%,
                rgba(4, 4, 4, 0.82) 75%,
                rgba(4, 4, 4, 0.45) 100%
            );
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 24px 0;
    }
}


/* ---------- Kleine Smartphones ---------- */

@media (max-width: 480px) {

    .button {
        width: 100%;
        padding-inline: 22px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .text-link {
        width: auto;
    }

    .hero-detail-number {
        font-size: 1.7rem;
    }

    .service-card,
    .fleet-content,
    .process-step {
        padding-right: 24px;
        padding-left: 24px;
    }

    .promise-image img {
        min-height: 360px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}


/* ---------- Sehr kleine Smartphones ---------- */

@media (max-width: 360px) {

    .container {
        width: min(calc(100% - 22px), var(--container-width));
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .navigation-list a {
        font-size: 1.7rem;
    }

    .service-card,
    .fleet-content,
    .process-step {
        padding-right: 20px;
        padding-left: 20px;
    }
}


/* ---------- Geräte ohne Hover ---------- */

@media (hover: none) {

    .service-card:hover {
        transform: none;
    }

    .fleet-card:hover .fleet-image img {
        transform: none;
    }

    .button:hover {
        transform: none;
    }
}


/* ---------- Reduzierte Animationen ---------- */

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}