/*
Theme Name: U18Konto Theme
Theme URI: https://www.u18konto.de
Author: Marcel Czeranski
Author URI: https://www.u18konto.de
Description: Professionelles WordPress-Theme fuer U18Konto.de - Kinder- und Jugendkonto-Vergleichsportal. SEO- und Conversion-optimiert.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: u18konto
*/

:root {
    --primary: #1a6b4a;
    --primary-dark: #145539;
    --primary-light: #e8f5ee;
    --primary-lighter: #f0faf5;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-light: #f8fafb;
    --bg-section: #f0faf5;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --max-width: 1140px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* HEADER */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 44px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 8px 14px; color: var(--text); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--primary); background: var(--primary-light); }
.main-nav .cta-nav a { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 50px; font-weight: 600; }
.main-nav .cta-nav a:hover { background: var(--primary-dark); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 100; flex-direction: column; align-items: stretch; gap: 0; }
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a { font-size: 0.85rem; padding: 10px 14px; display: block; border-radius: 8px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary-light) 0%, #dff0e8 50%, #f0faf5 100%); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(26,107,74,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
.hero-left { }
.hero-right { }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: white; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: 2.5rem; max-width: 700px; margin-bottom: 16px; line-height: 1.2; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin-bottom: 32px; line-height: 1.6; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 32px; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--primary); display: block; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; align-items: center; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; max-width: 800px; }
.hero-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform 0.2s; text-align: center; }
.hero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-card-icon { font-size: 2rem; margin-bottom: 8px; }
.hero-card h3 { font-size: 1rem; margin-bottom: 4px; }
.hero-card p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; line-height: 1; font-family: var(--font); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(26,107,74,0.3); }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }

/* SECTIONS */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }
.section-green { background: var(--bg-section); }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.section-title { font-size: 1.75rem; margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); max-width: 640px; margin-bottom: 40px; }

/* AFFILIATE BOX */
.affiliate-box { background: white; border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.affiliate-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.affiliate-box-badge { position: absolute; top: 16px; right: 16px; background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.affiliate-box-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.affiliate-box-logo { width: 120px; height: 60px; object-fit: contain; background: var(--bg-light); border-radius: var(--radius-sm); padding: 8px; }
.affiliate-box-title { font-size: 1.35rem; font-weight: 700; }
.affiliate-box-subtitle { font-size: 0.9rem; color: var(--text-light); }
.affiliate-box-highlight { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px; background: var(--primary-lighter); border-radius: var(--radius-sm); }
.affiliate-box-rate { font-size: 2rem; font-weight: 800; color: var(--primary); }
.affiliate-box-rate-label { font-size: 0.85rem; color: var(--text-light); }
.affiliate-box-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 24px; }
.affiliate-box-features li { font-size: 0.9rem; padding-left: 24px; position: relative; }
.affiliate-box-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.affiliate-box-footer { padding-top: 16px; border-top: 1px solid var(--border); }
.affiliate-box-footer .btn { width: 100%; text-align: center; justify-content: center; display: flex; }
.affiliate-note { font-size: 0.75rem; color: var(--text-lighter); margin-top: 8px; }

/* TRUST BAR */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.trust-icon { font-size: 1.3rem; flex-shrink: 0; }
.trust-text { font-size: 0.8rem; font-weight: 600; }

/* BENEFITS */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card { background: white; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform 0.2s; }
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.step { text-align: center; position: relative; }
.step::after { content: '\2192'; position: absolute; right: -16px; top: 28px; color: var(--primary); font-size: 1.2rem; font-weight: 700; }
.step:last-child::after { display: none; }
.step-number { width: 56px; height: 56px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 16px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* COMPARISON TABLE */
.comparison-table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); margin: 24px 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th { background: var(--primary); color: white; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.comparison-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--primary-lighter); }
.comparison-table .highlight-row td { background: var(--primary-light); font-weight: 600; }
.comparison-table .highlight-row td:first-child { position: relative; padding-left: 24px; }
.comparison-table .highlight-row td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.table-badge { display: inline-block; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-left: 6px; }

