/* ==========================================================================
   KLV Digital — Shared Styles
   Tokens: navy anchor, signal-blue accent, ice-grey surface
   Type: Manrope (display) / Inter (body) / JetBrains Mono (labels)
   ========================================================================== */

:root {
  --navy-950: #0A0F1F;
  --navy-900: #0F1730;
  --navy-800: #182449;
  --navy-700: #253361;
  --blue-600: #2F5FFF;
  --blue-500: #4B74FF;
  --blue-400: #6C93FF;
  --blue-100: #E3EAFF;
  --ice-50: #F6F8FC;
  --ice-100: #ECF0F9;
  --white: #FFFFFF;
  --ink-900: #0F1730;
  --slate-600: #48506A;
  --slate-500: #5B6478;
  --slate-400: #8890A6;
  --line: #DFE4F0;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ice-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--blue-600);
  display: inline-block;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--navy-950); }

.main-nav a.active { color: var(--navy-950); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-950); border-radius: 2px; }

.mobile-panel {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--ice-50);
  z-index: 99;
  padding: 12px 20px 40px;
  overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mobile-panel a {
  display: block;
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-950);
  border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { margin-top: 24px; width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

/* ---------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(47, 95, 255, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(47, 95, 255, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--navy-950); }

.btn-on-dark {
  background: var(--white);
  color: var(--navy-950);
}

.btn-on-dark:hover { transform: translateY(-2px); }

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}

.btn-ghost-on-dark:hover { border-color: rgba(255,255,255,0.7); }

/* ---------------------------------- Hero ----------------------------------- */

.hero {
  padding: 84px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 18px 0 22px;
}

.hero-copy .accent { color: var(--blue-600); }

.hero-copy p.lede {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-inline {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--slate-500);
}

.trust-inline span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-inline svg { flex-shrink: 0; }

/* ---------------------- Before/After signature widget ---------------------- */

.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(10, 15, 31, 0.35);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.1;
  user-select: none;
  background: var(--navy-950);
}

.compare-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.browser-chrome {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  flex-shrink: 0;
}

.browser-chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
}

.compare-after .browser-chrome { background: var(--navy-950); }
.compare-after .browser-chrome i { background: #2A3760; }

.compare-before .browser-chrome { background: #E8E4DA; }
.compare-before .browser-chrome i { background: #C9C3B4; }

.mock-body { flex: 1; padding: 20px 22px; overflow: hidden; }

/* "after" = clean redesign, on dark */
.compare-after {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0F1730, #0A0F1F 70%);
}
.compare-after .mock-body {
  display: grid;
  gap: 12px;
}
.mock-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.12); }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-headline { height: 20px; width: 72%; border-radius: 5px; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); margin-bottom: 4px; }
.mock-cta { margin-top: 6px; width: 120px; height: 26px; border-radius: 999px; background: var(--blue-600); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-cards div { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }

/* "before" = cluttered dated look */
.compare-before {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: #FBF9F3;
  clip-path: inset(0 50% 0 0);
}
.compare-before .mock-body {
  font-family: Georgia, serif;
}
.before-banner {
  height: 34px; width: 100%;
  background: repeating-linear-gradient(45deg, #E4B740, #E4B740 8px, #D9A62E 8px, #D9A62E 16px);
  border-radius: 3px;
  margin-bottom: 10px;
}
.before-title { font-size: 15px; font-weight: 700; color: #6B5B2E; margin-bottom: 8px; }
.before-line { height: 6px; background: #DDD6C2; margin-bottom: 6px; border-radius: 2px; }
.before-line.w90 { width: 90%; } .before-line.w70 { width: 70%; } .before-line.w80 { width: 80%; }
.before-badges { display: flex; gap: 6px; margin-top: 12px; }
.before-badges div { width: 34px; height: 22px; background: #E9E2CC; border: 1px solid #D2C9AC; border-radius: 3px; }

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.compare-handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--navy-950);
  box-shadow: 0 8px 18px -6px rgba(10,15,31,0.4);
}

.compare-tag {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 2;
}
.compare-tag.tag-before { left: 12px; background: rgba(0,0,0,0.55); color: #FBF9F3; }
.compare-tag.tag-after { right: 12px; background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(4px); }

.compare-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--slate-400);
  margin-top: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------------------------------- Sections -------------------------------- */

section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 14px;
}

.section-head p {
  color: var(--slate-600);
  font-size: 17px;
  margin-top: 14px;
}

.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-dark .eyebrow { color: var(--blue-400); }

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.trust-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-600);
}

.trust-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.trust-card p { font-size: 14.5px; color: var(--slate-500); }

/* Process steps */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

.process-step {
  position: relative;
  padding: 0 22px 0 0;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px; right: -1px;
  width: calc(100% - 44px);
  border-top: 1.5px dashed var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 600;
  width: 42px; height: 42px;
  border: 1.5px solid var(--blue-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: var(--ice-50);
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--slate-500); }

/* Services teaser / list */
.service-rows { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.service-row .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-600);
  padding-top: 4px;
}

.service-row h3 { font-size: 22px; margin-bottom: 10px; }
.service-row p { color: var(--slate-600); font-size: 15.5px; max-width: 60ch; }

.service-row ul.includes {
  list-style: none;
  padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}

.service-row ul.includes li {
  font-size: 13.5px;
  color: var(--slate-500);
  display: flex; align-items: center; gap: 8px;
}

.service-row ul.includes li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--blue-600);
  border-radius: 50%;
  flex-shrink: 0;
}

.price-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-950);
  background: var(--ice-100);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
}

/* CTA banner */
.cta-banner {
  border-radius: 20px;
  padding: 60px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(47,95,255,0.35), transparent 70%);
  top: -140px; right: -100px;
}

.cta-banner h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); max-width: 480px; position: relative; }
.cta-banner .cta-actions { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.about-portrait {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--navy-800);
}

.about-portrait .initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-copy p { color: var(--slate-600); font-size: 16.5px; margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }

.value-list {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.value-list li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--slate-600);
}

.value-list strong { color: var(--navy-950); display: block; margin-bottom: 3px; }

.value-list svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }

.contact-method .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-method .label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-400); margin-bottom: 3px; }
.contact-method .value { font-size: 16px; font-weight: 600; color: var(--navy-950); }

.big-contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 34px;
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 28px;
  transition: transform 0.18s ease;
}
.big-contact-btn:hover { transform: translateY(-2px); }
.big-contact-btn .left h3 { color: var(--white); font-size: 19px; margin-bottom: 6px; }
.big-contact-btn .left p { color: var(--slate-400); font-size: 14px; }
.big-contact-btn .arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.faq-list { display: grid; gap: 22px; }
.faq-list h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-list p { font-size: 14.5px; color: var(--slate-500); }

/* Legal / Impressum page */
.legal-content {
  max-width: 760px;
}
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--slate-600); font-size: 15.5px; margin-bottom: 6px; }
.legal-content ul { padding-left: 20px; margin: 0 0 14px; }
.legal-block { margin-bottom: 6px; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-800);
  margin-bottom: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-brand span { font-family: var(--font-mono); font-size: 13px; color: var(--slate-400); }

.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: var(--slate-400); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ---------------------------------- Responsive ------------------------------ */

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 0.95fr; align-items: center; }
}

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-step:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .price-pill { justify-self: start; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 72px; }
  .brand img { height: 34px; }
  section { padding: 64px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: auto; }
  .big-contact-btn { flex-direction: column; align-items: flex-start; gap: 16px; }
}
