*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;

    background:#f3f4f6;

    color:#222;

    overflow-x:hidden;
}

.container{
    width:95%;
    max-width:1500px;
    margin:0 auto;
}
html {
    scroll-behavior: smooth;
}

body.news-page {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: #222222;
    background: #f7f8fa;
}



/* =========================
   Header
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: transparent;
    transition: transform 0.3s ease;

    border: 0;
    box-shadow: none;
}
header.header-hidden {
    transform: translateY(-100%);
}
.navbar {
    position: relative;

    height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-button {
    display: none;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 18px;

    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:focus-visible {
    color: inherit;
    text-decoration: none;
}

.logo:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 6px;
}

.logo-icon img {
    display: block;

    width: auto;
    height: 120px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.logo-icon img:hover {
    transform: scale(1.05);
}

.logo-text h3 {
    margin: 0;
    text-transform:uppercase;

    color: #e30613;
    font-size: 16px;
    line-height: 1;
}
.logo-text span {
    color: #ffffff;
    font-size: 14px;
}

/* Desktop-Navigation */

#hauptnavigation ul {
    display: flex;
    align-items: center;
    gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#hauptnavigation a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

#hauptnavigation a:hover,
#hauptnavigation a:focus-visible {
    color: #d70000;
    text-decoration: none;
}

#hauptnavigation a:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 3px;
}

/* =========================
   Mobile Navigation
========================= */

@media (max-width: 1000px) {
    .navbar {
        height: auto;
        min-height: 90px;

        flex-direction: row;

        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .navbar .logo-icon img {
        width: 65px;
        height: auto;
    }

    .navbar .logo-text h3 {
        margin: 0;
        font-size: 12px;
    }

    .navbar .logo-text span {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        margin-left: auto;
        padding: 12px 16px;

        border: 0;
        border-radius: 10px;

        background: #e30613;
        color: #ffffff;

        font: inherit;
        font-weight: 700;

        cursor: pointer;
    }

    .mobile-menu-button:focus-visible {
        outline: 3px solid #222222;
        outline-offset: 3px;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;

        display: none;

        width: min(280px, 100%);
        padding: 12px;

        background: #ffffff;
        border-radius: 0 0 16px 16px;

        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        width: 100%;
        margin: 0;
        padding: 0;

        list-style: none;
    }

    .navbar #hauptnavigation a {
        display: block;

        width: 100%;
        padding: 14px 16px;

        border-radius: 8px;

        color: #222222;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;

        overflow-wrap: anywhere;
    }

    .navbar #hauptnavigation a:hover,
    .navbar #hauptnavigation a:focus-visible {
        background: #fff0f1;
        color: #e30613;
    }
}


/* Abstand wegen festem Header */



.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #e30613;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
}

.page-header-text {
    max-width: 760px;
    color: #555555;
    font-size: 20px;
    line-height: 1.7;
}

.page-header-text p {
    margin: 0;
}

.news-section {
    padding: 45px 0 100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: stretch;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .13);
}

.news-image-link {
    display: block;
    overflow: hidden;
}

.news-image-link img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

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

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.news-date,
.news-detail time {
    display: block;
    margin-bottom: 13px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.news-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.news-card h2 a {
    color: #222222;
    text-decoration: none;
}

.news-card p {
    margin: 0 0 22px;
    color: #555555;
    font-size: 17px;
    line-height: 1.65;
}

.news-read-more {
    margin-top: auto;
    color: #e30613;
    font-weight: 800;
    text-decoration: none;
}

.news-read-more:hover,
.news-read-more:focus-visible {
    color: #b8000d;
}

.news-empty {
    grid-column: 1 / -1;
    padding: 35px;
    background: #ffffff;
    border-radius: 14px;
}

/* Einzelne News */
.news-detail {
    padding: 70px 0 100px;
}

.news-detail-container {
    max-width: 1000px;
    padding: 48px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

.news-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #e30613;
    font-weight: 700;
    text-decoration: none;
}

.news-detail h1 {
    margin: 0 0 30px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
}

.news-detail-image {
    display: block;
    width: 100%;
    max-height: 600px;
    margin-bottom: 35px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}

.news-detail-content {
    color: #444444;
    font-size: 18px;
    line-height: 1.8;
}

.news-detail-content p,
.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 22px;
}

