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

:root {
  --black:   #09090a;
  --deep:    #101010;
  --surface: #181816;
  --panel:   #1e1e1b;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.14);
  --border-warm: rgba(212,154,82,0.22);
  --light:   #f5f0e8;
  --muted:   rgba(245,240,232,0.48);
  --dim:     rgba(245,240,232,0.26);
  --faint:   rgba(245,240,232,0.12);
  --color-bg: #0A0A0A;
  --color-accent: #D49A52;
  --color-text: #FFFFFF;
  --color-text-secondary: #BFBFBF;
  --color-warm-neutral: #F4ECD8;
  --color-section-divider: #1E1E1E;
  --gold:    var(--color-accent);
  --gold2:   var(--color-accent);
  --gold-dim: rgba(212,154,82,0.32);
  --amber:   #e8a020;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --cond:    'Barlow Condensed', sans-serif;
  --sans:    'Barlow', sans-serif;
  /* Dynamic hero glow variables */
  --hero-glow-scale: 1;
  --hero-glow-opacity: 0.08;
  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--black);
  color: var(--light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Custom cursor only on desktop with hover support — small windows / touch get default */
@media (hover: hover) and (min-width: 769px) {
  .js body { cursor: none; }
  /* Cursor-Fix: Links & Buttons behalten pointer — kein Standard-Cursor-Weichen */
  .js body * { cursor: none !important; }
}

/* ─── TOUCH RIPPLE (mobile) ─── */
.touch-ripple {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(232,204,138,0.55) 0%, rgba(212,175,100,0.22) 40%, transparent 70%);
  animation: rippleBurst .8s ease-out forwards;
}
@keyframes rippleBurst {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; }
  55%  { transform: translate(-50%, -50%) scale(1);   opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* ─── SPOTLIGHT CURSOR ─── */
.cursor {
  width: 6px; height: 6px;
  background: var(--gold2);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .12s ease, height .12s ease, opacity .2s;
  box-shadow: 0 0 6px 2px rgba(232,204,138,0.9), 0 0 14px 4px rgba(212,175,100,0.5);
}
.cursor-aura {
  width: 40px; height: 40px;
  border: 1px solid rgba(212,175,100,0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease, border-color .2s;
  box-shadow: 0 0 20px 6px rgba(212,175,100,0.12);
}
.cursor-spotlight {
  width: 600px; height: 600px;
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,175,100,0.07) 0%, rgba(212,175,100,0.03) 30%, transparent 70%);
  will-change: left, top;
  /* Fix Randbalken: Spotlight nicht über Viewport-Rand hinaus */
  contain: strict;
}
body.cursor-hovering .cursor {
  width: 14px; height: 14px;
  background: var(--gold2);
  box-shadow: 0 0 10px 4px rgba(232,204,138,1), 0 0 28px 10px rgba(212,175,100,0.6), 0 0 50px 20px rgba(212,175,100,0.2);
}
body.cursor-hovering .cursor-aura {
  width: 56px; height: 56px;
  border-color: rgba(212,175,100,0.6);
  box-shadow: 0 0 30px 10px rgba(212,175,100,0.18);
}

/* ─── ELEMENT GLOW ON CURSOR HOVER ─── */
.leistung, .markt-card, .testi, .projekt, .service-block, .kontakt-detail-item, .wert-item {
  transition: background .3s, border-color .3s, box-shadow .4s;
}
.leistung:hover, .markt-card:hover, .testi:hover, .projekt:hover {
  box-shadow: 0 0 40px rgba(212,175,100,0.12), 0 0 80px rgba(212,175,100,0.06);
}
.btn-primary, .btn-ghost, .nav-cta {
  transition: background .2s, color .2s, transform .2s, box-shadow .3s;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(212,175,100,0.5), 0 0 50px rgba(212,175,100,0.2);
}
.btn-ghost:hover, .nav-cta:hover {
  box-shadow: 0 0 16px rgba(212,175,100,0.3);
}

