/* ══════════════════════════════════════════════════════════════ */
/* SEIDENBYTE BLOG - MODERNES, SCHLICHTES DESIGN                 */
/* ══════════════════════════════════════════════════════════════ */

* ─────────────────────────────────────────────────────────────── */
/* 0. BLOG OVERRIDES - Header & Navigation Fix (STÄRKERE RULES)   */
/* ─────────────────────────────────────────────────────────────── */

/* Header auf Blog-Seiten: Heller Hintergrund - WICHTIG: Überschreibt style.css */
body.blog-page header,
.blog-page header,
html body.blog-page header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    position: initial !important;
}

.header-visible {
     background: rgba(255, 255, 255, 0.98) !important;
}

/* Navigation: Dunkle Links - MIT HÖHERER SPEZIFITÄT */
.header-visible nav a,
.blog-page header nav a,
body.blog-page header .header-content nav a {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

.burger-menu {
    background-color: #5c00a5;
}

.header-visible nav a:hover,
body.blog-page header nav a:hover,
.blog-page header nav a:hover {
    color: #667eea !important;
    opacity: 1.2 !important;
}

/* Logo passt sich an */
body.blog-page .logo-image,
.blog-page .logo-image {
    filter: none !important;
}

/* Mobile Nav Overlay bleibt dunkel */
body.blog-page .mobile-nav-overlay,
.blog-page .mobile-nav-overlay {
    background: rgba(10, 22, 40, 0.98) !important;
}

body.blog-page .mobile-nav-overlay nav a,
.blog-page .mobile-nav-overlay nav a {
    color: #fff !important;
}

/* Burger Menu auf hellen Seiten - MIT HÖHERER SPEZIFITÄT */
body.blog-page .burger-menu span,
.blog-page .burger-menu span,
body.blog-page header .burger-menu span {
    background: #1a1a1a !important;
}

/* ─────────────────────────────────────────────────────────────── */
/* 1. BLOG LAYOUT - Hell & Modern                                  */
/* ─────────────────────────────────────────────────────────────── */

.blog-page {
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    width: 100%;
    max-width: 100vw;
}

/* Hero Section - Minimalistisch */
.blog-hero {
    padding: 12rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    width: 100%;
    max-width: 100vw;
    margin: 0;
}

.blog-hero .section-tag {
    color: #667eea;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero h1 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────── */
/* 2. BLOG GRID - Card-basiert                                     */
/* ─────────────────────────────────────────────────────────────── */

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-category {
    background: #667eea;
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: #999;
    font-size: 0.85rem;
}

.blog-card-title {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 0.75rem;
}

.blog-read-more::after {
    content: '→';
}

/* ─────────────────────────────────────────────────────────────── */
/* 3. FEATURED SECTION - Hervorgehoben                            */
/* ─────────────────────────────────────────────────────────────── */

.featured-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 0; /* Kein margin */
    width: 100%;
    max-width: 100vw;
}

.featured-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 700;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #667eea;
}

/* ─────────────────────────────────────────────────────────────── */
/* 4. BLOG POST - Artikel-Ansicht                                 */
/* ─────────────────────────────────────────────────────────────── */

.blog-post {
    background: #fff;
    color: #1a1a1a;
}

