/*
>> Headline
*/

.index__headline {
    text-align: center;
    padding: 7rem 1rem 4rem;
    color: var(--text);
}

.index__headline h2 {
    font-size: 2rem;
    margin: 0;
}

.index__headline p {
    font-size: 1.2rem;
    margin: 0;
}

/*
>> Textfarbe
*/

small,
h2,
p,
div,
ul,
li {
    color: var(--text);
}

/*
>> Main Grid & Karten
*/

.index__main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.index__card {
    text-align: center;
    background-color: var(--background-content);
    border: 3px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.index__card code { font-size: 1rem;}

.index__card-headline h2 {
    margin: 0;
}

.index__card-leftside,
.index__card-rightside {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
}

.index__card-leftside {
    display: flex;
    justify-content: center;
    align-items: center;
}

.index__card-leftside img {
    width: 100%;
    object-fit: cover;
    transition: scale 0.5s;
}

.index__card-leftside img:hover {
    scale: 1.02;
}

.index__card-rightside {
    text-align: left;
}

.index__card-vl {
    margin: 1rem;
    margin-bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.index__card-rightside button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    color: var(--blue-text);
    background: var(--blue-background-pri);
    position: relative;
    overflow: hidden;
    transition: all 250ms;
    z-index: 1;
}

.index__card-rightside button::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background-color: var(--blue-background-sec);
    z-index: -1;
    transition: width 500ms;
}

.index__card-rightside button:hover {
    box-shadow: 0px 0px 50px -15px var(--blue-background-sec);
}

.index__card-rightside button:hover::before {
    width: 100%;
}

.index__card-rightside ul {
    background: var(--background);
    padding: 0.5rem 0 1rem 2rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
}

.index__card-rightside li {
    font-size: 0.9rem;
    padding-top: 0.2rem;
}

@media (min-width: 800px) {
    .index__main-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index__card.big {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {
    .index__main-grid {
        justify-items: center;
    }

    .index__card-vl {
        display: none;
    }

    .index__card {
        align-items: center;
        max-width: 350px;
    }
}