/* ============================================================
   HÖCHSTEN & JACOBY — Redesign 2026
   Farbwelt aus dem Logo: Marineblau #001F4F · Schwarz · Elfenbein
   Schriften lokal eingebunden (DSGVO-konform, keine Google-Server)
   ============================================================ */

/* ---------- Fonts (lokal) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/CormorantGaramond-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/CormorantGaramond-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --navy: #001F4F;          /* Logo-Rahmen */
  --navy-soft: #12315E;
  --ink: #050F23;           /* dunkle Sektionen */
  --ink-2: #081736;
  --paper: #F4F1E8;         /* warmes Elfenbein */
  --paper-2: #ECE8DB;
  --white: #FFFFFF;
  --gold: #A8875A;          /* Bronze-Akzent */
  --gold-soft: #C4A97F;
  --text: #1C2636;
  --muted: #5C6577;
  --muted-dark: #97A2B8;    /* auf dunklem Grund */
  --line: rgba(0, 31, 79, .14);
  --line-dark: rgba(255, 255, 255, .10);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --w-max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --dur: .9s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--navy); color: var(--paper); }

section { position: relative; }
[id] { scroll-margin-top: 92px; }

.wrap {
  width: min(var(--w-max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* feine Körnung für Tiefe */
.grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typografische Bausteine ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform .8s var(--ease) .15s;
}
/* Goldlinie zeichnet sich beim Einblenden */
.kicker.reveal:not(.is-in)::before { transform: scaleX(0); }

.h-display {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: .005em;
}
.dark .h-display,
.services .h-display,
.contact .h-display { color: var(--paper); }

.lead {
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--muted);
  max-width: 62ch;
}
.dark .lead,
.services .lead,
.contact .lead { color: var(--muted-dark); }

.sec-head { margin-bottom: clamp(42px, 6vw, 72px); }
.sec-head .h-display {
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 18px 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--paper); }

.btn--solid { background: var(--navy); color: var(--paper); }
.btn--solid::after { background: var(--gold); transform-origin: top; }
.btn--solid:hover { border-color: var(--gold); color: var(--ink); }

.btn--light { border-color: rgba(255,255,255,.4); color: var(--paper); }
.btn--light::after { background: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); border-color: var(--paper); }

.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Scroll-Fortschritt ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 150;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: min(300px, 60vw); position: relative; padding: 26px 30px; }
.loader__logo img { width: 100%; animation: loaderFade 1.1s var(--ease) both .25s; }
.loader__frame { position: absolute; inset: 0; }
.loader__frame span { position: absolute; background: var(--navy); }
.loader__frame .t { top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; animation: drawX .6s var(--ease) forwards .1s; }
.loader__frame .l { top: 0; left: 0; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; animation: drawY .6s var(--ease) forwards .45s; }
.loader__frame .b { bottom: 0; left: 0; height: 2px; width: 55%; transform: scaleX(0); transform-origin: left; animation: drawX .6s var(--ease) forwards .8s; }
@keyframes drawX { to { transform: scaleX(1); } }
@keyframes drawY { to { transform: scaleY(1); } }
@keyframes loaderFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform .5s var(--ease), background .5s, box-shadow .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(244, 241, 232, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
/* Seiten, deren erster Abschnitt dunkel ist (z. B. 404): Header immer lesbar halten,
   unabhängig vom Scroll-Zustand, den main.js sonst per is-scrolled umschaltet. */
body.page-error .header {
  background: rgba(244, 241, 232, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
  transition: height .5s var(--ease);
}
.header.is-scrolled .header__in { height: 80px; }

/* Logo: konstante Größe – keine Skalierung beim Scrollen, bleibt dadurch scharf */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
@media (max-width: 640px) {
  .brand img { height: 48px; }
}

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header .btn { padding: 12px 22px; }

.header__right { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }

/* Sprachumschalter */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  transition: opacity .3s var(--ease);
}
.lang a {
  color: var(--muted);
  padding: 3px 1px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.lang a:hover { color: var(--gold); }
.lang a.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.lang .sep { color: var(--gold); }
.lang--dark a { color: var(--muted-dark); }
.lang--dark a.is-active { color: var(--paper); border-bottom-color: var(--gold); }
.mnav .lang { margin-top: 16px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  z-index: 130;
}
.burger span {
  height: 2px; width: 100%;
  background: var(--navy);
  transition: transform .4s var(--ease), opacity .3s, background .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.burger.is-open span { background: var(--paper); }

/* Bei geöffnetem Menü: Header über das Menü heben, eigenes Logo ausblenden */
.menu-open .header {
  z-index: 130;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
}
/* Muss body.page-error .header (höhere Spezifität) übersteuern, sonst bleibt der
   Header bei geöffnetem Menü auf der 404-Seite undurchsichtig und verdeckt das Logo. */
html.menu-open body.page-error .header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
}
.brand { transition: opacity .3s var(--ease); }
.menu-open .brand,
.menu-open .header__right .lang { opacity: 0; pointer-events: none; }

/* Mobile-Menü */
.mnav {
  position: fixed; inset: 0;
  z-index: 120;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0, 63, 138, .35), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(168, 135, 90, .12), transparent 55%),
    var(--ink);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mnav.is-open { opacity: 1; visibility: visible; }

.mnav__amp {
  position: absolute;
  right: -12vw;
  bottom: -16vh;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(340px, 90vw, 640px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 169, 127, .18);
  pointer-events: none;
  user-select: none;
  transform: translateY(40px) rotate(4deg);
  transition: transform 1s var(--ease);
}
.mnav.is-open .mnav__amp { transform: none; }

.mnav__in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
}
.mnav__logo {
  height: 52px;
  width: auto;
  align-self: flex-start;
  margin: 8px 0 auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
}
.mnav.is-open .mnav__logo { opacity: 1; transform: none; }