/* ─── MAGNETIC BUTTON ─── */
.btn-primary, .nav-cta {
  display: inline-block;
  position: relative;
  will-change: transform;
}

/* ─── COUNTER ANIMATION ─── */
.stat-n {
  font-family: var(--serif);
  font-size: 2.6rem; font-weight: 300;
  color: var(--gold); line-height: 1;
  transition: none;
}
.stat-n.counting { animation: countPulse .15s ease; }
@keyframes countPulse {
  0% { opacity: .7; }
  100% { opacity: 1; }
}

/* ─── HERO PARALLAX ─── */
.hero-bg, .hero-glow {
  will-change: transform;
  transition: transform .05s linear;
}

/* ─── WORD REVEAL HEADLINE ─── */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px) rotateX(12deg);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transform-origin: bottom center;
}
.word-reveal.visible .word {
  opacity: 1;
  transform: none;
}

/* ─── GRAIN OVERLAY ─── */
body::after {
  content: '';
  position: fixed; inset: -6%;
  pointer-events: none; z-index: 9990;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 3%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(1%, 3%); }
  70% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 2%); }
  90% { transform: translate(-1%, -3%); }
}

/* ─── LINE DRAW HERO EYEBROW ─── */
.hero-eyebrow::before {
  content: '';
  display: block; height: 1px;
  background: var(--gold); opacity: .6;
  width: 0;
  transition: width .8s ease .5s;
}
.hero-eyebrow.visible::before { width: 28px; }

/* Failsafe reveal system */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Card-specific reveal — matches testi elegance */
.js .leistung.reveal,
.js .markt-card.reveal,
.js .projekt.reveal {
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .leistung.reveal.visible,
.js .markt-card.reveal.visible,
.js .projekt.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

/* ─── SCROLL DIRECTION-AWARE ANIMATIONS ─── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* When scrolling down, elements fade in from above */
.js .reveal.scroll-down {
  animation: fadeInDown 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* When scrolling up, elements fade in from below */
.js .reveal.scroll-up {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── NAV + HERO INTRO (resend-style, simultaneous on load) ─── */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.js nav { animation: navFadeIn 0.85s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-reveal {
  /* CSS animation overrides the static .js .reveal opacity:0/translateY values */
  animation: heroFadeIn 0.85s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9,9,10,0.93);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.6rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .3s;
}
nav.scrolled .nav-inner { padding: 1rem 3.5rem; }
.nav-logo {
  display: flex; flex-direction: column; gap: 1px;
  text-decoration: none;
  transition: filter .3s;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 8px var(--gold)) drop-shadow(0 0 20px rgba(212,154,82,0.4));
}
.nav-logo-top {
  font-family: var(--cond);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); line-height: 1;
}
.nav-logo-main {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300;
  letter-spacing: .1em;
  color: var(--light); line-height: 1.15;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: filter .2s;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 6px var(--gold));
}
@media (max-width: 640px) {
  .nav-logo-img { height: 40px; }
}
.nav-links {
  display: flex; gap: 2.8rem; list-style: none;
}
.nav-links a {
  font-family: var(--cond); font-size: .92rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--light); }
.nav-cta {
  font-family: var(--cond); font-size: .88rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold); padding: .7rem 1.7rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

/* ─── BURGER / MOBILE NAV ─── */
/* Refactored for iOS WebKit compatibility: absolute positioning (no gap),
   -webkit-appearance:none, vendor-prefixed transforms, explicit pixel values.
   Apple forces all iOS browsers (Safari, Chrome iOS, Google App) to use
   WebKit — flex+gap had rendering quirks that hid 2 of 3 strokes. */
.nav-burger {
  display: none;
  position: relative;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 201;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 4px;
  width: 24px;
  height: 1.5px;
  background-color: var(--light);
  -webkit-transition: -webkit-transform .3s var(--ease-out), opacity .25s ease, top .3s var(--ease-out);
  transition: transform .3s var(--ease-out), opacity .25s ease, top .3s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 9px; }
