/*
 * Börsen-Testseite: Kopfbereich im kb-ui-Design (helle Karte wie Wallet- und Kryptoseiten).
 * Vorher vollflächiger Markenfarben-Hintergrund mit Glas-Effekten; die Hintergrund-Einstellungen
 * der Börse werden im Frontend nicht mehr verwendet. Alles unter .boerse-hero-new, damit die
 * Regeln weder Krypto- noch Vergleichsseiten berühren und gegen comparison.css (lädt später) gewinnen.
 */

.krypto-boersen-single .boerse-hero-new {
    position: relative;
    box-sizing: border-box;
    max-width: var(--kb-width);
    min-height: 0;
    margin: 24px auto;
    padding: var(--kb-pad);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    background: var(--kb-bg) !important;
    color: var(--kb-text);
    overflow: visible;
}

.boerse-hero-new .hero-overlay {
    display: none;
}

.boerse-hero-new .hero-content-container {
    max-width: none;
    margin: 0;
    padding: 0;
    height: auto;
}

.krypto-boersen-single .boerse-hero-new .hero-main-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 36px;
    align-items: start;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.boerse-hero-new .hero-left-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* Logo, Titel, Untertitel */
.boerse-hero-new .hero-branding {
    display: flex;
    align-items: center;
    gap: 18px;
}

.boerse-hero-new .hero-logo img {
    display: block;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--kb-radius);
    background: transparent !important;
    box-shadow: none;
    object-fit: contain;
}

.boerse-hero-new .hero-title-section {
    flex: 1;
    min-width: 0;
}

.boerse-hero-new .hero-title {
    margin: 0 0 6px;
    padding: 0;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--kb-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.boerse-hero-new .hero-subtitle {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    color: var(--kb-muted);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
}

/* Bewertung */
.boerse-hero-new .hero-rating-display {
    margin: 0;
}

.boerse-hero-new .rating-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.boerse-hero-new .rating-container .rating-circle {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    background: var(--kb-bg-soft);
    backdrop-filter: none;
    box-shadow: none;
    color: var(--kb-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    transform: none;
}

.boerse-hero-new .rating-container .rating-circle::after {
    content: "/10";
    position: static;
    margin-left: 3px;
    color: var(--kb-muted);
    font-size: 15px;
    font-weight: 600;
}

.boerse-hero-new .rating-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.boerse-hero-new .stars-display {
    display: flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.boerse-hero-new .star {
    color: #d1d5db;
    text-shadow: none;
    filter: none;
}

.boerse-hero-new .star.filled {
    color: var(--kb-cta);
}

.boerse-hero-new .rating-text {
    color: var(--kb-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Wertung und Trust Score nebeneinander */
.boerse-hero-new .hero-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
}

.boerse-hero-new .krypto-ts-badge {
    margin: 0;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--kb-border);
    background: var(--kb-bg-soft);
    backdrop-filter: none;
    color: var(--kb-text) !important;
    font-size: 15px;
    font-weight: 600;
}

.boerse-hero-new .krypto-ts-badge:hover,
.boerse-hero-new .krypto-ts-badge:focus {
    border-color: var(--kb-accent);
    background: var(--kb-bg-soft);
}

/* Badges (Redaktion) */
.boerse-hero-new .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.boerse-hero-new .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--kb-border);
    border-radius: 999px;
    background: var(--kb-bg-soft);
    backdrop-filter: none;
    box-shadow: none;
    color: var(--kb-text);
    font-size: 14px;
    font-weight: 600;
    transform: none;
}

.boerse-hero-new .hero-badge::before {
    display: none;
}

.boerse-hero-new .hero-badge:hover {
    transform: none;
    box-shadow: none;
}

.boerse-hero-new .hero-badge.badge-green {
    border-color: #cdeedb;
    background: var(--kb-good-soft);
    color: #166534;
}

.boerse-hero-new .hero-badge.badge-blue,
.boerse-hero-new .hero-badge.badge-purple {
    border-color: #cbe9fb;
    background: var(--kb-accent-soft);
    color: var(--kb-accent-dark);
}

.boerse-hero-new .hero-badge.badge-orange {
    border-color: #fde3b5;
    background: var(--kb-warn-soft);
    color: var(--kb-warn);
}

.boerse-hero-new .badge-icon {
    display: inline-flex;
}

/* Icon übernimmt die Badge-Farbe (Linie), Akzent bleibt Blau */
.boerse-hero-new .hero-badge .kb-icon {
    color: currentColor;
}

/* Buttons */
.boerse-hero-new .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.boerse-hero-new .btn-hero-primary,
.boerse-hero-new .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--kb-radius-sm);
    box-shadow: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transform: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.boerse-hero-new .btn-hero-primary {
    border: 1px solid var(--kb-cta);
    background: var(--kb-cta);
    color: #fff;
}

.boerse-hero-new .btn-hero-primary::before {
    display: none;
}

