/* Funkwelt Content Blog Navigator v1.0.0 */

.fw-cbn-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a !important;
    margin: 1.5rem 0;
    background: transparent !important;
}

/* ---- Suchfeld ---- */
.fw-cbn-search-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.fw-cbn-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.fw-cbn-search {
    width: 100% !important;
    padding: 10px 16px 10px 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
}

.fw-cbn-search:focus {
    border-color: #6366f1 !important;
}

/* ---- Statuszeile ---- */
.fw-cbn-stats {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 1rem;
    min-height: 18px;
}

/* ---- Grid ---- */
.fw-cbn-grid {
    display: grid;
    gap: 12px;
}

/* ---- Karte ---- */
.fw-cbn-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1rem 1.1rem !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.fw-cbn-card:hover {
    border-color: #a5b4fc !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.07) !important;
}

/* ---- Karten-Kopf ---- */
.fw-cbn-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.fw-cbn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.fw-cbn-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    line-height: 1.35;
    margin-top: 4px;
}

.fw-cbn-card-title a {
    color: #111827 !important;
    text-decoration: none !important;
}

.fw-cbn-card-title a:hover {
    color: #4f46e5 !important;
}

/* ---- Unterkategorien-Zaehler ---- */
.fw-cbn-sub-count {
    font-size: 11px;
    color: #9ca3af !important;
    margin-bottom: 7px;
}

/* ---- Unterkategorien-Liste ---- */
.fw-cbn-sub-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fw-cbn-sub-list li {
    font-size: 12px !important;
    color: #374151 !important;
    padding: 3px 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    background: transparent !important;
}

.fw-cbn-sub-list li:first-child {
    border-top: none !important;
}

.fw-cbn-sub-list a {
    color: #374151 !important;
    text-decoration: none !important;
}

.fw-cbn-sub-list a:hover {
    color: #4f46e5 !important;
}

/* ---- "Mehr"-Badge / Toggle-Button ---- */
.fw-cbn-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280 !important;
    background: #f9fafb !important;
    border-radius: 4px;
    padding: 2px 8px;
    border: 1px solid #e5e7eb !important;
}

.fw-cbn-toggle {
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.6;
}

.fw-cbn-toggle:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.fw-cbn-toggle[aria-expanded="true"] {
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
    background: #eef2ff !important;
}

/* Aufgeklappte Liste ohne oberen Abstand */
.fw-cbn-hidden-list {
    margin-top: 0 !important;
    border-top: 1px solid #f3f4f6 !important;
}

/* ---- Treffer-Hervorhebung ---- */
.fw-cbn-hl {
    background: rgba(253, 224, 71, 0.45) !important;
    border-radius: 2px;
    padding: 0 1px;
    color: inherit !important;
}

/* ---- Keine Treffer ---- */
.fw-cbn-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af !important;
    font-size: 14px;
}

/* ---- Keine Kategorien ---- */
.fw-cbn-empty {
    color: #6b7280;
    font-size: 14px;
}

/* ---- Karten-Footer "Alle anzeigen" ---- */
.fw-cbn-card-footer {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
}

.fw-cbn-all-link {
    font-size: 12px !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.fw-cbn-all-link:hover {
    color: #4338ca !important;
    text-decoration: underline !important;
}

/* ---- Karte: Flex-Layout damit Footer immer unten ist ---- */
.fw-cbn-card {
    display: flex !important;
    flex-direction: column !important;
}

.fw-cbn-card-footer {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
}

/* ---- Tooltip ---- */
.fw-cbn-tooltip {
    position: absolute;
    z-index: 9999;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    min-width: 220px !important;
    max-width: 320px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    pointer-events: auto !important;
    animation: fw-cbn-fadein 0.15s ease !important;
}

@keyframes fw-cbn-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fw-cbn-tip-label {
    font-size: 11px !important;
    color: #9ca3af !important;
    margin: 0 0 6px 0 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.fw-cbn-tip-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fw-cbn-tip-list li {
    font-size: 13px !important;
    color: #374151 !important;
    padding: 4px 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    margin: 0 !important;
    background: transparent !important;
    line-height: 1.4 !important;
}

.fw-cbn-tip-list li:first-child {
    border-top: none !important;
    padding-top: 0 !important;
}

.fw-cbn-tip-list a {
    color: #374151 !important;
    text-decoration: none !important;
}

.fw-cbn-tip-list a:hover {
    color: #4f46e5 !important;
    text-decoration: underline !important;
}

.fw-cbn-tip-loading,
.fw-cbn-tip-empty {
    font-size: 12px !important;
    color: #9ca3af !important;
    display: block !important;
}