.nav-burger span:nth-child(2) { top: 15px; }
.nav-burger span:nth-child(3) { top: 21px; }

.nav-burger.open span:nth-child(1) {
  top: 15px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  top: 15px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(9,9,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer-links {
  display: flex; flex-direction: column; align-items: center;
  gap: 2rem; list-style: none; padding: 0; margin: 0;
}
.nav-drawer-links a {
  font-family: var(--cond); font-size: 1.4rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--light); text-decoration: none;
  transition: color .2s;
}
.nav-drawer-links a:hover { color: var(--gold); }
.nav-drawer .nav-cta { display: inline-block; font-size: .85rem; padding: .75rem 2.5rem; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(193,120,35,0.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(255,210,120,0.09), transparent 45%),
    linear-gradient(180deg, #09090a 0%, #0d0d0c 100%);
}

/* ─── HERO PARTIKEL CANVAS ─── */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* Hero trackt Maus stattdessen */
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  left: 50%; top: 0;
  width: 480px; height: 480px;
  transform: translateX(-50%) scale(var(--hero-glow-scale, 1));
  border-radius: 50%;
  background: rgba(212,175,100,var(--hero-glow-opacity, 0.08));
  filter: blur(80px);
  pointer-events: none;
  transition: transform .35s ease, background .35s ease;
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 11rem 3.5rem 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.hero-content > .hero-eyebrow,
.hero-content > h1,
.hero-content > .hero-body,
.hero-content > .hero-actions {
  max-width: 820px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--cond); font-size: .84rem; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 34px; height: 1px;
  background: var(--gold); opacity: .6;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.01em;
}
h1 em {
  font-style: italic;
  /* Fallback color in case background-clip:text fails (iOS WebKit safety) */
  color: var(--gold);
  background: linear-gradient(100deg, var(--light) 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* iOS WebKit: keep gradient continuous across line-breaks */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* iOS WebKit fix: inline-block .word spans inside <em> lose parent gradient clipping.
   Apply the gradient directly to the inline-block child so the text stays visible
   even when the parent <em>'s background-clip can't extend to inline-block fragments. */
h1 em .word {
  color: var(--gold);
  background: linear-gradient(100deg, var(--light) 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-body {
  font-family: var(--sans);
  font-size: 1.12rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
  max-width: 620px;
  margin-top: 2rem;
}
.hero-actions {
  display: flex; gap: 1.2rem; align-items: center;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.btn-primary {
  font-family: var(--cond); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold);
  color: var(--black); padding: .85rem 2rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--cond); font-size: .74rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--border2);
  color: var(--muted); padding: .85rem 2rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--light); }
.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0; padding: 3rem 3.5rem 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.hero-stat {
  padding: 0 3.5rem 0 0;
  margin-right: 3.5rem;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.stat-l {
  font-family: var(--cond); font-size: .7rem; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-top: .4rem;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--deep);
  padding: .9rem 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .marquee-wrap { opacity: 0; }
.js .marquee-wrap.visible { opacity: 1; }
.marquee-inner {
  display: flex; gap: 0;
  -webkit-animation: marquee 60s linear infinite;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--cond); font-size: .68rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); padding: 0 2.5rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.marquee-item.lit { color: var(--gold); }
/* Content is duplicated 4× in the markup. translateX(-25%) advances exactly one
   set per loop, keeping the original scroll speed and providing a seamless loop
   on viewports up to 3 × set-width (~7500px → covers 4K). */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

/* ─── SECTIONS GENERAL ─── */
.section-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 3.5rem;
}
.label {
  font-family: var(--cond); font-size: .84rem; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .9rem;
}
.label::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--gold); opacity: .55;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300; line-height: 1.1;
}
h2 em { font-style: italic; color: var(--gold2); }

