/*
 Theme Name:   Statistiken Aktuell Blog
 Theme URI:    https://statistiken-aktuell.de
 Description:  Custom Blog Design f�r Statistiken Aktuell - Modernes Datenportal-Design
 Author:       Claude AI
 Author URI:   https://statistiken-aktuell.de
 Template:     hello-biz
 Version:      3.1.0
 License:      GNU General Public License v2 or later
 Text Domain:  statistiken-blog
*/

/* ==========================================================================
   CSS VARIABLEN
   ========================================================================== */
:root {
    --primary-dark: #0D1B2A;
    --primary-navy: #0F172A;
    --accent-turquoise: #4ECDC4;
    --accent-turquoise-light: rgba(78, 205, 196, 0.15);
    --text-muted: #64748b;
    --text-light: rgba(255, 255, 255, 0.7);
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-light: #E2E8F0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --gradient-hero: linear-gradient(180deg, #0D1B2A 0%, #1E3A5F 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    /* EINHEITLICHE MODERNE SCHRIFT */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: var(--font-main);
    --font-body: var(--font-main);
}


/* ==========================================================================
   GLOBALE RESETS FÜR BLOG-SEITEN
   ========================================================================== */

/* EINHEITLICHE SCHRIFT FÜR ALLE BLOG-ELEMENTE */
body.blog,
body.archive,
body.single-post,
body.category,
body.tag,
body.blog *,
body.archive *,
body.single-post *,
body.category *,
body.tag * {
    font-family: var(--font-main) !important;
}

/* Body-Klassen für Blog-Seiten */
body.blog,
body.archive,
body.single-post,
body.category,
body.tag {
    background: var(--bg-light);
}

/* KRITISCH: Alle Container-Limits für Blog-Seiten aufheben */
body.blog .site-content,
body.archive .site-content,
body.category .site-content,
body.tag .site-content,
body.blog .content-area,
body.archive .content-area,
body.category .content-area,
body.tag .content-area,
body.blog .site-main,
body.archive .site-main,
body.category .site-main,
body.tag .site-main,
body.blog main,
body.archive main,
body.category main,
body.tag main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Elementor Container für Blog-Seiten überschreiben */
body.blog .elementor-section.elementor-section-boxed > .elementor-container,
body.archive .elementor-section.elementor-section-boxed > .elementor-container,
body.single-post .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}

/* ==========================================================================
   BLOG ARCHIV - HERO HEADER (VOLLBREITE)
   ========================================================================== */
.stat-archive-hero {
    background: var(--gradient-hero);
    padding: 100px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
}

.stat-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ECDC4' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-turquoise-light);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 50px;
    padding: 12px 28px;
    color: var(--accent-turquoise);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 22px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-light);
    margin: 0 0 45px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-turquoise);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    display: block;
}


/* ==========================================================================
   BLOG CONTAINER - VOLLBREITE LAYOUT
   ========================================================================== */
.stat-blog-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 70px 5vw 120px !important;
    box-sizing: border-box;
    background: var(--bg-light);
}

/* ==========================================================================
   KATEGORIE FILTER
   ========================================================================== */
.stat-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 55px;
    padding: 0 20px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    color: var(--primary-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filter-btn:hover {
    border-color: var(--cat-color, var(--accent-turquoise));
    color: var(--cat-color, var(--accent-turquoise));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: var(--accent-turquoise);
    border-color: var(--accent-turquoise);
    color: var(--primary-dark);
    font-weight: 700;
}

/* ==========================================================================
   BLOG GRID - GROSSES 3-SPALTEN LAYOUT
   ========================================================================== */
.stat-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Featured Post - Groß (2 Spalten) */
.stat-post-card.featured {
    grid-column: span 2;
}

/* Post Card - Basis */
.stat-post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-post-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-turquoise);
}

/* Card Thumbnail */
.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    min-height: 240px;
}

.stat-post-card.featured .card-thumbnail {
    aspect-ratio: 16/9;
    min-height: 360px;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.stat-post-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.5;
}

.stat-post-card.featured .placeholder-icon {
    font-size: 100px;
}