.mnav__links { display: flex; flex-direction: column; margin-block: auto; }
.mnav__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(32px, 8.5vw, 46px);
  line-height: 1.1;
  color: var(--paper);
  padding: clamp(10px, 1.8vh, 16px) 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), color .3s, padding-left .35s var(--ease);
}
.mnav__links a:first-child { border-top: 1px solid var(--line-dark); }
.mnav__links a .no {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.mnav__links a:hover,
.mnav__links a:active { color: var(--gold-soft); padding-left: 10px; }
.mnav.is-open .mnav__links a { opacity: 1; transform: none; }
.mnav.is-open .mnav__links a:nth-child(1) { transition-delay: .12s; }
.mnav.is-open .mnav__links a:nth-child(2) { transition-delay: .19s; }
.mnav.is-open .mnav__links a:nth-child(3) { transition-delay: .26s; }
.mnav.is-open .mnav__links a:nth-child(4) { transition-delay: .33s; }
.mnav.is-open .mnav__links a:nth-child(5) { transition-delay: .40s; }

.mnav__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s;
}
.mnav.is-open .mnav__meta { opacity: 1; transform: none; }
.mnav__contact {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--paper);
  width: fit-content;
  transition: color .3s;
}
.mnav__contact:hover { color: var(--gold-soft); }
.mnav__meta p {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: hidden;
}
.hero__main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
}

/* riesiges & als Wasserzeichen – zeichnet sich selbst und schimmert golden */
.hero__amp {
  position: absolute;
  right: -5vw;
  top: 50%;
  translate: 0 -54%;
  width: clamp(300px, 48vw, 760px);
  overflow: visible;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 700px;
  text-anchor: middle;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: ampDraw 3.6s var(--ease) forwards .9s;
}
.amp--base { stroke: rgba(0, 31, 79, .25); }
.amp--gold {
  stroke: rgba(168, 135, 90, .55);
  animation:
    ampDraw 3.6s var(--ease) forwards .9s,
    ampGlow 7s ease-in-out infinite alternate 4.6s;
}
@keyframes ampDraw { to { stroke-dashoffset: 0; } }
@keyframes ampGlow {
  from { opacity: 1; }
  to { opacity: .35; }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.hero .kicker { margin-bottom: 26px; }

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(58px, 10.5vw, 148px);
  line-height: .98;
  color: var(--navy);
  display: grid;
  width: fit-content;
  padding: clamp(18px, 2.6vw, 40px) 0 clamp(18px, 2.6vw, 40px) clamp(22px, 3vw, 48px);
}
.hero__title .line { overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(115%);
  animation: riseUp 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: .95s; }
.hero__title .line:nth-child(2) > span { animation-delay: 1.1s; }
.hero__title .line:nth-child(3) > span { animation-delay: 1.25s; }
.hero__title em { font-style: italic; color: var(--gold); position: relative; }
.hero__title em::after {
  content: '';
  position: absolute;
  left: .02em; bottom: .1em;
  width: calc(100% - .35em);
  height: 3px;
  background: var(--gold);
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left;
  animation: drawX .8s var(--ease) forwards 2.35s;
}
@keyframes riseUp { to { transform: translateY(0); } }

