/**
 * Tool-Teaser
 */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}


/**
 * Einzelner Teaser
 */

.tool-teaser {
    min-width: 0;
    border: 1px solid #dfe7dd;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tool-teaser:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 82, 158, 0.10);
}


/**
 * Gesamter Link
 */

.tool-teaser-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tool-teaser-link:hover {
    color: inherit;
    text-decoration: none;
}


/**
 * Vorschaubild
 */

.tool-teaser-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f7f4;
}

.tool-teaser-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tool-teaser:hover .tool-teaser-image {
    transform: scale(1.03);
}


/**
 * Inhalt
 */

.tool-teaser-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 30px;
}


/**
 * Titel
 */

.tool-teaser-title {
    margin: 0 0 14px;
    color: #1b529e;
    font-size: 1.45rem;
    line-height: 1.25;
}


/**
 * Beschreibung
 */

.tool-teaser-description {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}


/**
 * Button
 *
 * Der Button wird durch margin-top:auto
 * immer am unteren Rand des Teasers positioniert.
 */

.tool-teaser-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    align-self: flex-start;
    gap: 14px;
    margin-top: 28px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1b529e;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.tool-teaser:hover .tool-teaser-button {
    background: #15457f;
}


/**
 * Pfeil
 */

.tool-teaser-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
    margin-top: -0.25em;
}

.tool-teaser:hover .tool-teaser-arrow {
    transform: translateX(4px);
}


/**
 * Tablet
 */

@media (max-width: 800px) {

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}


/**
 * Mobile
 */

@media (max-width: 480px) {

    .tool-teaser-content {
        padding: 22px 20px 24px;
    }

    .tool-teaser-title {
        font-size: 1.3rem;
    }

    .tool-teaser-description {
        font-size: 0.95rem;
    }

    .tool-teaser-button {
        margin-top: 22px;
    }

}