/* RSS TOC Plugin Styles - VOLLBREITE NACH TOC KORRIGIERT */

/* TOC Container - bestimmt das Layout */
.rss-toc-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

/* Die TOC Box selbst */
.rss-toc-box {
    float: right;
    width: 350px;
    margin: 0 0 20px 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.rss-toc-title {
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    color: #333;
}

.rss-toc-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.3;
}

.rss-toc-number {
    background: #1a0dab;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    min-width: 20px;
    height: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 16px;
}

.rss-toc-link {
    color: #1a0dab;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    max-width: 100%;
    transition: color 0.3s ease;
}

.rss-toc-link:hover {
    color: #2e8b57;
}

.rss-toc-link.level-3 {
    margin-left: 15px;
    font-size: 11px;
}

/* KRITISCH: Content nach TOC - VOLLBREITE erzwingen */
.rss-content-after-toc {
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Alle Elemente im Content nach TOC auf Vollbreite setzen */
.rss-content-after-toc h2,
.rss-content-after-toc h3,
.rss-content-after-toc h4,
.rss-content-after-toc p,
.rss-content-after-toc div,
.rss-content-after-toc ul,
.rss-content-after-toc ol,
.rss-content-after-toc blockquote,
.rss-content-after-toc pre,
.rss-content-after-toc table,
.rss-content-after-toc img,
.rss-content-after-toc figure {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
    position: relative;
    box-sizing: border-box;
}

/* Spezielle Behandlung für Bilder */
.rss-content-after-toc img {
    height: auto !important;
}

/* Fallback für volle Breite */
.rss-full-width {
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 0 0 !important;
    position: relative;
    overflow: visible;
}

.rss-full-width > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rss-toc-container {
        margin-bottom: 10px;
    }
    
    .rss-toc-box {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .rss-content-after-toc {
        margin-top: 10px !important;
    }
    
    .rss-toc-entry {
        margin-bottom: 6px;
    }
    
    .rss-toc-number {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 14px;
    }
    
    .rss-toc-link {
        font-size: 14px;
    }
    
    .rss-toc-link.level-3 {
        font-size: 12px;
    }
}

/* Zusätzliche Sicherheit für Theme-Kompatibilität */
.rss-content-after-toc * {
    box-sizing: border-box;
}

/* WordPress Standard-Elemente überschreiben */
.entry-content .rss-content-after-toc,
.post-content .rss-content-after-toc,
.content .rss-content-after-toc {
    width: 100% !important;
    max-width: 100% !important;
}

/* Spezifische Theme-Überschreibungen */
.single-post .rss-content-after-toc,
.single .rss-content-after-toc {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}