/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.20260523
*/

/* === RESET === */
* { box-sizing: border-box; }

/* Inhaltsbreite (Header/Subnav/Seiten wie SZ: eine Spalte) */
html {
    overscroll-behavior-y: none;
    --ff-layout-max: 1000px;
    --ff-layout-gutter: clamp(16px, 4vw, 48px);
    /* Partner-Seite: Spalte wie Site-Grid; Trennlinien + Bleed darauf */
    --ff-partner-rule-column-max: var(--ff-layout-max);
    --ff-partner-rule-bleed: 120px;
    --ff-partner-rule-color: #cbcbcb;
    /* Haupt-Scrollbar rechts am Viewport: rot / weiß (Firefox + IE-nachfolger Engines) */
    scrollbar-width: thin;
    scrollbar-color: #b43526 #ffffff;
}

/* Dokument-/Viewport-Scrollbar (WebKit, Chromium klassisch — z. B. Windows) */
html::-webkit-scrollbar {
    width: 10px;
}
html::-webkit-scrollbar-track {
    background: #ffffff;
}
html::-webkit-scrollbar-thumb {
    background: #b43526;
    border-radius: 6px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: #942c1f;
}
html::-webkit-scrollbar-corner {
    background: #ffffff;
}
/* Pfeilflächen: weiß mit rotem Chevron (wenn der UA sie zeichnet) */
html::-webkit-scrollbar-button:single-button {
    display: block;
    height: 12px;
    width: 10px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}
html::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 7l4-4 4 4' fill='none' stroke='%23b43526' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%23b43526' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html::-webkit-scrollbar-button:single-button:hover {
    background-color: rgba(180, 53, 38, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f2f3f5;
    color: #222;
    margin: 0;
}

/* === GP KOMPLETT AUSBLENDEN === */
.site-header,
#right-sidebar,
.sidebar,
.inside-article > .entry-meta:last-child,
.entry-summary,
.comments-link,
.site-content > .ast-container,
.page-header {
    display: none !important;
}

/* === GP CONTAINER RESET === */
.site-content,
.site-content .content-area,
.separate-containers .content-area,
.one-container .content-area,
body.right-sidebar .site-content .content-area,
body.right-sidebar .content-area,
.grid-container,
.site-body-container-padding {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.separate-containers .inside-article,
.separate-containers .site-main > article,
.separate-containers .paging-navigation {
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.site {
    margin: 0 !important;
    padding: 0 !important;
}

.inside-site-info,
.footer-widgets-container {
    display: none !important;
}

/* ============================================
   HEADER
   ============================================ */
.ff-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    z-index: 100;
}

.ff-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    margin: 0 auto;
    padding: 10px 40px;
}

.ff-logo img {
    max-height: 44px;
    width: auto;
}

.ff-header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.ff-search {
    position: relative;
    display: flex;
    align-items: center;
}

.ff-search input[type="search"] {
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    padding: 8px 38px 8px 16px;
    font-size: 13px;
    width: 190px;
    outline: none;
    background: #f5f5f5;
    transition: border-color 0.2s, width 0.2s, background 0.2s;
}

.ff-search input[type="search"]:focus {
    border-color: #c62828;
    width: 250px;
    background: #fff;
}

.ff-search button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.ff-search button svg {
    width: 16px;
    height: 16px;
    stroke: #aaa;
}

.ff-meta-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ff-meta-nav a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.ff-meta-nav a:hover { color: #c62828; }

.ff-plus-btn {
    background: #c62828 !important;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 22px;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}

.ff-plus-btn:hover { background: #a01010 !important; }

/* ============================================
   NAVIGATION
   ============================================ */
.ff-main-nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 2px solid #c62828;
}

ul.ff-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
}

ul.ff-menu > li { position: relative; }

ul.ff-menu > li > a {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

ul.ff-menu > li > a:hover { color: #c62828; }

/* Vertikale Trennlinie zwischen Menüpunkten */
ul.ff-menu > li + li {
    border-left: 1px solid #e0e0e0;
}

.ff-menu-item-home a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ff-nav-icon-home {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.ff-menu-item-home a:hover .ff-nav-icon-home { stroke: #c62828; }

/* Dropdown */
ul.ff-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2px solid #c62828;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    max-height: 380px;
    overflow-y: auto;
    width: 240px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
}

ul.ff-menu > li:hover > ul.sub-menu { display: block; }

ul.ff-menu ul.sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

ul.ff-menu ul.sub-menu li a:hover {
    background: #fdf0f0;
    color: #c62828;
}

ul.ff-menu ul.sub-menu::-webkit-scrollbar { width: 5px; }
ul.ff-menu ul.sub-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ============================================
   KACHEL-GRID (STARTSEITE / ARCHIV)
   ============================================ */
#main.site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    margin: 0 auto;
    padding: 32px 40px;
}

/* === KACHEL === */
#main.site-main > article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

/* Bild OBEN (order) */
#main.site-main > article .post-image {
    order: 1;
    overflow: hidden;
}

#main.site-main > article .post-image a {
    display: block;
    line-height: 0;
}

#main.site-main > article .post-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Header (Titel + Meta) UNTER dem Bild */
#main.site-main > article .entry-header {
    order: 2;
    padding: 18px 20px 16px;
}

/* Meta (Datum + Autor) */
#main.site-main > article .entry-header .entry-meta {
    display: block !important;
    margin-bottom: 6px;
}

