.einleitung {
    padding: 0 24px 8px 24px;
}

.select {
    padding: 0 24px 16px 24px;
}
.select button {
    margin-right: 4px;
    margin-bottom: 8px;
    border: none;
    padding: 4px 8px;
    background-color: #e1131d;
    color: #fff;
}
.select button:hover,
.select button.current {
    background-color: #ad0e16;
    cursor: pointer;
}

#card-container {
    display: inline-block;
    width: calc(100% - 32px);
    margin: 0 16px;
}

.card {
    position: relative;
    width: calc((100% / 3) - 16px);
    margin: 8px;
    transition: all 200ms ease-in-out;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    float: left;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-actions {
    display: none;
    margin: 8px;
    padding: 16px 0;
    justify-content: space-between;
    align-items: center;
}

.card a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.card span {
    display: inline-block;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 16px;
    font-size: 16px;
    line-height: 130%;
    transform: translateY(100%);
    transition: transform .5s ease-in-out;
}

.card:hover span {
    transform: translateY(0%);
    transition: transform .5s ease-in-out;
}

.card button {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 24px;
}

.card .index {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
}

#loader {
    display: inline-block;
    overflow-x: hidden;
    margin: 0 16px;
    width: calc(100% - 32px);
}

.template-card {
    width: calc((100% / 3) - 16px);
    margin: 8px;
    transition: all 200ms ease-in-out;
    position: relative;
    background-color: #eaeaea;
    float: left;
    aspect-ratio: 1;
}

.template-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: load 1s infinite;
}

.button {
    max-width: 258px;
    margin: 0 auto;
} 

@media (max-width: 1459px) {
    .text_block .content {
        max-width: unset;
    }
}

@media (max-width: 1023px) {
    .einleitung {
        padding: 0 20px 8px 20px;
    }
    .select {
        padding: 0 20px 16px 20px;
    }
    .card, .template-card {
        width: calc((100% / 3) - 8px);
        margin: 4px;
    }
}

@media (max-width: 767px) {
    /* ... */
}

@media (max-width: 479px) {
    .einleitung {
        padding: 0 12px 4px 12px;
    }
    .select {
        padding: 0 12px 8px 12px;
    }
    #card-container, #loader {
        width: calc(100% - 16px);
        margin: 0 8px;
    }
}

@keyframes load {
    100% {
        transform: translateX(100%);
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    .template-card::after {
        animation: none;
    }
}