/*
 Theme Name:   GeneratePress Child (Wissensdatenbank)
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme für die strukturierte Wissensdatenbank.
 Author:       Antigravity
 Author URI:   
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* --- Hub-Seite (Startseite) CSS --- */
/* Importiere moderne Fonts (Inter für Fließtext, Merriweather für Überschriften) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

.hub-container {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
}

h1, h2, h3, h4, h5, h6, .hub-section-title, .hub-category-title, .hub-post-title {
    font-family: 'Merriweather', serif;
}

/* Hub-spezifisches Styling */
.hub-hero {
    background-color: #f1f5f9;
    /* Ice gray (very light slate) */
    color: #1a202c; /* Dunkler Text für den hellen Hintergrund */
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid rgba(0,0,0,0.05); /* Leichter Rand für etwas Tiefe auf weißem Body */
}

.hub-hero h1 {
    color: #1a202c;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hub-hero p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    color: #4a5568;
}

/* Hero Search Bar Styling */
.hub-hero-search {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
}

.hub-hero-search form {
    display: flex;
    width: 100%;
    margin: 0;
}

/* Einige Themes wickeln den Input in ein Label, das wir auch flexen müssen */
.hub-hero-search form label {
    flex-grow: 1;
    display: flex;
    margin: 0;
}

.hub-hero-search .search-field {
    flex-grow: 1;
    width: 100%;
    border: none !important;
    padding: 20px 25px;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
    outline: none;
    background: transparent;
    color: #2d3748;
}

.hub-hero-search .search-field:focus {
    box-shadow: none !important;
}

.hub-hero-search .search-submit {
    flex-shrink: 0; /* Verhindert das Quetschen des Buttons */
    min-width: 80px; /* Garantiert genug Platz für das Lupe-Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f49c62;
    color: #ffffff;
    border: none;
    padding: 0 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hub-hero-search .search-submit:hover {
    background-color: #e3864a;
}

/* Hero CTA styles removed (Option 3) */

.hub-cta-btn {
    display: inline-block;
    padding: 16px 36px;
    background-color: #f49c62;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hub-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #f8fafc;
}

.hub-section {
    margin-bottom: 70px;
}

.hub-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.hub-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #f49c62;
    border-radius: 2px;
}

/* 4-Spalten Themen Grid */
.hub-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1500px) {

    /* Breakpoint extrem hochgesetzt, damit Laptops (auch mit 1920px bei Skalierung) eher 2x2 anzeigen */
    .hub-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hub-categories-grid {
        grid-template-columns: 1fr;
    }
}

.hub-category-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    /* Padding reduziert, damit der Text bei 4 Spalten mehr Platz hat */
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Kategorie-Bilder auf der Startseite */
.hub-category-image-wrap {
    margin: -25px -20px 20px -20px;
    /* Angepasst an das neue Card-Padding */
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* Sichert weißen Hintergrund ab */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* Dezente Trennlinie */
}

.hub-category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* WICHTIG: Icons nicht abschneiden (cover), sondern komplett einpassen! */
    padding: 20px;
    /* Etwas Luft drumherum, damit das Icon nicht an den Rand stößt */
    display: block;
    mix-blend-mode: multiply;
    /* Verhindert weiße Ränder, falls die Icon-Hintergrundfarbe minimal vom Card-Weiß abweicht */
    transition: transform 0.4s ease;
}

.hub-category-card:hover .hub-category-image {
    transform: scale(1.05);
}

.hub-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f49c62;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-category-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.hub-category-card:hover::before {
    opacity: 1;
}

.hub-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #667985;
}

.hub-category-desc {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    flex-grow: 1;
}

/* Artikel Liste / Grid */
.hub-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.hub-post-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    /* Padding moved to .hub-post-content to allow edge-to-edge images */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Clips the top corners of the image */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Ultimate hack to force border-radius clipping on stubborn images */
    mask-image: radial-gradient(white, black);
}

