/*
Theme Name: KfS Modern Theme
Theme URI: https://www.kredit-fuer-selbststaendige.de
Author: Alex & ChatGPT
Description: Modernes, seriöses Theme für kredit-fuer-selbststaendige.de mit conversionstarker Startseite, Gutenberg-Unterstützung und anpassbaren Texten über den Customizer.
Version: 1.2.0
Text Domain: kfs-modern
*/

/* Basislayout */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f3f4f6;
}

a {
  color: #0f766e;
}

a:hover {
  text-decoration: none;
}

/* Container */
.kfs-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.kfs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(16px);
}

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

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

.kfs-logo-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.kfs-logo-sub {
  font-size: 0.78rem;
  color: #9ca3af;
}

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

.kfs-header-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.86rem;
}

.kfs-header-nav a {
  color: #cbd5f5;
  text-decoration: none;
}

.kfs-header-nav a:hover {
  color: #e5e7eb;
}

.kfs-header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.kfs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  cursor: pointer;
}

.kfs-btn-primary {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.32);
}

.kfs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(16, 185, 129, 0.4);
}

.kfs-btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.kfs-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.6);
}

.kfs-btn-full {
  width: 100%;
}

/* Hero */
.kfs-home {
  color: #0f172a;
}

.kfs-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f9fafb;
  padding: 4.5rem 0 4rem;
}

.kfs-hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  align-items: center;
}

.kfs-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.7);
  margin-bottom: 1rem;
}

.kfs-hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.kfs-hero-subline {
  font-size: 1rem;
  color: #e5e7eb;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.kfs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Trust list */
.kfs-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.kfs-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Gütesiegel / Badges */
.kfs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.kfs-badge-item {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Hero Card */
.kfs-hero-card {
  background: #f9fafb;
  color: #0f172a;
  border-radius: 1.2rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.kfs-hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.kfs-hero-card ol {
  padding-left: 1.1rem;
  margin: 0 0 1.4rem;
}

.kfs-hero-card li {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.kfs-hero-note {
  font-size: 0.78rem;
  color: #4b5563;
  margin-top: 0.75rem;
}

/* Sections */
.kfs-section {
  padding: 3.5rem 0;
}

.kfs-section-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.kfs-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Partner grid */
.kfs-partner-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kfs-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  position: relative;
}

.kfs-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.kfs-partner-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.kfs-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.kfs-card-meta {
  font-size: 0.84rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.kfs-card-list {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

/* Featured card */
.kfs-card-featured {
  border: 2px solid #16a34a;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.3);
  transform: translateY(-4px);
}

.kfs-card-ribbon {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #16a34a;
  color: #f9fafb;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.kfs-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Trust section */
.kfs-trust {
  background: #0f172a;
  color: #e5e7eb;
}

.kfs-trust-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
}

.kfs-testimonials {
  display: grid;
  gap: 1rem;
}

.kfs-testimonial {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.9rem;
}

.kfs-stars {
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 0.4rem;
}

.kfs-author {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* Blog */
.kfs-blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kfs-blog-card .kfs-blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.kfs-blog-thumb img {
  border-radius: 0.7rem;
}

.kfs-blog-excerpt {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.kfs-blog-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f766e;
}

/* FAQ */
.kfs-faq h2 {
  margin-bottom: 1rem;
}

.kfs-faq-list {
  display: grid;
  gap: 0.75rem;
}

.kfs-faq-item {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.kfs-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.kfs-faq-item p {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Gutenberg Content */
.kfs-custom-content {
  background: transparent;
}

.kfs-custom-content .entry-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Footer */
.kfs-site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 2rem 0;
  font-size: 0.8rem;
}

.kfs-site-footer a {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 960px) {
  .kfs-site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .kfs-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .kfs-header-nav {
    flex-wrap: wrap;
  }

  .kfs-hero-inner,
  .kfs-trust-grid {
    grid-template-columns: 1fr;
  }

  .kfs-hero {
    padding-top: 3rem;
  }

  .kfs-hero-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .kfs-header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .kfs-hero h1 {
    font-size: 1.8rem;
  }

  .kfs-hero-subline {
    font-size: 0.95rem;
  }

  .kfs-hero-card {
    padding: 1.4rem 1.2rem;
  }

  .kfs-section {
    padding: 3rem 0;
  }
}

/* Dropdown-Menü */
.kfs-header-nav .menu-item-has-children {
  position: relative;
}

.kfs-header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #020617;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  list-style: none;
  margin: 0.4rem 0 0;
  min-width: 180px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
  display: none;
  z-index: 60;
}

.kfs-header-nav .sub-menu li {
  margin: 0;
  padding: 0;
}

.kfs-header-nav .sub-menu a {
  display: block;
  padding: 0.25rem 0.3rem;
  color: #e5e7eb;
  font-size: 0.84rem;
}

.kfs-header-nav .menu-item-has-children:hover > .sub-menu {
  display: block;
}

@media (max-width: 960px) {
  .kfs-header-nav .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    background: transparent;
  }
}
