/* HumusZiegel React App Styles */

/* Base */
html { scroll-behavior: smooth; }
body { 
    font-family: 'Open Sans', sans-serif; 
    background-color: #F7F5F0; 
    color: #1c1917;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Montserrat', sans-serif; 
    letter-spacing: -0.02em; 
}

.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-heading { font-family: 'Montserrat', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F5F0; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #A67C52; }

/* Hide scrollbar for horizontal sliders */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Selection */
::selection { background: rgba(166, 124, 82, 0.2); color: #1c1917; }

/* Admin Styles for Backend Forms */
.label-admin {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #78716c;
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.input-admin {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 0.5rem;
    color: #1c1917;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.input-admin:focus {
    border-color: #A67C52;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.1);
}

/* ========================================
   JOURNAL / BLOG ARTICLE STYLES
   ======================================== */

/* Article Container - nur für den Content-Bereich, kein eigenes max-width/padding */
.article-container {
    /* Erbt Container vom Template */
}

/* Article Header */
.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e7e5e4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #57534e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.article-category {
    background-color: #4a5d44;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1c1917;
    margin-bottom: 24px;
}

.article-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #57534e;
    font-style: italic;
    line-height: 1.5;
}

/* Hero Image */
.article-hero {
    margin: 32px 0 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.image-caption {
    background-color: #f5f5f4;
    padding: 8px 16px;
    font-size: 14px;
    color: #57534e;
    text-align: center;
}

/* Table of Contents */
.toc {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1c1917;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #A67C52;
    display: inline-block;
}

.toc ol {
    counter-reset: toc-counter;
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc > ol > li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc a {
    color: #57534e;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.toc a:hover {
    color: #A67C52;
}

.toc a::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: #A67C52;
}

.toc ol ol {
    margin-left: 24px;
    margin-top: 4px;
}

.toc ol ol li {
    counter-increment: none;
}

.toc ol ol a::before {
    content: "– ";
    color: #e7e5e4;
}

/* Article Typography */
.article-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1c1917;
    margin-top: 64px;
    margin-bottom: 24px;
    padding-top: 32px;
    border-top: 1px solid #e7e5e4;
}

.article-container h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1c1917;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-container h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #57534e;
    margin-top: 24px;
    margin-bottom: 8px;
}

.article-container p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.article-container strong {
    font-weight: 600;
    color: #1c1917;
}

.article-container a {
    color: #A67C52;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-container a:hover {
    color: #4a5d44;
}

/* Lists */
.article-container ul,
.article-container ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-container li {
    margin-bottom: 8px;
}

.article-container li::marker {
    color: #A67C52;
}

/* Blockquote / Expert Tip */
.article-container blockquote {
    background: linear-gradient(135deg, #f0fdf4 0%, #FFFFFF 100%);
    border-left: 4px solid #4a5d44;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #1c1917;
}

.article-container blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-style: normal;
    font-family: 'Open Sans', sans-serif;
    color: #57534e;
}

/* Info Box */
.info-box {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-box-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A67C52;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box-title svg {
    width: 20px;
    height: 20px;
}

/* Warning Box */
.warning-box {
    background-color: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.warning-box-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b45309;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Success Box */
.success-box {
    background-color: #f0fdf4;
    border: 1px solid #15803d;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.success-box-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #15803d;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Step by Step Guide */
.step-guide {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-guide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1c1917;
    margin-bottom: 24px;
    text-align: center;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f5f5f4;
}

.step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #A67C52;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1rem;
}

.step-content p {
    margin-bottom: 0;
    color: #57534e;
    font-size: 15px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background-color: #1c1917;
    color: white;
}

.comparison-table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    padding: 16px;
    text-align: left;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f4;
    vertical-align: top;
}

.comparison-table tbody tr:hover {
    background-color: #fafaf9;
}

.comparison-table .check {
    color: #15803d;
    font-weight: 700;
}

.comparison-table .cross {
    color: #ef4444;
    font-weight: 700;
}

/* Product Card */
.product-card {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    background-color: #A67C52;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-image {
    width: 120px;
    height: 120px;
    background-color: #fafaf9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    position: relative;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1c1917;
    margin-bottom: 4px;
    margin-top: 16px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #A67C52;
}

.product-description {
    font-size: 14px;
    color: #57534e;
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #57534e;
    margin-bottom: 16px;
}

.stars {
    color: #f59e0b;
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c1917;
    margin-bottom: 16px;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1c1917;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.product-cta:hover {
    background-color: #A67C52;
    color: #ffffff !important;
}

/* FAQ Section */
.faq-section {
    margin: 48px 0;
}

.faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1c1917;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #fafaf9;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #57534e;
    font-size: 15px;
    line-height: 1.7;
}

/* Author Box */
.author-box {
    background-color: #FFFFFF;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px;
    margin: 48px 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background-color: #4a5d44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar span {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.author-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: #57534e;
    margin-bottom: 0;
}

/* Related Articles */
.related-articles {
    background-color: #fafaf9;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
}

.related-articles h3 {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-link {
    background-color: #FFFFFF;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1917;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #A67C52;
}

.related-link::before {
    content: "→";
    color: #A67C52;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1c1917 0%, #57534e 100%);
    color: white;
    border-radius: 16px;
    padding: 48px;
    margin: 48px 0;
    text-align: center;
}

.cta-banner h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-top: 0;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #A67C52;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #8B6744;
    color: #ffffff !important;
}

/* Mobile Responsive for Product Cards */
@media (max-width: 768px) {
    .article-container {
        padding: 24px 16px;
    }
    
    .article-container h1 {
        font-size: 1.75rem;
    }
    
    .article-container h2 {
        font-size: 1.5rem;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-image {
        margin: 0 auto;
    }
    
    .product-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-table {
        font-size: 13px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 12px;
    }
    
    .cta-banner {
        padding: 32px 24px;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   END JOURNAL / BLOG STYLES
   ======================================== */

/* Recharts customization */
.recharts-cartesian-axis-tick-value {
    font-size: 10px;
    fill: #78716c;
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Noise texture */
.bg-noise {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNjY2MiLz4KPC9zdmc+');
}