.hub-post-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.hub-post-image-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0;
    /* Ecken werden vom Parent (.hub-post-card) abgeschnitten */
}

.hub-post-image {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 0;
    /* Ecken werden vom Parent abgeschnitten um Doppel-Abrundungs-Artefakte zu meiden */
}

.hub-post-card:hover .hub-post-image {
    transform: scale(1.05);
}

/* --- Featured Article "Hero Grid" Layout --- */
.hub-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .hub-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Feature (große linke Karte) */
.hub-feature-main {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.hub-feature-main .hub-feature-image-link {
    display: block;
    width: 100%;
}

.hub-feature-main .hub-feature-image {
    width: 100%;
    height: 350px; /* Feste Höhe für dramatisches Bild */
    object-fit: cover;
    display: block;
}

.hub-feature-main .hub-feature-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hub-feature-main .hub-feature-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.hub-feature-main .hub-feature-title a {
    color: #1a202c;
    text-decoration: none;
}
.hub-feature-main .hub-feature-title a:hover {
    color: #f49c62;
}

/* Side Features (kleinere rechte Karten) */
.hub-feature-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-feature-small {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-feature-small .hub-feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hub-feature-small .hub-feature-title a {
    color: #1a202c;
    text-decoration: none;
}
.hub-feature-small .hub-feature-title a:hover {
    color: #f49c62;
}

.hub-read-more-text {
    font-weight: 600;
    color: #f49c62;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 15px;
    display: inline-block;
}
.hub-read-more-text:hover {
    text-decoration: underline;
}

.hub-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ensures text takes up remaining vertical space */
}

.hub-post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 12px;
}

.hub-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.hub-post-title a:hover {
    color: #f49c62;
}

.hub-post-meta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-post-excerpt {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.hub-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a5568;
    background-color: #f1f5f9; /* Dezentes hellgrau */
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    align-self: flex-start; /* Verhindert, dass der Button über die ganze Breite geht */
    margin-top: auto; /* Pusht den Button an den unteren Rand der Karte */
}

.hub-read-more:hover {
    background-color: #f49c62; /* Orange Hover */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 156, 98, 0.3);
}

.hub-read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s;
}

.hub-read-more:hover::after {
    transform: translateX(4px);
}

/* Content Views Pro Grid Anpassungen (falls nötig) */
.pt-cv-wrapper {
    margin-top: 30px;
}

/* --- Kategorie-Seiten (Archive) Pareto-Optimierung --- */

/* Flacherer Hero für Kategorie-Seiten */
.hub-hero.category-hero {
    padding: 40px 20px; /* Reduziert von 80px */
}

.hub-hero.category-hero p {
    margin-bottom: 0; /* Entfernt den großen 40px margin unten */
}

/* 1. Archive Hero (Titel & Beschreibung) */
.archive .page-header {
    background-color: transparent !important; /* Entfernt die graue Box */
    border: none !important;
    text-align: center;
    padding: 20px 20px 20px !important; /* Kompakter, da keine Suchleiste */
    max-width: 900px;
    margin: 0 auto;
}

.archive .page-title {
    font-family: 'Merriweather', serif; /* Seriöse Serifenschrift */
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

.archive .taxonomy-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 750px;
    margin: 0 auto;
}

/* 2. Archive Post Kacheln (Angleichung an Startseite) */
.archive .generate-columns-container .post .inside-article {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Weicherer, eleganter Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.archive .generate-columns-container .post .inside-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Schwebender Effekt */
}

/* Artikelbild in der Kachel */
.archive .post-image {
    margin: 0 !important; /* GeneratePress Standard-Margin entfernen */
}

.archive .post-image img {
    border-radius: 12px 12px 0 0; /* Nur oben abgerundet */
    width: 100%;
    height: 200px; /* Einheitliche Höhe wie auf Startseite */
    object-fit: cover;
    display: block;
}

