/**
 * WP R2Go4 Search - Ad Tiles (Werbekacheln) Styles
 */

/* Werbekachel Container */
.r2go4-adtile {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header-Bereich (farbiger Hintergrund) */
.r2go4-adtile-header {
    padding: 40px 55px;
    text-align: center;
    aspect-ratio: var(--wp-r2go4-image-aspect-ratio, 16/9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Custom height mode for Ad Tiles */
.wpis-custom-image-height .r2go4-adtile-header {
    aspect-ratio: auto;
    height: var(--wp-r2go4-image-height, 250px);
}

/* Mini-Headline */
.r2go4-adtile-mini-headline {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0.9;
}

/* Haupt-Headline */
.r2go4-adtile-main-headline {
    color: inherit !important;
    margin-top: 0 !important;
}

/* Body-Bereich (weißer Hintergrund) */
.r2go4-adtile-body {
    background: #fff;
    padding: 40px 55px 45px 55px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fließtext */
.r2go4-adtile-text {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Button im AdTile - nicht volle Breite, unten */
.r2go4-adtile-body .search-button {
    width: auto;
    height: auto;
    padding: 15px 30px 15px 38px;
    display: inline-flex;
    align-self: center;
    margin-top: auto;
}

.r2go4-adtile-body .search-button:hover {
    background: var(--wp-r2go4-ci-color-hover, #8a7a5f) !important;
    border-color: var(--wp-r2go4-ci-color-hover, #8a7a5f) !important;
}

/* Responsive: Tablet (769-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .r2go4-adtile-body {
        padding: 30px 35px;
    }
}

/* Responsive: Mobile (unter 768px) */
@media (max-width: 768px) {
    .r2go4-adtile-header {
        padding: 30px 20px;
    }

    .r2go4-adtile-body {
        padding: 30px 35px;
    }
}
