/* ================================================
   FEATURED ARTICLES - KARTEN WIE IN DER HAND
   Version 3 - Artikel 1 vorne, elegantes Label
   ================================================ */

/* Container */
.ca-hero-featured {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

/* Altes Label verstecken */
.ca-featured-label {
    display: none;
}

/* Alle Featured Cards - Basis */
.ca-featured-card {
    position: absolute;
    width: 300px;
    height: 480px;
    background: var(--ca-white, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* === KARTEN-ANORDNUNG: Artikel 1 VORNE === */

/* Karte 1 - VORNE (Mitte) */
.ca-featured-card:nth-child(2) {
    z-index: 3;
    transform: translateY(0) scale(1);
    transform-origin: bottom center;
}

/* Karte 2 - Links dahinter */
.ca-featured-card:nth-child(3) {
    z-index: 2;
    transform: translateX(-50px) translateY(15px) rotate(-6deg) scale(0.95);
    transform-origin: bottom center;
}

/* Karte 3 - Rechts dahinter */
.ca-featured-card:nth-child(4) {
    z-index: 1;
    transform: translateX(50px) translateY(15px) rotate(6deg) scale(0.95);
    transform-origin: bottom center;
}

/* === HOVER: Auffächern === */
.ca-hero-featured:hover .ca-featured-card:nth-child(2),
.ca-hero-featured.is-expanded .ca-featured-card:nth-child(2) {
    transform: translateY(-10px) scale(1.02);
    z-index: 3;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.ca-hero-featured:hover .ca-featured-card:nth-child(3),
.ca-hero-featured.is-expanded .ca-featured-card:nth-child(3) {
    transform: translateX(-320px) translateY(0) rotate(-2deg) scale(0.98);
    z-index: 2;
}

.ca-hero-featured:hover .ca-featured-card:nth-child(4),
.ca-hero-featured.is-expanded .ca-featured-card:nth-child(4) {
    transform: translateX(320px) translateY(0) rotate(2deg) scale(0.98);
    z-index: 2;
}

/* === ELEGANTES "MEISTGELESEN" LABEL auf Karte 1 === */
.ca-featured-card:nth-child(2)::before {
    content: '📊 MEISTGELESEN';
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, var(--ca-burgundy, #6b2d3c), #8b3d4c);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 40px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* === CARD IMAGE === */
.ca-featured-card .ca-featured-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ca-featured-card .ca-featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ca-featured-card:hover .ca-featured-card-image img {
    transform: scale(1.05);
}

/* Rang Badge */
.ca-featured-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--ca-gold, #b8860b), #d4a017);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* === CARD CONTENT === */
.ca-featured-card .ca-featured-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ca-featured-card .ca-featured-category {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ca-burgundy, #6b2d3c);
    margin-bottom: 8px;
    display: block;
}

/* Titel - NICHT abschneiden */
.ca-featured-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ca-ink-dark, #1a1a1a);
    margin: 0 0 10px 0;
    /* Kein line-clamp - voller Titel */
}

/* Excerpt */
.ca-featured-card .ca-featured-excerpt {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ca-ink-medium, #666);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ca-featured-card .ca-featured-meta {
    font-size: 0.68rem;
    color: var(--ca-ink-light, #999);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ca-sand, #e8e4dc);
}

/* Hover-Hinweis */
.ca-featured-hint {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(107, 45, 60, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.ca-hero-featured:hover .ca-featured-hint,
.ca-hero-featured.is-expanded .ca-featured-hint {
    opacity: 0;
    pointer-events: none;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1100px) {
    .ca-featured-card {
        width: 260px;
        height: 380px;
    }
    
    .ca-featured-card .ca-featured-card-image {
        height: 140px;
    }
    
    .ca-hero-featured:hover .ca-featured-card:nth-child(3),
    .ca-hero-featured.is-expanded .ca-featured-card:nth-child(3) {
        transform: translateX(-270px) translateY(0) rotate(-2deg) scale(0.98);
    }
    
    .ca-hero-featured:hover .ca-featured-card:nth-child(4),
    .ca-hero-featured.is-expanded .ca-featured-card:nth-child(4) {
        transform: translateX(270px) translateY(0) rotate(2deg) scale(0.98);
    }
}

/* Mobile: Vertikaler Stack */
@media (max-width: 900px) {
    .ca-hero-featured {
        min-height: auto;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }
    
    .ca-featured-label {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .ca-featured-card {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: auto;
        transform: none !important;
        opacity: 1 !important;
        scale: 1 !important;
    }
    
    .ca-featured-card:nth-child(2)::before {
        /* Label auch auf Mobile */
        top: 12px;
        right: -30px;
        font-size: 0.55rem;
        padding: 5px 35px;
    }
    
    .ca-featured-card .ca-featured-card-image {
        height: 160px;
    }
    
    .ca-featured-hint {
        display: none;
    }
}

/* ================================================
   NEUESTE BEITRÄGE - 3 SPALTEN
   ================================================ */
.ca-neueste-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ca-neueste-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .ca-neueste-grid {
        grid-template-columns: 1fr;
    }
}