/* Textbereich in der Kachel */
.archive .entry-header, 
.archive .entry-summary {
    padding: 25px;
}

.archive .entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.archive .entry-title a {
    color: #1a202c;
    text-decoration: none;
}

.archive .entry-title a:hover {
    color: #f49c62;
}

/* Meta-Daten (Datum, Kategorie) leiser machen */
.archive .entry-meta {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.archive .entry-meta a {
    color: #4299e1; /* Dezentes Blau statt grell */
    text-decoration: none;
}

/* Read More Button (GeneratePress Standard umstylen) */
.archive .read-more {
    display: inline-block;
    margin-top: auto; /* Drückt den Button nach unten */
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #f8fafc;
    color: #2b6cb0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.archive .read-more:hover {
    background-color: #e2e8f0;
}

/* 3. SEO Text-Box unten (Archive Footer) */
.archive .generate-columns-container + .category-seo-text,
.category-seo-text {
    margin-top: 60px;
    padding: 50px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Leichter Schatten */
    border: 1px solid rgba(0, 0, 0, 0.04);
    line-height: 1.8; /* Sehr wichtig für Lesbarkeit */
    font-size: 1.05rem;
    color: #4a5568;
}

.category-seo-text h2,
.category-seo-text h3 {
    color: #1a202c;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Zwei-Spalten-Trick für den SEO Text auf großen Bildschirmen (optional, falls es zu viel Text ist) */
@media (min-width: 1024px) {
    .category-seo-text {
        column-count: 2;
        column-gap: 50px;
    }
    
    .category-seo-text h2, 
    .category-seo-text h3 {
        column-span: all; /* Überschriften brechen nicht um */
    }
}

/* --- Einzelne Beiträge (Wissensdatenbank / Doc-Style Layout) --- */

/* Textbereich schmaler machen, damit er angenehm zu lesen ist */
body.single-post .site-content .content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* Typografie im Beitrag auflockern */
body.single-post .entry-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5em;
}

body.single-post .entry-content h2 {
    font-size: 2rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #1a202c;
}

body.single-post .entry-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    color: #2d3748;
}

/* Sidebar Styling (statisch, da Sticky in GP oft Layout-Probleme verursacht) */
body.single-post .sidebar-right {
    padding-top: 20px;
}

/* Scrollbar für das Inhaltsverzeichnis aufhübschen, wenn es sehr lang ist */
body.single-post .sidebar-right::-webkit-scrollbar {
    width: 6px;
}
body.single-post .sidebar-right::-webkit-scrollbar-track {
    background: transparent;
}
body.single-post .sidebar-right::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 10px;
}

/* --- Neues Inhaltsverzeichnis (LuckyWP TOC) Styling --- */

/* Die äußere Box */
.sidebar-right .lwptoc,
body .lwptoc {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 30px 0 !important;
}

/* Die innere Box des Inhaltsverzeichnisses */
.sidebar-right .lwptoc_i,
body .lwptoc_i {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    background: #f8fafc !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Titel anpassen */
.sidebar-right .lwptoc_title,
body .lwptoc_title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 15px !important;
}

.sidebar-right .lwptoc_toggle,
body .lwptoc_toggle {
    font-size: 0.8rem !important;
    color: #718096 !important;
}

/* Links im Inhaltsverzeichnis: Weg vom Standard-Blau, hin zu edlem Grau/Orange */
.sidebar-right .lwptoc_item a,
body .lwptoc_item a,
.lwptoc_item a:link,
.lwptoc_item a:visited {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4a5568 !important; /* Dezentes dunkles Grau statt Plugin-Blau */
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

/* Hover-Effekt mit unserer CI-Farbe (Orange) */
.sidebar-right .lwptoc_item a:hover,
body .lwptoc_item a:hover,
.lwptoc_item a:hover {
    color: #f49c62 !important; 
}

/* Listenpunkte auflockern */
.sidebar-right .lwptoc_item,
body .lwptoc_item {
    margin-bottom: 8px !important;
}

/* --- Brevo Newsletter Widget Fix --- */

/* Verhindere, dass die reCAPTCHA Box im Brevo Formular aus der Sidebar ausbricht */
.sidebar #sib_embed_signup {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Schneidet alles ab, was ausbricht */
}

