/* ========================================
   BÜRGERGELD-KOCHEN.DE – Custom Styles
   Mobile-First, AdSense-optimiert
   ======================================== */

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #059669;
    --accent: #dc2626;
    --warning: #fbbf24;
    --warning-bg: #fef3c7;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   DISCLAIMER BANNER
   ======================================== */
.disclaimer-banner {
    background: var(--warning-bg);
    border-bottom: 3px solid var(--warning);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1000;
}

.disclaimer-banner .disclaimer-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.disclaimer-banner p {
    flex: 1;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.disclaimer-banner strong {
    color: #78350f;
}

.disclaimer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #92400e;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.disclaimer-close:hover { color: #78350f; }

/* ========================================
   ADSENSE PLACEMENTS
   ======================================== */
.ad-container {
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    text-align: center;
    margin: 0 auto;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 0;
}

.ad-placeholder {
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-header { max-width: 728px; margin-bottom: 0; }
.ad-mid { max-width: 336px; margin: 40px auto; }
.ad-footer { max-width: 728px; margin-top: 0; }

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🍳🥕🍚🥦🍅';
    position: absolute;
    font-size: 120px;
    opacity: 0.06;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-affiliate {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    font-size: 18px;
    padding: 16px 32px;
    box-shadow: var(--shadow-lg);
}

.btn-affiliate:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 20px;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 48px;
}

/* ========================================
   BUDGET TABLE
   ======================================== */
.budget-table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 15px;
}

.budget-table th {
    background: var(--primary-dark);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.budget-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.budget-table tr:hover {
    background: #fffbeb;
}

.budget-table .highlight {
    background: #fffbeb;
    font-weight: 700;
}

.budget-table .highlight td {
    color: var(--primary-dark);
}

/* ========================================
   INFO BOX
   ======================================== */
.info-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid var(--secondary);
    padding: 24px;
    border-radius: var(--radius-sm);
    margin-top: 24px;
}

.info-box h3 {
    color: #065f46;
    margin-bottom: 8px;
    font-size: 18px;
}

.info-box p {
    color: #047857;
    font-size: 15px;
}

/* ========================================
   WOCHENPLAN GENERATOR
   ======================================== */
.generator-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.generator-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group input,
.control-group select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    min-width: 160px;
    background: white;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.budget-display {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.budget-item span:first-child {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.budget-item strong {
    font-size: 28px;
    color: var(--primary-dark);
    font-weight: 900;
}

/* Wochenplan Grid */
.wochenplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tag-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.tag-card h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mahlzeit {
    padding: 12px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 14px;
}

.mahlzeit strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.mahlzeit .preis {
    color: var(--secondary);
    font-weight: 700;
    font-size: 13px;
}

.tag-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
}

/* Einkaufsliste */
.einkaufsliste {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.einkaufsliste h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.einkaufsliste .hint {
    color: var(--text-light);
    font-style: italic;
}

.einkauf-kategorie {
    margin-bottom: 20px;
}

.einkauf-kategorie h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.einkauf-kategorie ul {
    list-style: none;
}

.einkauf-kategorie li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border);
    font-size: 15px;
}

.einkauf-kategorie li span:last-child {
    color: var(--text-light);
    font-weight: 600;
}

.einkauf-total {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--primary);
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-dark);
    text-align: right;
}

/* ========================================
   REZEPTE
   ======================================== */
.rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.rezept-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rezept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.rezept-bild {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px;
}

.rezept-preis {
    background: white;
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.rezept-zeit {
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.rezept-body {
    padding: 24px;
}

.rezept-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.rezept-body > p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.rezept-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}

.rezept-zutaten {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Affiliate CTA */
.affiliate-cta {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--secondary);
}

.affiliate-content h3 {
    font-size: 24px;
    color: #065f46;
    margin-bottom: 12px;
}

.affiliate-content p {
    font-size: 17px;
    color: #047857;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-hinweis {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   GUIDES
   ======================================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.guide-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.guide-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.guide-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.guide-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.guide-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.faq-answer strong {
    color: var(--text);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 20px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: var(--radius-sm);
    background: #1f2937;
    color: white;
    font-family: inherit;
}

.newsletter-form button {
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: #9ca3af;
}

.footer-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-flex p {
    font-size: 14px;
    flex: 1;
}

.cookie-flex a {
    color: var(--primary);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section {
        padding: 50px 20px;
    }

    .generator-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group input,
    .control-group select {
        width: 100%;
    }

    .budget-display {
        justify-content: center;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-flex {
        flex-direction: column;
        text-align: center;
    }

    .disclaimer-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .disclaimer-banner p {
        font-size: 13px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .ad-container,
    .disclaimer-banner,
    .cookie-banner,
    .nav-toggle,
    .affiliate-cta {
        display: none !important;
    }

    .hero {
        background: white;
        padding: 20px;
    }

    .rezept-card {
        break-inside: avoid;
    }
}
