/* Simrace Ads */

.sr-ad-box {
    position: relative;
    margin: 2rem 0 3rem;
    border: 2px dashed #FF0049;
    background: rgba(255, 0, 73, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.sr-ad-box__link {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

.sr-ad-box__image {
    flex-shrink: 0;
    width: 160px;
    line-height: 0;
    font-size: 0;
}

.sr-ad-box__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sr-ad-box__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}

.sr-ad-box__label {
    position: absolute;
    left: -2px;
    top: -2px;
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
    padding: 0.1rem 0.35rem;
    background: #0B0B1F;
    border: 1px solid #0B0B1F;
    border-radius: 3px 0 3px 0;
    z-index: 10;
}

.sr-ad-box__title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.sr-ad-box__teaser {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.4;
}

.sr-ad-box__action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 0, 73, 0.08);
    border-left: 1px solid rgba(255, 0, 73, 0.15);
}

.sr-ad-box__price {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.sr-ad-box__cta {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #FF0049;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.sr-ad-box__cta-target {
    font-size: 0.7rem;
    opacity: 0.5;
    white-space: nowrap;
}

.sr-ad-box__link:hover .sr-ad-box__cta,
.sr-ad-box__link:focus-visible .sr-ad-box__cta {
    background: #e00040;
}

.sr-ad-box__link:focus-visible,
.sr-ad-banner__link:focus-visible {
    outline: 2px solid #FF0049;
    outline-offset: 2px;
}

/* Banner-Typ */

.sr-ad-banner {
    position: relative;
    margin: 2rem 0 3rem;
    padding: 1rem;
    border: 2px dashed #FF0049;
    background: rgba(255, 0, 73, 0.05);
    border-radius: 6px;
    text-align: center;
}

.sr-ad-banner__label {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 0, 73, 0.1);
    border: 1px solid rgba(255, 0, 73, 0.3);
    border-radius: 3px 0 3px 0;
}

.sr-ad-banner__link {
    display: block;
}

.sr-ad-banner__img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

/* Loop-Varianten ohne Margin */

.sr-ad-box--loop {
    margin: 0;
}

.sr-ad-banner--loop {
    margin: 0;
}

/* Mobile */

@media (max-width: 700px) {
    .sr-ad-box__link {
        flex-wrap: wrap;
    }

    .sr-ad-box__action {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        border-left: none;
        border-top: 1px solid rgba(255, 0, 73, 0.15);
    }
}

@media (max-width: 500px) {
    .sr-ad-box__link {
        flex-direction: column;
        align-items: center;
    }

    .sr-ad-box__image {
        width: 140px;
        margin: 0.75rem auto 0;
    }

    .sr-ad-box__img {
        border-radius: 4px;
    }

    .sr-ad-box__content {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

@media (max-width: 450px) {
    .sr-ad-box__action {
        flex-direction: column;
    }
}
