/* Aktuelles Seite - Eigenständige Styles */

/* News Content Section */
.aktuelles-content {
    padding: 60px 20px;
    background-color: var(--white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* News Card Item - Gleicher Style wie article-card */
.news-card-item {
    background: var(--medium-gray);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-gray);
    position: relative;
    top: 0;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Orangener Balken oben - HINZUGEFÜGT */
.news-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card-item:hover::before {
    transform: scaleX(1);
}

/* Hover-Effekt mit top statt transform */
.news-card-item:hover {
    top: -8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* News Card Header */
.news-card-item .article-card__header {
    padding: 20px 25px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.news-card-item .article-card__category {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

.news-card-item .article-card__date {
    color: var(--text-muted);
}

/* News Card Body */
.news-card-item .article-card__body {
    padding: 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-item .article-card__title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-item .article-card__excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* News Card Footer */
.news-card-item .article-card__footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-gray);
    background: var(--bg-light);
    transition: background 0.3s ease;
}

/* Inverse Footer Hover-Effekt - HINZUGEFÜGT */
.news-card-item .article-card__footer--inverse:hover {
    background: var(--primary);
}

.news-card-item .article-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.3s ease;
}

.news-card-item .article-card__link:hover {
    transform: translateX(3px);
}

/* Weißer Text beim Footer Hover - HINZUGEFÜGT */
.news-card-item .article-card__footer--inverse:hover .article-card__link {
    color: white;
}

/* ENTFERNT: news-card Styles - nutzt jetzt .article-card aus IT-SCE.css */
/* Die alten Klassen funktionieren noch durch das Mapping in IT-SCE.css */

/* CTA Section - kann .section--gray und .cta-button--large nutzen */
.news-cta-section {
    background: var(--medium-gray);
    padding: 60px 20px;
    text-align: center;
}

.news-cta-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.news-cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design für Aktuelles-spezifische Komponenten */
/* News Grid wird bereits mit auto-fit responsive gehandhabt */

/* Mobile Geräte */
@media (max-width: 767px) {
    /* News Grid Mobile Anpassungen */
    .news-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf Mobile */
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .news-grid .article-card {
        max-width: 400px; /* Maximale Breite für die Karte */
        margin: 0 auto; /* Zentriert die Karte */
    }
}

/* Kleine Mobile Geräte */
@media (max-width: 480px) {
    /* Nur lokale Typography-Anpassungen */
    .news-cta-content h2 {
        font-size: 1.6rem;
    }
}

/* Hinweis: Grid-Anpassungen und allgemeine Styles 
   werden über IT-SCE.css globale Media Queries gehandhabt */

/* Hinweis für HTML-Anpassungen:
   Alt -> Neu (für bessere Semantik):
   - .news-card -> .article-card.article-card--gray
   - .news-header -> .article-card__header
   - .news-category -> .article-card__category
   - .news-date -> .article-card__date
   - .news-card h3 -> .article-card__title
   - .news-card p -> .article-card__excerpt
   - .news-link -> Für inverses Hover: <div class="article-card__footer article-card__footer--inverse"><a class="article-card__link">...</a></div>
   
   Die alten Klassen funktionieren noch, sollten aber schrittweise ersetzt werden.
*/

/* ========================================
   NEWS CARD ANIMATIONEN
   Nutzt die gleiche fadeInUp Animation wie andere Seiten
   ======================================== */

/* News Karten - Initial Animation */
.news-card-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Gestaffelte Animation Delays - angepasst an andere Seiten */
.news-card-item:nth-child(1) {
    animation-delay: 0s;
}

.news-card-item:nth-child(2) {
    animation-delay: 0.15s;
}

.news-card-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card-item:nth-child(4) {
    animation-delay: 0.45s;
}

.news-card-item:nth-child(5) {
    animation-delay: 0.6s;
}

.news-card-item:nth-child(6) {
    animation-delay: 0.75s;
}

/* fadeInUp Animation - nutzt nur opacity und transform */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