#main.site-main > article .entry-header .entry-meta .posted-on {
    font-size: 12px;
    color: #999;
}

#main.site-main > article .entry-header .entry-meta .byline {
    font-size: 12px;
    color: #bbb;
}

#main.site-main > article .entry-header .entry-meta .byline a {
    color: #bbb;
    text-decoration: none;
}

/* Titel */
#main.site-main > article .entry-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

#main.site-main > article .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

#main.site-main > article .entry-title a:hover {
    color: #c62828;
}

/* inside-article als transparent */
#main.site-main > article .inside-article {
    display: contents;
}

/* Excerpt + Footer Meta weg */
.blog #main.site-main > article .entry-summary,
.archive #main.site-main > article .entry-summary,
.home #main.site-main > article .entry-summary,
.blog #main.site-main > article .entry-content,
.archive #main.site-main > article .entry-content,
.home #main.site-main > article .entry-content {
    display: none;
}

/* ============================================
   PAGINATION
   ============================================ */
.paging-navigation,
.posts-navigation {
    grid-column: 1 / -1;
    width: 100%;
}

.separate-containers .paging-navigation {
    background: none !important;
}

.paging-navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 35px 0 10px;
}

.paging-navigation .nav-links a,
.paging-navigation .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 10px;
}

.paging-navigation .nav-links a {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
}

.paging-navigation .nav-links a:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

.paging-navigation .nav-links span.current {
    background: #c62828;
    color: #fff;
}

/* ============================================
   EINZELBEITRAG
   ============================================ */
.single #main.site-main {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px;
}

.single #main.site-main > article {
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    background: #fff;
    overflow: hidden;
}

.single #main.site-main > article .post-image img {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.single #main.site-main > article .entry-header {
    padding: 28px 36px 0;
}

.single #main.site-main > article .entry-title {
    font-size: 26px;
    line-height: 1.3;
}

.single #main.site-main > article .entry-header .entry-meta {
    margin-top: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.single .entry-content {
    display: block !important;
    padding: 24px 36px 40px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.single .entry-content p {
    margin-bottom: 20px;
}

.single .entry-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 16px 0;
}

