/* ============================================
   VOLTWERK – News Section Styles
   Separate CSS file for the News / Neuigkeiten section
   ============================================ */

/* ---- Section Layout ---- */
.news-section {
    background-color: #f7f7f7;
}

/* ---- News Grid ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* ---- News Card ---- */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(204, 255, 0, 0.25);
}

/* ---- Card Image ---- */
.news-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #111;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

/* Kategorie-Badge auf dem Bild */
.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ccff00;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* ---- Card ohne Bild: Farbiger oberer Streifen ---- */
.news-card.no-image .news-card-accent {
    height: 6px;
    background: #ccff00;
    width: 100%;
}

/* ---- Card Body ---- */
.news-card-body {
    padding: 25px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Datum & Kategorie (Text-Version, für Karten ohne Bild) */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.news-meta-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta-date svg {
    opacity: 0.6;
}

.news-meta-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ccff00;
    background: #111;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Titel */
.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212331;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Teaser-Text */
.news-card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

/* "Mehr lesen"-Link */
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #212331;
    text-decoration: none;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.news-card-link svg {
    transition: transform 0.25s ease;
}

.news-card-link:hover {
    color: #7ab800;
    text-decoration: none;
}

.news-card:hover .news-card-link svg {
    transform: translateX(4px);
}

/* ---- Featured / Großer Artikel (nimmt 2 Spalten) ---- */
.news-card.news-featured {
    grid-column: span 2;
    flex-direction: row;
}

.news-card.news-featured .news-card-image {
    height: auto;
    min-height: 280px;
    flex: 1 1 50%;
    border-radius: 0;
}

.news-card.news-featured .news-card-body {
    flex: 1 1 50%;
    padding: 35px 38px;
    justify-content: center;
}

.news-card.news-featured .news-card-title {
    font-size: 1.35rem;
}

/* ---- "Alle News laden" Button Reihe ---- */
.news-load-more {
    text-align: center;
    margin-top: 45px;
}

/* ---- Parallax-Trennstreifen oberhalb der Section ---- */
.news-parallax-divider {
    height: 220px;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-parallax-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.news-parallax-divider .divider-text {
    position: relative;
    z-index: 1;
    color: #ccff00;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.news-featured {
        grid-column: span 2;
        flex-direction: column;
    }

    .news-card.news-featured .news-card-image {
        height: 260px;
        flex: none;
        width: 100%;
        border-radius: 0;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card.news-featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .news-card.news-featured .news-card-image {
        height: 220px;
        flex: none;
        width: 100%;
    }

    .news-card.news-featured .news-card-body {
        padding: 25px 22px;
    }

    .news-parallax-divider .divider-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}


/* ============================================
   DESIGN 2 – Magazin-Layout (dunkel)
   Alle Klassen mit Präfix "news2-" zur Vermeidung
   von Konflikten mit Design 1
   ============================================ */

/* ---- Trennstreifen (oben) ---- */
.news2-divider {
    background: #fff;
    border-top: 4px solid #ccff00;
    border-bottom: 1px solid #efefef;
    padding: 18px 0;
    text-align: center;
}

.news2-divider-label {
    color: #212331;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ---- Section ---- */
.news2-section {
    padding: 70px 0 80px;
}

/* ---- Heading ---- */
.news2-heading {
    margin-bottom: 45px;
}

.news2-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ccff00;
    -webkit-text-stroke: 0.4px #7ab800;
    margin-bottom: 8px;
}

.news2-title {
    font-size: 2rem;
    font-weight: 800;
    color: #212331;
    margin: 0;
}

/* ---- Layout: Featured + Liste ---- */
.news2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ---- Featured Artikel (links) ---- */
.news2-featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.news2-featured-image img {
    width: 100%;
    height: 320px; /* Feste Höhe für das Bild oben */
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    flex-shrink: 0;
}

.news2-featured:hover .news2-featured-image img {
    transform: scale(1.05);
}

/* Helle Textbox unter dem Bild (nicht mehr darüberliegend) */
.news2-featured-overlay {
    position: static; /* Text rückt unter das Bild */
    background: #ffffff;
    padding: 30px 35px 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news2-badge {
    display: inline-block;
    background: #ccff00;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* Kleinere Badge-Variante für die Liste */
.news2-badge-sm {
    font-size: 9px;
    padding: 2px 9px;
    position: static;
    margin-bottom: 0;
}

.news2-featured-meta {
    margin-bottom: 8px;
}

.news2-featured-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.news2-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212331;
    line-height: 1.3;
    margin-bottom: 15px;
}

.news2-featured-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}



.news2-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ccff00;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.news2-featured-link:hover {
    color: #ccff00;
    text-decoration: none;
    gap: 11px;
}

/* ---- Nachrichten-Liste (rechts) ---- */
.news2-list {
    display: flex;
    flex-direction: column;
}

/* ---- Listeneintrag ---- */
.news2-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 4px 0 20px;
}

/* Kleines Vorschau-Bild */
.news2-item-image {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
}

.news2-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news2-item:hover .news2-item-image img {
    transform: scale(1.08);
}

/* Textbereich */
.news2-item-body {
    flex: 1;
}

.news2-item-body--full {
    width: 100%;
}

.news2-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.news2-item-date {
    font-size: 11px;
    color: #aaa;
}

.news2-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212331;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news2-item:hover .news2-item-title {
    color: #7ab800;
}

.news2-item-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.news2-item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #212331;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news2-item-link:hover {
    color: #7ab800;
    text-decoration: none;
    gap: 9px;
}

