/*
Theme Name: Kredit für Selbstständige
Theme URI: https://www.kredit-fuer-selbststaendige.de/
Author: ChatGPT & Alexander
Author URI: https://www.kredit-fuer-selbststaendige.de/
Description: Modernes, seriöses und conversionstarkes WordPress-Theme für Kredit- und Finanzwebseiten mit Fokus auf Selbstständige. Responsiv, SEO-optimiert und mit Startseite für starke Abschlüsse.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kfs-theme
*/

:root {
    --kfs-primary: #0a9b4b;
    --kfs-primary-dark: #06753a;
    --kfs-secondary: #003b5c;
    --kfs-accent: #ffb800;
    --kfs-bg: #f5f7fb;
    --kfs-text: #222;
    --kfs-muted: #6b7280;
    --kfs-radius-lg: 18px;
    --kfs-radius-sm: 10px;
    --kfs-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--kfs-text);
    background: var(--kfs-bg);
    line-height: 1.6;
}

/* Layout */

.kfs-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */

.kfs-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffffcc;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.kfs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

/* Logo */

.kfs-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.kfs-logo-wrap:hover {
    text-decoration: none;
    color: inherit;
}

.kfs-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kfs-primary), var(--kfs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.kfs-logo-text {
    display: flex;
    flex-direction: column;
}

.kfs-logo-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.kfs-logo-subtitle {
    font-size: 0.76rem;
    color: var(--kfs-muted);
}

/* Nav */

.kfs-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kfs-main-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kfs-main-menu a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--kfs-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.1rem;
}

.kfs-main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 2px;
    background: var(--kfs-primary);
    transition: width 0.2s ease;
}

.kfs-main-menu a:hover,
.kfs-main-menu .current-menu-item > a {
    color: var(--kfs-secondary);
}

.kfs-main-menu a:hover::after,
.kfs-main-menu .current-menu-item > a::after {
    width: 100%;
}

/* Header CTA */

.kfs-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--kfs-primary), var(--kfs-primary-dark));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
    white-space: nowrap;
}

.kfs-header-cta span.kfs-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--kfs-accent);
}

/* Mobile nav toggle */

.kfs-menu-toggle {
    display: none;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #fff;
}

.kfs-menu-toggle-line {
    width: 16px;
    height: 2px;
    background: var(--kfs-secondary);
    display: block;
    border-radius: 999px;
    position: relative;
}

.kfs-menu-toggle-line::before,
.kfs-menu-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: inherit;
}

.kfs-menu-toggle-line::before { top: -5px; }
.kfs-menu-toggle-line::after { top: 5px; }

/* Hero */

.kfs-hero {
    padding: 2.8rem 0 2.6rem;
}

.kfs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.kfs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--kfs-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

.kfs-pill-badge {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--kfs-primary);
    box-shadow: 0 6px 16px rgba(16,185,129,0.3);
}

.kfs-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin: 0.8rem 0 0.6rem;
}

.kfs-hero-lead {
    font-size: 0.98rem;
    color: var(--kfs-muted);
    max-width: 32rem;
}

.kfs-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.3rem 0;
}

.kfs-hero-badge {
    font-size: 0.78rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15,23,42,0.08);
    color: var(--kfs-secondary);
}

.kfs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1rem;
}

.kfs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--kfs-primary), var(--kfs-primary-dark));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--kfs-shadow-soft);
}

.kfs-btn-primary small {
    font-size: 0.78rem;
    opacity: 0.9;
}

.kfs-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    border: 1px dashed rgba(15,23,42,0.16);
    background: rgba(255,255,255,0.8);
    color: var(--kfs-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

/* Hero side card */

.kfs-hero-card {
    background: #fff;
    border-radius: var(--kfs-radius-lg);
    padding: 1.35rem 1.35rem 1.1rem;
    box-shadow: var(--kfs-shadow-soft);
    border: 1px solid rgba(15,23,42,0.06);
}

.kfs-hero-card-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.kfs-hero-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

.kfs-hero-card-sub {
    font-size: 0.8rem;
    color: var(--kfs-muted);
}

.kfs-trust-chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34,197,94,0.07);
    color: var(--kfs-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.kfs-trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.kfs-offer-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    margin: 0.6rem 0 0.4rem;
    border-radius: var(--kfs-radius-sm);
    background: #f9fafb;
}

.kfs-offer-logos img {
    max-height: 22px;
    max-width: 80px;
    width: auto;
    height: auto;
}