/* Logo-Rahmen-Motiv am Hero-Titel */
.hero__frame { position: absolute; inset: 0; pointer-events: none; }
.hero__frame span { position: absolute; background: var(--navy); }
.hero__frame .t { top: 0; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; animation: drawX .9s var(--ease) forwards 1s; }
.hero__frame .l { top: 0; left: 0; height: 100%; width: 2px; transform: scaleY(0); transform-origin: top; animation: drawY .9s var(--ease) forwards 1.5s; }
.hero__frame .b { bottom: 0; left: 0; width: 42%; height: 2px; transform: scaleX(0); transform-origin: left; animation: drawX .7s var(--ease) forwards 2.1s; }

.hero__sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards 1.7s;
}
.hero__sub strong { color: var(--navy); font-weight: 600; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards 1.95s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards 2.3s;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 64px;
  background: var(--navy);
  animation: scrollPulse 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Laufband */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--paper);
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--navy);
}
.ticker__item::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  rotate: 45deg;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reveal (Scroll-Animationen) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sektionen: Abstände ---------- */
.sec { padding-block: clamp(80px, 11vw, 150px); }

/* ---------- Kanzlei / Über uns ---------- */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about__left { position: sticky; top: 130px; }
.about__left .h-display { font-size: clamp(32px, 3.8vw, 52px); margin: 18px 0 22px; }
.about__left .lead { margin-bottom: 34px; }

.about__block { padding: 34px 0; border-top: 1px solid var(--line); }
.about__block:last-child { border-bottom: 1px solid var(--line); }
.about__block h3 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 550;
  color: var(--navy);
  margin-bottom: 14px;
}
.about__block h3 .no {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}
.about__block p { color: var(--muted); font-size: 15.5px; }
.about__block p + p { margin-top: 12px; }

/* Statistiken */
.stats {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(34px, 4vw, 56px) clamp(18px, 2.5vw, 40px);
  border-left: 1px solid var(--line);
  text-align: left;
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 550;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}
.stat__num sup { font-size: .5em; color: var(--gold); }
.stat__label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Zitat ---------- */
.quote {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.quote .wrap { position: relative; }
.quote__mark {
  position: absolute;
  top: -70px;
  left: -30px;
  font-family: var(--font-display);
  font-size: 300px;
  line-height: 1;
  color: rgba(168, 135, 90, .16);
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translateY(-10px); }
  to { transform: translateY(14px); }
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.3;
  max-width: 26ch;
}
.quote blockquote em { color: var(--gold-soft); }
.quote figcaption {
  margin-top: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote figcaption::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

/* ---------- Leistungen ---------- */
.services { background: var(--ink); color: var(--paper); }
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(0, 63, 138, .25), transparent 65%),
    radial-gradient(700px 420px at 0% 100%, rgba(168, 135, 90, .10), transparent 60%);
  pointer-events: none;
}
.services .wrap { position: relative; }
.services .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.svc {
  position: relative;
  background: var(--ink);
  padding: clamp(28px, 3vw, 42px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .5s var(--ease);
  overflow: hidden;
}
.svc:hover { background: var(--ink-2); }
/* Pfeil erscheint beim Hover */
.svc:not(.svc--feat)::before {
  content: '→';
  position: absolute;
  top: clamp(24px, 2.6vw, 38px);
  right: clamp(24px, 2.6vw, 38px);
  color: var(--gold);
  font-size: 19px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.svc:not(.svc--feat):hover::before { opacity: 1; transform: none; }
.svc::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.svc:hover::after { transform: scaleX(1); }

.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.svc__badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(23px, 2.2vw, 29px);
  color: var(--paper);
  line-height: 1.15;
}
.svc p { font-size: 14.5px; color: var(--muted-dark); flex: 1; }

.svc--feat { grid-column: span 3; background: linear-gradient(120deg, var(--ink-2), #0B1F47 60%, var(--ink-2)); min-height: 0; }
.svc--feat .svc__body { max-width: 72ch; }
.svc--feat h3 { font-size: clamp(28px, 3vw, 40px); }
.svc--feat p { font-size: 15.5px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.svc__tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--paper);
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  transition: border-color .4s, color .4s;
}
.svc:hover .svc__tags span { border-color: rgba(168, 135, 90, .5); }

/* ---------- Berater ---------- */
.team { background: var(--paper); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(30px, 3.4vw, 44px) 22px clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  background: transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
button.person:hover,
button.person:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(0, 31, 79, .3);
  box-shadow: 0 26px 50px -32px rgba(0, 31, 79, .4);
}
/* Kleine runde Avatare – kaschieren die geringe Auflösung der Portraits */
.person__photo {
  position: relative;
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  margin-bottom: 24px;
}
.person__photo::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(0, 31, 79, .35);
  transition: inset .45s var(--ease), border-color .45s;
  pointer-events: none;
}
/* langsam rotierender, gestrichelter Goldring */
.person__photo::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 135, 90, .5);
  animation: spinSlow 30s linear infinite;
  pointer-events: none;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.person__photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.04) brightness(1.02);
  transition: filter .6s var(--ease);
}
button.person:hover .person__photo::before,
button.person:focus-visible .person__photo::before { inset: -5px; border-color: var(--gold); }
button.person:hover .person__photo img { filter: grayscale(0) contrast(1); }