.sidebar .sib_signup_box_inside_1 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* Brevo Wrap explizit auf 100% Breite zwingen */
.sidebar .sib-container {
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; 
}

/* Das reCAPTCHA iFrame anpassen, ohne es abzuschneiden */
.sidebar .g-recaptcha,
.sidebar .sib_signup_box_inside_1 .g-recaptcha,
.sidebar iframe[src*="recaptcha"] {
    transform: scale(0.8) !important; /* Scale moderat, damit man es noch gut lesen kann */
    transform-origin: left center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 5px;
}

/* --- Startseite Intro Text --- */
.hub-intro-text {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    line-height: 1.8;
    color: #4a5568;
    font-size: 1.1rem;
}

.hub-intro-text h2 {
    font-size: 2rem;
    color: #212529;
    margin-bottom: 5px;
}

.hub-intro-meta {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
}

.hub-intro-text p {
    margin-bottom: 1.5em;
}

.hub-inline-cta {
    display: inline-block;
    font-weight: 700; /* Auf lesbarere Stärke zurückgesetzt */
    color: #ffffff !important; /* Weißer Text für Kontrast */
    background-color: #f49c62; /* Oranger Hintergrund auch hier */
    text-decoration: none;
    font-size: 1.15rem; /* Etwas dezenter als vorher */
    padding: 12px 30px;
    border-radius: 50px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 156, 98, 0.4); /* Starker Schatten */
    animation: cta-pulse 3s infinite; /* Pulsierende Animation verlangsamt für mehr Ruhe */
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 156, 98, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(244, 156, 98, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 156, 98, 0);
    }
}

.hub-inline-cta:hover {
    transform: translateY(-3px);
    background-color: #e3864a;
    box-shadow: 0 6px 20px rgba(244, 156, 98, 0.6);
    text-decoration: none;
}

/* --- Globaler Header Button (fürs Menü) und Holy Trinity Layout --- */
@media (min-width: 769px) {

    /* 1. Header Container Maximale Breite aufheben */
    .site-header {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important; /* Anker für Absolute Positionierung */
    }

    .site-header .inside-header,
    .site-header .grid-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Zentriert das Menü exakt zur Bildschirmmitte */
        position: static !important; 
        min-height: 80px; /* Platzhalterhöhe für die absolut positionierten Elemente */
    }

    /* 2. Logo absolut nach links pinnen */
    .site-branding, 
    .site-logo {
        position: absolute !important;
        left: 3vw !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 100;
        display: block !important;
    }

    /* 3. Navigation Wrappers komplett von Positionierungen befreien */
    #site-navigation,
    .main-navigation,
    .inside-navigation,
    .main-nav,
    .main-nav > ul {
        position: static !important; 
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Menüliste flexibel und mittig */
    .main-navigation .main-nav > ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important; 
    }

    /* Styling der regulären Menüpunkte */
    .main-navigation .main-nav ul li:not(.nav-cta-button) a {
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1.05em;
        font-weight: 600;
        white-space: nowrap;
    }

    /* 4. Der Button absolut nach rechts pinnen */
    .main-navigation .main-nav ul li.nav-cta-button {
        position: absolute !important;
        right: 3vw !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 100;
    }

    .main-navigation .main-nav ul li.nav-cta-button a {
        background-color: #f49c62;
        color: #ffffff !important;
        border-radius: 50px;
        padding: 0px 24px !important; /* Etwas dezenter */
        font-weight: 700; /* Auf lesbarere Stärke zurückgesetzt */
        font-size: 0.9em; /* Minimal kleiner */
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(244, 156, 98, 0.5); /* Stärkerer Basis-Schatten */
        line-height: 42px !important; /* Etwas dezenterer Button */
        display: inline-block !important;
        animation: cta-pulse 3s infinite; /* Gleiche pulsierende Animation, aber verlangsamt */
    }

    .main-navigation .main-nav ul li.nav-cta-button a:hover {
        background-color: #e3864a;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 156, 98, 0.6);
    }
}

