/* ==========================================================================
   Projekt-Teaser Block
   Desktop: Karte mit Bild links / Text+Button rechts (50/50)
   Mobile:  Bild oben, Text+Button darunter
   Button:  Gelbes Parallelogramm via clip-path
   ========================================================================== */

.cf-projekt-teaser {
    position: relative;
    width: 100%;
    background-color: #000000;
}

.cf-projekt-teaser__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(3rem, 8.33vw, 7.5rem) clamp(1rem, 2.78vw, 2.5rem);
}

/* === Karte === */
.cf-projekt-teaser__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background-color: #1A1A1A;
    padding: 40px;
    text-decoration: none;
    color: #FFFFFF;
}

.cf-projekt-teaser__card:hover {
    color: #FFFFFF;
}

/* === Bild === */
.cf-projekt-teaser__image {
    flex: 1 0 0;
    min-width: 0;
    aspect-ratio: 919 / 517;
    overflow: hidden;
}

.cf-projekt-teaser__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cf-projekt-teaser__card:hover .cf-projekt-teaser__image img {
    transform: scale(1.03);
}

/* === Content (rechts) === */
.cf-projekt-teaser__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: flex-start;
}

/* === Text === */
.cf-projekt-teaser__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf-projekt-teaser__headline {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
}

.cf-projekt-teaser__subline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1;
    color: #FFFFFF;
    margin: 0;
}

/* === Button (Parallelogramm) === */
.cf-projekt-teaser__btn-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.cf-projekt-teaser__btn {
    display: inline-block;
    background-color: #F9E62B;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    padding: 16px 40px;
    text-decoration: none;
    /* Parallelogramm: linke Seite gerade abgeschnitten, rechte Seite diagonal */
    clip-path: polygon(31px 0%, 100% 0%, calc(100% - 31px) 100%, 0% 100%);
    transition: background-color 0.2s ease;
}

.cf-projekt-teaser__card:hover .cf-projekt-teaser__btn {
    background-color: #e6d426;
}

/* === Mobile === */
@media (max-width: 767px) {
    .cf-projekt-teaser__card {
        flex-direction: column;
        gap: 32px;
        padding: 40px;
    }

    .cf-projekt-teaser__image {
        flex: none;
        width: 100%;
    }

    .cf-projekt-teaser__content {
        width: 100%;
        gap: 60px;
    }

    .cf-projekt-teaser__btn-wrap {
        justify-content: center;
    }
}