/* ─── PHILOSOPHIE ─── */
#philosophie {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1280px; margin: 0 auto; padding: 7rem 3.5rem;
}
.phil-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 300; line-height: 1.07;
  margin-top: 1.4rem;
}
.phil-title em { font-style: italic; color: var(--gold2); }
.phil-body {
  font-size: 1rem; font-weight: 300;
  color: var(--muted); line-height: 1.85;
  margin-top: 2rem; max-width: 42ch;
}
.phil-right {
  display: flex; flex-direction: column; gap: 0;
  padding-top: 1rem;
}
.phil-value {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; align-items: start;
}
.phil-value:first-child { border-top: 1px solid var(--border); }
.phil-value-icon {
  font-family: var(--serif); font-size: .8rem; font-weight: 300;
  color: var(--gold-dim); letter-spacing: .08em; padding-top: .15rem;
}
.phil-value-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 300;
  font-style: italic; margin-bottom: .35rem;
}
.phil-value-desc {
  font-size: .86rem; font-weight: 300;
  color: var(--muted); line-height: 1.7;
}

/* ─── LEISTUNGEN ─── */
#leistungen {
  border-top: 1px solid var(--border);
  background: var(--deep);
  padding: 7rem 0;
}
.leistungen-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem; gap: 3rem;
}
.leistungen-intro {
  font-size: 1rem; font-weight: 300;
  color: var(--muted); line-height: 1.8;
  max-width: 46ch;
}
.leistungen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px;
}
.leistung {
  background: var(--surface);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.leistung::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .4s;
}
.leistung:hover { background: var(--panel); border-color: var(--border-warm); }
.leistung:hover::before { opacity: 1; }
.leistung-num {
  font-family: var(--serif); font-size: .82rem; font-weight: 300;
  color: var(--gold-dim); letter-spacing: .1em;
  margin-bottom: 1.4rem;
}
.leistung-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 300;
  font-style: italic; margin-bottom: 1rem;
}
.leistung-desc {
  font-size: .875rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
}

/* ─── PROJEKTE ─── */
#projekte {
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}
.projekte-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.projekte-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5px;
}
.projekt {
  background: var(--surface);
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  min-height: 320px;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.projekt:hover { background: var(--panel); }
.projekt.featured { min-height: 380px; }
.projekt-segment {
  font-family: var(--cond); font-size: .62rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); display: block;
}
.projekt-name {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300; line-height: 1.15;
  margin-top: 2rem; margin-bottom: 1rem;
  min-height: 4.8rem;
}
.projekt-desc {
  font-size: .86rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
  margin-bottom: 1.25rem;
}
.projekt-meta {
  font-family: var(--cond); font-size: .62rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); border-top: 1px solid var(--border);
  padding-top: 1rem; margin-top: auto; display: block;
}
.projekt-arrow {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 1.1rem; color: var(--dim);
  transition: color .2s, transform .2s;
}
.projekt:hover .projekt-arrow { color: var(--gold); transform: translate(2px, -2px); }
.projekt-cta {
  background: transparent;
  border: 1px dashed var(--border-warm);
  justify-content: center;
  gap: 1.5rem;
  text-decoration: none;
}
.projekt-cta:hover {
  background: rgba(212,154,82,0.04);
  border-color: var(--gold);
}
.projekt-cta .projekt-name { margin-top: 0; color: var(--light); }
.projekt-cta .projekt-arrow { color: var(--gold); }
.projekt-cta-hint {
  font-family: var(--cond); font-size: .62rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border-top: 1px solid var(--border-warm);
  padding-top: 1rem; margin-top: auto;
}