/* Category Badge */
.card-category {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Card Content */
.card-content {
    padding: 32px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stat-post-card.featured .card-content {
    padding: 40px 45px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 16px;
}

.stat-post-card.featured .card-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.card-title a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--accent-turquoise);
}

.card-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
    flex-grow: 1;
}

.stat-post-card.featured .card-excerpt {
    font-size: 18px;
    line-height: 1.8;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.card-meta {
    display: flex;
    gap: 20px;
}

.meta-date,
.meta-reading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-date svg,
.meta-reading svg {
    opacity: 0.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-turquoise);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */
.stat-pagination {
    margin-top: 70px;
    text-align: center;
}

.stat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-pagination a,
.stat-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--primary-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stat-pagination a:hover {
    border-color: var(--accent-turquoise);
    color: var(--accent-turquoise);
    transform: translateY(-2px);
}

.stat-pagination .current {
    background: var(--accent-turquoise);
    border-color: var(--accent-turquoise);
    color: var(--primary-dark);
}

/* No Posts */
.stat-no-posts {
    text-align: center;
    padding: 100px 20px;
}

.no-posts-icon {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.4;
}

.stat-no-posts h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.stat-no-posts p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 35px;
}

.btn-back {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent-turquoise);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* ==========================================================================
   SINGLE POST - VOLLBREITE LAYOUT
   ========================================================================== */
body.single-post .site-content,
body.single-post .content-area,
body.single-post main {
    max-width: none !important;
    padding: 0 !important;
}

/* Single Post Container */
.single-stat-post {
    width: 100%;
    background: var(--bg-light);
}

/* Breadcrumbs */
.stat-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 20px;
    background: var(--primary-navy);
    font-size: 14px;
}

.stat-breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.stat-breadcrumbs a:hover {
    color: var(--accent-turquoise);
}

.stat-breadcrumbs .sep {
    color: var(--text-light);
    opacity: 0.4;
}

.stat-breadcrumbs .current {
    color: var(--white);
    font-weight: 500;
}

/* Single Post Header - HERO */
.stat-post-header {
    background: var(--gradient-hero);
    padding: 80px 20px 70px;
    text-align: center;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
}

.stat-post-header-inner {
    max-width: 950px;
    margin: 0 auto;
}

.stat-category-badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.stat-category-badge:hover {
    transform: scale(1.05);
}

.stat-post-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 28px;
    line-height: 1.2;
}

.stat-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.stat-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 15px;
}

.stat-meta-item svg {
    opacity: 0.7;
}


/* Featured Image */
.stat-featured-image {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stat-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

/* Single Post Content */
.stat-post-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 25px 80px;
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

.stat-post-content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 2.5em 0 1em;
    scroll-margin-top: 100px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-turquoise-light);
}

.stat-post-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 2em 0 0.8em;
}

.stat-post-content p {
    margin-bottom: 1.5em;
}

.stat-post-content strong {
    color: var(--primary-navy);
}

/* Tables in Single Post */
.stat-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5em 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-size: 16px;
}

.stat-post-content th {
    background: var(--primary-navy);
    color: var(--white);
    padding: 18px 22px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-post-content td {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-light);
}

.stat-post-content tr:nth-child(even) {
    background: var(--bg-light);
}

.stat-post-content tr:hover {
    background: var(--accent-turquoise-light);
}

/* Lists */
.stat-post-content ul,
.stat-post-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.stat-post-content li {
    margin-bottom: 0.8em;
}

/* ==========================================================================
   SHORTCODE STYLES
   ========================================================================== */

/* Key Facts Box */
.key-facts-box {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1E3A5F 100%);
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    margin: 2.5em 0;
    border-left: 5px solid var(--accent-turquoise);
    box-shadow: var(--shadow-soft);
}

.key-facts-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.key-facts-icon {
    font-size: 28px;
}

.key-facts-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

.key-facts-content {
    color: var(--text-light);
    line-height: 1.85;
    font-size: 16px;
}

.key-facts-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-facts-content li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
}

.key-facts-content li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-turquoise);
    font-weight: bold;
    font-size: 18px;
}

