/* ============================================================
   Location Strategy Group — style.css
   Design R3 „Karte & Kompass" · Marine & Amber · Starter-Paket
   ============================================================ */

/* ─── Fonts (self-hosted, Fontsource) ─────────────────────── */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2');
}

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  /* Farben */
  --bg: #FBF6EE;
  --bg-alt: #F4EDE0;
  --surface: #FFFFFF;
  --ink: #23211C;
  --muted: #625B4E;
  --marine: #1E3A5F;
  --marine-soft: rgba(30, 58, 95, 0.08);
  --amber: #D98E2B;
  --amber-hover: #C97F1D;
  --amber-text: #8F5410;
  --dark: #16293F;
  --light-on-dark: #FBF6EE;
  --muted-on-dark: rgba(251, 246, 238, 0.78);
  --border: #E4D9C6;
  --ok: #2F6B3F;
  --err: #A5372A;

  /* Typografie */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --section-padding: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 76px;
  --radius: 18px;

  /* Übergänge (§3.7 — fest begrenzt, nie Prozent) */
  --fade-h: clamp(24px, 3vh, 48px);
  --fade-merge: clamp(96px, 14vh, 220px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 0.9, 0.35, 1.04);
}

/* ─── Basis ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; color: var(--marine); }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); margin-bottom: 1.1rem; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; line-height: 1.35; }
p { max-width: 62ch; }

a { color: var(--amber-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: rgba(217, 142, 43, 0.35); }

:focus-visible { outline: 2.5px solid var(--amber-text); outline-offset: 3px; border-radius: 3px; }
.section--dark :focus-visible, .footer :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--marine); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 500;
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 0; }

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-padding) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}
.section__inner--narrow { max-width: 860px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--amber); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-hover); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217, 142, 43, 0.35); }
.btn--marine { background: var(--marine); color: #fff; }
.btn--marine:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 58, 95, 0.3); }

.btn-ghost {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  color: var(--marine);
  font-weight: 500;
  text-decoration: none;
}
.btn-ghost span { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-ghost:hover span { transform: translateX(5px); }

/* ─── Header / Nav ────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header--scrolled {
  background: rgba(251, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(30, 58, 95, 0.1), 0 8px 28px rgba(30, 58, 95, 0.07);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: inline-flex; align-items: center; color: var(--marine); }
.logo-line1 { font-family: var(--font-display); font-size: 15px; fill: var(--marine); }
.logo-line2 { font-family: var(--font-body); font-size: 10.5px; letter-spacing: 5px; fill: var(--amber-text); }
.logo-line1--light { fill: var(--light-on-dark); }
.logo-line2--light { fill: var(--amber); }

.nav__menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__menu a {
  color: var(--marine); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  transition: color 0.25s var(--ease);
}
.nav__menu a:hover { color: var(--amber-text); }
.nav__menu .nav__cta {
  background: var(--amber); color: var(--ink);
  padding: 0.55rem 1.3rem; border-radius: 999px; font-weight: 700;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__menu .nav__cta:hover { background: var(--amber-hover); color: var(--ink); transform: translateY(-1px); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  z-index: 110;
}
.nav__burger span {
  display: block; width: 26px; height: 2.5px; background: var(--marine);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg);
}
/* Hell → Dunkel: saubere Kante — an Kontrastgrenzen bewusst KEIN Fade
   (Merge-Fade nur bei ähnlichen Tönen, siehe .services::after) */
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative; z-index: 2;
}
.hero__sub { margin: 1.4rem 0 2rem; color: var(--muted); font-size: 1.07rem; max-width: 54ch; }
.hero__actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hero__trust { margin-top: 2.2rem; font-size: 0.88rem; color: var(--muted); letter-spacing: 0.02em; }

.hero__visual { position: relative; }
.hero__path {
  position: absolute; left: -34%; bottom: -6%;
  width: 62%; z-index: 1;
  pointer-events: none;
}
.hero__img-card {
  position: relative; z-index: 2;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--marine-soft);
  box-shadow: 0 28px 70px rgba(30, 58, 95, 0.20);
}
.hero__img-card img { width: 100%; height: auto; }

/* Weg-Linien-Draw (markeneigener Effekt) */
.weg-mask-path, .weg-mask-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero .weg-mask-path { animation: weg-draw 1.7s var(--ease) 0.5s forwards; }
@keyframes weg-draw { to { stroke-dashoffset: 0; } }
.hero .weg-ziel { opacity: 0; animation: weg-ziel 0.5s var(--ease-soft) 1.9s forwards; }
@keyframes weg-ziel { from { opacity: 0; transform: scale(0.4); transform-origin: 176px 30px; } to { opacity: 1; transform: scale(1); } }
.process__steps .weg-mask-line { transition: stroke-dashoffset 2.2s var(--ease) 0.2s; }
.process__steps.is-visible .weg-mask-line { stroke-dashoffset: 0; }

/* ─── Statement (dunkel) ──────────────────────────────────── */
.section--dark { background: var(--dark); color: var(--light-on-dark); }
.section--dark h2 { color: var(--light-on-dark); }
.section--dark p { color: var(--muted-on-dark); }

