/* ==========================================================================
   KPS Factoring GmbH — Premium dark theme stylesheet
   Shared across all pages
   ========================================================================== */

:root {
  --bg:            #0b1220;
  --bg-elevated:   #111c30;
  --bg-card:       #14233c;
  --line:          rgba(255, 255, 255, 0.08);
  --text:          #e7edf6;
  --text-muted:    #9fb0c8;
  --accent:        #3ea6ff;
  --accent-2:      #19d4b0;
  --accent-grad:   linear-gradient(120deg, #3ea6ff 0%, #19d4b0 100%);
  --danger:        #ff6b6b;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw:          1180px;
  --font:          "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Decorative ambient glow on dark background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(62, 166, 255, 0.14), transparent 60%),
    radial-gradient(600px 500px at 95% 0%, rgba(25, 212, 176, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--text-muted); }

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { height: 40px; width: auto; flex-shrink: 0; }
.brand small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav-links a.active { color: var(--text); background: rgba(62,166,255,0.12); }

.nav-cta {
  background: var(--accent-grad);
  color: #04121f !important;
  font-weight: 700;
  padding: 10px 18px !important;
  border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s, transform 0.15s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #04121f; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { background: rgba(255,255,255,0.06); }

/* ---------------------------------------------------------------- Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero p.lead { font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2);
}

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-size: 0.9rem; color: var(--text-muted); }

/* Cards grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(62,166,255,0.4); }
.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(62,166,255,0.12);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.97rem; }

/* Split feature row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad);
  color: #04121f;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-grad); color: #04121f;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* CTA band */
.cta-band {
  background: var(--accent-grad);
  border-radius: var(--radius);
  padding: 52px;
  text-align: center;
  color: #04121f;
}
.cta-band h2 { color: #04121f; }
.cta-band p { color: rgba(4,18,31,0.8); }
.cta-band .btn-dark { background: #04121f; color: #fff; }
.cta-band .btn-dark:hover { filter: brightness(1.3); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px;
}
.info-item .icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(25,212,176,0.12); display:flex; align-items:center; justify-content:center; }
.info-item .icon svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.info-item strong { display: block; color: var(--text); margin-bottom: 2px; }
.info-item span, .info-item a { color: var(--text-muted); }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
form input, form textarea {
  width: 100%; padding: 13px 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 0.97rem;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form textarea { resize: vertical; min-height: 130px; }

/* Map embed-style block */
.map-block {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-top: 40px;
}

/* Legal / prose pages */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { margin-bottom: 0.3em; }
.prose .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.4em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-top: 40px;
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.95rem; margin: 0 0 16px; color: var(--text); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a, .footer-grid span { color: var(--text-muted); font-size: 0.93rem; }
.footer-brand p { font-size: 0.93rem; max-width: 320px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: var(--text-muted);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .grid-2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .stats { padding: 32px 22px; }
}