.single .entry-content a {
    color: #c62828;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Post Navigation */
.post-navigation {
    max-width: 860px;
    margin: 24px auto;
    padding: 0 40px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-navigation .nav-links a {
    display: block;
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-navigation .nav-links a:hover { color: #c62828; }

/* ============================================
   FOOTER – ausgelagert in ff-footer.css (Logo mittig, Links, Social, Scroll-Pfeil)
   ============================================ */

/* ============================================
   CUSTOM PAGE TEMPLATES – ALLGEMEIN
   ============================================ */
.ff-main {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    margin: 0 auto;
    padding: 32px 40px;
}

.ff-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 36px 40px 48px;
}

.ff-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ff-page-hero-image {
    margin: 0 -40px 24px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.ff-page-hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.ff-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c62828;
}

.ff-section-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #444;
    margin: 20px 0 12px;
}

.ff-page-intro {
    font-size: 14px;
    color: #777;
    margin: 0 0 20px;
}

.ff-back-link {
    margin: 0 0 20px;
}

.ff-back-link a {
    color: #c62828;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.ff-back-link a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #main.site-main {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    #main.site-main > article .post-image img {
        height: 200px;
    }

    .ff-header-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px 16px;
    }

    .ff-header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.ff-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.ff-menu > li > a {
        padding: 10px 10px;
        font-size: 11px;
    }

    .single #main.site-main {
        padding: 20px 16px;
    }

    .single .entry-content {
        padding: 20px 18px 30px;
    }

    .single #main.site-main > article .entry-header {
        padding: 20px 18px 0;
    }

    .single #main.site-main > article .entry-title {
        font-size: 20px;
    }

    /* Custom Templates responsive */
    /* Hubs/Karussell-Seiten: kein 20px-Unterrand vom generischen .ff-main-Padding */
    .ff-main:not(.ff-home) {
        padding: 20px 16px;
    }

    .ff-container {
        padding: 24px 18px 32px;
    }

    .ff-page-hero-image {
        margin: 0 -18px 20px;
    }

    .ff-page-hero-image img {
        height: 200px;
    }

    .ff-page-title {
        font-size: 22px;
    }

    .ff-section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Footer-Layout in ff-footer.css */
}

