/*
Theme Name: Finanzberatung Pro
Theme URI: https://example.com
Author: Finanzberatung Pro
Description: Professionelles WordPress-Theme fuer Finanzberatung mit ausfuehrlichen Produkterklaerungen, Bildern, Erklaervideos und Affiliate-CTAs. Vollstaendig ueber den WordPress Customizer editierbar.
Version: 1.0
Requires PHP: 7.0
Text Domain: finanzberatung-pro
*/

:root {
    --fb-primary: #1a4d8f;
    --fb-primary-dark: #0d2c52;
    --fb-secondary: #0f7a5c;
    --fb-accent: #b8860b;
    --fb-text: #1f2933;
    --fb-text-light: #5a6772;
    --fb-bg: #ffffff;
    --fb-bg-alt: #f4f7fa;
    --fb-border: #e1e7ec;
    --fb-cta: #e8762c;
    --fb-cta-hover: #cf6219;
    --fb-radius: 12px;
    --fb-shadow: 0 4px 20px rgba(13,44,82,0.08);
    --fb-shadow-hover: 0 8px 30px rgba(13,44,82,0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    color: var(--fb-text);
    background: var(--fb-bg);
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fb-primary); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

/* ---------- HEADER ---------- */
.fb-header {
    background: #fff;
    border-bottom: 1px solid var(--fb-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.fb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.fb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--fb-primary-dark);
}
.fb-logo img { height: 40px; width: auto; }
.fb-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.fb-nav a {
    color: var(--fb-text);
    font-weight: 600;
    font-size: 0.96rem;
}
.fb-nav a:hover { color: var(--fb-primary); }
.fb-nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
    .fb-nav { display: none; width: 100%; }
    .fb-nav.is-open { display: block; }
    .fb-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
    .fb-nav-toggle { display: block; }
    .fb-header-inner { flex-wrap: wrap; }
}

/* ---------- HERO ---------- */
.fb-hero {
    background: linear-gradient(135deg, var(--fb-primary-dark) 0%, var(--fb-primary) 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}
.fb-hero h1 { color: #fff; max-width: 760px; margin: 0 auto 18px; }
.fb-hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 32px; color: rgba(255,255,255,0.88); }
.fb-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.fb-hero-stat strong { display: block; font-size: 1.8rem; }
.fb-hero-stat span { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- BUTTONS / CTA ---------- */
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fb-btn-cta {
    background: var(--fb-cta);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,118,44,0.35);
}
.fb-btn-cta:hover { background: var(--fb-cta-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,118,44,0.4); color: #fff; }
.fb-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.fb-btn-outline:hover { background: rgba(255,255,255,0.12); }
.fb-cta-block {
    background: var(--fb-bg-alt);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 28px;
    text-align: center;
    margin: 28px 0;
}
.fb-cta-block p.fb-disclaimer {
    font-size: 0.78rem;
    color: var(--fb-text-light);
    margin: 12px 0 0;
}
.fb-cta-block .fb-cta-headline {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--fb-primary-dark);
}
.fb-cta-block .fb-cta-sub {
    color: var(--fb-text-light);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* ---------- KATEGORIE OVERVIEW ---------- */
.fb-section { padding: 70px 24px; }
.fb-section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.fb-section-head p { color: var(--fb-text-light); }
.fb-kategorie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 880px) { .fb-kategorie-grid { grid-template-columns: 1fr; } }
.fb-kategorie-card {
    background: #fff;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--fb-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fb-kategorie-card:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-hover); }
.fb-kategorie-card .fb-icon-circle { margin: 0 auto 20px; }
.fb-kategorie-card h3 { margin-bottom: 10px; }
.fb-kategorie-card p { color: var(--fb-text-light); font-size: 0.95rem; margin-bottom: 22px; }

.fb-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--fb-bg-alt);
}
.fb-icon-circle svg { width: 30px; height: 30px; }