.person h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 25px;
  color: var(--navy);
  line-height: 1.15;
}
.person__role {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.person__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.person__more .arr { transition: transform .4s var(--ease); }
button.person:hover .person__more .arr { transform: translateX(5px); }
.person--memoriam .person__photo::before { border-color: rgba(0, 31, 79, .2); }
.person--memoriam .person__note {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  max-width: 24ch;
}

/* Team-CTA */
.team__cta {
  margin-top: clamp(50px, 7vw, 90px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}
.team__cta::before {
  content: '';
  position: absolute;
  top: -7px; left: -7px;
  width: 120px; height: 120px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
}
.team__cta h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--navy);
  max-width: 26ch;
}
.team__cta p { color: var(--muted); max-width: 58ch; margin-top: 10px; font-size: 15px; }

/* ---------- Dialog / Profil ---------- */
.profile::backdrop { background: rgba(5, 15, 35, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.profile {
  border: 0;
  padding: 0;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  background: var(--paper);
  color: var(--text);
  margin: auto;
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.profile[open] { opacity: 1; transform: none; }
@starting-style { .profile[open] { opacity: 0; transform: translateY(30px) scale(.985); } }

.profile__in {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}
.profile__side {
  background: var(--ink);
  color: var(--paper);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile__side img {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1);
  border: 1px solid var(--line-dark);
  outline: 1px solid rgba(196, 169, 127, .35);
  outline-offset: 7px;
}
.profile__side h3 { font-family: var(--font-display); font-size: 26px; font-weight: 550; line-height: 1.15; }
.profile__side .person__role { color: var(--muted-dark); }
.profile__mail {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(168, 135, 90, .4);
  padding-bottom: 4px;
  width: fit-content;
  transition: color .3s, border-color .3s;
  word-break: break-all;
}
.profile__mail:hover { color: var(--paper); border-color: var(--paper); }

.profile__body { padding: clamp(28px, 4vw, 46px); overflow-y: auto; max-height: calc(100svh - 48px); }
.profile__body h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 26px 0 10px;
}
.profile__body h4:first-child { margin-top: 0; }
.profile__body ul { display: grid; gap: 6px; }
.profile__body li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
}
.profile__body li::before {
  content: '';
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 1.5px;
  background: var(--navy);
}
.profile__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  transition: background .3s, color .3s, rotate .45s var(--ease);
  z-index: 2;
}
.profile__close:hover { background: var(--navy); color: var(--paper); rotate: 90deg; }

/* ---------- Karriere ---------- */
.career { background: var(--paper-2); }
.career__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.career .h-display { font-size: clamp(32px, 4vw, 54px); margin: 18px 0 20px; }
.career__left p { color: var(--muted); font-size: 15.5px; }
.career__left p + p { margin-top: 14px; }
.career__left .btn { margin-top: 32px; }