.post-header {
    text-align: center;
    padding: 1rem 2rem 1rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: initial !important;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-meta-item {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 2.75rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-excerpt {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding-top: 2rem;
}

.post-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.post-author-info {
    text-align: left;
}

.post-author-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.post-author-title {
    color: #999;
    font-size: 0.85rem;
}

/* Hero Image */
.post-hero-image {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.post-hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ─────────────────────────────────────────────────────────────── */
/* 5. BLOG CONTENT - Typography                                   */
/* ─────────────────────────────────────────────────────────────── */

.blog-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* Überschriften - Zentriert & mit Abstand */
.blog-content h1,
.blog-content h2,
.blog-content h3 {
    text-align: center;
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 2rem;
    margin-top: 4rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Paragraphen */
.blog-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.blog-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Links */
.blog-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.blog-content a:hover {
    border-bottom-color: #667eea;
    color: #5568d3;
}

/* Listen - Verbessert */
.blog-content ul,
.blog-content ol {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: #333;
}

.blog-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

.blog-content ol {
    counter-reset: item;
}

.blog-content ol li {
    counter-increment: item;
}

.blog-content ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Blockquotes - Minimalistisch */
.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tabellen - Modern */
.blog-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: block;
    overflow-x: auto; /* Horizontales Scrollen nur für Tabelle */
}

.blog-content table thead,
.blog-content table tbody {
    display: table;
    width: 100%;
}

.blog-content th {
    background: #667eea;
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.blog-content td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.blog-content tr:last-child td {
    border-bottom: none;
}

.blog-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* Code - Minimalistisch */
.blog-content code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #667eea;
    font-family: 'Monaco', 'Courier New', monospace;
}

.blog-content pre {
    background: #1a1a1a;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

/* Horizontale Linie - Minimalistisch */
.blog-content hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 4rem 0;
}

/* ─────────────────────────────────────────────────────────────── */
/* 6. SCHRITT-FÜR-SCHRITT - Nebeneinander                         */
/* ─────────────────────────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────── */
/* 7. VERGLEICHS-TABELLE - Side-by-Side                          */
/* ─────────────────────────────────────────────────────────────── */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.comparison-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.comparison-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.comparison-card h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.comparison-card ul {
    text-align: left;
}

/* ─────────────────────────────────────────────────────────────── */
/* 8. CTA BOX - Call-to-Action                                    */
/* ─────────────────────────────────────────────────────────────── */

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
}

.cta-box h3 {
    color: #fff !important;
    margin-top: 0;
    font-size: 1.8rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: #fff;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #667eea;
}

/* ─────────────────────────────────────────────────────────────── */
/* 9. SIDEBAR - Modern & Minimalistisch                           */
/* ─────────────────────────────────────────────────────────────── */

.blog-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 1rem;
}

.sidebar-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-list a:hover {
    color: #667eea;
}

.sidebar-count {
    color: #999;
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* 10. TAGS - Minimalistisch                                      */
/* ─────────────────────────────────────────────────────────────── */

.post-tags {
    margin-top: 4rem;
    padding-top: 3rem;
}

.post-tags h4 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.tag:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ─────────────────────────────────────────────────────────────── */
/* 11. RELATED POSTS - Am Ende                                    */
/* ─────────────────────────────────────────────────────────────── */

.related-posts {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────── */
/* 12. BREADCRUMB - Minimalistisch                                */
/* ─────────────────────────────────────────────────────────────── */

.breadcrumb {
    padding: 9rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────── */
/* 13. RESPONSIVE - Mobile First                                  */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Verhindert horizontales Scrollen */
    .blog-page,
    .blog-hero,
    .featured-section,
    .blog-container,
    .related-posts {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .blog-hero {
        padding: 9rem 1.5rem 3rem;
    }
    
    .blog-hero h1,
    .post-title {
        font-size: 2rem;
    }
    
    .blog-container,
    .blog-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-hero-image {
        padding: 0 1.5rem;
    }
    
    .post-hero-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Bilder in Cards auch responsive */
    .blog-card-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    /* Tabellen: Nur Tabelle scrollt, nicht ganze Seite */
    .blog-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────── */
/* 14. PRINT STYLES - Bonus                                       */
/* ─────────────────────────────────────────────────────────────── */

@media print {
    .blog-hero,
    .breadcrumb,
    .cta-box,
    .related-posts,
    .blog-sidebar {
        display: none;
    }
    
    .blog-content {
        max-width: 100%;
    }
    
    .blog-content a {
        color: #000;
        text-decoration: underline;
    }
}