/* ══════════════════════════════════════════
   ZYNTARA — SHARED CHROME (nav, footer, modal, tokens)
   "v3" design system — light, confident, tangible.
   Used by /diensten/*.html. Mirrors the tokens in
   index.html's inline <style> and app/globals.css.
══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ── Selection color ── */
::selection { background: #5D4FEB; color: #FFFFFF; }
::-moz-selection { background: #5D4FEB; color: #FFFFFF; }

/* ── Tokens — ZYNTARA v3 ── */
:root {
  --color-bg:          #FFFFFF;
  --color-bg-soft:     #F4F4F6;
  --color-ink:         #16181D;
  --color-ink-muted:   #6B6E76;
  --color-accent:      #5D4FEB;
  --color-accent-deep: #4A3DD1;
  --color-dark-panel:  #14151A;
  --color-line:        #E7E6EA;

  --bg:         var(--color-bg);
  --text:       var(--color-ink);
  --text-2:     var(--color-ink-muted);
  --text-muted: var(--color-ink-muted);
  --accent:     var(--color-accent);

  --font-body: 'Inter', system-ui, sans-serif;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.6;
}
body.no-cursor { cursor: none; }

/* ── Typography ── */
h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-ink);
}
h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-ink);
}
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--color-ink); }
p  { color: var(--color-ink-muted); line-height: 1.65; }
h1, h2, h3 { hyphens: none; -webkit-hyphens: none; }

.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* ── Buttons — fully rounded ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
              opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: scale(1.02); }
.btn:active:not(:disabled) { transform: scale(0.99); }
.btn-primary {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn-primary:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-ghost {
  border-color: var(--color-line);
  background: transparent;
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-ink); background: var(--color-bg-soft); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { position: relative; z-index: 1; }

/* ── Shared shadows ── */
.shadow-soft { box-shadow: 0 2px 8px rgba(22,24,29,0.06), 0 1px 2px rgba(22,24,29,0.04); }
.shadow-lift { box-shadow: 0 12px 32px rgba(22,24,29,0.10), 0 2px 8px rgba(22,24,29,0.05); }

/* ══════════════════════════════════════════
   REVEAL SYSTEM — JS adds html.js-ready
   Subtle, one-time: translateY(12px)->0, opacity 0->1
══════════════════════════════════════════ */
html.js-ready .reveal,
html.js-ready .reveal-left,
html.js-ready .reveal-right,
html.js-ready .reveal-scale {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--spring), transform 0.45s var(--spring);
  will-change: transform, opacity;
}
html.js-ready .reveal.visible,
html.js-ready .reveal-left.visible,
html.js-ready .reveal-right.visible,
html.js-ready .reveal-scale.visible {
  opacity: 1; transform: none; will-change: auto;
}

.d1 { transition-delay: 0.06s !important; }
.d2 { transition-delay: 0.12s !important; }
.d3 { transition-delay: 0.18s !important; }
.d4 { transition-delay: 0.24s !important; }
.d5 { transition-delay: 0.3s !important; }

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal, html.js-ready .reveal-left,
  html.js-ready .reveal-right, html.js-ready .reveal-scale {
    opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR — thin ring, accent colour
══════════════════════════════════════════ */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--color-accent); border-radius: 50%;
  opacity: 0.9; pointer-events: none;
  z-index: 99998; will-change: transform;
  transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 1px solid var(--color-accent); border-radius: 50%;
  pointer-events: none; z-index: 99997; will-change: transform;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}
body.cursor-hover #cursor-dot { opacity: 0; width: 0; height: 0; }
body.cursor-hover #cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: transparent; border-color: var(--color-ink);
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; padding: 20px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo svg { height: 30px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center;
  gap: 32px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--color-ink-muted);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-ink); }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none; z-index: 201;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--color-ink); transform-origin: center;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--color-bg);
  z-index: 199;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--color-ink);
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 700; letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--color-accent); }

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

/* ══════════════════════════════════════════
   SECTION HEADER / SHARED LIST STYLES
══════════════════════════════════════════ */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header .sub { font-size: 18px; max-width: 560px; font-weight: 400; color: var(--color-ink-muted); }

.pain-list {
  list-style: none; margin: 28px 0 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.pain-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; color: var(--color-ink-muted);
  line-height: 1.6; font-weight: 400;
}
.pain-dash { color: var(--color-accent); flex-shrink: 0; font-size: 18px; line-height: 1.5; }

