/* Single Blog Post Styles */

.single-blog-main {
    background: #ffffff;
}

.single-blog-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Header with Featured Image */
.blog-post-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
}

.blog-post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.blog-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.blog-post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0 40px 0;
    z-index: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-post-hero-content .blog-post-meta {
    color: rgba(255, 255, 255, 0.95);
}

.meta-separator {
    opacity: 0.6;
}

.post-category a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-category a:hover {
    color: #7cb342;
}

.blog-post-hero-content .blog-post-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Simple Header (no featured image) */
.blog-post-header-simple {
    padding: 100px 0 60px 0;
    background: linear-gradient(135deg, #7cb342 0%, #20620c 100%);
}

.blog-post-header-simple .blog-post-meta {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.blog-post-header-simple .blog-post-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Blog Post Layout with Sidebar */
.blog-post-container {
    padding: 0 0 80px 0;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.blog-post-content-wrapper {
    min-width: 0;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

.blog-post-content p {
    margin: 0 0 24px 0;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 50px 0 24px 0;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 40px 0 20px 0;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 24px 0;
    padding-left: 32px;
}

.blog-post-content li {
    margin-bottom: 12px;
}

.blog-post-content blockquote {
    border-left: 5px solid #7cb342;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

/* Tags */
.blog-post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
    margin: 40px 0;
}

.tags-label {
    font-weight: 700;
    color: #333;
}

.blog-post-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f8f0;
    color: #20620c;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-post-tags a:hover {
    background: #7cb342;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Post Navigation */
.blog-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.post-nav-item {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.4s ease;
}

.post-nav-item:hover {
    border-color: #7cb342;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.15);
}

.post-nav-item:only-child {
    grid-column: 1 / -1;
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7cb342;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: #7cb342;
}

/* Sidebar */
.widget-area {
    position: sticky;
    top: 100px;
}

.widget {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #7cb342;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget a:hover {
    color: #7cb342;
}

/* Related Posts Section */
.related-posts-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #7cb342 0%, #1e600a 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 50px 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.related-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 179, 66, 0.2);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 24px;
}

.related-post-date {
    display: inline-block;
    font-size: 0.875rem;
    color: #7cb342;
    font-weight: 600;
    margin-bottom: 12px;
}

.related-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-card:hover .related-post-title {
    color: #7cb342;
}

.related-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #7cb342;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
}

.related-post-card:hover .related-post-cta {
    gap: 12px;
}

/* Responsive */

@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .widget-area {
        position: static;
    }
    
    .blog-post-hero {
        height: 400px;
    }
    
    .blog-post-hero-content .blog-post-title,
    .blog-post-header-simple .blog-post-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        height: 350px;
    }
    
    .blog-post-hero-content {
        padding: 40px 0 30px 0;
    }
    
    .blog-post-hero-content .blog-post-title,
    .blog-post-header-simple .blog-post-title {
        font-size: 2.25rem;
    }
    
    .blog-post-header-simple {
        padding: 80px 0 50px 0;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .next-post {
        text-align: left;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .related-posts-section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .blog-post-hero {
        height: 300px;
    }
    
    .blog-post-hero-content .blog-post-title,
    .blog-post-header-simple .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-meta {
        font-size: 0.875rem;
    }
    
    .post-nav-item {
        padding: 20px;
    }
    
    .nav-title {
        font-size: 1.125rem;
    }
}


.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #333;
    margin: 48px 0 24px 0;
    position: relative;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #20620c;
    margin: 36px 0 20px 0;
    line-height: 1.3;
}

.blog-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.blog-content strong {
    font-weight: 700;
    color: #333;
}

.blog-content em {
    font-style: italic;
    color: #444;
}

/* ===================================
   Ungeordnete Listen (Bulletpoints)
   =================================== */

.blog-content ul {
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.blog-content ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #555;
    transition: all 0.3s ease;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #7cb342;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-content ul li:hover {
    transform: translateX(4px);
    color: #333;
}

.blog-content ul li:hover::before {
    transform: scale(1.3);
    background: #20620c;
}

/* Verschachtelte Listen */
.blog-content ul ul {
    margin: 12px 0 12px 20px;
}

.blog-content ul ul li::before {
    width: 6px;
    height: 6px;
    background: #2c5282;
}

/* ===================================
   Geordnete Listen (Nummeriert)
   =================================== */

.blog-content ol {
    margin: 28px 0;
    padding: 0;
    list-style: none;
    counter-reset: blog-counter;
}

.blog-content ol li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #555;
    counter-increment: blog-counter;
    transition: all 0.3s ease;
}

.blog-content ol li::before {
    content: counter(blog-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #7cb342 0%, #20620c 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.blog-content ol li:hover {
    transform: translateX(4px);
    color: #333;
}

.blog-content ol li:hover::before {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 16px rgba(124, 179, 66, 0.4);
}

/* ===================================
   Tabellen
   =================================== */

.blog-content table {
    width: 100%;
    margin: 40px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-content thead {
    background: linear-gradient(135deg, #7cb342 0%, #20620c 100%);
}

.blog-content thead tr th {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #ffffff;
    text-align: left;
    border-bottom: none;
}

.blog-content tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

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

.blog-content tbody tr:hover {
    background: #f8f9fa;
}

.blog-content tbody tr td {
    padding: 18px 24px;
    font-size: 1.0625rem;
    color: #666;
    line-height: 1.6;
}

/* Erste Spalte in tbody hervorheben */
.blog-content tbody tr td:first-child {
    font-weight: 600;
    color: #333;
}

/* Responsive Tabellen */
@media (max-width: 768px) {
    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-content thead tr th,
    .blog-content tbody tr td {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }
}

/* ===================================
   Blockquotes
   =================================== */

.blog-content blockquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: #f0f8f0;
    border-left: 5px solid #7cb342;
    border-radius: 8px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 32px;
    font-size: 4rem;
    color: rgba(124, 179, 66, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.blog-content blockquote p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ===================================
   Code Blöcke
   =================================== */

.blog-content code {
    padding: 3px 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #d14;
}

.blog-content pre {
    margin: 28px 0;
    padding: 24px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.blog-content pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: #7cb342;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===================================
   Links
   =================================== */

.blog-content a {
    color: #7cb342;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.blog-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7cb342;
    transition: width 0.3s ease;
}

.blog-content a:hover {
    color: #20620c;
}

.blog-content a:hover::after {
    width: 100%;
}

/* ===================================
   Responsive Anpassungen
   =================================== */

@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.5rem;
        margin: 36px 0 20px 0;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
        margin: 28px 0 16px 0;
    }
    
    .blog-content p,
    .blog-content ul li,
    .blog-content ol li {
        font-size: 1rem;
    }
    
    .blog-content blockquote {
        padding: 20px 24px;
        font-size: 1rem;
    }
    
    .blog-content ol li {
        padding-left: 40px;
    }
    
    .blog-content ol li::before {
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .blog-content h2 {
        font-size: 1.375rem;
    }
    
    .blog-content h3 {
        font-size: 1.125rem;
    }
}