/* Stat Highlight Box */
.stat-highlight {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 2.5em 0;
    box-shadow: var(--shadow-soft);
}

.stat-highlight .stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-navy);
    display: block;
    line-height: 1;
}

.stat-highlight .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin: 14px 0;
}

.stat-highlight .stat-change.trend-up {
    color: #22c55e;
}

.stat-highlight .stat-change.trend-down {
    color: #ef4444;
}

.stat-highlight .stat-label {
    font-size: 17px;
    color: var(--text-muted);
    display: block;
    margin-top: 12px;
}

/* Data Source */
.data-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-muted);
    margin: 2.5em 0;
}

.data-source svg {
    flex-shrink: 0;
    color: var(--accent-turquoise);
}

.data-source a {
    color: var(--accent-turquoise);
    text-decoration: none;
    font-weight: 500;
}

.data-source a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.stat-toc {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px 35px;
    margin: 2.5em 0;
    box-shadow: var(--shadow-soft);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.toc-list li {
    counter-increment: toc;
    margin-bottom: 12px;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.toc-list a::before {
    content: counter(toc) ".";
    color: var(--accent-turquoise);
    font-weight: 700;
    min-width: 25px;
}

.toc-list a:hover {
    color: var(--accent-turquoise);
    background: var(--accent-turquoise-light);
    padding-left: 18px;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */
.stat-share-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
    margin: 2.5em 0;
}

.share-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-navy);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-navy);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.share-twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.share-email:hover {
    background: var(--accent-turquoise);
    color: var(--primary-dark);
    border-color: var(--accent-turquoise);
}

/* ==========================================================================
   POST FOOTER & SOURCE INFO
   ========================================================================== */
.stat-post-footer-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 25px 40px;
}

.stat-source-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: var(--primary-navy);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 14px;
    margin-top: 30px;
}

.stat-source-info svg {
    color: var(--accent-turquoise);
    flex-shrink: 0;
}

/* Tags */
.stat-post-tags {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 25px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tags-label {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 14px;
}

.stat-tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stat-tag:hover {
    background: var(--accent-turquoise-light);
    border-color: var(--accent-turquoise);
    color: var(--primary-navy);
}


/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.stat-related-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 25px 100px;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 35px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-turquoise);
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.08);
}

.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-navy);
    font-size: 42px;
}

.related-content {
    padding: 24px 26px;
}

.related-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0 0 12px;
    line-height: 1.4;
}

.related-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* 1400px - Laptop */
@media (max-width: 1400px) {
    .stat-blog-container {
        padding: 60px 4vw 100px !important;
    }
    
    .stat-blog-grid {
        gap: 30px;
    }
    
    .stat-post-card.featured .card-title {
        font-size: 28px;
    }
}

