/* ================================================
   BLOG DESIGN - Warm & Handwerklich
   Gemütlich, authentisch, mit warmen Farben
   ================================================ */

:root {
    /* Warme Farben */
    --warm-cream: #FAF8F3;
    --warm-beige: #F5F1E8;
    --warm-brown: #8B6F47;
    --warm-brown-dark: #6B5433;
    --warm-brown-light: #A68B5B;
    --warm-orange: #D97706;
    --warm-orange-light: #F59E0B;
    --warm-red: #DC2626;

    /* Handwerkliche Akzente */
    --craftsman-blue: #1E3A5F;
    --craftsman-green: #4D7C5E;
    --wood-grain: #C19A6B;

    /* Text */
    --text-dark: #2C2416;
    --text-medium: #5A4A3A;
    --text-light: #8B7F73;
}

/* ========================================
   BLOG ÜBERSICHTSSEITE
   ======================================== */

/* Hero Section mit warmem Hintergrund */
.unified-hero {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--warm-cream) 100%);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.unified-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 111, 71, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.unified-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.unified-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.unified-hero-accent {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unified-hero p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Buttons - Handwerklich */
.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: white;
    border: 2px solid var(--warm-brown-light);
    border-radius: 50px;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.1);
}

.blog-filter-btn:hover {
    background: var(--warm-beige);
    border-color: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.2);
}

.blog-filter-btn.active {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    border-color: var(--warm-orange);
    color: white;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.blog-filter-btn.active i,
.blog-filter-btn.active svg {
    color: white;
}

/* Featured Post - Großer Hero-Artikel */
.blog-post-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(139, 111, 71, 0.12),
        0 0 0 1px rgba(139, 111, 71, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4rem;
}

.blog-post-featured:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 40px rgba(139, 111, 71, 0.2),
        0 0 0 1px rgba(139, 111, 71, 0.12);
}

.blog-featured-image {
    position: relative;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    background: var(--warm-beige);
}

.blog-featured-image img {
    display: block;
    width: 100%;
    height: 450px;
    min-height: 450px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.blog-featured-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

/* Blog Cards - Warm & Handwerklich */
.blog-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(139, 111, 71, 0.1),
        0 0 0 1px rgba(139, 111, 71, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(139, 111, 71, 0.18),
        0 0 0 1px rgba(139, 111, 71, 0.1);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--warm-beige);
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Category Badge - Handwerklich */
.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--warm-brown);
    border: 2px solid var(--warm-brown-light);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.blog-card-content {
    padding: 1.75rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Links - Handwerklich */
.blog-card-link,
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--warm-orange);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-radius: 50px;
    border: 2px solid transparent;
}

.blog-card-link:hover,
.blog-read-more:hover {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    color: white;
    transform: translateX(4px);
    border-color: var(--warm-orange);
}

.blog-card-link i,
.blog-card-link svg,
.blog-read-more i,
.blog-read-more svg {
    transition: transform 0.3s;
}

.blog-card-link:hover i,
.blog-card-link:hover svg,
.blog-read-more:hover i,
.blog-read-more:hover svg {
    transform: translateX(4px);
}

