
.backgroundImg {
    overflow: hidden;
    background-image: none;
    filter: none;
}

.backgroundImg::before {
    content: "";
    background: linear-gradient(rgba(0,0,0,0.2) 0 0), url("background.jpg") 30%/cover;
    filter: blur(3px);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: -10px;
}

.start-grid {
    position: relative;
    display: grid;
    grid-template-rows: 70% 20% 10%;
    grid-template-columns: 50% 50%;
    width: 100%;
    height: 94vh;
}

.headline {
    width: 100%;
    font-size: clamp(2rem, 4vw, 8rem);
    align-self: center;
}

.subline {
    /* font-size: clamp(20px, 5vw, 2.5rem); */
    font-size: clamp(20px, 3.5vw, 2.5rem);
    grid-column: 1 / span 2;
    justify-self: center;
    text-align: center;
    padding: 0 1em;
}

.second-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--ze-primary-bg-color);

    & > h2:first-child {
        font-size: clamp(2rem, 3vw, 4rem);
        color: var(--ze-secondary-text-color);
        text-align: center;
        /* padding: 1rem 0 2rem 0; */
        padding-inline: 7vw;
        margin-top: 1rem;
        border-bottom: 1px solid var(--ze-secondary-text-color);
    }
}

.offers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.offer {
    justify-self: center;
    text-align: center;
    color: var(--ze-secondary-text-color);
    margin-bottom: 1rem;

    & > button {
        outline: none;
        border: none;
        margin: 0;
        padding: 0;
        background: none;
    }

    & > img, & > button > img {
        height: 26rem;
        width: 20rem;
        transition: filter .2s linear;

        &:hover {
            filter: grayscale(1);
            /* box-shadow: 0px 0px 20px 4px #000000; */
            cursor: pointer;
        }
    }

    & > button {

        @media (hover: none) and (pointer: coarse) {
            position: relative;

            &::after {
                content: 'Für mehr Infos klicken...';
                font-family: 'Quattrocento';
                position: absolute;
                width: fit-content;
                height: 1rem;
                color: white;
                left: 0;
                bottom: 0;
            }   
        }
    }

    & > div:nth-child(2) {
        font-size: 36px;
        padding: 20px 0 6px 0;
    }

    & > div:nth-child(3) {
        font-size: 26px;
    }
}

@media (max-width: 720px) {
    .offer {
        margin-bottom: 2rem;

        & > img, & > button > img {
            height: 22rem;
            width: 16rem;
        }

        & > div:nth-child(2) {
            font-size: 28px;
            padding: 12px 0 6px 0;
        }

        & > div:nth-child(3) {
        font-size: 18px;
    }
    }
}

dialog {
    width: 34rem;
    /* padding: 4rem 10rem; */
    padding: 7vh 8vw;
    outline: none;
    border: 3px solid var(--ze-secondary-text-color);
    border-radius: 32px;
    background-color: var(--ze-primary-bg-color);
    color: var(--ze-secondary-text-color);
    text-align: center;
    transition: opacity .3s ease;
    transition-behavior: allow-discrete;

    & > h1 {
        font-size: clamp(26px, 5vw, 36px);
    }

    & > div {
        font-size: clamp(20px, 3vw, 26px);
    }

    & > button { 
        position: absolute;
        /* width: 1rem;
        height: 1rem; */
        top: 0;
        right: 0;
        /* transform: translate(-50%,-50%); */
        font-size: 1.4rem;
        margin: .4rem .6rem 0 0;
        padding: .5rem 1rem;
        border: 2px solid var(--ze-secondary-text-color);
        border-radius: 100px;
        outline: none;
        background-color: transparent;
        cursor: pointer;
        transition: background-color .3s linear;
    }

    & > button::after {
        /* Beim iPhone muss man nach speziellen Symbolen '\fe0e' direkt dahinter packen, damit man diese einfärben kann */
        content: '✖\fe0e';
        transition: color .3s linear;
        color: var(--ze-secondary-text-color);
    }

    & > button:hover, & > button:focus-visible {
        background-color: var(--ze-secondary-text-color);

        &::after {
            color: white;
        }
    }
}

dialog[open] {
    opacity: 1;
}

@starting-style {
    dialog[open] {
        opacity: 0;
    }
}

@media (max-width: 800px) {
    dialog {
        width: unset;
        margin-inline: 1rem;
    }
}