/* --- Variables --- */
:root {
    --rw-primary: var(--rw-primary-color, #e2382a); 
    --rw-text: #1A1A1A;
    --rw-slider-control-size: 44px;
    --rw-slider-control-radius: 999px;
    --rw-slider-control-border: rgba(26, 26, 26, 0.14);
    --rw-slider-control-shadow: 0 10px 24px rgba(26, 26, 26, 0.08);
}

/* --- 1. Hero Section (Breakout Logic + Overlay) --- */
.blog-detail-hero {
    position: relative;
    overflow: hidden;
    display: block;
    align-items: stretch;
    margin-bottom: 3.5rem;
    padding: clamp(104px, 12vw, 156px) 0 clamp(72px, 7vw, 104px);
    min-height: 0;
    background: #ffffff;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.blog-hero__bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 0;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: none;
}

.blog-hero__bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 28%);
}

.blog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.blog-hero__content-container {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.92fr);
    align-items: start;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(420px, 45vw, 560px);
    max-width: var(--rw-container-max-width, 1664px);
    z-index: 1002;
    padding-inline: var(--Size-6);
    margin-inline: auto;
    gap: clamp(24px, 4vw, 64px);
}

.blog-hero__text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 760px;
    padding-top: clamp(12px, 2vw, 36px);
}

.blog-hero__title {
    font-family: "Aeonik Extended Pro", sans-serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--rw-primary);
    line-height: 0.98;
    margin: 0;
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.blog-hero__separator {
    display: block;
    width: 60px;
    height: 12px;
    background-color: var(--rw-primary);
    margin: 0;
}

.blog-hero__subtitle {
    font-family: "Aeonik Extended Pro", sans-serif;
    font-size: clamp(1.04rem, 2.5vw, 1.42rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--rw-text);
    margin: 0;
    max-width: 46ch;
}

.blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #646464;
    margin: 0;
}

.blog-hero__meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.blog-hero__meta strong {
    color: #1A1A1A;
}


/* --- 2. Content Layout --- */
.blog-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    max-width: var(--rw-container-max-width, 1664px);
    z-index: 1002;
    padding-inline: var(--Size-6);
    margin-inline: auto;
}

@media (min-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1664px 1fr;
    }
}



ul.blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.blog-category-list li {
    margin-bottom: 0.5rem;
}

ul.blog-category-list li a {
    text-decoration: none;
    color: #000000;
    transition: color 0.2s;
}

ul.blog-category-list li a:hover {
    color: var(--rw-primary);
}

.blog-main-text {
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
    line-height: 1.6;
    color: var(--rw-text);
    width: 100%;
    max-width: 742px;
    margin-inline: auto;
}

