/* ==========================================================================
   finanziator.de – Stylesheet
   Farbkonzept (Harmonie): Komplementär-Basis Blau × Orange + Grün als Sparakzent.
   Blau  = Vertrauen/Seriosität · Orange = Aktion/CTA · Grün = Geld/Sparen.
   Quelle der Markenfarben: Artikel-Illustrationen der alten Seite.
   ========================================================================== */

:root {
    /* Blau-Familie (Basis) */
    --navy:        #25324B;   /* Header, Footer, Headlines        */
    --slate:       #5C677E;   /* Original-Logo-Slate, Mutedtext   */
    --blue:        #3A6EA5;   /* Links, Markenakzent              */
    --blue-soft:   #eaf0f7;   /* zarte blaue Flächen              */

    /* Orange (CTA / Aktion – komplementär zu Blau) */
    --orange:      #F2890F;   /* Marken-Orange, Akzente           */
    --cta:         #E07A09;   /* Buttons (weißer, fetter Text)    */
    --cta-hover:   #C76C07;

    /* Grün (Geld / Sparen / positiv) */
    --green:       #1F9E4D;   /* Badges, Positivflächen           */
    --green-text:  #17833F;   /* grüner Text auf Weiß             */
    --green-soft:  #e7f5ec;

    /* Neutrale */
    --ink:         #1E2735;   /* Fließtext                        */
    --ink-muted:   #5C677E;
    --bg:          #FFFFFF;
    --bg-soft:     #F4F6F9;   /* kühle Sektionsflächen            */
    --border:      #E1E6ED;

    --maxw: 1140px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 22px rgba(37,50,75,0.08);
    --shadow-hover: 0 12px 30px rgba(37,50,75,0.14);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Basis -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
h3 { font-size: 1.2rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 14px rgba(224,122,9,.35); }
.btn-cta:hover { background: var(--cta-hover); color: #fff; }
.btn-large { padding: 0.95rem 2rem; font-size: 1.08rem; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Header / Navigation ------------------------------------------------------ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; color: #fff; }
.brand-accent { color: var(--orange); }
.brand-claim { font-size: .72rem; letter-spacing: .02em; color: #aeb8c9; margin-top: 2px; }

.main-nav .nav-links {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .35rem;
}
.nav-links a {
    display: block;
    color: #dfe4ec;
    font-weight: 600;
    font-size: .98rem;
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-cta a {
    background: var(--cta);
    color: #fff;
    margin-left: .4rem;
}
.nav-cta a:hover { background: var(--cta-hover); }

.menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero {
    background: linear-gradient(160deg, #25324B 0%, #33476b 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
}
.hero-inner { text-align: center; }
.hero-eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
    font-weight: 700; color: var(--orange); margin: 0 0 .6rem;
}
.hero h1 { color: #fff; font-size: 2.8rem; margin: 0 0 1rem; }
.hero-save { color: #5fd089; }
.hero-lead { max-width: 640px; margin: 0 auto 1.8rem; font-size: 1.15rem; color: #d7dde7; }

/* Section-Köpfe ------------------------------------------------------------ */
.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-muted); margin: .4rem 0 0; }
.section-head-row {
    display: flex; align-items: center; justify-content: space-between;
    text-align: left; gap: 1rem; flex-wrap: wrap;
}
.section-head-row h2 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.section-more { font-weight: 700; white-space: nowrap; }
.cat-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cat-anlage { background: var(--green); }
.cat-kredit { background: var(--orange); }
.cat-vers   { background: var(--blue); }
.cat-immo   { background: var(--navy); }
.cat-energie{ background: var(--green-text); }

/* Vergleichsrechner-Karten ------------------------------------------------- */
.compare-section { background: var(--bg-soft); }
.compare-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.compare-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.compare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--cta); text-decoration: none; }
.compare-icon {
    font-size: 1.7rem; width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--blue-soft); border-radius: 12px; margin-bottom: 1rem;
}
.compare-card h3 { margin: 0 0 .4rem; color: var(--navy); }
.compare-card p { margin: 0 0 1.1rem; color: var(--ink-muted); font-size: .95rem; }
.compare-link { margin-top: auto; color: var(--cta); font-weight: 700; }

.ad-disclosure { font-size: .8rem; color: var(--ink-muted); margin: 1.25rem 0 0; }
.ad-label { font-size: .68rem; font-weight: 700; letter-spacing: .05em; color: var(--ink-muted); text-transform: uppercase; }

/* Artikel-Karten (Teaser) -------------------------------------------------- */
.article-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.article-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media {
    display: block; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #cdd6e3, #eef2f7);
}
.card-body { padding: 1.25rem; }
.card-cat {
    display: inline-block; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--blue); background: var(--blue-soft);
    padding: .25rem .55rem; border-radius: 999px; margin-bottom: .6rem;
}
.article-card h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--blue); text-decoration: none; }
.card-body p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* Artikelseite ------------------------------------------------------------- */
.article { padding: 2rem 0 3rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin: 0 .35rem; }
.breadcrumb-current { color: var(--ink); }
.article-head h1 { font-size: 2.3rem; margin: .5rem 0 .6rem; }
.article-meta { color: var(--ink-muted); font-size: .9rem; margin: 0; }
.article-hero { margin: 1.75rem 0; }
.article-hero img { width: 100%; border-radius: var(--radius); }
.article-body { font-size: 1.08rem; }
.article-body .lead { font-size: 1.3rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.article-body h2 { margin: 2.4rem 0 1rem; }
.article-body p { margin: 0 0 1.15rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--green-text); font-weight: 900;
    background: var(--green-soft); width: 1.4rem; height: 1.4rem;
    border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
}