/* ---------- PRODUKT GRID (innerhalb Kategorie) ---------- */
.fb-produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.fb-produkt-card {
    background: #fff;
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    overflow: hidden;
    box-shadow: var(--fb-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.fb-produkt-card:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-hover); }
.fb-produkt-card-img { aspect-ratio: 2/1; overflow: hidden; }
.fb-produkt-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-produkt-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.fb-produkt-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fb-produkt-card-body p { color: var(--fb-text-light); font-size: 0.92rem; flex: 1; margin-bottom: 16px; }
.fb-produkt-card-link {
    font-weight: 700; font-size: 0.92rem; color: var(--fb-primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.fb-produkt-card-link svg { width: 16px; height: 16px; }

/* ---------- PRODUKT EINZELSEITE ---------- */
.fb-produkt-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}
.fb-produkt-hero img { width: 100%; height: 340px; object-fit: cover; }
.fb-produkt-hero-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    background: linear-gradient(0deg, rgba(10,30,55,0.82) 0%, rgba(10,30,55,0.25) 70%);
}
.fb-produkt-hero-content { padding: 40px 0; width: 100%; }
.fb-produkt-hero-content .fb-kicker {
    display: inline-block; background: rgba(255,255,255,0.15);
    padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; margin-bottom: 14px;
}
.fb-produkt-hero-content h1 { color: #fff; margin-bottom: 8px; }

.fb-produkt-body { padding: 56px 24px; }
.fb-produkt-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) { .fb-produkt-layout { grid-template-columns: 1fr; } }

.fb-prose p { margin: 0 0 18px; color: var(--fb-text); }
.fb-vorteile-list { list-style: none; padding: 0; margin: 24px 0; }
.fb-vorteile-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--fb-border);
}
.fb-vorteile-list li:last-child { border-bottom: none; }
.fb-vorteile-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.fb-video-wrap {
    position: relative; padding-top: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--fb-radius); background: #0a2540; margin: 28px 0;
}
.fb-video-wrap iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.fb-video-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: rgba(255,255,255,0.7); gap: 12px;
}
.fb-video-placeholder svg { width: 48px; height: 48px; }

.fb-sidebar-box {
    background: var(--fb-bg-alt);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 28px;
    position: sticky;
    top: 96px;
}
.fb-sidebar-box h3 { font-size: 1.15rem; margin-bottom: 12px; }
.fb-sidebar-box p { color: var(--fb-text-light); font-size: 0.92rem; margin-bottom: 20px; }
.fb-sidebar-box .fb-btn { width: 100%; justify-content: center; }
.fb-trust-points { list-style: none; padding: 0; margin: 20px 0 0; }
.fb-trust-points li { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--fb-text-light); padding: 6px 0; }
.fb-trust-points svg { width: 16px; height: 16px; flex-shrink: 0; }

.fb-related { margin-top: 60px; }
.fb-related h3 { margin-bottom: 24px; }

/* ---------- FOOTER ---------- */
.fb-footer {
    background: var(--fb-primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 56px 24px 28px;
}
.fb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 780px) { .fb-footer-grid { grid-template-columns: 1fr 1fr; } }
.fb-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.fb-footer ul { list-style: none; padding: 0; margin: 0; }
.fb-footer li { margin-bottom: 8px; }
.fb-footer a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.fb-footer a:hover { color: #fff; }
.fb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.fb-footer-disclaimer {
    font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 16px; max-width: 800px;
}

/* ---------- MISC ---------- */
.fb-breadcrumb { font-size: 0.85rem; color: var(--fb-text-light); margin-bottom: 18px; }
.fb-breadcrumb a { color: var(--fb-text-light); }
.fb-breadcrumb a:hover { color: var(--fb-primary); }

.fb-archive-header { background: var(--fb-bg-alt); padding: 56px 24px; text-align: center; }
.fb-archive-header h1 { margin-bottom: 10px; }
.fb-archive-header p { color: var(--fb-text-light); max-width: 600px; margin: 0 auto; }

.fb-empty-state { text-align: center; padding: 60px 20px; color: var(--fb-text-light); }