.blog-main-text h2 {
    color: #000000;
    font-weight: 800;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.blog-main-text h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-main-text img,
.blog-main-text video,
.blog-main-text iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog-main-text table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-main-text th,
.blog-main-text td {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(26, 26, 26, 0.14);
    white-space: nowrap;
}

.blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.btn-linkedin svg {
    margin-right: 8px;
}

/* --- 3. Slider Section --- */
.blog-related-slider-section {
    max-width: 1440px;
    margin: 0 auto 4rem auto;
    padding: 0 20px;
}

.related-headline {
    color: var(--rw-primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.rw-news-slider-container {
    width: 100%;
    position: relative;
}

.rw-news-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.rw-news-slider-track::-webkit-scrollbar { display: none; }

.rw-news-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: #e6e6e6;
    min-height: 350px;
}
@media (min-width: 768px) { .rw-news-slide { flex: 0 0 calc(33.333% - 20px); } }
@media (min-width: 1200px) { .rw-news-slide { flex: 0 0 calc(25% - 20px); } }

.slide-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slide-image-wrap {
    height: 200px;
    width: 100%;
    background-color: #ccc;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-title {
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.slider-arrow {
    appearance: none;
    -webkit-appearance: none;
    width: var(--rw-slider-control-size);
    height: var(--rw-slider-control-size);
    border: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    padding: 0;
    background: transparent;
    color: var(--rw-text-on-light-highlight, #1A1A1A);
    box-shadow: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.slider-arrow svg {
    width: 2.25rem;
    height: 2.25rem;
    stroke: currentColor;
    stroke-width: 1.5;
}

.slider-arrow:hover:not(:disabled),
.slider-arrow:focus-visible {
    color: var(--rw-primary-color, var(--rw-primary));
    transform: scale(1.1);
    box-shadow: none;
    outline: none;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}


/* =========================================
   NEWS LISTE - PDF RELAUNCH 
   ========================================= */


/* ─── HERO HEADER ────────────────────────────────────────── */
/*
   Das Hintergrundbild (.news-hero__bg) füllt den gesamten Hero.
   Der Text (.news-hero__inner) liegt per z-index darüber.
*/

.news-hero {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    margin-bottom: 4rem;

    /* Breakout: volle Breite */
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hintergrundbild – füllt den gesamten Hero */
.news-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.news-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Text-Container liegt über dem Bild */
.news-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    max-width: var(--rw-container-max-width, 1664px);
    z-index: 1002;
    padding-inline: var(--Size-6);
    margin-inline: auto;
}

.news-hero__text {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-hero__title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--rw-primary-color, #E90006);
    line-height: 1;
    margin: 0 0 20px 0;
    font-family: 'Aeonik Extended Pro', sans-serif;
    letter-spacing: -0.02em;
}

.news-hero__separator {
    display: block;
    width: 80px;
    height: 12px;
    background-color: var(--rw-primary-color, #E90006);
    margin-bottom: 30px;
}

.news-hero__claim {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
    margin: 0;
    font-family: 'Aeonik Extended Pro', sans-serif;
}


/* ─── KATEGORIE FILTER ───────────────────────────────────────────── */

.news-category-nav {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 20px;
}

.news-cat-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .news-cat-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .news-cat-list {
        grid-template-columns: 1fr;
    }
}

.news-cat-list__item {
    display: block !important;
}

.news-cat-list__item a,
.news-cat-list__item a.news-cat-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 110px !important;
    padding: 1.5rem !important;
    background-color: #D4D4D4 !important;
    background: #D4D4D4 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.news-cat-list__item a:hover,
.news-cat-list__item a.news-cat-btn:hover {
    background-color: #c0c0c0 !important;
    background: #c0c0c0 !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
}

.news-cat-list__item a.active,
.news-cat-list__item a.news-cat-btn.active {
    background-color: #1A1A1A !important;
    background: #1A1A1A !important;
    color: #ffffff !important;
}

.news-cat-list__item a .news-cat-btn__name,
.news-cat-list__item a.news-cat-btn .news-cat-btn__name {
    font-family: 'Aeonik Extended Pro', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: inherit !important;
    line-height: 1.2 !important;
}

/* ─── NEWS LISTEN CONTAINER ─────────────────────────────── */

.news-list-view {
    max-width: 800px;
    margin: 0 auto 6rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}


/* ─── TRENNLINIE ─────────────────────────────────────────── */

.news-list-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 2rem 0;
}


/* ─── FEATURED ARTIKEL (erster Eintrag) ─────────────────── */

.news-list-item.layout-featured {
    margin-bottom: 0;
}

.news-list-item.layout-featured .news-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-list-item.layout-featured .news-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dddddd;
    margin-bottom: 1.5rem;
}

.news-list-item.layout-featured .news-featured-image .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-list-item.layout-featured .news-img-placeholder {
    width: 100%;
    height: 100%;
    background: #dddddd;
}

.news-list-item.layout-featured .news-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--rw-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.news-list-item.layout-featured .news-teaser {
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}


/* ─── STANDARD ARTIKEL (alle weiteren) ──────────────────── */

.news-list-item.layout-standard {
    margin-bottom: 0;
}

.news-list-item.layout-standard .news-standard-link {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

@media (max-width: 768px) {
    .news-hero__bg,
    .news-hero__bg-image,
    .news-hero__bg img {
        display: none !important;
    }

    .news-hero {
        min-height: auto;
    }

    .news-hero__inner {
        margin-top: 50px;
    }
}

@media (max-width: 540px) {
    .news-list-item.layout-standard .news-standard-link {
        grid-template-columns: 1fr;
    }
}

.news-list-item.layout-standard .news-standard-image {
    width: 140px;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    background: #dddddd;
    flex-shrink: 0;
}

@media (max-width: 540px) {
    .news-list-item.layout-standard .news-standard-image {
        width: 100%;
        height: auto;
        aspect-ratio: 22 / 9;
    }
}

.news-list-item.layout-standard .news-standard-image .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
    display: block;
}

@media (max-width: 768px) {
    .blog-hero__bg-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .news-list-item.layout-featured .news-featured-image .news-img {
        object-position: center 30%;
    }

    .news-list-item.layout-standard .news-standard-image .news-img {
        object-position: center 30%;
    }
}

    .news-list-item.layout-standard .news-img-placeholder {
        width: 100%;
        height: 100%;
        background: #dddddd;
}

.news-list-item.layout-standard .news-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rw-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.news-list-item.layout-standard .news-teaser {
    font-size: 0.875rem;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}


/* ─── META-ZEILE ─────────────────────────────────────────── */

.news-meta {
    font-size: 0.8rem;
    color: #333333;
    border-top: none;
    padding-top: 0;
    display: block;
    width: auto;
}

.news-meta .news-meta-category {
    font-weight: 800;
    color: #1a1a1a;
}

.news-meta .news-meta-separator {
    color: #cccccc;
}

.news-meta .news-meta-date,
.news-meta .news-meta-author {
    color: #666666;
}


/* ─── PAGINATION ─────────────────────────────────────────── */

.news-pagination {
    margin: 3rem 0 1rem;
}

.news-pagination-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.news-pagination-link {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.15s;
}

.news-pagination-link:hover {
    color: var(--rw-primary);
    text-decoration: none;
}

.news-pagination-link.is-active {
    font-weight: 800;
    color: #1a1a1a;
    cursor: default;
}

.news-pagination-link--next {
    color: var(--rw-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.news-pagination-link--next:hover {
    color: #b02020;
    text-decoration: none;
}

.news-pagination-ellipsis span {
    padding: 0.4rem 0.5rem;
    color: #1a1a1a;
    display: inline-block;
}
/* ============================================================
   ERGÄNZUNGEN news.css – Zurück-Button + Latest News Slider
   ============================================================ */


/* --- Zurück-Button --- */



.btn-back svg {
    flex-shrink: 0;
}


/* --- Latest News Slider Sektion --- */

.blog-latest-slider-section {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    border-top: 1px solid #dddddd;
    margin-top: 6rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.blog-latest-slider-inner {
    max-width: 1664px;
    margin: 0 auto;
    padding-inline: 72px;
}

/* Gleiche Abstände wie blog-hero__content-container */
@media (max-width: 768px) {
    .blog-latest-slider-inner {
        padding-inline: 20px;
    }
}

.blog-latest-slider-section .related-headline {
    color: var(--rw-primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.blog-latest-slider-section .rw-news-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.blog-latest-slider-section .rw-news-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px; /* verhindert abgeschnittene Box-Shadow */
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.blog-latest-slider-section .rw-news-slider-track::-webkit-scrollbar {
    display: none;
}


/* --- Slide Kachel --- */

.blog-latest-slider-section .rw-news-slide {
    flex: 0 0 calc(25% - 15px); /* 4 sichtbar */
    scroll-snap-align: start;
    background: #e6e6e6;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .blog-latest-slider-section .rw-news-slide {
        flex: 0 0 calc(33.333% - 14px); /* 3 sichtbar */
    }
}

@media (max-width: 640px) {
    .blog-latest-slider-section .rw-news-slide {
        flex: 0 0 85%; /* 1 sichtbar auf Mobile */
    }
}

.blog-latest-slider-section .slide-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Quadratisches Vorschaubild */
.blog-latest-slider-section .slide-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #cccccc;
    flex-shrink: 0;
}

.blog-latest-slider-section .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-latest-slider-section .slide-img-placeholder {
    width: 100%;
    height: 100%;
    background: #cccccc;
}

/* Text-Bereich */
.blog-latest-slider-section .slide-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-latest-slider-section .slide-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: #1A1A1A;
    line-height: 1.3;
}

.blog-latest-slider-section .slide-date {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin: 0;
}


/* --- Slider Controls --- */

.blog-latest-slider-section .slider-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-top: 30px;
}

.blog-latest-slider-section .slider-arrow {
    user-select: none;
}

.blog-main-text p {
    max-width: 100ch;
}

@media (max-width: 1024px) {
    .blog-detail-hero {
        padding-block: 92px 64px;
    }

    .blog-hero__bg-container {
        inset: 0;
        width: 100%;
    }

    .blog-hero__content-container {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
        min-height: 420px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        margin-bottom: 2.75rem;
        padding: 64px 0 48px;
    }

    .blog-hero__bg-container {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 90%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 20px;
        margin: 0 auto 24px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    }

    .blog-hero__content-container {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0;
        padding-inline: 20px;
    }

    .blog-hero__text-col {
        gap: 18px;
        max-width: none;
        padding-top: 0;
    }

    .blog-hero__title {
        font-size: clamp(1.95rem, 8.5vw, 2.8rem);
        max-width: none;
    }

    .blog-hero__subtitle {
        font-size: clamp(0.98rem, 4.2vw, 1.18rem);
        max-width: none;
    }

    .blog-hero__meta {
        gap: 8px 12px;
        font-size: 0.88rem;
    }

    .blog-content-wrapper {
        padding-inline: 20px;
    }

    .blog-main-text {
        font-size: 1rem;
    }

    .blog-main-text h2 {
        font-size: 1.45rem;
        margin-top: 2.25rem;
        margin-bottom: 1rem;
    }

    .blog-actions {
        gap: 12px;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .blog-actions .rw-btn {
        width: 100%;
        justify-content: center;
    }

    .slider-controls,
    .blog-latest-slider-section .slider-controls {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .slider-controls,
    .blog-latest-slider-section .slider-controls {
        gap: 0;
    }
}