/* ─── SERVICES & LAAS ─── */
#services {
  border-top: 1px solid var(--border);
  background: var(--deep);
  padding: 7rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
}
.service-block {
  padding: 5rem 3.5rem;
  border-right: 1px solid var(--border);
}
.service-block:last-child { border-right: none; }
.service-block-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.08;
  margin-top: 1.4rem; margin-bottom: 1.25rem;
}
.service-block-title em { font-style: italic; color: var(--gold2); }
.service-block-body {
  font-size: .95rem; font-weight: 300;
  color: var(--muted); line-height: 1.85;
  margin-bottom: 2rem;
}
.service-list {
  list-style: none; display: flex; flex-direction: column; gap: .75rem;
  margin-bottom: 2.5rem;
}
.service-list li {
  font-family: var(--cond); font-size: .8rem; font-weight: 300;
  letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: .8rem;
}
.service-list li::before {
  content: '—';
  color: var(--gold); font-size: .7rem;
}

/* ─── MÄRKTE ─── */
#maerkte {
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}
.maerkte-header {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: 5rem; margin-bottom: 3.5rem; align-items: end;
}
.maerkte-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}
.markt-card {
  background: var(--surface);
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.markt-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .4s;
}
.markt-card:hover { background: var(--panel); }
.markt-card:hover::before { opacity: 1; }
.markt-name {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  font-style: italic; margin-bottom: .9rem;
}
.markt-desc {
  font-size: .875rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
}

/* ─── WERTE / WHY WORK WITH US ─── */
#werte {
  border-top: 1px solid var(--border);
  background: var(--deep);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.werte-left {
  padding: 7rem 3.5rem;
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: center;
}
.werte-right {
  padding: 7rem 3.5rem;
  display: flex; flex-direction: column; gap: 0;
}
.wert-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; align-items: start;
}
.wert-item:first-child { border-top: 1px solid var(--border); }
.wert-num {
  font-family: var(--serif); font-size: .8rem; font-weight: 300;
  color: var(--gold-dim); letter-spacing: .1em; padding-top: .15rem;
}
.wert-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 300;
  font-style: italic; margin-bottom: .35rem;
}
.wert-desc {
  font-size: .86rem; font-weight: 300;
  color: var(--muted); line-height: 1.7;
}

/* ─── REFERENZEN ─── */
#referenzen {
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}
.referenzen-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}
.testi {
  background: var(--surface);
  padding: 2.75rem;
  border: 1px solid var(--border);
}
.testi-quote-mark {
  font-family: var(--serif); font-size: 4rem; font-weight: 300;
  color: var(--gold-dim); line-height: .5; display: block;
  margin-bottom: 1.5rem;
}
.testi-quote {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  font-style: italic; line-height: 1.6; color: var(--light);
  margin-bottom: 2rem;
}
.testi-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold-dim);
  font-family: var(--cond); font-size: .68rem; font-weight: 400;
  letter-spacing: .08em; color: var(--gold);
  float: left; margin-right: 1rem; margin-top: .2rem;
}
.testi-name {
  font-size: .9rem; font-weight: 400;
}
.testi-role {
  font-size: .78rem; font-weight: 300;
  color: var(--muted);
}

/* ─── PROZESS ─── */
#prozess {
  border-top: 1px solid var(--border);
  background: var(--deep);
  padding: 7rem 0;
}
.prozess-inner {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 6rem; align-items: start;
}
.prozess-steps {
  display: flex; flex-direction: column; gap: 0;
}
.prozess-step {
  display: grid; grid-template-columns: 3rem 1fr;
  gap: 1.5rem; align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.prozess-step:first-child { border-top: 1px solid var(--border); }
.prozess-num {
  font-family: var(--serif); font-size: .82rem; font-weight: 300;
  color: var(--gold-dim); padding-top: .15rem; letter-spacing: .08em;
}
.prozess-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 300;
  font-style: italic; margin-bottom: .4rem;
}
.prozess-desc {
  font-size: .875rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
}