/* Verwandte Themen Home-Hub — Kasten 2, volle Zeilenbreite; größerer Abstand Kachel zu Kachel */
.ff-related-topics .ff-home-topic-row {
    --ff-topic-row-gap: clamp(22px, 3.2vw, 36px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ff-topic-row-gap);
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 250px)) !important;
    justify-content: center !important;
    gap: 30px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 810px !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
}
/* Desktop ≥1025px: nur 3 Thema-Karten (4. im Markup für Mobil 2×2) */
@media (min-width: 1025px) {
    main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-grid > .ff-sn-topic-card:nth-child(4) {
        display: none !important;
    }
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row h2,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row h3,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row p,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row span,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row a {
    font-style: normal;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    row-gap: 14px !important;
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    border-top: 1px solid #e3e3e3 !important;
    border-bottom: 1px solid #e3e3e3 !important;
    padding: 15px clamp(12px, 3.5vw, 36px) 30px !important;
}
/* Überschrift: etwas größer, enger an die Karten (row-gap oben) ohne anderes Layout zu sprengen */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 500 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #000 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ff-related-topics .ff-home-card--topic {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 17px;
    gap: 14px;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: 434px;
    height: 100%;
    align-self: stretch;
    flex: none;
    flex-grow: 0;
    background: #ffffff;
    border: 1px solid #e0e0e3;
    overflow: hidden;
    min-width: 0;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    height: auto;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 200 / 228;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    align-self: stretch;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px;
    text-align: left;
    box-sizing: border-box;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-excerpt {
    display: none;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-title {
    width: 100%;
    flex-shrink: 0;
    text-align: left;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-title-inner {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    word-break: break-word;
}
.ff-related-topics .ff-home-card--topic .ff-home-card-meta {
    align-self: stretch;
    width: 100%;
    margin-top: auto;
    padding: 0 10px;
    box-sizing: border-box;
}
/* Single „Mehr Beiträge“ – Karten 250px, Bild 250×186 (Ratio wie Figma 179×133) */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 250px !important;
    min-height: 100% !important;
    height: 100% !important;
    align-self: stretch !important;
    text-decoration: none !important;
    color: #000 !important;
    gap: 14px !important;
    margin-inline: auto !important;
    transition: none !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:focus {
    color: #111;
    text-decoration: none;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover .ff-sn-topic-card-title {
    color: #000;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover .ff-sn-topic-card-excerpt {
    color: #111;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover .ff-sn-topic-card-rubrik--de,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover .ff-sn-topic-card-rubrik--int {
    color: #b43526;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-img {
    width: 250px !important;
    max-width: 100% !important;
    height: 186px !important;
    aspect-ratio: 250 / 186 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
}
/* Gegen ff-single-v2 „body.single article img“ (margin 24px, height:auto, Schatten) */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
    object-position: center;
    display: block !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    gap: 17px !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    align-self: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    align-self: stretch !important;
    gap: 1px !important;
    width: 100% !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-rubrik-wrap {
    flex-shrink: 0 !important;
    width: 100% !important;
    min-height: 14px !important;
}
/* Rubrik: Barlow Condensed 400 / 14px / Zeile 100 % */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-rubrik {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-rubrik--de,
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-rubrik--int {
    color: #b43526 !important;
}
/* Titel: Barlow Semi Condensed 600 / 17px / Zeile 100 % */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-title {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: calc(17px * 2) !important;
    max-height: calc(17px * 2) !important;
    height: calc(17px * 2) !important;
    box-sizing: border-box !important;
}
/* Teaser 3×15px + „mehr“ 15px (Zeile 100 %) */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-lead {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    height: calc(15px * 4) !important;
    min-height: calc(15px * 4) !important;
    max-height: calc(15px * 4) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
/* Teasertext: Barlow Semi Condensed 400 / 15px / Zeile 100 % */
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-excerpt {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    max-height: calc(15px * 3) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-mehr {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    color: #b43526 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card:hover .ff-sn-mehr {
    color: #b43526;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-meta {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    align-self: stretch !important;
    gap: 17px !important;
    margin-top: auto !important;
    padding: 0 !important;
    min-height: 14px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    color: #000 !important;
    flex-shrink: 0 !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-comments {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    min-height: 14px !important;
    line-height: 1 !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-comments svg {
    flex-shrink: 0 !important;
    display: block !important;
    width: 16px !important;
    height: 15px !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-actions svg {
    flex-shrink: 0 !important;
    display: block !important;
    width: 15px !important;
    height: 18px !important;
}
@media (max-width: 900px) {
    .ff-related-topics .ff-home-topic-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ff-topic-row-gap);
    }
}
@media (max-width: 470px) {
    .ff-related-topics .ff-home-topic-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ff-topic-row-gap);
    }
    .ff-related-topics .ff-home-card--topic {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 434px;
        margin: 0;
    }
    .ff-related-topics .ff-home-card--topic .ff-home-card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 200 / 228;
    }
}
@media (max-width: 1024px) {
    main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 250px)) !important;
        justify-content: center !important;
        gap: 16px !important;
        max-width: 516px !important;
    }
}
@media (max-width: 600px) {
    .ff-related-topics .ff-home-topic-row {
        gap: var(--ff-topic-row-gap);
    }
    /* „Mehr Beiträge zum Thema“: 2 Spalten nebeneinander (Desktop ≥601px / >1024 unverändert 3er) */
    main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        gap: clamp(8px, 2.5vw, 14px) !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card {
        max-width: none !important;
        width: 100% !important;
        margin-inline: 0 !important;
    }
    main.ff-main.ff-single-fv .ff-related-topics.ff-sn-topic-row .ff-sn-topic-card-img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 250 / 186 !important;
    }
}
@media (max-width: 480px) {
    .ff-related-topics .ff-home-card--topic .ff-home-card-body {
        max-width: 100%;
    }
}

/* ============================================
   STICKY FOOTER – Global für alle Seiten
   Body wird zum Grid: Header | Content | Footer
   ============================================ */
html, body { min-height: 100%; }
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}
body > *:nth-child(2) { min-height: 0; }
/* Fallback: wenn Theme nur ein Wrapper-Kind hat (z.B. #page) */
body > *:only-child {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
}
body > *:only-child > *:nth-child(2) { min-height: 0; }
