:root {
    --bg-color: #fdfbf7;
    --primary-color: #2b5946;
    --secondary-color: #e8edea;
    --accent-color: #d87050;
    --text-color: #2c3330;
    --border-color: #d1d8d4;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: #c25f40; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 4px 0;
}
.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 150px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 35px; }
.nav-left { order: 1; }
.logo { order: 2; display: flex; align-items: center; justify-content: center; }
.nav-right { order: 3; }
.logo img { height: 150px; width: auto; image-rendering: -webkit-optimize-contrast; }

.main-nav { display: flex; gap: 15px; flex-wrap: wrap; }
.main-nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a i { font-size: 18px; }
.main-nav a:hover { color: var(--accent-color); }

/* Search */
.search-form { display: flex; align-items: center; gap: 0; margin-left: 10px; }
.search-form input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    width: 140px;
}
.search-form input:focus { border-color: var(--accent-color); }
.search-form button {
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-form button:hover { background: #c25f40; }

/* Janine Box */
.janine-intro { display: flex; gap: 30px; margin-top: 50px; align-items: flex-start; }
.janine-intro .janine-sidebar { flex-shrink: 0; width: 220px; margin: 0; }
.home-intro { flex: 1; padding: 20px 30px; min-width: 0; }
.home-intro h1 { color: var(--primary-color); font-size: 28px; margin-top: 0; margin-bottom: 20px; line-height: 1.3; }
.home-intro p { line-height: 1.7; margin-bottom: 15px; color: var(--text-color); }
.home-intro p:last-child { margin-bottom: 0; }

/* Editors Choice & Latest Posts */
.editors-choice, .latest-posts { margin-top: 40px; }
section.latest-posts > h3 { 
    font-size: 22px; 
    color: var(--accent-color); 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 1px solid #d4c4b8;
}
section.editors-choice > h3 { 
    font-size: 22px; 
    color: var(--primary-color); 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 1px solid #c4d4c8;
}
.category-content { flex: 1; }
.category-header h1 { margin-top: 0; }
.category-side-description { 
    background: var(--secondary-color); 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 30px; 
    line-height: 1.6;
}
.janine-box {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}
.janine-photo-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 15px; }
.janine-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.janine-info h3 { color: var(--primary-color); margin-bottom: 8px; font-size: 16px; }
.janine-info p { font-size: 13px; line-height: 1.5; color: var(--text-color); }
.jasmine-intro .post-grid { flex: 1; margin: 0; }

/* Posts Grid */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 25px 0; }
.post-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
}
.post-card a { text-decoration: none; display: block; }
.post-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; display: block; object-position: center top; }
.post-card h3 { font-size: 14px; margin-bottom: 6px; }
.post-card h3 a { color: var(--text-color); text-decoration: none; transition: color 0.2s; }
.post-card h3 a:hover { color: var(--accent-color); }
.post-card .post-meta { font-size: 12px; color: #888; margin-bottom: 8px; }
.post-card .post-excerpt { font-size: 13px; line-height: 1.5; color: #666; margin-bottom: 12px; display: block; }
.post-excerpt { font-size: 13px; line-height: 1.5; color: #666; margin-bottom: 10px; }
.weiterlesen-btn { 
    display: inline-block; 
    padding: 8px 16px; 
    background: var(--primary-color); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 13px;
}
.weiterlesen-btn:hover { background: var(--accent-color); }
.post-meta { padding: 0; color: #666; font-size: 13px; }

.featured-grid { gap: 30px; }
.posts-row-4col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card-simple { background: #fff; border-radius: 12px; border: 2px solid var(--accent-color); box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 12px; }
.post-card-simple a { text-decoration: none; display: block; }
.post-card-simple img { width: 100%; height: 180px; object-fit: cover; object-position: center top; border-radius: 8px; margin-bottom: 10px; display: block; }
.post-card-simple h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 6px; }
.post-card-simple h3 a { text-decoration: none; color: var(--text-color); }
.post-card-simple .post-excerpt { font-size: 0.85rem; color: #555; line-height: 1.4; display: block; }

@media (max-width: 900px) {
    .posts-row-4col { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Legal Pages */
.legal-content { max-width: 800px; margin: 40px auto; padding: 30px; background: #fff; border-radius: 8px; border: 1px solid var(--border-color); }
.legal-content h1 { color: var(--primary-color); margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 3px solid var(--primary-color); }
.legal-date { color: #888; font-size: 14px; margin-bottom: 30px; }
.toc { background: var(--secondary-color); padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.toc h4 { margin: 0 0 15px; color: var(--primary-color); font-size: 16px; }
.toc ul, .toc ol { margin: 0; padding-left: 22px; list-style: disc; }
.toc li { margin-bottom: 12px; line-height: 1.5; color: var(--text-color); }
.toc a { color: var(--accent-color); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.legal-content h2 { color: var(--primary-color); font-size: 22px; margin: 40px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-color); }
.legal-content h3 { color: var(--primary-color); font-size: 18px; margin: 30px 0 15px; }
.legal-content p { line-height: 1.7; margin-bottom: 15px; color: var(--text-color); }
.legal-content section { margin-bottom: 10px; }

.legal-content ul, .legal-content ol { margin: 15px 0; padding-left: 25px; }
.legal-content li { margin-bottom: 10px; line-height: 1.6; color: var(--text-color); }

/* Post Page */

/* Post Page */
.post-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}
.post-header { margin-bottom: 30px; }
.post-category a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.post-header h1 { font-size: 32px; margin: 0 0 10px 0; color: var(--primary-color); }
.post-date { color: #666; }
.post-image { width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: 8px; margin-bottom: 30px; background: #f5f5f5; }
.post-body { font-size: 18px; line-height: 1.8; overflow-x: hidden; }
.post-body h2 { color: var(--primary-color); margin: 30px 0 15px; }
.post-body h3 { color: var(--accent-color); margin: 30px 0 15px; font-size: 1.3rem; }
.post-body p { margin: 10px 0; }
.post-body ul, .post-body ol { margin: 15px 0; padding-left: 25px; }
.post-body li { margin-bottom: 8px; line-height: 1.6; }
.post-body ul li { list-style: none; position: relative; padding-left: 20px; }
.post-body ul li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }
.post-body ol { counter-reset: item; }
.post-body ol li { list-style: none; counter-increment: item; display: block; }
.post-body ol li::before { content: counter(item) "."; margin-right: 8px; color: var(--primary-color); font-weight: 600; }

.post-faq { background: #f8f9fa; border-radius: 12px; padding: 30px; margin: 40px 0 0 0; border-left: 4px solid var(--primary-color); }
.post-faq h3 { color: var(--accent-color); margin: 0 0 25px 0; font-size: 1.4rem; }
.post-faq .faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e0e0e0; }
.post-faq .faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.post-faq .faq-question { font-weight: 700; color: #1a1a1a; margin-bottom: 8px; font-size: 1.05rem; }
.post-faq .faq-answer { color: #444; line-height: 1.7; }

/* Contact Form */
.contact-page { padding: 40px 0; }
.contact-form { margin-top: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--primary-color); font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group textarea { resize: vertical; min-height: 150px; }

/* Buttons */
.btn-contact {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-contact:hover {
    background-color: #c25f40;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 112, 80, 0.35);
}

.privacy-note {
    margin-top: 25px;
    padding-top: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    border-top: 1px solid var(--border-color);
}
.privacy-note a { color: var(--accent-color); text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { gap: 10px; }
    .post-grid { grid-template-columns: 1fr; }
    .janine-intro { flex-direction: column; }
    .janine-intro .janine-sidebar { width: 100%; max-width: 250px; margin: 0 auto; }
    .post-content { padding: 20px; }
}

.success-message { background: #d4edda; color: #155724; padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.error-message { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 6px; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--primary-color); color: #fff; text-align: center; padding: 25px 0; margin-top: 60px; }
.footer-content { display: flex; flex-direction: column; gap: 15px; }
.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; transition: color 0.3s ease; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: #fff; }
.site-footer p { font-size: 14px; opacity: 0.8; }

/* Responsive */
@media (max-width: 768px) {
    .main-nav { gap: 10px; }
    .post-grid { grid-template-columns: 1fr; }
    .janine-intro { flex-direction: column; }
    .janine-intro .janine-sidebar { width: 100%; max-width: 250px; margin: 0 auto; }
    .post-content { padding: 20px; }
}