/* ==========================================================================
   Matcha-Ratgeber.de - SEO-Optimiertes CSS Framework
   Mobile-First, Minimalistisch, Schnell
   ========================================================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Matcha-Farbpalette */
    --matcha-dark: #2d5016;
    --matcha-main: #4a7c23;
    --matcha-light: #7cb342;
    --matcha-cream: #f5f7e8;
    --matcha-foam: #e8f5e9;

    /* Neutrale Farben */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border-light: #e0e0e0;

    /* Typografie */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* Abstände */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Maximale Breiten */
    --max-width: 1200px;
    --content-width: 800px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 1.625rem;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

h3 {
    font-size: 1.375rem;
    margin-top: var(--space-md);
}

h4 {
    font-size: 1.125rem;
    margin-top: var(--space-md);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--matcha-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--matcha-dark);
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.content-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, var(--matcha-dark) 0%, var(--matcha-main) 100%);
    color: var(--bg-white);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--matcha-cream);
    text-decoration: none;
}

.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-list a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--matcha-cream);
    font-size: 0.875rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: rgba(255,255,255,0.15);
    text-decoration: none;
}

.nav-list a.active {
    background-color: rgba(255,255,255,0.2);
}

/* ==========================================================================
   Hero Section (Startseite)
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--matcha-foam) 0%, var(--matcha-cream) 100%);
    padding: var(--space-xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.25rem;
    color: var(--matcha-dark);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.hero-cta {
    display: inline-block;
    background-color: var(--matcha-main);
    color: var(--bg-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
    background-color: var(--matcha-dark);
    color: var(--bg-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    padding: var(--space-lg) 0 var(--space-xxl);
}

.article-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--matcha-light);
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.article-meta time {
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--matcha-main);
}

.breadcrumb span {
    margin: 0 var(--space-xs);
}

/* ==========================================================================
   Article Cards (Startseite)
   ========================================================================== */

.article-grid {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--space-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-xs);
}

.article-card h3 a {
    color: var(--text-dark);
}

.article-card h3 a:hover {
    color: var(--matcha-main);
}

.article-card p {
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.article-card .read-more {
    font-weight: 600;
    font-size: 0.875rem;
}

.card-category {
    display: inline-block;
    background-color: var(--matcha-foam);
    color: var(--matcha-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Content Elements
   ========================================================================== */

/* Listen */
ul, ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

ul li::marker {
    color: var(--matcha-main);
}

/* Infobox */
.info-box {
    background-color: var(--matcha-foam);
    border-left: 4px solid var(--matcha-main);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    margin-top: 0;
    color: var(--matcha-dark);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Warnbox */
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 8px 8px 0;
}

/* Tipp-Box */
.tip-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 8px 8px 0;
}

/* Rezept-Box */
.recipe-box {
    background-color: var(--bg-light);
    border: 2px solid var(--matcha-light);
    border-radius: 12px;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.recipe-box h3 {
    margin-top: 0;
    color: var(--matcha-dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-xs);
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-medium);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.9375rem;
}

th, td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background-color: var(--matcha-foam);
    font-weight: 600;
    color: var(--matcha-dark);
}

tr:hover {
    background-color: var(--bg-light);
}

/* FAQ Section */
.faq-section {
    margin: var(--space-xl) 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-question {
    font-weight: 600;
    color: var(--matcha-dark);
    margin-bottom: var(--space-xs);
    font-size: 1.0625rem;
}

.faq-answer {
    color: var(--text-medium);
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Interne Links Section */
.related-articles {
    background-color: var(--bg-light);
    padding: var(--space-lg);
    border-radius: 12px;
    margin: var(--space-xl) 0;
}

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

.related-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.related-list a {
    display: block;
    padding: var(--space-sm);
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s ease;
}

.related-list a:hover {
    border-color: var(--matcha-main);
    text-decoration: none;
}

/* ==========================================================================
   Product Comparison (Test-Artikel)
   ========================================================================== */

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.product-card.recommended {
    border-color: var(--matcha-main);
    border-width: 2px;
    position: relative;
}

.product-card.recommended::before {
    content: "Empfehlung";
    position: absolute;
    top: -12px;
    left: var(--space-md);
    background: var(--matcha-main);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.product-rating {
    color: #f5a623;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.product-pros-cons {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.pros, .cons {
    padding: var(--space-sm);
    border-radius: 6px;
}

.pros {
    background: var(--matcha-foam);
}

.cons {
    background: #fff3f3;
}

.pros h5, .cons h5 {
    margin: 0 0 var(--space-xs);
    font-size: 0.875rem;
}

.pros ul, .cons ul {
    margin: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: auto;
}

.footer-content {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: var(--matcha-light);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: #b0b0b0;
}

.footer-section a:hover {
    color: var(--matcha-light);
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: var(--space-xs);
}

.footer-nav a {
    color: #b0b0b0;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: var(--matcha-light);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.8125rem;
    color: #808080;
}

.footer-bottom a {
    color: #808080;
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================================== */

.legal-content h2 {
    font-size: 1.375rem;
    margin-top: var(--space-lg);
    border-top: none;
    padding-top: 0;
}

.legal-content h2:first-of-type {
    margin-top: var(--space-md);
}

.legal-content h3 {
    font-size: 1.125rem;
}

.legal-content address {
    font-style: normal;
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: 8px;
    margin: var(--space-md) 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    :root {
        --space-lg: 2.5rem;
        --space-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .main-nav {
        width: auto;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-pros-cons {
        grid-template-columns: 1fr 1fr;
    }

    .recipe-meta {
        gap: var(--space-lg);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }

    h1 {
        font-size: 2.75rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .breadcrumb,
    .related-articles {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .main-content {
        padding: 0;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
