.ankauf-section {
    padding: 3rem 0;
    background: #fff;
}

.ankauf-section .section-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.ankauf-section .section-title a {
    color: inherit;
    text-decoration: none;
}

.ankauf-section .section-title a:hover,
.ankauf-section .section-title a:focus {
    color: var(--cookie-primary, var(--color-green, rgb(42, 192, 164)));
    text-decoration: underline;
}

.ankauf-seo-text {
    max-width: 980px;
    color: rgba(17, 24, 39, 0.85);
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.ankauf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .ankauf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ankauf-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ankauf-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: #111827;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 200ms ease, transform 200ms ease;
    width: 100%;
    max-width: 280px;
    text-align: center;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--ankauf-i) * 0.05s);
}

.ankauf-box__title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2rem;
    display: block;
    width: 100%;
}

.ankauf-box:hover,
.ankauf-box:focus {
    border-color: var(--cookie-primary, var(--color-green, rgb(42, 192, 164)));
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* If a section uses the hero gradient, it must win over the default white background of .ankauf-section */
.ankauf-section.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}