.kfs-offer-label {
    font-size: 0.74rem;
    color: var(--kfs-muted);
}

.kfs-hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.kfs-hero-meta-item {
    flex: 1;
    font-size: 0.76rem;
    color: var(--kfs-muted);
}

/* Comparison section */

.kfs-section {
    padding: 1.8rem 0 0.8rem;
}

.kfs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.3rem;
}

.kfs-section-title {
    margin: 0;
    font-size: 1.3rem;
}

.kfs-section-lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--kfs-muted);
    max-width: 26rem;
}

.kfs-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.1rem;
}

.kfs-bank-card {
    background: #fff;
    border-radius: var(--kfs-radius-lg);
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(15,23,42,0.08);
    border: 1px solid rgba(15,23,42,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.kfs-bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.kfs-bank-logo {
    max-height: 60px;
    width: auto;
}

.kfs-bank-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--kfs-secondary);
}

.kfs-bank-features {
    font-size: 0.82rem;
    color: var(--kfs-muted);
}

.kfs-bank-rate {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kfs-secondary);
}

.kfs-bank-cta {
    margin-top: 0.35rem;
}

.kfs-btn-bank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 1rem;
    width: 100%;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--kfs-secondary), #0f172a);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}


.kfs-bank-bullets {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: var(--kfs-muted);
}
.kfs-bank-bullets li {
    margin: 0.1rem 0;
}
/* Trust & testimonials */

.kfs-trust {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1.1fr);
    gap: 1.5rem;
    margin-top: 1.8rem;
}

.kfs-trust-box {
    background: #fff;
    border-radius: var(--kfs-radius-lg);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 14px 32px rgba(15,23,42,0.06);
    border: 1px solid rgba(15,23,42,0.04);
}

.kfs-guetesiegel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.kfs-seal {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(34,197,94,0.35);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kfs-seal-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #bbf7d0, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}

.kfs-testimonials {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.kfs-testimonial {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    background: #f9fafb;
    font-size: 0.86rem;
}

.kfs-testimonial-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* FAQ */

.kfs-faq-section {
    margin-top: 2.1rem;
    padding: 1.3rem 1.2rem 1.4rem;
    background: #0f172a;
    border-radius: var(--kfs-radius-lg);
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,0.7);
}

.kfs-faq-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kfs-faq-title {
    margin: 0;
    font-size: 1.15rem;
}

.kfs-faq-sub {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 24rem;
}

.kfs-faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kfs-faq-item {
    border-top: 1px solid rgba(148,163,184,0.35);
    padding: 0.65rem 0;
}

.kfs-faq-q {
    font-size: 0.9rem;
    font-weight: 600;
}

.kfs-faq-a {
    font-size: 0.84rem;
    color: #d1d5db;
    margin-top: 0.25rem;
}

/* Content styling for posts/pages */

.entry-content {
    background: #fff;
    border-radius: var(--kfs-radius-lg);
    padding: 1.6rem 1.6rem 1.8rem;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
    border: 1px solid rgba(15,23,42,0.05);
    margin: 2rem 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--kfs-secondary);
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

.entry-content p {
    margin: 0.5rem 0;
}

/* Footer */

.kfs-footer {
    margin-top: 2.4rem;
    padding: 1.4rem 0 2rem;
    font-size: 0.8rem;
    color: var(--kfs-muted);
    border-top: 1px solid rgba(15,23,42,0.08);
}

.kfs-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.kfs-footer-links a {
    color: var(--kfs-muted);
    text-decoration: none;
}

.kfs-footer-links a:hover {
    color: var(--kfs-secondary);
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
    .kfs-hero-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .kfs-hero-card {
        order: -1;
    }
    .kfs-bank-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .kfs-trust {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 720px) {
    .kfs-header-inner {
        align-items: center;
    }
    .kfs-main-menu {
        position: absolute;
        right: 1.25rem;
        top: 56px;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        padding: 0.7rem 0.95rem;
        border-radius: var(--kfs-radius-lg);
        box-shadow: 0 18px 40px rgba(15,23,42,0.18);
        min-width: 190px;
        max-width: 80vw;
        display: none;
    }
    .kfs-main-menu.kfs-open {
        display: flex;
    }
    .kfs-header-cta {
        display: none;
    }
    .kfs-menu-toggle {
        display: inline-flex;
    }
    .kfs-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .kfs-bank-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .kfs-faq-header {
        flex-direction: column;
    }
}