/* ─── KONTAKT ─── */
#kontakt {
  border-top: 1px solid var(--border);
  padding: 9rem 0;
  position: relative; overflow: hidden;
}
.kontakt-bg-text {
  position: absolute;
  font-family: var(--serif);
  font-size: 22vw; font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,175,100,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all; white-space: nowrap;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: text-shadow .4s ease, -webkit-text-stroke .3s ease;
}
/* ─── LIGHTBULB FLICKER ANIMATION ─── */
@keyframes bulbFlicker {
  0%   { opacity: 0; -webkit-text-stroke-color: rgba(212,175,100,0.08); }
  35%  { opacity: 0.7; -webkit-text-stroke-color: rgba(212,175,100,0.28); }
  50%  { opacity: 0.3; -webkit-text-stroke-color: rgba(212,175,100,0.14); }
  75%  { opacity: 0.9; -webkit-text-stroke-color: rgba(212,175,100,0.32); }
  100% { opacity: 1; -webkit-text-stroke-color: rgba(212,175,100,0.35); }
}

.kontakt-bg-text.flicker {
  animation: bulbFlicker 0.6s ease-out forwards;
}

/* Only glow when explicitly triggered via glowing class (via button interaction) */
.kontakt-bg-text.glowing {
  -webkit-text-stroke: 2px rgba(212,175,100,0.35);
  text-shadow: 0 0 60px rgba(212,175,100,0.6), 0 0 120px rgba(212,175,100,0.3), inset 0 0 40px rgba(212,175,100,0.15);
}
.kontakt-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 6rem; align-items: end;
  position: relative; z-index: 1;
}
.kontakt-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.07;
  margin-top: 1.4rem; margin-bottom: 1.5rem;
}
.kontakt-title em { font-style: italic; color: var(--gold2); }
.kontakt-body {
  font-size: 1rem; font-weight: 300;
  color: var(--muted); line-height: 1.8;
  max-width: 46ch;
}
.kontakt-details {
  display: flex; flex-direction: column; gap: .8rem;
}
.kontakt-detail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.kontakt-detail-label {
  font-family: var(--cond); font-size: .6rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.kontakt-detail-value {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  color: var(--light);
  text-decoration: none; transition: color .2s;
}
a.kontakt-detail-value:hover { color: var(--gold2); }
.kontakt-cta {
  margin-top: 2.5rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  padding: 2rem 3.5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--serif); font-size: 1rem; font-weight: 300;
  letter-spacing: .08em; color: var(--dim); text-decoration: none;
}
.footer-logo span { color: var(--gold); }
.footer-links {
  display: flex; gap: 2rem; list-style: none;
}
.footer-links a {
  font-family: var(--cond); font-size: .64rem; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--muted); }
.footer-copy {
  font-family: var(--cond); font-size: .64rem; font-weight: 300;
  letter-spacing: .08em; color: rgba(245,240,232,0.14);
}

/* ─── FOOTER SOCIAL ICONS ─── */
.footer-social {
  display: flex; gap: 1rem; align-items: center;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border-warm);
  color: var(--gold); text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.footer-social a:hover {
  background: rgba(212,175,100,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212,175,100,0.2);
}
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── DATENSCHUTZ / KONTAKTFORMULAR MODAL ─── */
/* Scroll-Lock wenn Modal offen — funktioniert auf Desktop + iOS */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  /* scroll-position wird per JS gesetzt */
}


.kwlm-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(9,9,10,0.96); backdrop-filter: blur(12px);
  overflow-y: auto; padding: 4rem 2rem;
}
.kwlm-modal-inner {
  max-width: 680px; margin: 0 auto; position: relative;
}
.kwlm-modal-close {
  position: absolute; top: 0; right: 0;
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: rgba(245,240,232,0.5);
  font-family: var(--cond); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .5rem 1.1rem; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.kwlm-modal-close:hover { color: var(--light); border-color: var(--border2); }
.kwlm-modal-label {
  font-family: var(--cond); font-size: .68rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 2rem;
  display: block;
}
.kwlm-modal h2 {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  margin-bottom: 2.5rem; line-height: 1.1;
}
.kwlm-modal-section-label {
  font-family: var(--cond); font-size: .65rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
  display: block;
}
.kwlm-modal p {
  font-size: .95rem; font-weight: 300; line-height: 1.8;
  color: rgba(245,240,232,0.75); margin-bottom: 1.5rem;
}
.kwlm-modal-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}