/* Trennlinie zwischen Listeneinträgen */
.news2-divider-line {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 0 0 20px;
}

/* "Alle News" Button Zeile */
.news2-list-footer {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* ============================================
   DESIGN 2 – RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .news2-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news2-featured-image {
        min-height: 360px;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    .news2-section {
        padding: 50px 0 60px;
    }

    /* Fix für die Featured Card: Text unter das Bild schieben */
    .news2-featured-image {
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid #eee;
        border-radius: 12px; /* Abgerundete Ecken für moderne Optik */
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sanfter Schatten für Tiefe */
        margin-bottom: 40px; /* Deutlicher Abstand zur Liste darunter */
    }


    .news2-featured-image img {
        height: 220px; /* Bildhöhe auf Mobile fixieren */
        flex: none;
    }

    .news2-featured-overlay {
        position: static; /* Overlay wird zur normalen Box unter dem Bild */
        background: #ffffff;
        padding: 25px 20px;
        display: block;
    }

    .news2-featured-title {
        font-size: 1.25rem;
        color: #212331; /* Dunkler Text auf weißem Grund */
        margin-bottom: 10px;
    }

    .news2-featured-text {
        color: #666;
        margin-bottom: 15px;
        display: block; /* Sicherstellen, dass Text sichtbar ist */
        max-height: none;
        opacity: 1;
    }

    .news2-featured-date {
        color: #999;
    }

    .news2-featured-link {
        color: #7ab800;
    }

    .news2-item-image {
        width: 75px;
        height: 58px;
    }
}


/* ============================================
   DESIGN 3 – Minimalist News Feed
   Klassenpräfix "news3-"
   ============================================ */

.news3-section {
    background: #ffffff;
    padding: 80px 0;
}

.news3-feed {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
}

/* Einzelner Feed-Eintrag */
.news3-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #eeeeee;
    transition: all 0.3s ease;
}

.news3-item:last-child {
    border-bottom: none;
}

/* Datum-Spalte */
.news3-date-box {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.news3-day {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #212331;
}

.news3-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccff00;
    margin-top: 5px;
    -webkit-text-stroke: 0.3px #7ab800;
}

/* Content-Spalte */
.news3-content {
    flex: 1;
}

.news3-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.news3-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212331;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news3-item:hover .news3-title {
    color: #7ab800;
}

.news3-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Link */
.news3-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #212331;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.news3-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ccff00;
    transition: width 0.3s ease;
}

.news3-link:hover::after {
    width: 100%;
}

