/* funktionen-spezifische Stile */
.feature-row__content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 48px 0;
}

.feature-row__image {
    flex: 0 0 160px;
    display: flex;
}

.feature-row--reverse .feature-row__content {
    flex-direction: row-reverse;
}

/* Image/Video Modal Styles */
.img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.img-modal[hidden] {
    display: none;
}

.img-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-modal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/headerbackground.svg') center/cover no-repeat;
    opacity: 0.15;
    border-radius: 16px;
    pointer-events: none;
}

.img-modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

.img-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background .2s;
    z-index: 2;
}

.img-modal-close:hover {
    background: #f3f4f6;
}

@media (max-width: 900px) {
    .feature-row__content {
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px;
    }

    .feature-row--reverse .feature-row__content {
        flex-direction: column;
    }

    .feature-row__image {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    .feature-row__image video {
        max-width: 100%;
        height: auto;
    }
}