/* 1200px - Tablet Landscape */
@media (max-width: 1200px) {
    .stat-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .stat-post-card.featured {
        grid-column: span 2;
    }
    
    .stat-post-card.featured .card-thumbnail {
        min-height: 300px;
    }
    
    .hero-stats {
        gap: 50px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 900px - Tablet */
@media (max-width: 900px) {
    .stat-archive-hero {
        padding: 80px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-stat .stat-number {
        font-size: 38px;
    }
    
    .card-content {
        padding: 24px 26px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .stat-post-card.featured .card-content {
        padding: 32px 35px;
    }
    
    .stat-post-card.featured .card-title {
        font-size: 26px;
    }
    
    .stat-post-content {
        padding: 50px 20px 70px;
        font-size: 17px;
    }
    
    .stat-post-content h2 {
        font-size: 26px;
    }
}

/* 768px - Mobile Landscape */
@media (max-width: 768px) {
    .stat-blog-container {
        padding: 40px 20px 70px !important;
    }
    
    .stat-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-post-card.featured {
        grid-column: span 1;
    }
    
    .stat-post-card.featured .card-thumbnail {
        min-height: 220px;
    }
    
    .stat-post-card.featured .card-title {
        font-size: 24px;
    }
    
    .stat-post-card.featured .card-content {
        padding: 26px;
    }
    
    .stat-archive-hero {
        padding: 60px 15px 50px;
    }
    
    .hero-stats {
        gap: 35px;
    }
    
    .hero-stat .stat-number {
        font-size: 32px;
    }
    
    .hero-stat .stat-label {
        font-size: 12px;
    }
    
    .stat-category-filter {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-related-posts {
        padding: 50px 20px 80px;
    }
    
    /* Single Post Mobile */
    .stat-post-header {
        padding: 60px 15px 50px;
    }
    
    .stat-post-title {
        font-size: 28px;
    }
    
    .stat-post-meta {
        gap: 20px;
    }
    
    .stat-meta-item {
        font-size: 14px;
    }
    
    .stat-featured-image {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .stat-post-content {
        padding: 40px 18px 60px;
        font-size: 16px;
        line-height: 1.8;
    }
    
    .stat-post-content h2 {
        font-size: 24px;
        margin: 2em 0 0.8em;
    }
    
    .stat-post-content h3 {
        font-size: 20px;
    }
    
    .key-facts-box {
        padding: 28px 24px;
    }
    
    .key-facts-title {
        font-size: 18px;
    }
    
    .stat-highlight {
        padding: 30px 25px;
    }
    
    .stat-highlight .stat-number {
        font-size: 44px;
    }
    
    .stat-toc {
        padding: 25px;
    }
    
    .stat-share-buttons {
        flex-wrap: wrap;
        gap: 14px;
    }
    
    .share-btn {
        width: 42px;
        height: 42px;
    }
    
    .stat-post-footer-section {
        padding: 0 18px 30px;
    }
    
    .stat-post-tags {
        padding: 0 18px 40px;
    }
}

/* 480px - Mobile Portrait */
@media (max-width: 480px) {
    .hero-badge {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .card-thumbnail {
        min-height: 180px;
    }
    
    .placeholder-icon {
        font-size: 56px;
    }
    
    .card-content {
        padding: 22px 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-excerpt {
        font-size: 15px;
    }
    
    .stat-post-title {
        font-size: 24px;
    }
    
    .stat-breadcrumbs {
        font-size: 13px;
        gap: 8px;
    }
}

/* ==========================================================================
   ELEMENTOR-SEITEN NICHT BEEINFLUSSEN
   ========================================================================== */

/* Elementor-Header und Footer überall gleich lassen */
header.site-header,
footer.site-footer,
.elementor-location-header,
.elementor-location-footer {
    /* Keine Änderungen durch Blog-Styles */
}

/* Nur auf Nicht-Blog-Seiten Elementor normal rendern */
body:not(.blog):not(.archive):not(.single-post):not(.category):not(.tag) .site-content,
body:not(.blog):not(.archive):not(.single-post):not(.category):not(.tag) .content-area,
body:not(.blog):not(.archive):not(.single-post):not(.category):not(.tag) main {
    /* Keine Änderungen - Elementor-Layout normal */
}

/* ==========================================================================
   STATISTIKEN AKTUELL BLOG - v3.0 SIDEBAR LAYOUT UPDATE
   ========================================================================== */

/* ==========================================================================
   ZWEI-SPALTEN LAYOUT
   ========================================================================== */
.stat-post-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 80px;
    align-items: start;
}

/* Hauptinhalt */
.stat-post-main {
    min-width: 0; /* Prevent grid blowout */
}

.stat-post-content {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

/* Alte max-width Regeln überschreiben */
.stat-post-content,
.stat-post-footer-section,
.stat-post-tags {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   SIDEBAR STYLES
   ========================================================================== */
.stat-post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Sidebar TOC */
.sidebar-toc {
    display: none; /* Versteckt bis JS es füllt */
}

.sidebar-toc.has-toc {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.sidebar-toc .toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: sidebar-toc;
}

.sidebar-toc .toc-list li {
    counter-increment: sidebar-toc;
    margin-bottom: 8px;
}

.sidebar-toc .toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-toc .toc-list a::before {
    content: counter(sidebar-toc) ".";
    color: var(--accent-turquoise);
    font-weight: 700;
    min-width: 20px;
    flex-shrink: 0;
}

.sidebar-toc .toc-list a:hover {
    color: var(--accent-turquoise);
    background: var(--accent-turquoise-light);
}

.sidebar-toc .toc-list a.active {
    color: var(--primary-navy);
    background: var(--accent-turquoise-light);
    border-left-color: var(--accent-turquoise);
    font-weight: 500;
}

/* Autor Box */
.sidebar-author-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    text-align: center;
}

.author-avatar {
    margin-bottom: 16px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-turquoise);
}

.author-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0 0 10px;
}

.author-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Newsletter Box */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1E3A5F 100%);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    color: var(--white);
}

.newsletter-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.sidebar-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

.sidebar-newsletter p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px;
    line-height: 1.5;
}

.newsletter-btn {
    display: inline-block;
    background: var(--accent-turquoise);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Sidebar Related Posts */
.sidebar-related {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.sidebar-related h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-related-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sidebar-related-item a {
    text-decoration: none;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sidebar-related-thumb {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-related-thumb .no-thumb {
    font-size: 20px;
    opacity: 0.5;
}

.sidebar-related-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-navy);
    margin: 0 0 4px;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-related-item a:hover h5 {
    color: var(--accent-turquoise);
}

.sidebar-related-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   KOMMENTARE - VERBESSERTES DESIGN
   ========================================================================== */
.stat-comments-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid var(--border-light);
}

/* WordPress Comments überschreiben */
.stat-comments-section .comments-area,
.stat-comments-section #comments {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.stat-comments-section .comments-title,
.stat-comments-section #reply-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}



/* Kommentar-Liste */
.stat-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.stat-comments-section .comment {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-comments-section .comment .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 20px;
    border-left: 3px solid var(--accent-turquoise-light);
}

.stat-comments-section .comment .children .comment {
    background: var(--bg-light);
}

/* Kommentar Header */
.stat-comments-section .comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.stat-comments-section .comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

.stat-comments-section .comment-author .fn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 16px;
}

.stat-comments-section .comment-metadata {
    margin-left: 64px;
    margin-bottom: 14px;
}

.stat-comments-section .comment-metadata a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

/* Kommentar Content */
.stat-comments-section .comment-content {
    margin-left: 64px;
    color: #4B5563;
    line-height: 1.7;
    font-size: 15px;
}

.stat-comments-section .comment-content p {
    margin: 0 0 12px;
}

/* Reply Link */
.stat-comments-section .reply {
    margin-left: 64px;
    margin-top: 14px;
}

.stat-comments-section .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-turquoise);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--accent-turquoise);
    transition: all 0.2s ease;
}

.stat-comments-section .comment-reply-link:hover {
    background: var(--accent-turquoise);
    color: var(--primary-dark);
}

/* Kommentar-Formular */
.stat-comments-section .comment-respond {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.stat-comments-section #reply-title {
    margin-bottom: 25px;
}



.stat-comments-section .comment-notes {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.stat-comments-section .comment-form-comment,
.stat-comments-section .comment-form-author,
.stat-comments-section .comment-form-email,
.stat-comments-section .comment-form-url {
    margin-bottom: 20px;
}

.stat-comments-section .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.stat-comments-section .comment-form input[type="text"],
.stat-comments-section .comment-form input[type="email"],
.stat-comments-section .comment-form input[type="url"],
.stat-comments-section .comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.stat-comments-section .comment-form input:focus,
.stat-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 0 4px var(--accent-turquoise-light);
}

.stat-comments-section .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.stat-comments-section .form-submit {
    margin-top: 25px;
}

.stat-comments-section .submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-turquoise);
    color: var(--primary-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-comments-section .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Checkbox Styling */
.stat-comments-section .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.stat-comments-section .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-turquoise);
}