/* Newsletter CTA - Warm */
.kontakt-cta {
    background: linear-gradient(135deg, var(--warm-brown) 0%, var(--warm-brown-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kontakt-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.kontakt-cta h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.kontakt-cta p {
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.kontakt-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.kontakt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.kontakt-btn-primary {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.kontakt-btn-primary:hover {
    background: white;
    color: var(--warm-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
}

.kontakt-btn-secondary {
    background: white;
    color: var(--warm-brown);
    border-color: rgba(255, 255, 255, 0.3);
}

.kontakt-btn-secondary:hover {
    background: var(--warm-beige);
    color: var(--warm-brown-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .blog-post-featured {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .blog-featured-image {
        min-height: 300px;
    }

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

@media (max-width: 768px) {
    .unified-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .blog-filters {
        gap: 0.75rem;
    }

    .blog-filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 200px;
    }

    .kontakt-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .kontakt-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   BLOG ARTIKEL-SEITEN
   ======================================== */

/* Lesefortschritt-Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* Blog Article Container mit Sidebar */
.blog-article-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

/* Table of Contents - Sticky Sidebar */
.blog-toc {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow:
        0 4px 16px rgba(139, 111, 71, 0.1),
        0 0 0 1px rgba(139, 111, 71, 0.06);
}

.blog-toc-title {
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--warm-beige);
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc-item {
    margin-bottom: 0.75rem;
}

.blog-toc-link {
    display: block;
    font-size: 0.875rem;
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
    line-height: 1.5;
}

.blog-toc-link:hover {
    background: var(--warm-beige);
    color: var(--warm-brown);
    padding-left: 1rem;
}

.blog-toc-link.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--warm-orange);
    font-weight: 700;
    border-left: 3px solid var(--warm-orange);
    padding-left: 1rem;
}

/* Blog Article Content */
.blog-post-article {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 4px 20px rgba(139, 111, 71, 0.08),
        0 0 0 1px rgba(139, 111, 71, 0.04);
}

/* Disclaimer Box */
.blog-disclaimer {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid rgba(217, 119, 6, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.blog-disclaimer svg {
    flex-shrink: 0;
    color: var(--warm-orange);
    margin-top: 0.125rem;
}

.blog-disclaimer p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.blog-disclaimer strong {
    color: var(--warm-orange);
    font-weight: 700;
}

/* Hero Image */
.blog-post-hero {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.15);
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Header */
.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-post-meta .separator {
    color: var(--warm-brown-light);
}

.blog-post-category {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.7;
    font-weight: 500;
}

/* Post Content - Typography */
.blog-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--warm-beige);
    position: relative;
}

.blog-post-content h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-brown);
    margin: 2.5rem 0 1.25rem 0;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.blog-post-content strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Listen */
.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0 2rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.875rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.blog-post-content ul li::marker {
    color: var(--warm-orange);
    font-size: 1.25em;
}

.blog-post-content ol {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}

.blog-post-content ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 3rem;
}

.blog-post-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Info Boxes */
.blog-info-box {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(77, 124, 94, 0.05) 100%);
    border-left: 4px solid var(--craftsman-blue);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.blog-info-box h4 {
    color: var(--craftsman-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
}

.blog-info-box ul {
    margin-bottom: 0;
}

/* Calculation Box */
.calculation-box {
    background: white;
    border: 2px solid var(--warm-brown-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.1);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--warm-beige);
    font-size: 1.0625rem;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.highlight {
    color: var(--craftsman-green);
    font-weight: 600;
}

.calc-row.total {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    padding: 1.25rem 1.5rem;
    margin: 1rem -2rem -2rem -2rem;
    border-radius: 0 0 14px 14px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--warm-orange);
}

.calc-row strong {
    font-weight: 800;
    font-size: 1.125rem;
}

/* Blog CTA Footer */
.blog-post-footer {
    margin-top: 4rem;
}

.blog-cta {
    background: linear-gradient(135deg, var(--warm-brown) 0%, var(--warm-brown-dark) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-cta h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
}

.blog-cta p {
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--warm-orange-light) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.cta-buttons .btn-primary:hover {
    background: white;
    color: var(--warm-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.4);
}

.cta-buttons .btn-secondary {
    background: white;
    color: var(--warm-brown);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: var(--warm-beige);
    color: var(--warm-brown-dark);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE - BLOG ARTIKEL
   ======================================== */

@media (max-width: 1200px) {
    .blog-article-container {
        grid-template-columns: 220px 1fr;
        gap: 3rem;
    }

    .blog-toc {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 1024px) {
    .blog-article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-toc {
        position: relative;
        top: 0;
        order: -1;
    }

    .blog-post-article {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-article-container {
        padding: 2rem 1.5rem;
    }

    .blog-post-article {
        padding: 1.5rem;
    }

    .blog-post-header h1 {
        font-size: 1.75rem;
    }

    .blog-post-lead {
        font-size: 1.125rem;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .blog-post-content h3 {
        font-size: 1.25rem;
    }

    .calculation-box {
        padding: 1.5rem;
    }

    .calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .blog-cta {
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
