/* ==========================================================================
   Hayek Business Solutions – One Pager
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dunkle Flächen */
  --ink: #0a0c11;
  --ink-2: #0e1117;
  --ink-3: #141821;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #ece8df;
  --on-ink-muted: #a8a59c;

  /* Gold (aus dem Logo) */
  --gold: #c9a24d;
  --gold-300: #ecd496;
  --gold-ink: #80621f; /* Gold für Text auf hellem Grund (Kontrast ≥ 4.5:1) */
  --gold-grad: linear-gradient(135deg, #f4e1a6 0%, #d8b25e 38%, #b8892f 70%, #e9cd84 100%);

  /* Helle Flächen */
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --text: #16181d;
  --text-muted: #5a5e68;
  --line: #e7e1d4;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 1px 2px rgba(16, 18, 24, 0.04), 0 12px 32px -12px rgba(16, 18, 24, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-display: "Schibsted Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}
.section-light :focus-visible { outline-color: var(--gold-ink); }

::selection { background: rgba(201, 162, 77, 0.35); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px;
  --pad-x: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-position 0.6s var(--ease), color 0.25s, border-color 0.25s, background-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  color: #1d1608;
  background: var(--gold-grad);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 10px 28px -12px rgba(201, 162, 77, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 36px -14px rgba(201, 162, 77, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(236, 232, 223, 0.28);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--gold-300);
  border-color: var(--gold);
  background: rgba(201, 162, 77, 0.06);
}

.btn-sm { --pad-y: 11px; --pad-x: 20px; font-size: 14px; }
.btn-lg { --pad-y: 18px; --pad-x: 34px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 12, 17, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.brand img { height: 38px; width: auto; }

/* Oben im Hero ist das große Logo sichtbar – das kleine erscheint erst beim Scrollen */
.site-header:not(.is-scrolled):not(.is-solid):not(.menu-open) .brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--on-ink-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.25s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover,
.nav a.is-active { color: var(--on-ink); }
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 120px;
  overflow: hidden;
  color: var(--on-ink);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 26%, rgba(201, 162, 77, 0.17), transparent 70%),
    radial-gradient(35% 30% at 88% 92%, rgba(201, 162, 77, 0.07), transparent 70%),
    radial-gradient(30% 30% at 8% 80%, rgba(120, 140, 190, 0.05), transparent 70%),
    linear-gradient(180deg, #090b10 0%, #0e1117 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 25%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.45), transparent);
}

.hero-inner { position: relative; }

.hero-logo-wrap {
  position: relative;
  width: clamp(250px, 46vw, 560px);
  margin: 0 auto;
}
.hero-logo {
  width: 100%;
  filter: drop-shadow(0 14px 44px rgba(201, 162, 77, 0.22));
}
/* Lichtreflex, der über das goldene Logo gleitet */
.hero-logo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 249, 228, 0.8) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-mask: url("../img/hayek-logo.png") center / 100% 100% no-repeat;
  mask: url("../img/hayek-logo.png") center / 100% 100% no-repeat;
  mix-blend-mode: soft-light;
  animation: shine 8s ease-in-out 1.8s infinite;
}
@keyframes shine {
  0% { background-position: 150% 0; }
  30%, 100% { background-position: -50% 0; }
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(28px, 4vw, 40px) auto clamp(26px, 3.5vw, 34px);
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  width: 72px;
  height: 1px;
}
.hero-divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-divider span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero h1 {
  font-size: clamp(34px, 4.9vw, 66px);
  color: var(--on-ink);
}
.hero h1 em,
.gold-text {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em; /* Unterlängen (g) nicht abschneiden */
}

.hero .lead {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--on-ink-muted);
  font-size: clamp(16px, 1.55vw, 19px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-ink-muted);
  font-size: 14.5px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-trust svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: #1d1608;
  background: var(--gold-grad);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(236, 232, 223, 0.25);
  border-radius: 14px;
  transition: border-color 0.3s;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollhint 2.2s var(--ease) infinite;
}
.scroll-hint:hover { border-color: var(--gold); }
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  80%, 100% { transform: translateY(14px); opacity: 0; }
}