/* ==========================================================================
   Wissenszentrum Footer Styles (Integriert)
   ========================================================================== */

/* Wir verstecken zunächst den Standard GeneratePress Footer, da wir einen eigenen bauen */
.site-info {
    display: none !important;
}

.wz-footer {
    background-color: #2d3748; /* Theme Dunkelgrau (#2d3748) */
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    padding: 60px 0 0 0;
    line-height: 1.6;
    margin-top: 50px;
}

/* Grid-Layout für die 4 Spalten */
.wz-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.wz-footer-heading {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wz-footer-text {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.wz-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wz-footer-links li {
    margin-bottom: 12px;
}

.wz-footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

/* Hover-Effekt mit der Theme Akzentfarbe (Orange) */
.wz-footer-links a:hover {
    color: #f49c62;
    padding-left: 6px;
}

/* Spezielles Styling für die Fortbildungs-Portale inkl. Logos */
.wz-portal-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wz-portal-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #f49c62; /* Icon in Akzentfarbe */
}

/* Portal Logos */
.wz-portal-logo-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    transition: all 0.2s ease;
    line-height: 0;
}

.wz-portal-logo-link:hover {
    border-color: #f49c62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wz-portal-img-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.wz-portal-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #f49c62;
    color: #ffffff;
    padding-left: 12px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bottom Footer (Copyright & Legal) */
.wz-footer-bottom {
    background-color: #1a202c; /* Sehr dunkles Grau als Kontrast */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wz-footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

.wz-footer-legal-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 20px;
}

.wz-footer-legal-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wz-footer-legal-links a:hover {
    color: #f49c62;
}

/* Responsive Anpassungen für Smartphones */
@media (max-width: 768px) {
    .wz-footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wz-footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* --- SEO Text / Checklist Styles --- */
.hub-intro-text {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: left;
}

.hub-seo-checklist {
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.hub-seo-checklist li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
}

.hub-seo-checklist li svg {
    flex-shrink: 0;
    margin-right: 15px;
    margin-top: 3px;
    color: #f49c62; /* Orange stroke color */
    display: block;
}

/* Primary CTA Button for the SEO section */
.hub-cta-btn {
    display: inline-block;
    background-color: #f49c62;
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 156, 98, 0.2);
    margin-top: 20px;
    border: none;
}

.hub-cta-btn:hover {
    background-color: #e3864a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 156, 98, 0.3);
}

/* ==========================================================================
   Responsive / Mobile Fixes
   ========================================================================== */

/* Fix 1: Hero-Titel skalieren + Fix 2: Seitenabstand für Kacheln */
@media (max-width: 768px) {
    .hub-hero {
        padding: 50px 16px;
        border-radius: 12px;
    }
    .hub-hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }
    .hub-hero p {
        font-size: 1rem;
    }
    .hub-section-title {
        font-size: 1.5rem;
    }
    .hub-section {
        margin-bottom: 50px;
    }
    .hub-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hub-categories-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hub-hero h1 {
        font-size: 1.5rem;
    }
    .hub-hero.category-hero h1 {
        font-size: 1.35rem;
    }
}

/* Fix 3: CTA-Button im Nav bei mittleren Breiten ausblenden
   (verhindert Überlappung mit Menüpunkten bei Landscape-Phone / kleinem Tablet) */
@media (min-width: 769px) and (max-width: 1100px) {
    .main-navigation .main-nav ul li.nav-cta-button {
        display: none !important;
    }
}