@media (max-width: 1000px) {
.container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .page-header {
        padding: 55px 0 35px;
    }

    .news-section {
        padding: 30px 0 65px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .news-image-link img {
        height: 235px;
    }

    .news-detail-container {
        padding: 28px 20px;
    }
}

/* =========================
         Footer
========================= */

.site-footer {
    padding: 28px 0;
    background: #111827;
    color: #ffffff;
}

.site-footer .footer-inhalt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright,
.footer-ersteller {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-rechtliches {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer a,
.site-footer a:visited {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ff626c;
    text-decoration: none;
}

.site-footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-trenner,
.footer-haupttrenner {
    color: #6b7280;
}

.footer-ersteller a {
    margin-left: 4px;
}

/* Tablet */
@media (max-width: 850px) {
    .site-footer .footer-inhalt {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 16px;
    }
}

/* Smartphone */
@media (max-width: 550px) {
    .site-footer {
        padding: 24px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-haupttrenner {
        display: none;
    }

    .footer-copyright,
    .footer-ersteller,
    .site-footer a {
        font-size: 13px;
    }
}


/* =========================
   News-Hero
========================= */

.news-hero {
     min-height:100vh;

    display:flex;
    align-items:center;

    position:relative;

    overflow:hidden;

    background-image: var(
        --news-hero-bild,
        url("../jpg/news/Symbolbild_BF.jpg")
    );
    background-repeat: no-repeat;
    background-position: center 45%;
    background-size: cover;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        90deg,
        rgba(10, 16, 24, 0.88) 0%,
        rgba(10, 16, 24, 0.78) 30%,
        rgba(10, 16, 24, 0.55) 55%,
        rgba(10, 16, 24, 0.30) 78%,
        rgba(10, 16, 24, 0.18) 100%
    );

    pointer-events: none;
}

.news-hero .news-hero-content {
    position: relative;
    z-index: 1;

    width: 90%;
    max-width: 1450px;
    min-width: 0;
    margin: 0 auto;
}

.news-hero .section-tag {
    color: #ff737b;
}

.news-hero .news-hero-content h1 {
    max-width: 680px;
    margin: 0 0 25px;

    color: #ffffff;
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1.08;

    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.news-hero .news-hero-content p {
    max-width: 590px;
    margin: 0;

    color: #f0f2f5;
    font-size: 22px;
    line-height: 1.7;
}

/* =========================
   Tablet
========================= */

@media (min-width: 601px) and (max-width: 1000px) {
    .news-hero .news-hero-content {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* =========================
   Smartphone
========================= */

@media (max-width: 600px) {
    .news-hero {
        min-height: 620px;
        padding: 50px 0;
        background-position: 75% center;
    }

    .news-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 16, 24, 0.84) 0%,
            rgba(10, 16, 24, 0.76) 40%,
            rgba(10, 16, 24, 0.58) 75%,
            rgba(10, 16, 24, 0.40) 100%
        );
    }

    .news-hero .news-hero-content {
        width: 100%;
        max-width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .news-hero .news-hero-content h1 {
        max-width: 100%;
        margin-bottom: 18px;

        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.12;
    }

    .news-hero .news-hero-content p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.65;
    }
}
/* Mobile Header exakt wie auf der Startseite */
@media (max-width: 1000px) {
    header {
        background: transparent;
    }

    .navbar .logo-text h2 {
        font-family: 'Inter', sans-serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 1;
    }

    .navbar .logo-text span {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 400;
    }

    .mobile-menu-button {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
    }
}

/* Smartphone: Hero ohne weisse Aussenabstaende */
@media (max-width: 600px) {
    html,
    body,
    body.news-page,
    body.news-page main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .news-hero {
        width: 100vw;
        max-width: none;
        margin: 0;
        margin-left: calc(50% - 50vw);
        padding: 42px 0;
        border: 0;
        border-radius: 0;
        background-size: cover;
    }

    .news-hero .news-hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-right: 20px;
        padding-left: 20px;
    }
}


/* =========================================================
   Einheitliche Navigation nach dem Standard der Galerie-Seite
========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 110px;
}

.mobile-menu-button {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:focus-visible {
    color: inherit;
    text-decoration: none;
}

.logo-icon img {
    display: block;
    width: auto;
    height: 120px;
    object-fit: contain;
}

.logo-text h2 {
    margin: 0;
    color: #e30613;
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    line-height: 1;
}

.logo-text span {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

#hauptnavigation ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header .navbar #hauptnavigation ul li a {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500 !important;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

header .navbar #hauptnavigation ul li a:hover,
header .navbar #hauptnavigation ul li a:focus-visible {
    color: #d70000;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .navbar {
        height: auto;
        min-height: 90px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .navbar .logo-icon img {
        width: 65px;
        max-width: none;
        height: auto;
    }

    .navbar .logo-text h3 {
        margin: 0;
        font-size: 12px;
    }

    .navbar .logo-text span {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: auto;
        padding: 12px 16px;
        border: 0;
        border-radius: 10px;
        background: #e30613;
        color: #ffffff;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        display: none;
        width: min(280px, 100%);
        padding: 12px;
        background: #ffffff;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    header .navbar #hauptnavigation ul li a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        border-radius: 8px;
        color: #222222;
        font-size: 16px;
        font-weight: 500 !important;
        overflow-wrap: anywhere;
    }

    header .navbar #hauptnavigation ul li a:hover,
    header .navbar #hauptnavigation ul li a:focus-visible {
        background: #fff0f1;
        color: #e30613;
    }
}


/* =========================================================
   Einheitlicher Hero-Bereich nach dem Standard der Galerie
========================================================= */
.news-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 850px;
    height: 850px;
    max-height: 850px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero .news-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 70px;
    padding-bottom: 70px;
}

@media (max-width: 650px) {
    html,
    body,
    body main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .news-hero {
        width: 100vw;
        min-height: 620px;
        height: 620px;
        max-height: 620px;
        margin: 0;
        margin-left: calc(50% - 50vw);
        padding: 0;
        background-size: cover;
        background-position: center;
    }

    .news-hero .news-hero-content {
        width: 100%;
        max-width: 100%;
        padding-top: 55px;
        padding-bottom: 55px;
    }
}



/* =========================================================
   GEÖFFNETE NEWS-ARTIKEL
   Schwarzer Header und Footer am unteren Fensterrand
   ========================================================= */


/* Gesamte Seite mindestens so hoch wie das Browserfenster */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* =========================================================
   NAVIGATION MIT DUNKLEM HINTERGRUND
   ========================================================= */

body:has(.news-detail),
body:has(.news-post),
body:has(.news-article),
body:has(.news-single),
body:has(.news-artikel) {
    background: #f5f6f8;
}


/*
 * Dunkler Header auf einer geöffneten News-Seite.
 * Die verschiedenen Selektoren berücksichtigen mögliche
 * Klassennamen deines bestehenden Themes.
 */
body:has(.news-detail) header,
body:has(.news-post) header,
body:has(.news-article) header,
body:has(.news-single) header,
body:has(.news-artikel) header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #080808;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);

    opacity: 1;
    visibility: visible;
    transform: none;
}


