/* ============================================
   WERBUNG / ADS
   ============================================ */

.ad-container {
    margin: 20px 0;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    position: relative;
}

/* Label "Werbung" (optional) */
.ad-container::before {
    content: 'Anzeige';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Horizontal Banner (nach Header) */
.ad-horizontal {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 30px auto;
}

@media (max-width: 768px) {
    .ad-horizontal {
        max-width: 468px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .ad-horizontal {
        max-width: 320px;
        min-height: 50px;
    }
}

/* Rectangle/Square (Sidebar) */
.ad-rectangle {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    margin-bottom: 20px;
}

/* Large Rectangle */
.ad-rectangle.large {
    min-height: 600px;
}

/* Custom Ads */
.ad-custom {
    width: 100%;
    min-height: 100px;
}

/* Platzhalter wenn keine Werbung */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode */
[data-theme="dark"] .ad-container {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .ad-placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #444;
    color: #666;
}

/* Responsive: Sidebar verschiebt sich unter Content auf Mobile */
@media (max-width: 992px) {
    .ad-rectangle {
        max-width: 100%;
        margin: 20px auto;
    }
}
