
/* =========================================
   1. STYLING FÜR DEN EINLOGGEN-BUTTON (HEADER)
   ========================================= */
.ast-header-account-wrap {
    background-color: #05162e !important;
    border-radius: 4px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.ast-header-account-wrap a, 
.ast-header-account-wrap span,
.ast-header-account-wrap i {
    color: #ffffff !important;
    text-decoration: none;
}

.ast-header-account-wrap:hover {
    background-color: #0a254d !important;
}

/* =========================================
   2. MARKET MOVERS WIDGET (TOPS & FLOPS)
   ========================================= */
.bmi-market-movers-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 320px !important; 
    width: 100%;
    margin: 0;
}

.mover-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mover-symbol {
    width: 35%;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mover-perf {
    width: 25%;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-align: right;
    padding-right: 15px;
}

.mover-green { color: #28a745; }
.mover-red { color: #dc3545; }

/* HIER IST DIE ÄNDERUNG: Die Spur ist jetzt komplett unsichtbar (transparent) */
.mover-bar-track {
    width: 40%;
    height: 16px; 
    background-color: transparent !important; 
}

.mover-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.mover-bar.mover-green {
    background: linear-gradient(90deg, #7be07b 0%, #28a745 100%);
    box-shadow: inset -2px 0 4px rgba(0,0,0,0.1); 
}

.mover-bar.mover-red {
    background: linear-gradient(90deg, #ff7a7a 0%, #dc3545 100%);
    box-shadow: inset -2px 0 4px rgba(0,0,0,0.1); 
}


/* Styling für die Überschrift über der Heatmap */
.heatmap-header-container {
    max-width: 1200px; /* Hier richtet sich der Text wieder am normalen Raster aus */
    margin: 0 auto 20px auto;
    padding: 0 20px;
}

.heatmap-title {
    font-size: 28px;
    font-weight: 800;
    color: #05162e;
    border-left: 5px solid #dc3545;
    padding-left: 15px;
    line-height: 1;
}

.contained-heatmap-wrapper {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.contained-heatmap-wrapper .heatmap-title {
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
    padding-left: 12px;
}

/* Das Raster für die Sektoren */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

/* Die einzelne Kachel */
.sector-tile {
    padding: 20px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    min-height: 100px;
}

.sector-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tile-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.tile-perc {
    font-size: 18px;
    font-weight: 800;
}

/* Dynamische Farben basierend auf Performance.
   Alpha gedeckelt bei 0.55: darüber wird der dunkle Kachel-Text
   (#155724/#721c24/#333) auf gesättigtem Rot/Grün unlesbar (<3:1). */
.tile-green {
    background-color: rgba(40, 167, 69, calc(0.18 + var(--bg-opacity) * 0.37));
    color: #155724;
}

.tile-red {
    background-color: rgba(220, 53, 69, calc(0.18 + var(--bg-opacity) * 0.37));
    color: #721c24;
}

/* 1. Den unteren Abstand des gesamten Headers entfernen */
.main-header-bar, 
.ast-primary-header-bar {
    padding-bottom: 0px !important;
    min-height: unset !important;
}

/* 2. Den Abstand der Logo-Sektion verringern */
.site-branding, 
.ast-builder-layout-element {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

/* 3. Das Logo-Bild — kein negativer Margin (verhindert Überlappung mit S2-Leiste) */
.site-logo-img img {
    margin-bottom: 0 !important;
}

/* 4. Die graue Trennlinie (Border) nach oben ziehen */
.ast-theme-transparent-header .main-header-bar,
.main-header-bar {
    border-bottom: 1px solid #eaeaea; /* Falls die Linie verschwindet, erzwingen wir sie hier */
}

/* Annäherung an das Ziel: 25px für die vertikale Ausrichtung */
.site-header-primary-section-right {
    margin-top: 25px !important; 
    display: flex;
    align-items: center;
}

/* Leichte Korrektur für den Button-Abstand */
.ast-header-account-wrap {
    padding-top: 4px !important;
}

/* 1. Den gesamten Header-Bereich nach oben schieben */
header#masthead, 
.site-header,
.main-header-bar, 
.ast-primary-header-bar {
    padding-top: 0px !important;
    margin-top: 0px !important;
    min-height: unset !important; /* Entfernt die künstliche Mindesthöhe */
}

/* 2. Den inneren Container (Grid) oben bündig machen */
.site-primary-header-wrap,
.ast-builder-grid-row {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* 3. Das Logo-Element nach oben zwingen */
.site-branding, 
.site-logo-img,
.ast-builder-layout-element[data-section="title_tagline"] {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* 4. Deine Relation: Rechte Seite bleibt bei 25px */
.site-header-primary-section-right {
    margin-top: 25px !important; 
    display: flex;
    align-items: center;
}

/* Entfernt den Unterstrich beim Titel-Link */
.terminal-title a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Optional: Ein leichter Hover-Effekt (Text wird beim Drüberfahren etwas heller) */
.terminal-title a:hover {
    opacity: 0.8;
}

/* === Checkout Payment Methods mit Icons === */

/* Container */
#pmpro_payment_method_wrapper .pmpro_card_content,
#pmpro_payment_method_fields .pmpro_card_content {
    padding: 20px !important;
}

/* Verstecke den originalen Text */
#pmpro_payment_method label span,
.pmpro_payment_method label {
    font-size: 0 !important;
}

/* Zeige Labels wieder mit neuem Content */
#pmpro_payment_method label,
.pmpro_payment_method_label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 24px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 12px !important;
    background: #fff !important;
}

#pmpro_payment_method label:hover {
    border-color: #d4af37 !important;
    box-shadow: 0 2px 8px rgba(212,175,55,0.15) !important;
}


/* === Article Design === */

/* Kategorie-Badge über dem Titel */
.cat-links a {
    background: #d4af37;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Artikel-Meta (Datum, Autor) */
.entry-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Artikel-Content Typographie */
.entry-content p {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #111;
}

/* Featured Image volle Breite */
.ast-single-post .post-thumb img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Schöner Disclaimer am Ende */
.entry-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* Post Grid auf Homepage */
.spectra-post-grid .spectra-post-grid__title {
    font-size: 18px;
    font-weight: 700;
}

.spectra-post-grid .spectra-post-grid__excerpt {
    color: #666;
    font-size: 14px;
}

/* Kommentare und Beitrags-Navigation auf Narrow einschränken */
.ast-separate-container .comments-area, 
.ast-separate-container .post-navigation {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Kommentarbereich aufräumen */
#reply-title {
    font-size: 20px;
    font-weight: 700;
}

.comment-reply-title small {
    display: none; /* Versteckt das "Antwort abbrechen" */
}

/* Button Styling passend zum Branding */
#submit {
    background-color: #111827 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

#submit:hover {
    background-color: #d4af37 !important;
    color: #1a1a2e !important;
}

/* === Sidebar Styling === */

/* Sidebar Container */
#secondary .widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Related Posts in Sidebar */
#secondary .wp-block-latest-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

#secondary .wp-block-latest-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#secondary .wp-block-latest-posts li a {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

#secondary .wp-block-latest-posts li a:hover {
    color: #d4af37;
}

/* Datum in der Sidebar */
#secondary .wp-block-latest-posts__post-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Sidebar Sticky (bleibt beim Scrollen sichtbar) */
#secondary {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* Sidebar nur auf Artikelseiten, NICHT auf der Homepage */
.home #secondary,
.page #secondary {
    display: none;
}

/* Deep Dive - Titel größer */
.wp-block-latest-posts__list .wp-block-latest-posts__post-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111 !important;
    text-decoration: none !important;
}

.wp-block-latest-posts__list .wp-block-latest-posts__post-title:hover {
    color: #d4af37 !important;
}

/* Datum */
.wp-block-latest-posts__list .wp-block-latest-posts__post-date {
    font-size: 13px !important;
    color: #999 !important;
}

/* Excerpt */
.wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

/* Bild */
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
    margin-bottom: 12px !important;
}

.wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
    border-radius: 8px !important;
}

/* Gleiche Bildgröße */
.uagb-post__image img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Card als Flex damit Button unten bleibt */
.uagb-post__inner-wrap {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Excerpt wächst und drückt Button nach unten */
.uagb-post__text.uagb-post__excerpt {
    flex: 1 !important;
}

/* Button immer ganz unten */
.uagb-post__text.uagb-post__cta {
    margin-top: auto !important;
}

/* Read More Button */
.uagb-post__cta .wp-block-button__link,
.uagb-post__cta .uagb-text-link {
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.uagb-post__cta .wp-block-button__link:hover,
.uagb-post__cta .uagb-text-link:hover {
    background: #d4af37 !important;
    color: #1a1a2e !important;
}


.bmi-deep-dive-row {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.bmi-deep-dive-row > .wp-block-column:first-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


.site-below-footer-wrap {
    background: #f1f3f5 !important;
}




/* Premium Button im Header — kräftiges Gold */
.menu-item a[href*="membership-levels"],
.menu-item a[href*="mitgliedschaftsstufen"],
.menu-item a[href*="membresia"],
.menu-item a[href*="iscrizione"],
.menu-item a[href*="adhesion"],
.menu-item a[href*="membership"] {
    background: #D4AF37 !important;
    color: #1a1a2e !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.menu-item a[href*="membership-levels"]::before,
.menu-item a[href*="membresia"]::before,
.menu-item a[href*="iscrizione"]::before,
.menu-item a[href*="adhesion"]::before,
.menu-item a[href*="membership"]::before {
    content: '' !important;
}

.menu-item a[href*="membership-levels"]:hover,
.menu-item a[href*="mitgliedschaftsstufen"]:hover,
.menu-item a[href*="membresia"]:hover,
.menu-item a[href*="iscrizione"]:hover,
.menu-item a[href*="adhesion"]:hover,
.menu-item a[href*="membership"]:hover {
    background: #C9A227 !important;
    box-shadow: 0 2px 8px rgba(212,175,55,0.3) !important;
    transform: translateY(-1px) !important;
}




/* =========================================
   NAV: LOGGED-IN / LOGGED-OUT TOGGLE
   ========================================= */

/* Hide My Account dropdown + Log Out from logged-out users */
body:not(.logged-in) .menu-item-my-account,
body:not(.logged-in) .menu-item-logout {
    display: none !important;
}

/* Hide Log In and Sign Up from logged-in users */
body.logged-in .menu-item-login,
body.logged-in .menu-item-signup {
    display: none !important;
}

/* My Account dropdown arrow indicator */
.menu-item-my-account > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.7;
}

/* My Account dropdown submenu styling */
.menu-item-my-account .sub-menu {
    min-width: 180px;
}

/* Log Out link styling — inherits normal top-level menu typography */


/* =========================================
   PROFILE PAGES: TOP SPACING
   ========================================= */

/* Add top spacing on Smart Money profile pages and Portfolio page */
.page-id-454 .site-content,
.page-id-446 .site-content,
.page-id-389 .site-content,
.page-id-461 .site-content,
.page-id-491 .site-content,
.page-id-526 .site-content,
.page-id-702 .site-content,
.page-id-719 .site-content,
.page-id-726 .site-content,
.page-id-733 .site-content,
.page-id-736 .site-content,
.page-id-749 .site-content,
.bmi-manager-profile-page .site-content {
    padding-top: 40px !important;
}

/* Universal profile page spacer via class on body */
body.page-template-default .bmi-manager-profile {
    margin-top: 20px;
}

/* Hide duplicate page title on Watchlist pages */
.page-id-1789 .entry-title,
.page-id-1790 .entry-title {
    display: none !important;
}
/* Footer: Abstand zwischen Nav-Links und Disclaimer-Text reduzieren */
.site-below-footer-wrap {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}
.site-below-footer-wrap .ast-builder-html-element {
    margin-top: 0 !important;
}
.site-below-footer-wrap .ast-builder-html-element p {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}