/* Einblend-Animation beim Laden */
.hero-anim {
  animation: rise 1.1s var(--ease) both;
}
.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.28s; }
.hero-anim:nth-child(4) { animation-delay: 0.4s; }
.hero-anim:nth-child(5) { animation-delay: 0.52s; }
.hero-anim:nth-child(6) { animation-delay: 0.64s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sektionen ---------- */
.section {
  position: relative;
  padding: clamp(84px, 11vw, 140px) 0;
}
.section-light { background: var(--ivory); color: var(--text); }
.section-dark { background: var(--ink-2); color: var(--on-ink); }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-ink);
  font: 600 12.5px/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section-dark .eyebrow,
.contact .eyebrow { color: var(--gold); }

.section-head h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3.8vw, 48px);
}
.section-head p {
  margin-top: 18px;
  text-wrap: pretty;
  color: var(--text-muted);
  font-size: 18px;
}
.section-dark .section-head p { color: var(--on-ink-muted); }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service {
  position: relative;
  overflow: hidden;
  padding: 40px 36px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: #e3d6b8;
  box-shadow: 0 28px 56px -24px rgba(16, 18, 24, 0.25);
}
.service:hover::before { transform: scaleX(1); }

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: var(--gold-300);
  background: linear-gradient(145deg, #1b1e27, #0b0d12);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 77, 0.35), 0 10px 20px -12px rgba(10, 12, 17, 0.6);
}
.service-icon svg { width: 26px; height: 26px; }
.service-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #d6c7a6;
}
.service h3 {
  margin-bottom: 12px;
  font-size: 26px;
}
.service p {
  text-wrap: pretty;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Referenzen / Slider ---------- */
.ref-stage {
  display: grid;
  gap: 24px; /* ohne JavaScript: Referenzen untereinander */
}
.js .ref-stage {
  gap: 0;
  touch-action: pan-y;
}

.ref-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.js .ref-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.js .ref-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s;
}

.ref-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 440px;
  padding: 48px 48px 22px;
  background: #fefefe;
}
.ref-media img {
  width: auto;
  max-width: 80%;
  max-height: 290px;
  margin-block: auto; /* Logo mittig im freien Raum über der Domain */
  object-fit: contain;
}
.ref-media img.is-wordmark {
  width: 74%;
  max-height: none;
}
.js .ref-media img {
  transform: scale(0.95);
  transition: transform 1.4s var(--ease);
}
.js .ref-slide.is-active .ref-media img { transform: none; }

.ref-domain {
  margin-top: 18px;
  color: #80848e;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
}

.ref-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 68px);
}
.ref-kicker {
  color: var(--gold);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ref-body h3 {
  margin: 16px 0 18px;
  color: var(--on-ink);
  font-size: clamp(27px, 2.9vw, 38px);
}
.ref-body p {
  max-width: 46ch;
  text-wrap: pretty;
  color: var(--on-ink-muted);
  font-size: 17px;
}
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 36px;
  padding: 0;
  list-style: none;
}
.ref-tags li {
  padding: 7px 14px;
  border: 1px solid rgba(201, 162, 77, 0.32);
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.06);
  color: var(--gold-300);
  font-size: 13px;
  line-height: 1.3;
}
.ref-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 162, 77, 0.5);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.ref-link svg { width: 16px; height: 16px; }
.ref-link:hover { gap: 14px; color: var(--gold-300); border-color: var(--gold); }

/* Inhalte der aktiven Folie gestaffelt einblenden */
.js .ref-body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .ref-slide.is-active .ref-body > * { opacity: 1; transform: none; }
.js .ref-slide.is-active .ref-body > :nth-child(1) { transition-delay: 0.15s; }
.js .ref-slide.is-active .ref-body > :nth-child(2) { transition-delay: 0.22s; }
.js .ref-slide.is-active .ref-body > :nth-child(3) { transition-delay: 0.29s; }
.js .ref-slide.is-active .ref-body > :nth-child(4) { transition-delay: 0.36s; }
.js .ref-slide.is-active .ref-body > :nth-child(5) { transition-delay: 0.43s; }

/* Steuerung */
.ref-controls { display: none; }
.js .ref-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
}
.ref-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ref-tab {
  position: relative;
  padding: 16px 0 4px;
  border: 0;
  background: none;
  color: var(--on-ink-muted);
  font: 500 14px/1.3 var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.ref-tab:hover,
.ref-tab.is-active { color: var(--on-ink); }
.ref-tab-label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ref-tab-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.ref-tab-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-grad);
}
.ref-tab.is-active .ref-tab-bar i {
  animation: refprogress var(--ref-duration, 7s) linear forwards;
}
.ref-slider.is-paused .ref-tab.is-active .ref-tab-bar i,
.ref-slider.no-autoplay .ref-tab.is-active .ref-tab-bar i {
  animation-play-state: paused;
}
.ref-slider.no-autoplay .ref-tab.is-active .ref-tab-bar i {
  animation: none;
  width: 100%;
}
@keyframes refprogress {
  from { width: 0; }
  to { width: 100%; }
}