/* ─── KONTAKTFORMULAR ─── */
.kwlm-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.kwlm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kwlm-form-field { display: flex; flex-direction: column; gap: .4rem; }
.kwlm-form-field label {
  font-family: var(--cond); font-size: .62rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.kwlm-form-field input,
.kwlm-form-field select,
.kwlm-form-field textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--light); padding: .85rem 1rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 300;
  outline: none; transition: border-color .2s;
  cursor: text;
}
.kwlm-form-field input:focus,
.kwlm-form-field select:focus,
.kwlm-form-field textarea:focus { border-color: var(--gold-dim); }
.kwlm-form-field textarea { resize: vertical; min-height: 120px; }
.kwlm-form-field select { appearance: none; cursor: pointer; }
.kwlm-form-submit {
  background: var(--gold); color: var(--black);
  border: none; padding: .9rem 2rem;
  font-family: var(--cond); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, box-shadow .2s;
  align-self: flex-start; margin-top: .5rem;
}
.kwlm-form-submit:hover {
  background: var(--gold2);
  box-shadow: 0 0 20px rgba(212,175,100,0.4);
}
.kwlm-form-note {
  font-size: .8rem; color: var(--dim); line-height: 1.7;
}

/* ─── DSGVO BLOCK (Checkbox + Link to Datenschutz-Modal) ─── */
.dsgvo-honeypot { display: none; }
.dsgvo-block {
  display: flex; flex-direction: column; gap: .75rem;
  margin-top: .25rem;
}
.dsgvo-checkbox {
  display: flex; align-items: flex-start; gap: .65rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 300;
  line-height: 1.55; color: var(--muted);
  cursor: pointer;
}
.dsgvo-checkbox input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 16px;
  width: 16px; height: 16px;
  margin-top: .18rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.dsgvo-checkbox input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.dsgvo-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 0px;
  width: 6px; height: 11px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dsgvo-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold-dim); outline-offset: 2px;
}
.dsgvo-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.dsgvo-link:hover { color: var(--gold2); }
.dsgvo-note {
  font-size: .75rem; font-weight: 300;
  color: var(--dim); line-height: 1.6;
  padding-left: 1.4rem;
}

@media (max-width: 600px) {
  .kwlm-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  #philosophie, .maerkte-header { grid-template-columns: 1fr; gap: 3rem; }
  .leistungen-grid, .maerkte-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .projekte-grid { grid-template-columns: 1fr 1fr; }
  #services, #werte { grid-template-columns: 1fr; }
  .service-block { border-right: none; border-bottom: 1px solid var(--border); }
  .werte-left { padding-bottom: 4rem; }
  .prozess-inner { grid-template-columns: 1fr; gap: 3rem; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 1.2rem 1.5rem; }
  nav.scrolled .nav-inner { padding: .85rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-drawer { display: flex; }
  .hero-content { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-stats { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .hero-stat { padding: 0 1.5rem 0 0; margin-right: 1.5rem; }
  .section-inner { padding: 0 1.5rem; }
  #philosophie { padding: 5rem 1.5rem; }
  .leistungen-grid, .maerkte-grid, .testi-grid, .projekte-grid { grid-template-columns: 1fr; }
  .leistungen-header, .projekte-header, .referenzen-header { flex-direction: column; align-items: flex-start; }
  #services { padding: 0; }
  .service-block { padding: 3rem 1.5rem; }
  .werte-left, .werte-right { padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-social { justify-content: center; }
  .kontakt-bg-text { display: none; }
  .cursor, .cursor-aura, .cursor-spotlight { display: none !important; }
  body, .js body { cursor: auto; }
}