/* BANK CARDS */
.bank-cards { display: flex; flex-direction: column; gap: 20px; }
.bank-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.2s; }
.bank-card:hover { box-shadow: var(--shadow-md); }
.bank-card.testsieger { border: 2px solid var(--primary); }
.bank-card.testsieger::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.bank-card-inner { display: grid; grid-template-columns: 200px 1fr 220px; gap: 24px; padding: 24px; align-items: center; }
.bank-card-left { text-align: center; }
.bank-card-logo { width: 120px; height: 48px; object-fit: contain; margin: 0 auto 10px; }
.bank-card-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.bank-card-rating { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.85rem; }
.stars { color: var(--accent); letter-spacing: 1px; }
.rating-value { font-weight: 700; }
.bank-card-badge { display: inline-block; background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-top: 6px; }
.bank-card-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bank-card-features li { font-size: 0.85rem; padding-left: 20px; position: relative; line-height: 1.4; }
.bank-card-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.bank-card-right { text-align: center; border-left: 1px solid var(--border-light); padding-left: 24px; }
.bank-card-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.bank-card-price-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.bank-card-age { font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: white; border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); text-align: center; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 16px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.product-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 20px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; background: white; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--text); background: white; border: none; width: 100%; text-align: left; transition: background 0.2s; font-family: var(--font); }
.faq-question:hover { background: var(--bg-light); }
.faq-toggle { font-size: 1.2rem; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.faq-item.active .faq-answer { display: block; }

/* CTA SECTION */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 56px 0; text-align: center; color: white; }
.cta-section h2 { color: white; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }

/* BREADCRUMBS */
.breadcrumbs { padding: 12px 0; font-size: 0.8rem; color: var(--text-light); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 6px; color: var(--text-lighter); }

