/* ============================================================
   fibu-nrw.de – Uwe Koch, Kaufmännisches Büro & Buchhaltungsservice
   Zentrale Design-Tokens | Preset: Clean Light
   GENERIERT – nur Tokens hier ändern, nie einzelne Seiten.
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design-Tokens ───────────────────────────────────────── */
:root {
  /* Marke / Akzent */
  --accent:          #1A3A5C;
  --accent-strong:   #0F2440;
  --accent-2:        #3B82C4;
  --accent-light:    #EBF2FA;

  /* Flächen */
  --bg:              #FFFFFF;
  --bg-deep:         #F4F6F9;
  --surface:         #FFFFFF;
  --card-bg:         #F8F9FB;

  /* Text */
  --ink:             #0F1C2E;
  --text:            #2D3748;
  --text-soft:       #64748B;
  --on-accent:       #FFFFFF;

  /* Linien */
  --line:            #E2E8F0;
  --line-strong:     #CBD5E0;

  /* Schatten */
  --shadow:          0 2px 12px rgba(26,58,92,.08);
  --shadow-brand:    0 4px 24px rgba(26,58,92,.15);

  /* Schriften */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw:            1200px;
  --gutter:          clamp(1rem, 4vw, 2rem);
  --radius:          .5rem;
  --radius-sm:       .25rem;

  /* Abstands-Skala */
  --sp-1:  .25rem;
  --sp-2:  .5rem;
  --sp-3:  .75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family:  var(--font-body);
  font-size:    clamp(1rem, 1.1vw, 1.0625rem);
  line-height:  1.7;
  color:        var(--text);
  background:   var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Skip-Link ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: .875rem;
}
.skip-link:focus { top: var(--sp-4); }

/* ── Layout-Helfer ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Typografie ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
p  { max-width: 68ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .75rem 1.625rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  min-height: 44px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color:      var(--on-accent);
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--outline {
  background: transparent;
  color:      var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  text-decoration: none;
}
.logo span { display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 400; color: var(--text-soft); }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-5);
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links, .header-cta { display: none; }

  .site-nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-5) var(--gutter);
    gap: var(--sp-4);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open .header-cta {
    display: block;
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header { position: relative; }
  .site-nav { flex-direction: column; align-items: flex-start; position: relative; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--accent-strong);
  overflow: hidden;
  min-height: clamp(480px, 62vh, 700px);
  display: flex;
  align-items: center;
}
/* CSS-basierter Hero-Hintergrund (kein externes Bild nötig) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0F2440 0%, #1A3A5C 55%, #1e4a72 100%);
}
/* Feines Raster-Muster – symbolisch für Kontoführung / Tabellen */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,196,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,196,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, rgba(0,0,0,.6) 0%, transparent 100%);
}
.hero-bg { display: none; } /* Platzhalter falls echtes Bild später eingesetzt wird */
.hero-overlay { display: none; }
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-10);
  max-width: 680px;
}
.hero h1 {
  color: var(--on-accent);
  margin-bottom: var(--sp-5);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: var(--sp-7);
  max-width: 54ch;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ── SECTION-BASE ─────────────────────────────────────────── */
.section { padding-block: var(--sp-9); }
.section--alt { background: var(--bg-deep); }
.section-header { margin-bottom: var(--sp-7); }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p { color: var(--text-soft); font-size: 1.0625rem; }

/* ── LEISTUNGEN (3 Karten) ───────────────────────────────── */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.leistung-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: box-shadow .2s, transform .2s;
}
.leistung-card:hover { box-shadow: var(--shadow-brand); transform: translateY(-3px); }
.leistung-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.leistung-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.leistung-card h3 { margin-bottom: var(--sp-3); }
.leistung-card p { color: var(--text-soft); font-size: .9375rem; margin-bottom: var(--sp-5); }
.leistung-card a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  text-decoration: none;
}
.leistung-card a:hover { text-decoration: underline; }

/* ── QUALIFIKATION / VERTRAUEN ────────────────────────────── */
.vertrauen-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.vertrauen-text h2 { margin-bottom: var(--sp-4); }
.vertrauen-text p { color: var(--text-soft); margin-bottom: var(--sp-5); }
.quali-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.quali-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: .9375rem;
}
.quali-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--accent-light);
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  margin-top: .2em;
}
.vertrauen-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.stat-item {
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-deep);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-label { font-size: .875rem; color: var(--text-soft); font-weight: 500; }

@media (max-width: 768px) {
  .vertrauen-inner { grid-template-columns: 1fr; gap: var(--sp-7); }
}

/* ── STBERV HINWEIS ──────────────────────────────────────── */
.stberv-box {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  background: var(--accent-light);
  font-size: .875rem;
  color: var(--text);
}
.stberv-box strong { color: var(--accent); display: block; margin-bottom: var(--sp-2); }

/* ── VORTEILE ─────────────────────────────────────────────── */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}
.vorteil-item { display: flex; flex-direction: column; gap: var(--sp-3); }
.vorteil-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--line-strong);
  line-height: 1;
}
.vorteil-item h3 { font-size: 1.0625rem; color: var(--ink); }
.vorteil-item p  { font-size: .9375rem; color: var(--text-soft); }

/* ── KONTAKT-CTA ──────────────────────────────────────────── */
.kontakt-cta {
  background: var(--accent);
  padding-block: var(--sp-9);
  text-align: center;
}
.kontakt-cta h2 { color: var(--on-accent); margin-bottom: var(--sp-3); }
.kontakt-cta p  { color: rgba(255,255,255,.8); margin-bottom: var(--sp-6); margin-inline: auto; }
.kontakt-cta .btn--outline {
  color: var(--on-accent);
  border-color: var(--on-accent);
}
.kontakt-cta .btn--outline:hover {
  background: var(--on-accent);
  color: var(--accent);
}
.kontakt-cta .btn--primary {
  background: var(--on-accent);
  color: var(--accent);
}
.kontakt-cta .btn--primary:hover { background: var(--accent-light); }
.cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--accent-strong);
  color: rgba(255,255,255,.75);
  padding-block: var(--sp-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-6);
}
.footer-brand .logo { color: var(--on-accent); margin-bottom: var(--sp-4); }
.footer-brand .logo span { color: rgba(255,255,255,.55); }
.footer-brand p { font-size: .875rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: rgba(255,255,255,.75); font-size: .875rem; text-decoration: none; }
.footer-col a:hover { color: var(--on-accent); }
.footer-contact { font-size: .875rem; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--on-accent); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── MOBILE FLOATING CTA ─────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: var(--sp-5);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 200;
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: var(--on-accent);
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
  text-decoration: none;
  min-height: 52px;
}
@media (max-width: 640px) { .mobile-cta { display: block; } }

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── TRUST-STREIFEN ──────────────────────────────────────── */
.trust-bar {
  background: var(--surface-2, #f4f6fa);
  border-top: 1px solid var(--border, rgba(26,58,92,.1));
  border-bottom: 1px solid var(--border, rgba(26,58,92,.1));
  padding: var(--sp-6) 0;
}
.trust-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.trust-bar__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-6) var(--sp-8);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
a.trust-badge:hover { opacity: .75; }
.trust-badge__seal {
  flex-shrink: 0;
  color: var(--accent);
}
.trust-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-badge__text strong {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.trust-badge__text span {
  font-size: .75rem;
  color: var(--text-soft);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .trust-bar__items { flex-direction: column; align-items: flex-start; max-width: 320px; }
}
