/*
Aktuelles - Shortcode Specific Styles
Gemeinsame Styles sind in shared-styles.css ausgelagert
*/

/* ========================================
   Aktuelles Spezifische Styles
   ======================================== */

/* Header Right für Tab-Navigation */
.ak-header-right {
    flex: 1;
    text-align: right;
}

/* Posts Container für AJAX-Filterung */
.ak-posts-container {
    transition: opacity 0.3s ease;
}

/* Hauptlayout: Links groß, rechts zwei Spalten */
.ak-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Linker großer Artikel */
.ak-item-large {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Spezielle Anpassungen für großen Artikel in Aktuelles */
.ak-title-large {
    font-size: 2rem; /* Größer als andere Shortcodes */
    margin: 0 0 14px;
}

.ak-excerpt {
    /* Margin auf 0, Abstand wird durch Button erzeugt */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Flex-Grow entfernen */
    flex: 0 0 auto;
}

.ak-thumb {
    padding-top: 75%; /* Höheres Ratio für großen Artikel */
}

.ak-thumb-link {
    margin-bottom: 14px;
}

.ak-button-wrapper {
    text-align: left;
    /* Abstand nach oben zum Text erzwingen */
    margin-top: 24px;
    margin-bottom: 0;
}

.ak-read-more {
    display: inline-block;
    padding: 12px 24px;
    background: var(--theme-palette-color-2);
    color: var(--theme-palette-color-1);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.08em;
    border: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.ak-read-more:hover {
    opacity: 0.85;
}

/* Rechte Seite: Kleine Artikel in zwei Spalten */
.ak-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

.ak-item-small {
    display: flex;
    flex-direction: column;
}

.ak-thumb-link-small {
    margin-bottom: 10px;
}

.ak-small-content {
    flex: 1;
}

/* ========================================
   Responsive Anpassungen - Aktuelles Spezifisch
   ======================================== */

/* iPad Pro und größere Tablets (Landscape) */
@media (max-width: 1200px) {
    .ak-main-grid {
        gap: 24px;
    }

    .ak-small-grid {
        gap: 18px 20px;
    }

    .ak-title-large {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
}

/* Tablets und kleinere Desktops */
@media (max-width: 1024px) {
    .ak-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ak-small-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }

    .ak-title-large {
        font-size: 1.65rem;
    }

    .ak-read-more {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* iPad und kleinere Tablets (Portrait) */
@media (max-width: 820px) {
    .ak-small-grid {
        gap: 18px 20px;
    }

    .ak-title-large {
        font-size: 1.5rem;
    }
}

/* Mobile Landscape und kleine Tablets */
@media (max-width: 768px) {
    .ak-main-grid {
        gap: 24px;
    }

    .ak-small-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ak-thumb {
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
    }

    .ak-title-large {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .ak-button-wrapper {
        margin-top: 16px;
    }

    .ak-read-more {
        padding: 10px 18px;
        font-size: 12px;
    }

    .ak-item-small {
        flex-direction: row;
        align-items: flex-start;
    }

    .ak-thumb-link-small {
        flex: 0 0 35%;
        margin-right: 14px;
        margin-bottom: 0;
    }

    .ak-small-content {
        flex: 1;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .ak-main-grid {
        gap: 20px;
    }

    .ak-small-grid {
        gap: 16px;
    }

    .ak-title-large {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .ak-button-wrapper {
        margin-top: 14px;
    }

    .ak-read-more {
        padding: 9px 16px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .ak-item-small {
        flex-direction: row;
    }

    .ak-thumb-link-small {
        flex: 0 0 40%;
        margin-right: 12px;
    }
}

/* Extra kleine Mobile-Geräte */
@media (max-width: 360px) {
    .ak-title-large {
        font-size: 1.2rem;
    }

    .ak-read-more {
        padding: 8px 14px;
        font-size: 10px;
    }
}