.ref-buttons {
  display: flex;
  gap: 10px;
}
.ref-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(236, 232, 223, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--on-ink);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.ref-btn:hover {
  border-color: var(--gold);
  color: var(--gold-300);
  background: rgba(201, 162, 77, 0.08);
}
.ref-btn:active { transform: scale(0.94); }
.ref-btn svg { width: 20px; height: 20px; }
.ref-btn .icon-play { display: none; }
.ref-btn[aria-pressed="true"] .icon-play { display: block; }
.ref-btn[aria-pressed="true"] .icon-pause { display: none; }
.ref-slider.no-autoplay [data-pause] { display: none; }

/* ---------- Ablauf ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 124, 48, 0.55) 15%, rgba(160, 124, 48, 0.55) 85%, transparent);
}
.step {
  position: relative;
  padding: 0 8px;
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b1e27, #0b0d12);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 0 0 9px var(--ivory), 0 0 0 10px rgba(160, 124, 48, 0.35), 0 18px 30px -14px rgba(10, 12, 17, 0.5);
}
.step h3 {
  margin-bottom: 12px;
  font-size: 23px;
}
.step p {
  text-wrap: pretty;
  max-width: 34ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--on-ink); }

.contact-card {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) clamp(24px, 6vw, 84px);
  border: 1px solid rgba(201, 162, 77, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 77, 0.15), transparent 60%),
    linear-gradient(180deg, #13161d, #0d1015);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.contact-card h2 {
  max-width: 17ch;
  margin: 20px auto 20px;
  font-size: clamp(30px, 4vw, 50px);
}
.contact-card > p {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--on-ink-muted);
  font-size: 18px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin: 44px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--ink-line);
  list-style: none;
}
.contact-meta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-ink);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}
.contact-meta a:hover { color: var(--gold-300); }
.contact-meta svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 46px 0 42px;
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-logo { height: 42px; width: auto; }
.footer-claim {
  padding-left: 22px;
  border-left: 1px solid var(--ink-line);
  letter-spacing: 0.08em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--gold-300); }

/* ---------- Rechtliche Seiten (Impressum / Datenschutz) ---------- */
.legal {
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(72px, 9vw, 120px);
  background: var(--ivory);
  color: var(--text);
}
.legal .container { max-width: 780px; }
.legal h1 {
  margin: 18px 0 36px;
  font-size: clamp(34px, 4.2vw, 50px);
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 22px;
}
.legal p,
.legal li { color: #3c3f47; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold-ink); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-ink-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
}
.back-link:hover { color: var(--gold-300); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Scroll-Einblendungen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { gap: 18px; }
  .service { padding: 34px 28px; }
  .ref-media { min-height: 380px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--ink-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--on-ink);
    transition: transform 0.3s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    border-bottom: 1px solid var(--ink-line);
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 17px;
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 22px; --pad-y: 15px; font-size: 15px; }
  .site-header.menu-open { background: var(--ink); border-bottom-color: var(--ink-line); }

  .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .ref-slide { grid-template-columns: 1fr; }
  .ref-media { min-height: 260px; padding: 30px 28px 16px; }
  .ref-media img { max-height: 180px; max-width: 70%; }
  .ref-media img.is-wordmark { width: 70%; }
  .ref-domain { margin-top: 14px; font-size: 12px; }
  .ref-body { padding: 34px 28px 38px; }
  .ref-tags { margin: 22px 0 28px; }

  .js .ref-controls { flex-direction: column; align-items: stretch; gap: 22px; }
  .ref-buttons { justify-content: center; }

  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 440px; margin-inline: auto; }
  .steps::before { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; gap: 14px; }
  .footer-claim { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 36px, var(--container)); }
  .hero { padding-bottom: 110px; }
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  .hero-trust { flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
  .ref-tab-label { display: none; }
  .ref-tab { padding: 14px 0; }
  .ref-tabs { gap: 10px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-meta { flex-direction: column; align-items: center; }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .hero-logo-shine,
  .scroll-hint::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