.statement__lead { font-size: 1.12rem; max-width: 58ch; margin-bottom: 3rem; }
.statement__points {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.statement__points li {
  border-top: 2px solid rgba(217, 142, 43, 0.55);
  padding-top: 1.2rem;
}
.statement__points h3 { color: var(--amber); font-size: 1.08rem; margin-bottom: 0.5rem; }
.statement__points p { font-size: 0.98rem; }

/* ─── Leistungen ──────────────────────────────────────────── */
.services { background: var(--bg); position: relative; }
/* Dunkel → Hell: saubere Kante — an Kontrastgrenzen bewusst KEIN Fade */
/* Hell → Hell-Alt (ähnliche Farben): grosser Merge-Fade unten (§3.7) */
.services::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--fade-merge);
  background: linear-gradient(180deg, transparent, var(--bg-alt));
  pointer-events: none;
}
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 2.8rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 142, 43, 0.55);
  box-shadow: 0 18px 44px rgba(30, 58, 95, 0.13);
}
.card__icon { width: 48px; height: 48px; color: var(--marine); margin-bottom: 1.3rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 0.7rem; font-size: 1.14rem; }
.card p { font-size: 0.97rem; color: var(--muted); }

/* ─── Prozess ─────────────────────────────────────────────── */
.section--alt { background: var(--bg-alt); position: relative; }
/* Hell-Alt → Dunkel: saubere Kante — an Kontrastgrenzen bewusst KEIN Fade */
.process__steps {
  list-style: none;
  position: relative;
  margin-top: 2.6rem;
  max-width: 640px;
  display: grid; gap: 2.4rem;
}
.process__line {
  position: absolute; left: 21px; top: 26px; bottom: 46px;
  width: 4px; height: auto;
}
.step { display: flex; gap: 1.5rem; position: relative; }
.step__nr {
  flex: 0 0 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 2px solid var(--marine);
  border-radius: 50%;
  font-weight: 700; color: var(--marine); font-size: 1.05rem;
  position: relative; z-index: 2;
}
.step__nr--ziel { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.step__body h3 { margin-bottom: 0.4rem; font-size: 1.13rem; color: var(--marine); }
.step__body p { font-size: 0.97rem; color: var(--muted); max-width: 52ch; }
.process__cta { margin-top: 3rem; }

/* ─── Erfahrung (dunkel) ──────────────────────────────────── */
.about__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__img {
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(251, 246, 238, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.about__text p { margin-bottom: 1.1rem; }
.about__values {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.6rem;
}
.about__values li {
  border: 1px solid rgba(217, 142, 43, 0.5);
  color: var(--amber);
  font-size: 0.88rem; font-weight: 500;
  padding: 0.45rem 1rem; border-radius: 999px;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { background: var(--bg); position: relative; }
/* Dunkel → Hell: saubere Kante — an Kontrastgrenzen bewusst KEIN Fade */
.faq__list { margin-top: 2.4rem; display: grid; gap: 0.9rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item:hover { border-color: rgba(217, 142, 43, 0.5); }
.faq__item[open] { border-color: rgba(217, 142, 43, 0.6); box-shadow: 0 10px 30px rgba(30, 58, 95, 0.08); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.faq__chevron {
  flex: 0 0 12px; width: 12px; height: 12px;
  border-right: 2.2px solid var(--amber-text);
  border-bottom: 2.2px solid var(--amber-text);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin-top: -4px;
}
.faq__item[open] .faq__chevron { transform: rotate(-135deg); margin-top: 4px; }
.faq__item > p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.98rem; }

/* ─── Kontakt ─────────────────────────────────────────────── */
.contact { background: var(--bg); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; right: -10%; top: -5%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(217, 142, 43, 0.13), transparent 62%);
  pointer-events: none;
}
/* Hell → Dunkel (Footer): saubere Kante — an Kontrastgrenzen bewusst KEIN Fade */
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__text p { color: var(--muted); }
.contact__mail { margin-top: 1.8rem; font-size: 0.98rem; }
.email-link { font-weight: 500; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 16px 44px rgba(30, 58, 95, 0.09);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--marine); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9A907F; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--marine);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__submit { width: 100%; margin-top: 0.4rem; }
.form__status { margin-top: 0.9rem; font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form__note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); color: var(--muted-on-dark); }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding-top: 4.5rem; padding-bottom: 2.5rem;
}
.footer__brand p { margin-top: 1.1rem; font-size: 0.95rem; max-width: 34ch; }
.footer__nav { display: flex; gap: 4rem; justify-content: flex-end; }
.footer__nav ul { list-style: none; display: grid; gap: 0.65rem; }
.footer__nav a { color: var(--light-on-dark); text-decoration: none; font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--amber); }
.footer__bottom {
  border-top: 1px solid rgba(251, 246, 238, 0.12);
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.footer__bottom p { font-size: 0.85rem; margin: 0 auto; }

/* ─── Scroll-Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-soft), transform 0.75s var(--ease-soft);
}
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column; justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 105;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 1.35rem; }
  body.no-scroll { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; gap: 2.8rem; padding-bottom: 4rem; }
  .hero__visual { max-width: 480px; }
  .hero__path { left: auto; right: -12%; bottom: -10%; width: 50%; }
  .about__inner { grid-template-columns: 1fr; }
  .about__img { max-width: 540px; order: 2; }
  .contact__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .statement__points { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .statement__points { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__actions .btn-ghost { padding-left: 0; }
  .hero__path { display: none; }
  .step { gap: 1.1rem; }
  .footer__nav { flex-direction: column; gap: 1.6rem; }
  .form { padding: 1.6rem 1.3rem; }
}

/* ─── Reduced Motion (Pflicht, alle Effekte) ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .weg-mask-path, .weg-mask-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .hero .weg-ziel { opacity: 1; animation: none; }
}