/* Navigation sichtbar halten */

body:has(.news-detail) header nav,
body:has(.news-post) header nav,
body:has(.news-article) header nav,
body:has(.news-single) header nav,
body:has(.news-artikel) header nav {
    opacity: 1;
    visibility: visible;
}


/* Navigationslinks weiß darstellen */

body:has(.news-detail) header nav a,
body:has(.news-post) header nav a,
body:has(.news-article) header nav a,
body:has(.news-single) header nav a,
body:has(.news-artikel) header nav a {
    color: #ffffff;
}


/* Hover und aktive Seite */

body:has(.news-detail) header nav a:hover,
body:has(.news-post) header nav a:hover,
body:has(.news-article) header nav a:hover,
body:has(.news-single) header nav a:hover,
body:has(.news-artikel) header nav a:hover,
body:has(.news-detail) header nav a.active,
body:has(.news-post) header nav a.active,
body:has(.news-article) header nav a.active,
body:has(.news-single) header nav a.active,
body:has(.news-artikel) header nav a.active {
    color: #e30613;
}


/* Logo sichtbar halten */

body:has(.news-detail) header .logo,
body:has(.news-post) header .logo,
body:has(.news-article) header .logo,
body:has(.news-single) header .logo,
body:has(.news-artikel) header .logo,
body:has(.news-detail) header .site-logo,
body:has(.news-post) header .site-logo,
body:has(.news-article) header .site-logo,
body:has(.news-single) header .site-logo,
body:has(.news-artikel) header .site-logo {
    opacity: 1;
    visibility: visible;
}


/*
 * Falls der Header durch dein Scroll-JavaScript
 * die Klasse header-hidden bekommt.
 */
body:has(.news-detail) header.header-hidden,
body:has(.news-post) header.header-hidden,
body:has(.news-article) header.header-hidden,
body:has(.news-single) header.header-hidden,
body:has(.news-artikel) header.header-hidden {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   INHALT UND FOOTER
   ========================================================= */

/*
 * Der Hauptinhalt nimmt den verbleibenden Platz ein.
 * Dadurch wird der Footer nach unten geschoben.
 */
body > main,
body .page-content,
body .site-content {
    flex: 1 0 auto;
}


/*
 * Footer bleibt am unteren Fensterrand,
 * wird aber nicht über dem Artikel eingeblendet.
 */
body > footer,
body .site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}


/* Kein zusätzlicher Freiraum unter dem Footer */

body > footer:last-child,
body .site-footer:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ABSTAND ZWISCHEN HEADER UND ARTIKELKARTE
   ========================================================= */

body:has(.news-detail) main,
body:has(.news-post) main,
body:has(.news-article) main,
body:has(.news-single) main,
body:has(.news-artikel) main {
    padding-top: 45px;
    padding-bottom: 70px;
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 900px) {
    body:has(.news-detail) main,
    body:has(.news-post) main,
    body:has(.news-article) main,
    body:has(.news-single) main,
    body:has(.news-artikel) main {
        padding-top: 30px;
        padding-bottom: 45px;
    }
}