.stat-comments-section .comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1200px) {
    .stat-post-layout {
        grid-template-columns: 1fr 320px;
        gap: 40px;
        padding: 40px 30px 60px;
    }
}

@media (max-width: 1024px) {
    .stat-post-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 40px 25px 60px;
    }
    
    .stat-post-sidebar {
        position: static;
        max-height: none;
    }
    
    .sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-toc.has-toc {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .stat-post-layout {
        padding: 30px 20px 50px;
    }
    
    .sidebar-inner {
        grid-template-columns: 1fr;
    }
    
    .sidebar-toc.has-toc {
        grid-column: span 1;
    }
    
    .stat-post-content {
        font-size: 17px;
    }
    
    .stat-comments-section .comment {
        padding: 20px;
    }
    
    .stat-comments-section .comment-author img {
        width: 40px;
        height: 40px;
    }
    
    .stat-comments-section .comment-content,
    .stat-comments-section .comment-metadata,
    .stat-comments-section .reply {
        margin-left: 54px;
    }
    
    .stat-comments-section .comment .children {
        padding-left: 15px;
    }
    
    .stat-comments-section .comment-respond {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .stat-post-layout {
        padding: 25px 15px 40px;
    }
    
    .stat-comments-section .comment-content,
    .stat-comments-section .comment-metadata,
    .stat-comments-section .reply {
        margin-left: 0;
        margin-top: 15px;
    }
}



/* ==========================================================================
   v3.1 UPDATES - KOMMENTAR-STERNCHEN & BLOG-LAYOUT FIXES
   ========================================================================== */

/* Sternchen f�r Pflichtfelder - korrekte Darstellung */
.stat-comments-section .required,
.comment-form .required,
.required {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 2px;
}

.stat-comments-section .required-field-message {
    color: var(--text-muted);
    font-style: italic;
}

/* Kommentar-Form Labels verbessern */
.stat-comments-section .comment-form label {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   BLOG ARCHIV - VERBESSERTES LAYOUT (BREITER & PR�SENTER)
   ========================================================================== */

/* Blog Container mit mehr Breite */
body.blog .stat-blog-container,
body.archive .stat-blog-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 70px 4vw 120px !important;
    box-sizing: border-box;
    background: var(--bg-light);
}

/* Gr��eres Grid mit mehr Pr�senz */
body.blog .stat-blog-grid,
body.archive .stat-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Featured Post �ber volle Breite bei 2+ Spalten */
@media (min-width: 820px) {
    body.blog .stat-post-card.featured:first-child,
    body.archive .stat-post-card.featured:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        max-width: 1200px;
        margin: 0 auto 20px;
    }
    
    body.blog .stat-post-card.featured:first-child .card-thumbnail,
    body.archive .stat-post-card.featured:first-child .card-thumbnail {
        aspect-ratio: 4/3;
        min-height: 320px;
    }
    
    body.blog .stat-post-card.featured:first-child .card-content,
    body.archive .stat-post-card.featured:first-child .card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 45px;
    }
}