.boerse-hero-new .btn-hero-primary:hover,
.boerse-hero-new .btn-hero-primary:focus-visible {
    border-color: var(--kb-cta-hover);
    background: var(--kb-cta-hover);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.boerse-hero-new .btn-hero-secondary {
    border: 1px solid var(--kb-border);
    background: var(--kb-bg);
    backdrop-filter: none;
    color: var(--kb-text);
}

.boerse-hero-new .btn-hero-secondary:hover,
.boerse-hero-new .btn-hero-secondary:focus-visible {
    border-color: var(--kb-accent);
    background: var(--kb-bg);
    color: var(--kb-accent-dark);
    transform: none;
}

/* Bonus */
.boerse-hero-new .hero-bonus-box {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
    padding: 10px 14px;
    border: 1px solid #fde3b5;
    border-radius: var(--kb-radius-sm);
    background: var(--kb-warn-soft);
    box-shadow: none;
    color: var(--kb-text);
    cursor: default;
    transform: none;
}

.boerse-hero-new .hero-bonus-box::before {
    display: none;
}

.boerse-hero-new .bonus-info-icon {
    display: inline-flex;
    margin: 0;
}

.boerse-hero-new .bonus-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
}

.boerse-hero-new .bonus-title {
    color: var(--kb-muted);
    font-size: 14px;
    font-weight: 600;
}

.boerse-hero-new .bonus-amount {
    color: var(--kb-text);
    font-size: 16px;
    font-weight: 700;
}

/* Nutzerzahl */
.boerse-hero-new .hero-user-count {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
}

.boerse-hero-new .user-avatars {
    display: flex;
}

.boerse-hero-new .user-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--kb-bg-soft);
    font-size: 14px;
    transform: none;
}

.boerse-hero-new .user-avatar:first-child {
    margin-left: 0;
}

.boerse-hero-new .user-count-text {
    margin: 0;
    color: var(--kb-muted);
    font-size: 14px;
}

.boerse-hero-new .user-count-text strong {
    color: var(--kb-text);
}

/* Rechte Spalte: Quick Facts oder App-Bild */
.boerse-hero-new .hero-right-content {
    display: block;
    min-width: 0;
}

.boerse-hero-new .hero-info-box {
    padding: 20px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    background: var(--kb-bg-soft);
    backdrop-filter: none;
    box-shadow: none;
    color: var(--kb-text);
}

.boerse-hero-new .hero-info-box h3 {
    margin: 0 0 10px;
    color: var(--kb-text);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.boerse-hero-new .quick-facts-hero {
    margin: 0;
    padding: 0;
    list-style: none;
}

.boerse-hero-new .quick-facts-hero li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--kb-border);
    color: var(--kb-text);
    font-size: 15px;
}

.boerse-hero-new .quick-facts-hero li:last-child {
    border-bottom: 0;
}

.boerse-hero-new .quick-facts-hero strong {
    color: var(--kb-muted);
    font-weight: 600;
}

.boerse-hero-new .fact-icon {
    display: inline-flex;
    align-self: center;
}

.boerse-hero-new .quick-facts-hero li {
    align-items: center;
}

/* Mobil-Screenshot der Startseite im iPhone-Rahmen (Metallrahmen, Dynamic Island), vollständig sichtbar
   und vertikal mittig neben dem Titel – kein angeschnittenes Handy (Nutzerwunsch 07.10.2026). */
.krypto-boersen-single .boerse-hero-new:has(.hero-phone-mockup) {
    overflow: hidden;
}

/* Vollständiges Smartphone (nicht am Kartenrand abgeschnitten); Inhalt = Mobil-Screenshot der Startseite */
.boerse-hero-new .hero-right-content:has(.hero-phone-mockup) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boerse-hero-new .hero-phone-mockup {
    position: relative;
    width: 172px;
    aspect-ratio: 9 / 19.5;
    padding: 8px;
    border-radius: 34px;
    background: linear-gradient(145deg, #3a3a3c, #1c1c1e);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .14);
}

.boerse-hero-new .hero-phone-mockup::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    z-index: 2;
    width: 58px;
    height: 17px;
    border-radius: 20px;
    background: #000;
    transform: translateX(-50%);
}

.boerse-hero-new .hero-phone-mockup::after {
    display: none;
}

.boerse-hero-new .phone-mockup-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 27px;
    background: #fff;
    box-shadow: none;
}

@media (max-width: 900px) {
    .krypto-boersen-single .boerse-hero-new .hero-main-content {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .boerse-hero-new .hero-right-content:has(.hero-phone-mockup) {
        display: none;
    }
}

@media (max-width: 768px) {
    .krypto-boersen-single .boerse-hero-new {
        margin: 16px 8px;
    }

    .boerse-hero-new .hero-title {
        font-size: 26px;
    }

    .boerse-hero-new .hero-logo img {
        width: 56px !important;
        height: 56px !important;
    }

    .boerse-hero-new .btn-hero-primary,
    .boerse-hero-new .btn-hero-secondary {
        flex: 1 1 auto;
    }
}

/* Art der Plattform (Börsentypen) unter dem Titel */
.hero-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
}

.hero-type {
    padding: 2px 10px;
    border: 1px solid var(--kb-border, #e6e8eb);
    border-radius: 999px;
    background: #fff;
    color: var(--kb-muted, #6b7280);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

/* Risikohinweis CFD-Handel (public/partials/boersen/cfd-warning.php) */
.kb-cfd-warning {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border: 2px solid var(--kb-bad, #dc2626);
    border-radius: 12px;
    background: var(--kb-bad-soft, #fdf1f1);
    color: var(--kb-text, #303640);
    font-size: 15px;
    line-height: 1.55;
}

.kb-cfd-source {
    color: var(--kb-muted, #6b7280);
    font-size: 13px;
}

.kb-cfd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.kb-cfd-facts span {
    color: var(--kb-muted, #6b7280);
}