/* Bild (optional, rechts schwebend) */
.news3-image {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news3-item:hover .news3-image img {
    transform: scale(1.1);
}

/* Responsive Design 3 */
@media (max-width: 991px) {
    .news3-item {
        gap: 30px;
    }
    .news3-image {
        width: 180px;
    }
}

@media (max-width: 767px) {
    .news3-item {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }
    
    .news3-date-box {
        text-align: left;
        width: auto;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    
    .news3-day {
        font-size: 1.8rem;
    }
    
    .news3-image {
        width: 100%;
        height: 200px;
        order: -1; /* Bild nach oben auf Mobile */
    }
}

/* ============================================
   DESIGN 4 – Minimalist Stripe Feed
   Klassenpräfix "news4-"
   Fokus: Übersichtlichkeit, klare Linien, kein Schnickschnack
   ============================================ */

.news4-section {
    background: #ffffff;
    padding: 80px 0;
}

.news4-container {
    max-width: 1000px;
    margin: 40px auto 0;
}

/* Der einzelne Stripe */
.news4-stripe {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.news4-stripe:first-child {
    border-top: 1px solid #f0f0f0;
}

.news4-stripe:hover {
    background: #fafafa;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

/* Kleine Bild-Vorschau (dezent) */
.news4-thumb {
    width: 100px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 30px;
    background: #eee;
}

.news4-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.news4-stripe:hover .news4-thumb img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Text-Bereich */
.news4-meta {
    width: 120px;
    flex-shrink: 0;
}

.news4-date {
    display: block;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.news4-category {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ccff00;
    letter-spacing: 1px;
    margin-top: 4px;
    -webkit-text-stroke: 0.2px #7ab800;
}

.news4-content {
    flex: 1;
    padding-right: 30px;
}

.news4-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212331;
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.news4-stripe:hover .news4-title {
    color: #7ab800;
}

.news4-excerpt {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pfeil-Icon am Ende */
.news4-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    transition: all 0.3s ease;
}

.news4-stripe:hover .news4-arrow {
    color: #ccff00;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 767px) {
    .news4-stripe {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }
    
    .news4-thumb {
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .news4-meta {
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .news4-excerpt {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .news4-arrow {
        display: none;
    }
}

/* ============================================
   DESIGN 5 – Modern Editorial Split
   Klassenpräfix "news5-"
   Fokus: Asymmetrie, Luftigkeit, High-End Look
   ============================================ */

.news5-section {
    background: #ffffff;
    padding: 100px 0;
}

.news5-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.news5-item:last-child {
    margin-bottom: 0;
}

/* Abwechselndes Layout (Bild links/rechts) */
.news5-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Bild-Bereich */
.news5-image-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 450px;
}

.news5-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.15, 0, 0.05, 1);
}

.news5-item:hover .news5-img {
    transform: scale(1.08);
}

/* Text-Bereich */
.news5-info {
    flex: 1;
}

.news5-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ccff00;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    -webkit-text-stroke: 0.3px #7ab800;
}

.news5-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #ccff00;
}

.news5-date {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.news5-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #212331;
    line-height: 1.1;
    margin-bottom: 25px;
}

.news5-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Button / Link */
.news5-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #212331;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news5-btn span {
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news5-btn:hover {
    color: #7ab800;
}

.news5-btn:hover span {
    background: #ccff00;
    border-color: #ccff00;
    color: #000;
    transform: rotate(-45deg);
}

/* Responsive Design 5 */
@media (max-width: 1199px) {
    .news5-title {
        font-size: 2.2rem;
    }
    .news5-item {
        gap: 50px;
    }
}

@media (max-width: 991px) {
    .news5-item, .news5-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 80px;
    }
    
    .news5-image-wrap {
        width: 100%;
        height: 350px;
    }
    
    .news5-title {
        font-size: 1.8rem;
    }
}

/* ============================================================
   MODERN CSS SCROLL REVEAL (Ersatz für WOW.js)
   Sorgt für flüssige Animationen ohne Scroll-Jumps auf Mobile.
   ============================================================ */

/* Basis-Zustand (unsichtbar und leicht tiefer) */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Sichtbarer Zustand (wird per JS getriggert) */
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays für einen schöneren Effekt */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 767px) {
    /* Auf Mobile etwas schneller und weniger Bewegung für maximale Stabilität */
    .reveal-item {
        transform: translateY(15px);
        transition-duration: 0.6s;
    }
}