/* Gr��ere Card-Thumbnails */
body.blog .stat-post-card .card-thumbnail,
body.archive .stat-post-card .card-thumbnail {
    aspect-ratio: 16/9;
    min-height: 220px;
}

/* Placeholder Icons gr��er */
body.blog .stat-post-card .placeholder-icon,
body.archive .stat-post-card .placeholder-icon {
    font-size: 72px;
}

/* Card Content mit mehr Padding */
body.blog .stat-post-card .card-content,
body.archive .stat-post-card .card-content {
    padding: 28px 32px 32px;
}

body.blog .stat-post-card .card-title,
body.archive .stat-post-card .card-title {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
}

body.blog .stat-post-card .card-excerpt,
body.archive .stat-post-card .card-excerpt {
    font-size: 15px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Section gr��er */
body.blog .stat-archive-hero,
body.archive .stat-archive-hero {
    padding: 120px 40px 100px;
}

body.blog .stat-archive-hero .hero-title,
body.archive .stat-archive-hero .hero-title {
    font-size: clamp(42px, 6vw, 64px);
}

body.blog .stat-archive-hero .hero-subtitle,
body.archive .stat-archive-hero .hero-subtitle {
    font-size: 20px;
    max-width: 750px;
}

/* Kategorie Filter verbessertes Layout */
body.blog .stat-category-filter,
body.archive .stat-category-filter {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* ==========================================================================
   SINGLE POST - CONTENT BREITER
   ========================================================================== */
body.single-post .stat-post-layout {
    max-width: 1500px;
    padding: 50px 5vw 80px;
}

body.single-post .stat-post-content {
    font-size: 18px;
    line-height: 1.9;
}

/* Tabellen volle Breite */
body.single-post .stat-post-content table {
    width: 100%;
    margin: 2em 0;
}

/* ==========================================================================
   RESPONSIVE ANPASSUNGEN F�R NEUES LAYOUT
   ========================================================================== */
@media (max-width: 900px) {
    body.blog .stat-blog-grid,
    body.archive .stat-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    body.blog .stat-post-card.featured:first-child,
    body.archive .stat-post-card.featured:first-child {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    body.blog .stat-blog-grid,
    body.archive .stat-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
    }
    
    body.blog .stat-blog-container,
    body.archive .stat-blog-container {
        padding: 50px 20px 80px !important;
    }
    
    body.blog .stat-post-card .card-thumbnail,
    body.archive .stat-post-card .card-thumbnail {
        min-height: 200px;
    }
    
    body.blog .stat-post-card .card-content,
    body.archive .stat-post-card .card-content {
        padding: 24px;
    }
    
    body.blog .stat-post-card .card-title,
    body.archive .stat-post-card .card-title {
        font-size: 20px;
    }
}
/* ==========================================================================
   v3.2 DESIGN-UPDATES - STIMMIGER & RUNDER
   ========================================================================== */

/* Verbesserte Übergänge global */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BLOG-ARCHIV VERBESSERUNGEN
   ========================================================================== */

/* Blog-Seite ohne Hero-Header - schlichtere Darstellung */
body.blog .stat-archive-hero,
body.home .stat-archive-hero {
    padding: 60px 40px 50px;
    background: linear-gradient(180deg, #0D1B2A 0%, #152238 100%);
}

body.blog .stat-archive-hero .hero-title,
body.home .stat-archive-hero .hero-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 15px;
}

body.blog .stat-archive-hero .hero-subtitle,
body.home .stat-archive-hero .hero-subtitle {
    font-size: 17px;
    margin-bottom: 30px;
}

/* Hero-Stats kleiner auf Blog-Seite */
body.blog .stat-archive-hero .hero-stats,
body.home .stat-archive-hero .hero-stats {
    display: none;
}

/* ==========================================================================
   KARTEN-DESIGN VERFEINERUNGEN
   ========================================================================== */

/* Sanftere Schatten */
.stat-post-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Kategorie-Badge-Verfeinerung */
.card-category {
    font-size: 10px;
    padding: 6px 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Titel-Hover konsistenter */
.card-title a {
    transition: color 0.2s ease;
}

.stat-post-card:hover .card-title a {
    color: var(--accent-turquoise);
}

/* ==========================================================================
   SINGLE-POST VERFEINERUNGEN
   ========================================================================== */

/* Header schlanker */
.stat-post-header {
    padding: 70px 20px 60px;
}

.stat-post-title {
    font-size: clamp(28px, 4.5vw, 46px);
    letter-spacing: -0.5px;
}

/* Featured Image mit subtilerem Schatten */
.stat-featured-image img {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Content-Bereich */
.stat-post-content {
    font-size: 17.5px;
    line-height: 1.85;
}

.stat-post-content p {
    color: #374151;
}

/* H2 mit subtilerer Unterstreichung */
.stat-post-content h2 {
    font-size: 26px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.2);
    margin: 2.2em 0 0.9em;
}

.stat-post-content h3 {
    font-size: 21px;
    margin: 1.8em 0 0.7em;
}

/* Tabellen verbessert */
.stat-post-content table {
    font-size: 15px;
    border-radius: 12px;
}

.stat-post-content th {
    font-size: 13px;
    padding: 14px 18px;
    letter-spacing: 0.3px;
}

.stat-post-content td {
    padding: 13px 18px;
}

/* ==========================================================================
   SIDEBAR-VERFEINERUNGEN
   ========================================================================== */

/* Sidebar-Boxen konsistenter */
.sidebar-author-box,
.sidebar-toc.has-toc,
.sidebar-related {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* TOC-Links mit mehr Padding */
.sidebar-toc .toc-list a {
    padding: 8px 10px;
    border-radius: 6px;
}

/* Autor-Box zentrierter */
.sidebar-author-box {
    padding: 24px;
}

.author-avatar img {
    width: 70px;
    height: 70px;
    border-width: 2px;
}

.author-name {
    font-size: 16px;
    margin: 0 0 8px;
}

.author-bio {
    font-size: 13px;
    line-height: 1.55;
}

/* ==========================================================================
   SHORTCODE-VERFEINERUNGEN
   ========================================================================== */

/* Key Facts Box subtiler */
.key-facts-box {
    padding: 30px 35px;
    border-radius: 16px;
    border-left-width: 4px;
}

.key-facts-title {
    font-size: 18px;
}

.key-facts-content {
    font-size: 15px;
    line-height: 1.75;
}

.key-facts-content li {
    margin-bottom: 12px;
    padding-left: 28px;
}

/* Stat-Box eleganter */
.stat-highlight {
    border-radius: 16px;
    padding: 35px;
    border-width: 1px;
}

.stat-highlight .stat-number {
    font-size: 48px;
    letter-spacing: -1px;
}

.stat-highlight .stat-label {
    font-size: 15px;
    margin-top: 10px;
}

/* ==========================================================================
   SHARE-BUTTONS SUBTILER
   ========================================================================== */

.stat-share-buttons {
    padding: 24px 0;
    border-width: 1px;
    gap: 14px;
}

.share-btn {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RELATED POSTS ELEGANTER
   ========================================================================== */

.stat-related-posts {
    padding: 50px 25px 80px;
}

.related-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.related-card {
    border-radius: 16px;
}

.related-card:hover {
    transform: translateY(-6px);
}

.related-content {
    padding: 20px 22px;
}

.related-content h4 {
    font-size: 16px;
    line-height: 1.4;
}

/* ==========================================================================
   KOMMENTARE VERFEINERT
   ========================================================================== */

.stat-comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top-width: 1px;
}

.stat-comments-section .comment-respond {
    border-radius: 16px;
    padding: 30px;
}

.stat-comments-section .comment-form input[type="text"],
.stat-comments-section .comment-form input[type="email"],
.stat-comments-section .comment-form input[type="url"],
.stat-comments-section .comment-form textarea {
    border-radius: 10px;
    border-width: 1px;
    padding: 12px 16px;
}

.stat-comments-section .submit {
    padding: 12px 28px;
    font-size: 14px;
    border-radius: 25px;
}

/* ==========================================================================
   MOBILE RESPONSIVE FEINTUNING
   ========================================================================== */

@media (max-width: 768px) {
    body.blog .stat-archive-hero,
    body.home .stat-archive-hero {
        padding: 45px 20px 35px;
    }
    
    body.blog .stat-archive-hero .hero-title,
    body.home .stat-archive-hero .hero-title {
        font-size: 28px;
    }
    
    .stat-post-header {
        padding: 50px 15px 40px;
    }
    
    .stat-post-title {
        font-size: 26px;
    }
    
    .stat-post-content {
        font-size: 16px;
        line-height: 1.75;
    }
    
    .stat-post-content h2 {
        font-size: 22px;
    }
    
    .key-facts-box {
        padding: 24px 20px;
    }
    
    .stat-highlight {
        padding: 28px 22px;
    }
    
    .stat-highlight .stat-number {
        font-size: 40px;
    }
}

/* ==========================================================================
   SOURCE-INFO BAR ELEGANTER
   ========================================================================== */

.stat-source-info {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 25px;
}

/* ==========================================================================
   BREADCRUMBS SUBTILER
   ========================================================================== */

.stat-breadcrumbs {
    padding: 18px 20px;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.95);
}

.stat-breadcrumbs .sep {
    opacity: 0.3;
    margin: 0 6px;
}

/* ==========================================================================
   FOOTER-TAGS ELEGANTER
   ========================================================================== */

.stat-tag {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
}

.stat-tag:hover {
    transform: translateY(-2px);
}
