/**
 * Zentrale CSS-Datei
 * Alle Styles an einem Ort
 */

/* === CSS VARIABLEN === */
:root {
    --primary: #2D5F5D;
    --primary-light: #3A7875;
    --primary-dark: #1E4644;
    --accent: #D4A574;
    --accent-dark: #c49562;
    --text: #1A1A1A;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #FAFAF8;
    --card-bg: #FFFFFF;
    --border: #E8E8E6;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    
    /* Kategorie-Farben */
    --kat-produktivitaet: #2D5F5D;
    --kat-gesundheit: #D45F5F;
    --kat-finanzen: #5F8FD4;
    --kat-haushalt: #8F5FD4;
    --kat-karriere: #D4A574;
    --kat-technologie: #5FD4A0;
}

/* === RESET & BASICS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* === HEADER & NAVIGATION === */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.nav-icon {
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* === SITE WRAPPER === */
.site-wrapper {
    min-height: calc(100vh - 200px);
}

/* === BREADCRUMB === */
.breadcrumb {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s;
}

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

/* === HERO SECTIONS === */
.hero {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Literata', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.article-hero {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-hero h1 {
    font-family: 'Literata', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* === KATEGORIEN GRID === */
.kategorien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.kategorie-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.kategorie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.kategorie-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.kategorie-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.kategorie-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.kategorie-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.kategorie-link:hover {
    background: var(--primary-light);
}

/* === ARTIKEL GRID === */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.artikel-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.artikel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.artikel-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.artikel-card-content {
    padding: 1.5rem;
}

.artikel-card-kategorie {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.artikel-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.artikel-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.artikel-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* === ARTIKEL LAYOUT === */
.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
}

/* === CONTENT STYLES === */
.quick-answer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.quick-answer h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.quick-answer p {
    color: var(--text);
    font-weight: 500;
    margin: 0;
}

.article-content h2 {
    font-family: 'Literata', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: var(--text);
}

.article-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* === TIP BOXES === */
.tip-box {
    background: #FFF9F0;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.tip-box h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* === STEP CARDS === */
.steps-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* === AFFILIATE BOX === */
.affiliate-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.affiliate-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.affiliate-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.affiliate-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.affiliate-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.affiliate-btn:hover {
    background: var(--accent-dark);
}

.affiliate-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* === FAQ SECTION === */
.faq-section {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.faq-section h2 {
    margin-top: 0;
}

.faq-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* === AD PLACEHOLDER === */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

/* === NEWSLETTER === */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.newsletter-box h3 {
    color: white;
}

.newsletter-box p {
    opacity: 0.95;
    font-size: 0.9rem;
}

.newsletter-form {
    margin-bottom: 0.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.newsletter-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    font-family: inherit;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.newsletter-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: none;
}

.newsletter-message.success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: block;
}

.newsletter-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: white;
    display: block;
}

/* === RELATED ARTICLES === */
.related-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.related-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.related-content a {
    color: var(--text);
    transition: color 0.2s;
}

.related-content a:hover {
    color: var(--primary);
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* === FOOTER === */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.2s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-text a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}

.cookie-accept {
    background: var(--primary);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-light);
}

.cookie-settings {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cookie-settings:hover {
    background: var(--bg);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-box {
        flex-direction: column;
    }
    
    .kategorien-grid {
        grid-template-columns: 1fr;
    }
    
    .artikel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-hero h1 {
        font-size: 1.6rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .breadcrumb,
    .hero,
    .article-hero {
        padding: 0 1rem;
    }
}
