/* Räder & Reifen CSS */

/* Gesamtbereich */
.rr-section {
    margin: 40px 0;
    font-family: inherit;
}

/* Kopfzeile: Linie oben + Navigation */
.rr-header {
    padding-top: 14px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #000;
}

.rr-label {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    background: var(--theme-palette-color-2);
    color: #000;
}

.rr-header-right {
    flex: 1;
    text-align: right;
}

/* Posts Container */
.rr-posts-container {
    transition: opacity 0.3s ease;
}

/* Obere drei mittelgroßen Artikel */
.rr-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 36px;
}

.rr-item-large {
    display: flex;
    flex-direction: column;
}

.rr-thumb-link {
    display: block;
    margin-bottom: 14px;
    position: relative;
}

.rr-thumb {
    width: 100%;
    padding-top: 65%; /* Seitenverhältnis 16:10 / ähnlich */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Category Badges wie bei car-tiles/branchenkoepfe */
.rr-category-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rr-category-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    background: var(--theme-palette-color-2);
    color: #000;
    border: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

.rr-title-large {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.35rem * 1.3 * 2);
}

.rr-title-large a {
    text-decoration: none;
    color: inherit;
}

.rr-title-large a:hover {
    text-decoration: underline;
}

.rr-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(0.95rem * 1.6 * 3);
}

/* Unterer Sechserblock */
.rr-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 30px;
}

.rr-item-small {
    display: flex;
    align-items: flex-start;
}

.rr-thumb-link-small {
    display: block;
    flex: 0 0 40%;
    margin-right: 12px;
    position: relative;
}

.rr-thumb-small {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rr-category-badges--small {
    top: 8px;
    left: 8px;
}

.rr-category-badges--small .rr-category-badge {
    padding: 3px 8px;
    font-size: 10px;
}

.rr-small-content {
    flex: 1;
}

.rr-title-small {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-title-small a {
    text-decoration: none;
    color: inherit;
}

.rr-title-small a:hover {
    text-decoration: underline;
}

/* Responsive Anpassungen */

/* iPad Pro und größere Tablets (Landscape) */
@media (max-width: 1200px) {
    .rr-top-grid {
        gap: 24px;
    }

    .rr-bottom-grid {
        gap: 20px 24px;
    }

    .rr-title-large {
        font-size: 1.25rem;
    }

    .rr-excerpt {
        font-size: 0.9rem;
    }
}

/* Tablets und kleinere Desktops */
@media (max-width: 1024px) {
    .rr-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .rr-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
    }

    .rr-title-large {
        font-size: 1.2rem;
    }

    .rr-title-small {
        font-size: 0.95rem;
    }
}

/* iPad und kleinere Tablets (Portrait) */
@media (max-width: 820px) {
    .rr-section {
        margin: 30px 0;
    }

    .rr-header {
        margin-bottom: 20px;
        gap: 16px;
    }

    .rr-top-grid {
        margin-bottom: 30px;
    }

    .rr-thumb-link-small {
        flex: 0 0 45%;
    }
}

/* Mobile Landscape und kleine Tablets */
@media (max-width: 768px) {
    .rr-header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .rr-label {
        font-size: 12px;
        padding: 5px 12px;
    }

    .rr-header-right {
        text-align: left;
        width: 100%;
    }

    .rr-top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    .rr-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rr-title-large {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .rr-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .rr-item-small {
        align-items: flex-start;
    }

    .rr-thumb-link-small {
        flex: 0 0 35%;
        margin-right: 14px;
    }

    .rr-title-small {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .rr-section {
        margin: 20px 0;
    }

    .rr-header {
        margin-bottom: 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .rr-label {
        font-size: 11px;
        padding: 4px 10px;
    }

    .rr-top-grid {
        gap: 16px;
        margin-bottom: 20px;
    }

    .rr-bottom-grid {
        gap: 16px;
    }

    .rr-thumb {
        padding-top: 60%;
    }

    .rr-category-badges {
        top: 12px;
        left: 12px;
        gap: 4px;
    }

    .rr-category-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .rr-title-large {
        font-size: 1.15rem;
        margin-bottom: 8px;
        min-height: calc(1.15rem * 1.3 * 2);
    }

    .rr-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        height: calc(0.85rem * 1.5 * 2);
    }

    .rr-thumb-link-small {
        flex: 0 0 40%;
        margin-right: 12px;
    }

    .rr-thumb-small {
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
    }

    .rr-category-badges--small {
        top: 6px;
        left: 6px;
    }

    .rr-category-badges--small .rr-category-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    .rr-title-small {
        font-size: 0.9rem;
        line-height: 1.35;
    }
}

/* Extra kleine Mobile-Geräte */
@media (max-width: 360px) {
    .rr-title-large {
        font-size: 1.1rem;
    }

    .rr-title-small {
        font-size: 0.95rem;
    }
}