.dienst-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff; background: var(--color-accent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   SERVICE PAGE — hero, stat highlights
══════════════════════════════════════════ */
.service-hero {
  padding: 160px 0 100px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.service-hero h1 { max-width: 780px; margin-bottom: 24px; }
.service-hero-sub {
  font-size: 18px; line-height: 1.7; color: var(--color-ink-muted);
  max-width: 620px; margin-bottom: 20px; font-weight: 400;
}
.service-hero .btn { margin-top: 24px; }

.service-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 48px;
}
.service-stat-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: 20px; padding: 22px 26px;
  min-width: 220px; flex: 1;
}
.service-stat-label {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600; color: var(--color-ink-muted); margin-bottom: 10px;
}
.service-stat-value {
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--color-ink);
}
.service-stat-value span { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--color-ink-muted); }
.service-stat-featured {
  border-color: var(--color-accent);
  background: rgba(93,79,235,0.06);
}
.service-stat-featured .service-stat-value { color: var(--color-accent); }
.service-stat-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: #fff; background: var(--color-accent);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}

.service-section { padding: 100px 0; }
.service-section.alt { border-top: 1px solid var(--color-line); }

/* ══════════════════════════════════════════
   CTA — one of two sparing dark-panel usages
══════════════════════════════════════════ */
.cta-box {
  background: var(--color-dark-panel);
  border-radius: 32px; padding: 96px 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { margin-bottom: 18px; color: #fff; }
.cta-box > .cta-sub { font-size: 18px; max-width: 540px; margin: 0 auto 36px; font-weight: 400; color: rgba(255,255,255,0.65); }
.cta-subtext { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.4); }
.cta-box .btn-primary { background: var(--color-accent); border-color: var(--color-accent); }
.cta-box .btn-primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.cta-box .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-box .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ══════════════════════════════════════════
   FOOTER — the second sparing dark-panel usage
══════════════════════════════════════════ */
footer {
  padding: 80px 0 40px;
  background: var(--color-dark-panel);
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1; overflow: hidden;
}
.footer-watermark {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 15vw; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: rgba(255,255,255,0.04); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px; position: relative;
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; text-decoration: none; margin-bottom: 14px; }
.footer-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-slogan { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 400; }
.footer-col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 400; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact-row {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 400;
  margin-bottom: 10px; text-decoration: none; transition: color 0.2s ease;
}
.footer-contact-row:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; position: relative;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(22,24,29,0.6);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative; background: var(--color-bg);
  border: 1px solid var(--color-line); border-radius: 28px;
  padding: 48px 40px 40px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 12px 32px rgba(22,24,29,0.10), 0 2px 8px rgba(22,24,29,0.05);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--color-ink-muted);
  font-size: 20px; cursor: pointer; padding: 6px 10px;
  border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--color-ink); background: var(--color-bg-soft); }
.modal-heading { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.modal-subtext { color: var(--color-ink-muted); font-size: 14px; margin-bottom: 26px; line-height: 1.6; font-weight: 400; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--color-ink-muted); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; }
.form-group input {
  width: 100%; background: var(--color-bg-soft); border: 1.5px solid var(--color-line);
  border-radius: 14px; color: var(--color-ink); font-size: 15px;
  font-family: inherit; padding: 13px 16px; outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: var(--color-ink-muted); }
.form-group input:focus { border-color: var(--color-accent); }
.form-group input.has-error { border-color: #E0483B; }
.field-error { display: block; font-size: 12px; color: #E0483B; margin-top: 5px; min-height: 16px; }
.modal-submit { width: 100%; margin-top: 8px; padding: 15px 24px; font-size: 15px; justify-content: center; }
.modal-submit:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.modal-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px 0 8px; gap: 12px;
}
.modal-success-icon {
  width: 56px; height: 56px; border-radius: 999px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.modal-success h3 { font-size: 1.3rem; font-weight: 700; }
.modal-success p { color: var(--color-ink-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 540px) { .modal-box { padding: 44px 20px 32px; } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .btn { min-height: 44px; min-width: 44px; }
  a, button { touch-action: manipulation; }
  .nav-hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .footer-links a { padding: 4px 0; min-height: 44px; display: flex; align-items: center; }

  .service-hero { padding: 120px 0 64px; }
  .service-section { padding: 64px 0; }
  .service-meta-row { flex-direction: column; }
  .service-stat-card { width: 100%; }

  .section-header { margin-bottom: 36px; }
  .section-header .sub { font-size: 16px; }

  .cta-box { padding: 52px 20px; }
  .cta-box .cta-sub { font-size: 16px; }

  footer { padding: 64px 0 32px; }
}

@media (max-width: 480px) {
  .cta-box { padding: 44px 16px; }
}

@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .cta-box { padding: 40px 14px; }
}
