/* assets/css/pages/landing.css */

.hero--landing {
    background:
        linear-gradient(135deg, rgba(251, 21, 0, 0.56) 0%, rgba(214, 71, 71, 0.42) 40%, rgba(247, 247, 247, 0.24) 100%),
        url("../../img/hero.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero--landing .hero__inner {
    max-width: 46rem;
}

.hero--landing h1,
.hero--landing p {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.landing-tiles {
    padding-top: 1.4rem;
    padding-bottom: 1.8rem;
    background: #f1f1f1;
}

.landing-tiles .container {
    max-width: 1360px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
}

.landing-hero-tile {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    border-radius: 0.2rem;
    aspect-ratio: 1 / 1;
    isolation: isolate;
    background: #d8d8d8;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.landing-hero-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-hero-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(44, 153, 223, 0.58) 0%, rgba(44, 153, 223, 0.2) 48%, rgba(251, 21, 0, 0.58) 100%);
}

.landing-hero-tile__title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: clamp(2rem, 2.45vw, 2.9rem);
    font-weight: 400;
    line-height: 1.14;
}

.landing-hero-tile__label {
    display: inline-block;
    padding: 0.24em 0.58em;
    border-radius: 0.52rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 8px 20px rgba(8, 20, 33, 0.22);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .landing-hero-tile__label {
        background: rgba(255, 255, 255, 0.42);
    }
}

.landing-hero-tile:hover,
.landing-hero-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 2px rgba(251, 21, 0, 0.35),
        0 16px 30px rgba(251, 21, 0, 0.28);
    outline: none;
}

.hero__cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__tagline {
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* Intro section cards */
.landing-services {
    margin-top: 2rem;
}

.landing-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.landing-card-link:hover,
.landing-card-link:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 2px rgba(251, 21, 0, 0.35),
        0 16px 30px rgba(251, 21, 0, 0.28);
    outline: none;
}

.why-peters__list {
    max-width: 36rem;
}

.landing-emergency__inner {
    background:
        linear-gradient(120deg, rgba(20, 20, 20, 0.62) 0%, rgba(20, 20, 20, 0.38) 60%, rgba(251, 21, 0, 0.45) 100%),
        url("../../img/notdienst.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.85rem;
    padding: 2.4rem;
    color: #fff;
}

.landing-emergency__content {
    max-width: 46rem;
}

.landing-emergency .section__title {
    color: #fff;
}

.landing-emergency p {
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) {
    .hero--landing {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .landing-tiles {
        padding-top: 1rem;
        padding-bottom: 1.4rem;
    }

    .landing-hero-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .landing-hero-tile {
        aspect-ratio: 1 / 0.86;
    }

    .landing-hero-tile__title {
        font-size: clamp(0.78rem, 3.4vw, 1rem);
        padding: 0.35rem;
        line-height: 1.2;
    }

    .landing-hero-tile__label {
        padding: 0.16em 0.34em;
        border-radius: 0.38rem;
    }

    .landing-emergency__inner {
        padding: 1.6rem 1.2rem;
    }
}

@media (max-width: 1050px) and (min-width: 701px) {
    .landing-hero-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