/* CONTENT */
.content-area { max-width: 800px; margin: 0 auto; padding: 40px 24px 60px; }
.content-area h2 { margin-top: 40px; }
.content-area h3 { margin-top: 28px; }
.content-area ul, .content-area ol { padding-left: 24px; margin-bottom: 16px; }
.content-area li { margin-bottom: 6px; }
.info-box { background: var(--primary-lighter); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 24px 0; }
.info-box-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.info-box p { font-size: 0.9rem; margin: 0; }
.legal-notice { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.8rem; color: var(--text-light); margin: 24px 0; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card-image { height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 20px; }
.blog-card-date { font-size: 0.8rem; color: var(--text-lighter); margin-bottom: 8px; }
.blog-card-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card-content h3 a { color: var(--text); }
.blog-card-content h3 a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { color: white; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-links h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-legal-links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 900px) {
    h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; }
    .hero { padding: 40px 0 48px; } .hero h1 { font-size: 1.85rem; }
    .hero-cards { grid-template-columns: 1fr; max-width: 360px; }
    .hero-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.active { display: block; position: absolute; top: 72px; left: 0; right: 0; background: white; box-shadow: var(--shadow-md); padding: 16px; border-top: 1px solid var(--border); }
    .main-nav.active ul { flex-direction: column; gap: 0; }
    .main-nav.active .sub-menu { position: static; box-shadow: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none; }
    .menu-toggle { display: block; }
    .trust-bar { grid-template-columns: 1fr 1fr; }
    .benefits-grid, .product-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; }
    .affiliate-box-features { grid-template-columns: 1fr; }
    .bank-card-inner { grid-template-columns: 1fr; text-align: center; }
    .bank-card-right { border-left: none; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--border-light); }
    .bank-card-features { grid-template-columns: 1fr; text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .section { padding: 48px 0; }
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .trust-bar, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Bank card detail link */
.bank-card-detail-link {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.bank-card-detail-link:hover {
  text-decoration: underline;
}

/* ===== SINGLE POST HEADER ===== */
.single-post-header {
  padding: 40px 0;
  background: var(--bg-soft, #f8faf9);
}

.single-post-header .container {
  max-width: 800px;
  text-align: center;
}

.single-post-header h1 {
  font-size: 2rem;
  line-height: 1.3;
}

.post-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.post-header-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-light, #6b7280);
}

.post-header-excerpt {
  margin-top: 16px;
  color: var(--text-light, #6b7280);
  font-size: 1.05rem;
}

/* ===== BLOG LAYOUT (2-column) ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 48px;
}

/* ===== SINGLE POST CONTENT ===== */
.single-post-hero-img {
  margin: -40px 0 40px;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

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

.single-post-content {
  max-width: 100%;
  padding: 0;
}

.single-post-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.single-post-content h2:first-child {
  margin-top: 0;
}

.single-post-content h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.single-post-content p {
  margin-bottom: 20px;
  color: var(--text-light, #4b5563);
  line-height: 1.8;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-light, #4b5563);
}

.single-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-light, #6b7280);
  margin-bottom: 24px;
}

/* ===== SIDEBAR ===== */
.sidebar-inner {
  position: sticky;
  top: 96px;
}

.sidebar .widget {
  background: white;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar .widget-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light, #e8f5ee);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary, #1a6b4a), #0d4f33) !important;
  color: white;
  text-align: center;
  border: none !important;
}

.sidebar-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.sidebar-cta-highlight {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFD700;
  margin: 16px 0;
  line-height: 1;
}

.sidebar-cta-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
}

.sidebar-cta-features li {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: #FFD700;
  color: #1a1a1a;
  font-weight: 700;
  border: none;
  text-align: center;
  display: block;
}

.sidebar-cta .btn:hover {
  background: #ffea00;
}

.sidebar-cta .affiliate-notice {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-top: 12px;
  display: block;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg-soft, #f8faf9);
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border, #e5e7eb);
  margin-top: 40px;
}

.author-box-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light, #6b7280);
  font-weight: 700;
}

.author-box-name {
  display: block;
  font-size: 1.05rem;
  margin: 4px 0 8px;
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--text-light, #4b5563);
  margin: 0;
  line-height: 1.6;
}

/* ===== POST AFFILIATE BOX ===== */
.post-affiliate-box {
  background: linear-gradient(135deg, #f0faf4, #e8f5ee);
  border: 2px solid var(--primary, #1a6b4a);
  border-radius: var(--radius, 12px);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.post-affiliate-box h3 {
  color: var(--primary, #1a6b4a);
  margin: 0 0 8px;
}

.post-affiliate-box p {
  color: var(--text-light, #4b5563);
  margin-bottom: 20px;
}

.post-affiliate-box .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
}

.post-affiliate-box .affiliate-notice {
  font-size: 0.75rem;
  color: var(--text-light, #6b7280);
  margin-top: 12px;
  display: block;
}

/* ===== POST TAGS ===== */
.post-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-soft, #f8faf9);
  border-radius: 100px;
  font-size: 0.85rem;
  margin: 4px 2px;
  color: var(--text, #1a1a1a);
  text-decoration: none;
}

.post-tag:hover {
  background: var(--primary-light, #e8f5ee);
  color: var(--primary, #1a6b4a);
}

/* ===== RATGEBER LINKS BOX ===== */
.post-ratgeber-links {
  background: #f8faf9;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
}

.post-ratgeber-links h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.post-ratgeber-links ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.post-ratgeber-links li {
  margin-bottom: 6px;
}

.post-ratgeber-links a {
  color: var(--primary, #1a6b4a);
  text-decoration: none;
  font-weight: 500;
}

.post-ratgeber-links a:hover {
  text-decoration: underline;
}

/* ===== POST NAVIGATION ===== */
.post-nav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #e5e7eb);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.post-nav-label {
  font-size: 0.8rem;
  color: var(--text-light, #6b7280);
}

.post-nav a {
  font-weight: 600;
  color: var(--primary, #1a6b4a);
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

.post-nav-next {
  text-align: right;
}

/* ===== BLOG GRID (blog overview + related) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: white;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f5ee, #e0f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light, #6b7280);
  margin-bottom: 12px;
}

.blog-card-category {
  background: var(--primary-light, #e8f5ee);
  color: var(--primary, #1a6b4a);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.8rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text, #1a1a1a);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--primary, #1a6b4a);
}

.blog-card p {
  color: var(--text-light, #4b5563);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary, #1a6b4a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.blog-card:hover .read-more::after {
  transform: translateX(4px);
}

/* ===== TOC NAV ===== */
.toc-box {
  background: #f8faf9;
  border: 1px solid var(--border, #e5e7eb);
  border-left: 4px solid var(--primary, #1a6b4a);
  border-radius: var(--radius, 12px);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.toc-box-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text, #1a1a1a);
}

.toc-box #toc-nav a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-light, #4b5563);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.15s;
}

.toc-box #toc-nav a:last-child {
  border-bottom: none;
}

.toc-box #toc-nav a:hover {
  color: var(--primary, #1a6b4a);
}

/* ===== SUB-MENU HOVER ===== */
.main-nav .sub-menu a:hover {
  background: var(--primary-light, #e8f5ee);
  color: var(--primary, #1a6b4a);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .single-post-header h1 {
    font-size: 1.5rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-next {
    text-align: left;
  }
}

/* ===== BLOG PAGINATION ===== */
.blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.2s;
}

.blog-pagination .page-numbers:hover {
  background: var(--primary-light, #e8f5ee);
  border-color: var(--primary, #1a6b4a);
  color: var(--primary, #1a6b4a);
}

.blog-pagination .page-numbers.current {
  background: var(--primary, #1a6b4a);
  color: white;
  border-color: var(--primary, #1a6b4a);
}
