/**
 * File: /themes/minimal/anzeigen.css
 *
 * Description: Hochwertiges Stylesheet für Werbeanzeigen (EEAT Architecture).
 * FIX: font-weight strikt auf 400 für Badges und Content.
 * FIX: Letter-Spacing erhöht für edles Schriftbild.
 * FIX: Responsives Layout mit max-width und flexiblen Höhen.
 * UPDATE: 1.0.8 - Dualer Sticky-Fix (Sidebar-Targeting & Parent-Overflow Overrides).
 *
 * Autor: Myloon
 * Version: 1.0.8
 * Datum: 19.05.2026
 */

/* Das Laufrad (Glow-Rotation) */
@keyframes wpsc_bf_rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wpsc-bf-wrapper {
    position: relative;
    margin: 30px auto;
    width: 100%;
    max-width: 100%;
    clear: both;
    display: block;
    box-sizing: border-box;
    overflow: visible;
}

/* Sticky Logik für Sidebar und Widgets */
.wpsc-sticky,
#secondary-sidebar.wpsc-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px; /* Erhöht für Header + WP Admin-Bar */
    align-self: flex-start; /* Verhindert das Strecken im Flexbox/Grid-Container */
    z-index: 99;
    will-change: transform; /* Aktiviert GPU-Beschleunigung für ruckelfreies Scrollen */
}

/* Behebt blockierende Overflows in übergeordneten WP-Theme-Klassen */
.site-content, 
#page, 
.main-content-wrapper, 
.content-area,
.site-main {
    overflow: visible !important;
}

.wpsc-bf-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 2px;
    background: #e2e8f0;
    isolation: isolate;
}

.wpsc-bf-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, #4facfe, #00f2fe, #ff0844, transparent);
    animation: wpsc_bf_rotate 5s linear infinite;
    z-index: -1;
}

.wpsc-bf-mask {
    background: #ffffff; /* Standard: Hell-Modus Weiss */
    border-radius: 14px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: background 0.3s ease;
}

.wpsc-bf-body {
    padding: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Typografie: Normalgewicht 400 mit Spacing */
.wpsc-bf-body h4, 
.wpsc-bf-body a,
.wpsc-context-link,
.wpsc-bf-body strong {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
    font-weight: 400 !important;
    letter-spacing: 0.6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.wpsc-context-link {
    color: #2563eb;
    display: block;
}

.wpsc-context-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Badge Typografie: 400 + 2px Spacing */
.wpsc-bf-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #1e293b;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: sans-serif;
}

.wpsc-ad-disclaimer {
    font-size: 8px;
    color: #94a3b8;
    text-align: center;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: sans-serif;
}

.wpsc-adsense-test-box {
    border: 1px dashed #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 1px;
}

/* DARK MODE OPTIMIERUNG */
@media (prefers-color-scheme: dark) {
    .wpsc-bf-mask { background: #000000 !important; }
    .wpsc-bf-body h4, .wpsc-bf-body a, .wpsc-bf-body strong { color: #ffffff !important; }
    .wpsc-bf-frame { background: #334155; }
    .wpsc-context-link { color: #60a5fa !important; }
}

body.dark-mode .wpsc-bf-mask { background: #000000 !important; }
body.dark-mode .wpsc-bf-body h4, body.dark-mode .wpsc-bf-body a, body.dark-mode .wpsc-bf-body strong { color: #ffffff !important; }
body.dark-mode .wpsc-context-link { color: #60a5fa !important; }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
    .wpsc-bf-wrapper { margin: 20px 0; }
    .wpsc-bf-mask { min-height: 110px; }
    .wpsc-bf-body { padding: 15px; }
    .wpsc-bf-body h4, .wpsc-context-link { font-size: 15px; }
    .wpsc-bf-badge { left: 10px; padding: 3px 12px; font-size: 8px; }
}