@charset "utf-8";

/*großes Hintergrundbild*/
.background-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    right: 0;
    z-index: -17;
    filter: brightness(0.7); 
}

/* Formatierung Überschrift */
h2 {
    width: 80%;
    max-width: 31.25rem;
    margin: 0 auto var(--fs-600) auto;
    text-align: center;
    font-weight: 300;
    line-height: 1.5;
    text-transform: uppercase;
    font-size: var(--fs-600);
    color: var(--background-header);
    letter-spacing: 1px;
}



/* ab Bildschirmen über 430 Pixel Breite Doppelstriche */
@media only screen and (min-width: 430px) {
    h2 {
        /* Striche vor und nach Überschrift */
        display: grid;
        grid-template-columns: 1fr max-content 1fr;
        grid-template-rows: 27px 0;
        grid-gap: 20px;
        align-items: center;
    }    
    /*Striche vor und nach Überschrift*/
    h2:after, 
    h2:before {
        content: "";
        display: block;
        border-bottom: 1px solid var(--light-white);
        border-top: 1px solid var(--light-white);
        height: 5px;
    }
}

/* Design & Layout Boxen */
.angebote {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 3rem;
    align-items: center;
    padding: 0 1.5rem;
}

/* ab 800 Pixeln zwei boxen pro Reihe */
@media only screen and (min-width: 800px) {
    .angebote {
        grid-template-columns: 1fr 1fr;
    }
}

/* ab 1200 Pixeln 3 Boxen pro Reihe */
@media only screen and (min-width: 1200px) {
    .angebote {
        grid-template-columns: 1fr 1fr 1fr;
        max-width: 87.5rem;
        margin: 0 auto;
    }
}

.angebot {
    position: relative;
    width: 90%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    gap: var(--fs-400);
    border-radius: var(--fs-400);
    border: 3px var(--light-grey) solid;
    padding: 1rem;
    background-color: var(--light-white);
}

/* Link geht über ganze Box */
.angebot a {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Linkbox Überschrift Design */
.angebot h3 {
    color: black;
    text-align: center;
    font-size: var(--fs-500);
    font-weight: 800;
    height: calc(var(--fs-500) * 3.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Linkbox Text Design */
.angebot p {
    color: black;
    font-size: 1.125rem;
    text-align: center;
    height: calc(var(--fs-400) * 5);
    display: flex;
    align-items: center;
}

/*Ripple Effekt & Hover Effekte*/
span.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 1200ms linear;
    background-color: rgba(0, 0, 0, 0.103);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

    /* damit ripple nicht über box hinausgeht */
.angebot {
    overflow: hidden;
}

.angebot:hover,
.angebot:focus {
    transform: scale(105%);
}