/* Hauptmenü (Mega-Menü in Impreza) und Footer – Krypto_Site_Menu. Hauptpunkte mit CSS-Klasse „kb-mm“. */

/* Plugin-Vorlagen unter festem Impreza-Kopf: Impreza schiebt nur .l-main nach unten, unsere Vorlagen nutzen
   main.site-main bzw. #primary. Abstand = Kopfhöhe (--kb-header-h aus kb-site-menu.js) + Luft; Startseite ohne
   Luft, damit die Marktleiste direkt unter dem Menü sitzt. */
.l-header.pos_fixed ~ main.site-main,
.l-header.pos_fixed ~ #primary.content-area {
    padding-top: calc(var(--kb-header-h, 50px) + 24px);
}
.home .l-header.pos_fixed ~ main.site-main {
    padding-top: var(--kb-header-h, 50px);
}

/* Dropdown-Fläche */
.l-header .w-nav.type_desktop .w-nav-item.level_1.kb-mm > .w-nav-list.level_2 {
    padding: 24px 28px;
    background: #fff;
    color: #1f2937;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

/* Spaltenköpfe (2. Ebene) */
.l-header .type_desktop .kb-mm .w-nav-anchor.level_2 {
    padding: 4px 0 10px;
    color: #64748b !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.l-header .kb-mm .w-nav-anchor.level_2 .w-nav-arrow {
    display: none;
}

/* Links (3. Ebene) */
.l-header .type_desktop .kb-mm .w-nav-anchor.level_3 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 8px;
    margin: 0 -8px;
    color: #1f2937 !important;
    border-radius: 8px;
    line-height: 1.3;
}
.l-header .type_desktop .kb-mm .w-nav-anchor.level_3:hover,
.l-header .type_desktop .kb-mm .w-nav-anchor.level_3:focus-visible {
    background: #f1f5f9;
    color: #0b63ce !important;
}
.l-header .kb-mm .w-nav-anchor.level_3 .w-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

span.kb-mm-icon,
span.kb-mm-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
}
.l-header .kb-mm span.kb-mm-icon,
.l-header .kb-mm span.kb-mm-logo {
    margin-right: 0;
}
span.kb-mm-icon {
    border-radius: 8px;
    background: #eef4ff;
}
span.kb-mm-icon .kb-icon {
    width: 18px;
    height: 18px;
}
span.kb-mm-logo img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}
.kb-mm-desc {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 400;
    white-space: normal;
}

/* Kacheln (Seitenblock mit [kb_menu_kachel]) */
.kb-mm-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.kb-mm-tile:hover,
.kb-mm-tile:focus-visible {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* Schaltfläche im Hauptmenü („Alle Börsen“): kompakt statt volle Kopfhöhe */
.l-header .w-nav.type_desktop .w-nav-anchor.level_1.w-btn {
    height: auto;
    margin: 0 0 0 12px;
    padding: 9px 16px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 6px;
}
.kb-mm-tile-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.kb-mm-tile-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}
.kb-mm-tile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
}
.kb-mm-tile-icon .kb-icon {
    width: 28px;
    height: 28px;
}
.kb-mm-tile-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.kb-mm-tile-score {
    font-size: 14px;
    color: #475569;
}
.kb-mm-tile-score strong {
    font-size: 22px;
    color: #1f2937;
}
.kb-mm-tile-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}
.kb-mm-tile-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f59e0b;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

/* Mobiles Menü: Kacheln ausblenden, Icons/Logos auf dunklem Grund */
.l-header .w-nav.type_mobile .kb-mm .w-nav-anchor.level_3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.l-header .w-nav.type_mobile span.kb-mm-icon {
    background: rgba(255, 255, 255, .08);
}
.l-header .w-nav.type_mobile .kb-mm-tile,
.l-header .w-nav.type_mobile .menu-item-object-us_page_block {
    display: none !important;
}
.l-header .w-nav.type_mobile .kb-mm-desc {
    display: none;
}

/* Footer ([kb_footer]) */
.kb-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 0 24px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}
.kb-footer a {
    color: #e2e8f0;
    text-decoration: none;
}
.kb-footer a:hover,
.kb-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}
.kb-footer-top {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) 3fr;
    gap: 40px;
}
.kb-footer-logo img {
    max-width: 220px;
    height: auto;
}
.kb-footer-name {
    font-size: 20px;
    font-weight: 700;
}
.kb-footer-text {
    margin: 12px 0 0;
    color: #94a3b8;
}
.kb-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.kb-footer-head {
    margin: 0 0 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.kb-footer-links,
.kb-footer-legal-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.kb-footer-links li {
    margin: 0 0 6px;
}
.kb-footer-note p {
    margin: 0 0 8px;
}
.kb-footer-note strong {
    color: #e2e8f0;
}
.kb-footer-note {
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, .25);
    color: #94a3b8;
    font-size: 13px;
}
.kb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 13px;
}
.kb-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

@media (max-width: 1024px) {
    .kb-footer-top {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .kb-footer {
        padding: 32px 16px 20px;
    }
    .kb-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
