/* ============================================
   BLOCKY WRAPPER NEUTRALISIEREN
   ============================================ */

.ct-header-text[data-id="gFkBWe"],
[data-items] .ct-header-text[data-id="gFkBWe"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ct-header-text[data-id="gFkBWe"] .entry-content,
.ct-header-text[data-id="gFkBWe"] .entry-content.is-layout-flow {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* ============================================
   FIXED-COLUMNS LAYOUT
   ============================================ */

.fixed-columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.5rem;
    box-sizing: border-box;
}

.fixed-left {
    flex: 0 0 200px !important;
    width: 200px !important;
}

.fixed-right {
    flex: 1 1 0 !important;
    min-width: 0;
}

/* ============================================
   KATEGORIE-TEMPLATES CONTAINER
   ============================================ */

.category-templates-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    width: 100% !important;
}

.category-template-column {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* ============================================
   HEAD-ZEILE (Icon + Name + Anzahl)
   ============================================ */

.category-template-column .head {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.25rem !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.category-template-column .head a.text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    color: inherit !important;
}

.category-template-column .head .count-link {
    font-size: 0.9rem !important;
    font-weight: normal !important;
    margin-left: 0.25rem !important;
    white-space: nowrap !important;
}

/* ============================================
   ICONS
   ============================================ */

.category-icon {
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* ============================================
   UNTERKATEGORIEN-LISTE
   ============================================ */

.indented-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
}

.indented-list li {
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.indented-list li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
}

/* ============================================
   KATEGORIE-CONTENT (linke Spalte)
   ============================================ */

.category-content .head {
    font-size: 1.35rem !important;
    font-weight: bold !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

.category-content .text {
    font-size: 0.95rem !important;
    color: #666 !important;
}

/* ============================================
   MANDALA LINKS (Header Row 1)
   ============================================ */

.mandala-link-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mandala-home {
    display: block;
    line-height: 0;
}

.mandala-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.mandala-img--lg { width: 70px; height: 70px; }
.mandala-img--sm { width: 55px; height: 55px; }

.mandala-btn {
    display: block;
    background-color: #2a5c2a;
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 5px;
    padding: 4px 14px;
    white-space: nowrap;
}

.mandala-nav-group {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* ============================================
   KATEGORIEN MITTE (Header Row 2)
   ============================================ */

.header-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.header-cat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.header-cat .category-icon {
    flex-shrink: 0;
}

/* ============================================
   TAGLINE
   ============================================ */

.site-tagline {
    font-family: 'Zen Old Mincho', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
}

/* ============================================
   STARTSEITE: Row 2 ausblenden
   ============================================ */

body.page-id-14 #header [data-row="middle"] {
    display: none !important;
}

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

@media (max-width: 1024px) {
    .header-categories { gap: 1rem; }
    .header-cat { font-size: 0.85rem; }
    .header-cat .category-icon { width: 30px !important; height: 30px !important; }
    .mandala-img--lg { width: 55px; height: 55px; }
    .mandala-img--sm { width: 45px; height: 45px; }
    .mandala-btn { font-size: 0.75rem; padding: 3px 10px; }

    .fixed-left { flex: 0 0 160px !important; width: 160px !important; }
    .category-template-column .head .category-icon { width: 36px !important; height: 36px !important; }
    .category-template-column .head { font-size: 1.05rem !important; }
    .indented-list .category-icon { width: 22px !important; height: 22px !important; }
    .indented-list li { font-size: 0.85rem !important; }
}

@media (max-width: 768px) {
    .header-categories { gap: 0.5rem; }
    .header-cat { font-size: 0.75rem; }
    .header-cat .category-icon { width: 24px !important; height: 24px !important; }
    .mandala-img--lg { width: 45px; height: 45px; }
    .mandala-img--sm { width: 40px; height: 40px; }
    .mandala-btn { font-size: 0.7rem; padding: 3px 8px; }
    .mandala-nav-group { gap: 0.75rem; }

    .fixed-columns { flex-direction: column !important; }
    .fixed-left { display: none !important; }
    .fixed-right { width: 100% !important; }

    .category-templates-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
        justify-content: center !important;
    }

    .category-template-column {
        flex: 0 0 auto !important;
        max-width: none !important;
        min-width: 0 !important;
        text-align: center;
    }

    .category-template-column .head {
        font-size: 0.9rem !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
    }

    .category-template-column .head .count-link { display: none !important; }
    .category-template-column .head .category-icon { width: 32px !important; height: 32px !important; }
    .category-template-column .indented-list { display: none !important; }
}