.pullquote {
    margin: 2rem 0; padding: 1.1rem 0 1.1rem 1.6rem;
    border-left: 4px solid var(--orange);
    font-size: 1.32rem; font-style: italic; line-height: 1.45;
    color: var(--navy);
}
.infobox {
    margin: 2rem 0; padding: 1.4rem 1.6rem;
    background: var(--blue-soft); border-radius: var(--radius);
    border-left: 4px solid var(--blue);
}
.infobox h3 { margin: 0 0 .6rem; color: var(--navy); }
.infobox ul { margin: 0; padding-left: 1.1rem; }
.infobox li { margin-bottom: .35rem; }

.article-figure { margin: 2rem 0; text-align: center; }
/* Bilder in Originalgröße, zentriert; schrumpfen nur auf schmalen Screens (kein Upscaling) */
.article-figure img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius); }
.article-figure figcaption {
    font-size: .82rem; font-style: italic; color: var(--slate);
    margin-top: .5rem; line-height: 1.4;
}

/* Affiliate-/Vergleichs-Box (Conversion-Element) --------------------------- */
.compare-box {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.6rem 1.6rem 1.5rem;
    background: linear-gradient(135deg, #eef6f0, #e7f5ec);
    border: 1px solid #c8e6d2;
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.compare-box-badge {
    position: absolute; top: .8rem; right: .9rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
    color: var(--ink-muted); text-transform: uppercase;
}
.compare-box-text { flex: 1 1 240px; }
.compare-box-text h3 { margin: 0 0 .35rem; color: var(--green-text); }
.compare-box-text p { margin: 0; color: var(--ink); }
.compare-box .btn { flex: 0 0 auto; }

/* Vergleichsrechner-Platzhalter (Widget wird später eingesetzt) ----------- */
.rechner-embed {
    position: relative;
    margin: 1.75rem 0 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--bg-soft);
    border: 2px dashed #c2ccda;
    border-radius: var(--radius);
    color: var(--ink-muted);
}
.rechner-embed-badge {
    display: inline-block; margin-bottom: .6rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: var(--cta); padding: .25rem .7rem; border-radius: 999px;
}
.rechner-embed p { margin: 0; }

/* Abschluss-CTA der Artikelseite ------------------------------------------ */
.end-cta {
    margin-top: 2.5rem; padding: 1.75rem;
    background: var(--bg-soft); border-radius: var(--radius);
    text-align: center;
}
.end-cta h3 { margin: 0 0 1rem; }
.end-cta-links { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.end-cta .ad-disclosure { text-align: center; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c4cdda; margin-top: 3rem; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem 2rem;
    display: grid; gap: 2rem;
    grid-template-columns: 1.8fr 1fr 1fr;
}
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { margin: .8rem 0 0; font-size: .92rem; color: #9fa9bb; max-width: 32ch; }
.footer-col h4 { color: #fff; margin: 0 0 .9rem; font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #c4cdda; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #36456185; max-width: var(--maxw);
    margin: 0 auto; padding: 1.25rem 1.25rem 2rem;
    font-size: .82rem; color: #9fa9bb;
}
.footer-disclaimer { margin: 0 0 .75rem; line-height: 1.5; }
.footer-ad-note { margin: 0 0 .75rem; }
.footer-legal { margin: 0 0 .5rem; }
.footer-legal a { color: #c4cdda; font-weight: 600; }
.footer-legal a:hover { color: #fff; }

/* Rechtstext-/Legal-Seite (Impressum) */
.legal-content h2 { margin: 2rem 0 .8rem; }
.legal-content h3 { margin: 1.5rem 0 .6rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content a { word-break: break-word; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy);
        border-top: 1px solid #36456185;
        padding: .5rem 1rem 1rem;
    }
    .main-nav.open { display: block; }
    .main-nav .nav-links { flex-direction: column; align-items: stretch; gap: .15rem; }
    .nav-links a { padding: .75rem .8rem; }
    .nav-cta a { margin: .4rem 0 0; text-align: center; }
    .header-inner { position: relative; }

    .hero h1 { font-size: 2.1rem; }
    .section { padding: 2.5rem 0; }
    .section-head-row { align-items: flex-start; }
    .article-head h1 { font-size: 1.8rem; }
    .compare-box .btn { width: 100%; }
}
@media (min-width: 992px) {
    .hero { padding: 6rem 0 5rem; }
    .hero h1 { font-size: 3.2rem; }
}
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
