/* =========================================================
   NORDFUCHS GUTACHTEN & SERVICE — Design System
   Reine Blaupalette aus dem Logo — Marine, Mittelblau und
   Silberblau. Keine Fremdfarbe, ruhig und edel.
   ========================================================= */

:root {
  --navy: #1B2A45;
  --navy-deep: #0F1A2C;
  --blue-mid: #2C5578;
  --blue-mid-deep: #1F3E5A;
  --silver-blue: #82ACC6;
  --silver-blue-light: #D3E3ED;
  --fox: #2C5578;
  --fox-deep: #1F3E5A;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FA;
  --ink: #1B2A45;
  --ink-muted: #5B6B80;
  --line: #E3E9EE;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -25px rgba(27, 42, 69, 0.25);
  --shadow-tight: 0 8px 24px -12px rgba(27, 42, 69, 0.22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -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);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fox-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--fox);
  display: inline-block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--fox);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(27,42,69,0.3);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 108px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--silver-blue);
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }

.header-cta {
  position: absolute;
  top: 18px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons (Apple-Stil: flach, klar, ruhig) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-fox {
  background: var(--blue-mid);
  color: #fff;
}
.btn-fox:hover { background: var(--blue-mid-deep); }
.btn-ghost {
  background: transparent;
  color: var(--blue-mid);
  padding-left: 6px;
  padding-right: 6px;
}
.btn-ghost::after { content: "›"; font-size: 17px; line-height: 1; margin-left: 2px; }
.btn-ghost:hover { color: var(--blue-mid-deep); text-decoration: underline; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 206px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(130,172,198,0.28), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(193,103,59,0.08), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.hero-inner > div:first-child {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}
.hero h1 em {
  font-style: normal;
  color: var(--fox);
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta div { display: flex; flex-direction: column; align-items: center; }
.hero-meta strong { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.hero-meta span { font-size: 13px; color: var(--ink-muted); }

.hero-art {
  width: 100%;
  max-width: 620px;
  margin-top: 64px;
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* Signature line-art path draw-in */
.draw-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.6s var(--ease) forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sticky spine (signature scroll element) ---------- */
.spine {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  z-index: 90;
  background: transparent;
}
.spine-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--silver-blue), var(--fox));
  transition: width .1s linear;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--silver-blue-light);
  padding: 64px 0;
  text-align: center;
}
.cta-band h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--navy);
}
.cta-band p {
  margin: 14px auto 28px;
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------- Generic section spacing ---------- */
.section { padding: 120px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy {
  background: var(--navy);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--silver-blue-light); }
.section-navy .eyebrow::before { background: var(--silver-blue-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 17px;
}
.eyebrow { justify-content: center; }
.section-navy .section-head p { color: rgba(255,255,255,0.75); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Leistungen cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--ink-muted); font-size: 15px; margin: 0 0 18px; }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card li {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fox);
}

/* ---------- Ablauf timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--silver-blue) 0 8px, transparent 8px 16px);
}
.timeline-step {
  position: relative;
  padding: 0 20px 0 0;
  counter-increment: step;
}
.timeline-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff;
}
.timeline-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.timeline-step p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* ---------- Über uns ---------- */
.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}
.about-text { max-width: 680px; }
.about-portrait {
  aspect-ratio: 16/7;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy) 0%, #223757 55%, var(--silver-blue) 130%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.about-portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; }
.about-portrait .quote-badge {
  position: relative;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  z-index: 1;
  max-width: 46ch;
  text-align: center;
}
.about-values {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}
.value-item { display: flex; gap: 12px; align-items: flex-start; }
.value-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fox);
  margin-top: 8px;
  flex-shrink: 0;
}
.value-item strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.value-item span { font-size: 13.5px; color: var(--ink-muted); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-item .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.contact-info-item a, .contact-info-item p { font-size: 14.5px; color: rgba(255,255,255,0.75); margin: 0; }
.contact-info-item a:hover { color: #fff; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--silver-blue);
  outline: none;
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.consent input { margin-top: 3px; }
.form-status { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: var(--fox-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 16px; }
.footer-col h5 {
  color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.65); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 13px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 207px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-page h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 48px; display:block; }
.legal-page h2 { font-size: 20px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-muted); font-size: 15.5px; line-height: 1.75; }
.legal-page a { color: var(--fox-deep); text-decoration: underline; }
.legal-page ul { padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 10px; }
  .nav-toggle { display: block; }
  .header-cta .btn-primary { display: none; }
  .brand img { height: 72px; }
  .header-inner { padding: 14px 60px 12px; }
  .header-cta { top: 16px; right: 20px; }
  .hero { padding: 128px 0 80px; }
  .section { padding: 84px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-values { grid-template-columns: 1fr; text-align: center; }
  .value-item { flex-direction: column; align-items: center; text-align: center; }
}