.job {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.job + .job { margin-top: 16px; }
.job:hover { transform: translateY(-4px); border-color: rgba(0, 31, 79, .35); box-shadow: 0 24px 50px -30px rgba(0, 31, 79, .35); }
.job h3 { font-family: var(--font-display); font-weight: 550; font-size: clamp(21px, 2vw, 26px); color: var(--navy); }
.job__meta { margin-top: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.job__pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 7px 12px;
  white-space: nowrap;
}
.career__note { margin-top: 22px; font-size: 13.5px; color: var(--muted); font-style: italic; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 100% 100%, rgba(0, 63, 138, .3), transparent 60%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact .h-display { font-size: clamp(34px, 4.4vw, 58px); margin: 18px 0 18px; }
.contact .lead { margin-bottom: 42px; }

.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact__item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact__item dd { text-align: right; }
.contact__item a, .contact__item span {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 24px);
  color: var(--paper);
  transition: color .3s;
}
.contact__item a:hover { color: var(--gold-soft); }

.contact__card {
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 3.4vw, 44px);
  position: relative;
  background: rgba(255, 255, 255, .02);
}
.contact__card::before {
  content: '';
  position: absolute;
  top: -8px; right: -8px;
  width: 110px; height: 110px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  pointer-events: none;
}
.contact__card h3 { font-family: var(--font-display); font-weight: 550; font-size: 27px; margin-bottom: 10px; }
.contact__card address {
  font-style: normal;
  font-size: 16px;
  color: var(--muted-dark);
  line-height: 1.9;
  margin-bottom: 26px;
}
.contact__card .btn { width: 100%; justify-content: center; }
.contact__card .note {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16.5px;
  color: var(--muted-dark);
  line-height: 1.6;
}
.contact__card .note strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: #030B1D;
  color: var(--muted-dark);
  padding: clamp(56px, 7vw, 90px) 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr));
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer__brand p { font-size: 14px; max-width: 40ch; }
.footer h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; transition: color .3s; }
.footer ul a:hover { color: var(--gold-soft); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 30px;
  font-size: 12.5px;
}
.footer__bottom .sep { color: var(--gold); }

/* ---------- 404-Seite ---------- */
.notfound {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 140px 0 80px;
}
.notfound::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(0, 63, 138, .25), transparent 65%);
  pointer-events: none;
}
.notfound__in { position: relative; text-align: center; }
.notfound__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 550;
  font-size: clamp(120px, 20vw, 300px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(168, 135, 90, .5);
  animation: floaty 9s ease-in-out infinite alternate;
  margin-bottom: -.06em;
}
.notfound .kicker { justify-content: center; margin-bottom: 20px; }
.notfound .h-display { color: var(--paper); font-size: clamp(30px, 4vw, 46px); margin-bottom: 22px; }
.notfound .lead { color: var(--muted-dark); max-width: 52ch; margin-inline: auto; }
.notfound .lead + .lead { margin-top: 10px; }
.notfound .lead a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.notfound__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}
.notfound__links {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.notfound__links a { color: var(--muted-dark); transition: color .3s; }
.notfound__links a:hover { color: var(--gold-soft); }
.notfound__links span { color: var(--gold); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 160px 0 70px;
}
.legal-hero .h-display { color: var(--paper); font-size: clamp(38px, 5vw, 64px); margin-top: 16px; }
.legal-body { padding: clamp(50px, 7vw, 90px) 0; }
.legal-body .wrap { max-width: 820px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--navy);
  margin: 44px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 26px 0 8px; }
.legal-body p { margin-bottom: 12px; font-size: 15.5px; color: var(--text); }
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc--feat { grid-column: span 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 920px) {
  /* header--simple (Impressum/Datenschutz/Privacy) hat kein Burger-Menü als Ersatz –
     der Rückkehr-Button muss dort sichtbar bleiben, nur kompakter. */
  .nav, .header:not(.header--simple) .btn { display: none; }
  .header--simple .btn {
    padding: 10px 16px;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-align: center;
    line-height: 1.5;
  }
  /* DE/EN bleibt sichtbar, rückt aber als Gruppe direkt neben den Menü-Button,
     statt durch justify-content: space-between verloren mittig zu "hängen". */
  .header__in { justify-content: flex-start; }
  .header__right { margin-left: auto; }
  .burger { display: flex; }
  .about__grid, .career__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__left { position: static; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .profile__in { grid-template-columns: 1fr; }
  .profile__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .profile__side img { width: 110px; }
  .profile__side .profile__id { flex: 1; min-width: 180px; }
  .profile__mail { margin-top: 0; }
  .hero__amp { opacity: .6; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc--feat { grid-column: span 1; }
  .team__grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .contact__item { flex-direction: column; gap: 4px; }
  .contact__item dd { text-align: left; }
  .hero__scroll { display: none; }
}

/* Sehr hohe Viewports (z. B. Ganzseiten-Rendering): Hero nicht strecken */
@media (min-height: 2000px) {
  .hero { min-height: 1100px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__title .line > span { transform: none; }
  .quote__mark, .person__photo::after { animation: none; }
}
