/* ==========================================================================
   LYXEON MEDIA — style.css
   Farben kommen als CSS-Variablen aus data/content.js (Adminpanel).
   Die Werte hier sind nur Fallbacks.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --line: #2a2a2e;
  --text: #ecebe6;
  --muted: #8e8d88;
  --gold: #e6d3a8;
  --gold-deep: #c7ab76;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  --radius: 14px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .9s;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

/* Filmkorn über allem */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.gold { color: var(--gold); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx { color: var(--gold); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line); margin-left: 12px; vertical-align: middle; }

.h2 {
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}
.h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 500;
}

/* Wort-Reveal für Überschriften (von JS gesplittet) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* Generische Reveals */
[data-anim="fade"] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-anim="fade"].is-in { opacity: 1; transform: none; }
[data-anim="clip"] { clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.4s var(--ease-out); }
[data-anim="clip"] img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
[data-anim="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
[data-anim="clip"].is-in img { transform: scale(1); }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  word-spacing: .12em;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold::before { background: var(--text); }
.btn--ghost { border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 20%, transparent); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(2px, -2px) rotate(45deg); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .4s, color .4s, border-color .4s;
}
.round-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ---------- 5. Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  transition: transform 1.1s var(--ease-io);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader__brand { color: var(--gold); display: block; }
.loader__brand svg { display: block; height: clamp(90px, 16vw, 190px); width: auto; }
.loader__count { font-family: var(--font-mono); font-size: 14px; color: var(--gold); }
.loader__bar { height: 1px; background: var(--line); margin-top: 24px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
body.is-ready .loader { transform: translateY(-100%); }
.loader.is-gone { display: none; }

/* ---------- 7. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease-out), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.logo__mark { color: var(--gold); display: block; }
.logo__mark svg { display: block; width: auto; height: 30px; transition: transform .6s var(--ease-out); }
.logo:hover .logo__mark svg { transform: translateY(-2px); }
.logo__word { font-size: 20px; font-weight: 600; letter-spacing: -.04em; text-transform: uppercase; }
.logo__suffix { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--muted); margin-left: -4px; }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; font-size: 14.5px; color: color-mix(in srgb, var(--text) 78%, transparent);
  transition: color .3s;
}
.nav__link sup { font-family: var(--font-mono); font-size: 9.5px; color: var(--gold); opacity: .8; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.header__right .btn { display: none; }
.header__status { display: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 0 rgba(95, 211, 138, .6); animation: pulse 2.4s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 138, 0); } }

.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease-out); }
body.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile-Menü */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  font-size: clamp(2.2rem, 11vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1;
  transform: translateY(110%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(.25s + var(--i) * 60ms);
}
.menu__list a small { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .04em; }
body.menu-open .menu__list a { transform: none; }
.menu__foot { display: flex; flex-direction: column; gap: 16px; opacity: 0; transition: opacity .6s .6s; }
body.menu-open .menu__foot { opacity: 1; }
.menu__mail { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--gold); }
.menu__socials { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(88px, 10vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg) center / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video.is-hidden { display: none; }
@media (max-width: 1023px) { .hero__video { display: none; } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 28%),
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, color-mix(in srgb, var(--bg) 25%, transparent) 70%),
    radial-gradient(120% 80% at 80% 20%, transparent 0%, color-mix(in srgb, var(--bg) 40%, transparent) 100%);
}


.hero__content { position: relative; }
.hero__eyebrow { font-weight: 400; margin-bottom: 22px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.hero__title {
  font-size: clamp(2.9rem, 12.6vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 500;
  margin-left: -.04em;
}
.hero__title .serif { font-size: 1.06em; letter-spacing: -.03em; padding-right: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.line__in { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.line:nth-child(2) .line__in { transition-delay: .08s; }
.line:nth-child(3) .line__in { transition-delay: .16s; }
body.is-ready .hero .line__in, .contact__title.is-in .line__in { transform: none; }

.hero__bottom { display: grid; gap: 36px; margin-top: 36px; }
.hero__copy { max-width: 460px; }
.hero__rotator { font-family: var(--font-mono); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.hero__rotator > span:first-child { display: block; height: 18px; }
.rotator { position: relative; display: block; height: 18px; overflow: hidden; color: var(--gold); min-width: 12ch; }
.rotator span { position: absolute; left: 0; top: 0; height: 18px; line-height: 18px; white-space: nowrap; transform: translateY(100%); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s; }
.rotator span.is-on { transform: none; opacity: 1; }
.rotator span.is-off { transform: translateY(-100%); opacity: 0; }
.hero__text { font-size: clamp(16px, 1.3vw, 18px); color: color-mix(in srgb, var(--text) 82%, transparent); margin-bottom: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.hero__stats li { padding: 16px 12px 0 0; }
.hero__stats strong { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.hero__stats span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 980px; }
.section__head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; max-width: 820px; }
.section__intro { max-width: 540px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }

/* Leistungen */
.services__list { border-top: 1px solid var(--line); counter-reset: s; }
.service {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); padding-top: .65em; }
.service__title { font-size: clamp(28px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; transition: transform .6s var(--ease-out), color .4s; }
.service:hover .service__title { transform: translateX(10px); color: var(--gold); }
.service__text { grid-column: 2; color: var(--muted); max-width: 460px; font-size: 15.5px; }
.service__tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; color: color-mix(in srgb, var(--text) 70%, transparent); }

/* Arbeiten */
.work__count { color: var(--muted); }
.work__grid { display: grid; gap: 18px; }
.work-card { position: relative; display: block; cursor: zoom-in; }
.work-card:focus-visible { outline-offset: 6px; }
.work-card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent 45%); opacity: .8; transition: opacity .6s; }
.work-card:hover .work-card__media::after { opacity: .4; }
.work-card__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-out); }
.work-card:hover .work-card__zoom, .work-card:focus-visible .work-card__zoom { opacity: 1; transform: none; }
@media (hover: none) { .work-card__zoom { opacity: 1; transform: none; } }
.work-card__idx { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: 11px; color: var(--text); letter-spacing: .06em; mix-blend-mode: difference; }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.work-card__title { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.035em; }
.work-card__cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; text-align: right; }

/* Ablauf */
.process__steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-serif); font-style: italic; font-size: 64px; line-height: .9; color: var(--gold); display: block; margin-bottom: 18px; }
.step__title { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.step__bar { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i) * 180ms); }
.step.is-in .step__bar { transform: scaleX(1); }

/* About */
.about { background: var(--surface); }
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--surface-2); }
@media (min-width: 640px) and (max-width: 1023px) { .about__media { max-width: 520px; aspect-ratio: 1 / 1; } }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 80%, transparent), transparent); color: var(--text); font-size: 11px; }
.about__caption span:last-child { color: var(--gold); text-align: right; }
.about__body .h2 { margin: 22px 0 28px; }
.about__text p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: color-mix(in srgb, var(--text) 86%, transparent); margin-bottom: 1em; max-width: 58ch; }
.about__text p:first-child::first-line { color: var(--text); }
.about__facts { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.about__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.about__facts dd { text-align: right; }
.about__sign { font-size: 44px; color: var(--gold); margin-top: 28px; }
.about__sign-img { display: block; height: clamp(84px, 8vw, 120px); aspect-ratio: 3 / 1; max-width: 100%; background: var(--gold);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: left center; mask-position: left center; }

/* Kunden */
.clients { padding-bottom: clamp(80px, 10vw, 140px); }
.clients__rail {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.client {
  --tile-bg: var(--surface);
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 260px; height: 128px; padding: 18px 28px;
  margin-right: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tile-bg);
  transition: border-color .5s, transform .5s var(--ease-out);
}
.client[data-tone="light"] { --tile-bg: var(--text); border-color: transparent; }
.client[data-tone="dark"] { --tile-bg: var(--surface-2); }
.client[data-tone="fill"] { border-color: transparent; }
.client:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateY(-3px); }
.client img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
@media (max-width: 639px) { .client { width: 200px; height: 104px; padding: 16px 22px; } }
.client__name { font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: color-mix(in srgb, var(--text) 62%, transparent); transition: color .4s; white-space: nowrap; }
.client:nth-child(3n+2) .client__name { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; }
.client:nth-child(3n) .client__name { font-family: var(--font-mono); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.client:hover .client__name { color: var(--gold); }

/* Feedback */
.reviews__nav { display: flex; align-items: center; gap: 10px; }
.reviews__index { color: var(--muted); margin-right: 10px; }
.reviews__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%),
    var(--surface);
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  touch-action: pan-y;
}
.reviews__mark { position: absolute; top: -.06em; right: .12em; font-size: clamp(180px, 26vw, 360px); line-height: 1; color: color-mix(in srgb, var(--gold) 14%, transparent); pointer-events: none; user-select: none; }
.reviews__slides { display: grid; }
.review { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.review.is-active { opacity: 1; visibility: visible; }
.review__quote { font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -.015em; max-width: 26ch; position: relative; }
.review__quote .w > span { transition-duration: .9s; transition-delay: calc(var(--i, 0) * 18ms); }
.review:not(.is-active) .w > span { transform: translateY(105%); transition: none; }
.review.is-active .w > span { transform: none; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg); font-weight: 600; font-size: 16px; overflow: hidden; flex: none; }
.review__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: var(--text); }
.review__name { font-weight: 500; }
.review__role { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.review--long .review__quote { font-size: clamp(21px, 2.3vw, 32px); line-height: 1.25; max-width: 44ch; }
.para-gap { display: block; height: .55em; }
.reviews__nav[hidden], .reviews__progress[hidden] { display: none; }
.reviews__progress { display: flex; gap: 6px; margin-top: 36px; }
.reviews__progress button { flex: 1; height: 18px; background: color-mix(in srgb, var(--text) 16%, transparent); position: relative; overflow: hidden; border-radius: 2px; padding: 8px 0; background-clip: content-box; }
.reviews__progress button span { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.reviews__progress button.is-done span { transform: scaleX(1); }
.reviews__progress button.is-active span { animation: fill var(--rev-dur, 7s) linear forwards; }
.reviews__stage:hover .reviews__progress button.is-active span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* Kontakt */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__title { font-size: clamp(3rem, 10vw, 9.5rem); line-height: .92; letter-spacing: -.055em; font-weight: 500; margin: 24px 0 clamp(40px, 6vw, 80px); }
.contact__title .serif { font-size: 1.05em; letter-spacing: -.03em; }
.contact__title .line:nth-child(2) .line__in { transition-delay: .1s; }
.contact__grid { display: grid; gap: 56px; }
.contact__text { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 44ch; margin-bottom: 28px; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(22px, 3vw, 40px); letter-spacing: -.035em; font-weight: 500;
  padding-bottom: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0% 1px no-repeat,
              linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
  transition: background-size .7s var(--ease-out), color .4s;
  word-break: break-all;
}
.contact__mail:hover { background-size: 100% 1px, 100% 1px; color: var(--gold); }
.contact__mail svg { flex: none; transition: transform .5s var(--ease-out); }
.contact__mail:hover svg { transform: rotate(45deg); }
.contact__meta { margin-top: 32px; display: grid; gap: 10px; }
.contact__meta li { display: flex; gap: 16px; }
.contact__meta li > span:first-child { width: 90px; color: var(--muted); flex: none; }
.contact__meta a:hover { color: var(--gold); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.contact__socials a { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; transition: border-color .3s, color .3s; }
.contact__socials a:hover { border-color: var(--gold); color: var(--gold); }

.form { display: grid; gap: 14px; padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); align-self: start; }
.form__topics { border: 0; margin-bottom: 8px; }
.form__topics legend { color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; cursor: pointer; transition: all .3s; user-select: none; }
.chip span:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 16px;
  resize: vertical;
  transition: border-color .3s;
}
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .35s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.74); color: var(--gold); }
.field.is-error input, .field.is-error textarea { border-color: #e5484d; }
.form__note { color: var(--muted); font-size: 10.5px; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer__note { max-width: 36ch; color: var(--muted); }
.footer__up { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: background .4s, color .4s, border-color .4s; }
.footer__up:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.footer__word { font-size: clamp(5rem, 25vw, 24rem); font-weight: 600; letter-spacing: -.07em; line-height: .78; text-transform: uppercase; margin: 48px 0 0 -.05em; white-space: nowrap;
  background: linear-gradient(180deg, var(--text) 10%, color-mix(in srgb, var(--text) 8%, transparent) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--gold); }
/* Besucherzähler + unauffälliger Link zu den Analytics */
.footer__bottom { padding-bottom: 14px; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; padding: 0 0 calc(18px + env(safe-area-inset-bottom)); font-size: 10px; color: var(--muted); }
.footer__counter { opacity: .7; }
.footer__counter[hidden] { display: none; }
.footer__quiet { opacity: .28; transition: opacity .3s, color .3s; }
.footer__quiet:hover, .footer__quiet:focus-visible { opacity: 1; color: var(--gold); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 64px var(--gutter) 24px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; min-width: 0; height: 100%; align-content: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 8px; object-fit: contain; transform: scale(.98); opacity: 0; transition: transform .45s var(--ease-out), opacity .35s; }
.lightbox__img.is-loaded { transform: none; opacity: 1; }
.lightbox__cap { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.lightbox__title { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.lightbox__meta { color: var(--muted); }
.lightbox__close { position: absolute; top: 14px; right: var(--gutter); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.lightbox__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
@media (max-width: 639px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 20px; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; margin-right: 6px; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; margin-left: 6px; }
}

/* ---------- 11. Tablet (≥ 640px) ---------- */
@media (min-width: 640px) {
  .hero__stats li { padding-right: 24px; }
  .work__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .service { grid-template-columns: 64px 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .header__right .btn { display: inline-flex; }
}

/* ---------- 12. Desktop (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .nav { display: block; }
  .burger { display: none; }
  .header__status { display: inline-flex; }
  .scroll-hint { display: flex; }

  .hero__bottom { grid-template-columns: minmax(0, 460px) minmax(0, 520px); justify-content: space-between; align-items: end; }

  .section__head--row { grid-template-columns: 1fr auto; }

  .service { grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; padding: 40px 0; }
  .service__text { grid-column: 3; grid-row: 1; padding-top: .6em; }
  .service__tags { grid-column: 3; grid-row: 2; }

  .work__grid { grid-template-columns: repeat(12, 1fr); gap: 28px; row-gap: 64px; }
  .work-card:nth-child(4n+1) { grid-column: 1 / span 7; }
  .work-card:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: 140px; }
  .work-card:nth-child(4n+2) .work-card__media { aspect-ratio: 4 / 5; }
  .work-card:nth-child(4n+3) { grid-column: 1 / span 5; }
  .work-card:nth-child(4n+3) .work-card__media { aspect-ratio: 4 / 5; }
  .work-card:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: 180px; }

  .process__steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .step { border-bottom: 0; padding-right: 12px; }

  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); }
  .about__facts { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
  .review { min-height: 340px; }
}

@media (min-width: 1440px) {
  .hero__title { font-size: clamp(3rem, 10vw, 11.5rem); }
}

/* ---------- 13. Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .clients__track { animation: none; }
  [data-anim], .w > span, .line__in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- 14. Unterseiten (Impressum) ---------- */
.is-sub .header { background: color-mix(in srgb, var(--bg) 72%, transparent); }
.legal { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(80px, 10vw, 140px); }
.legal__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.legal__notice { display: none; color: #e5484d; border: 1px dashed color-mix(in srgb, #e5484d 50%, transparent); border-radius: 10px; padding: 12px 14px; margin-bottom: 32px; max-width: 760px; line-height: 1.6; }
.has-todo .legal__notice { display: block; }
.legal__body { max-width: 980px; }
.legal__lead { color: var(--muted); max-width: 70ch; margin-bottom: 8px; }
.legal__sec { display: grid; gap: 14px; padding: 32px 0; border-top: 1px solid var(--line); }
.legal__h { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.03em; }
.legal__content { display: grid; gap: 14px; min-width: 0; }
.legal__dl { display: grid; }
.legal__row { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.legal__row:last-child { border-bottom: 0; }
.legal__row dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal__row dd { color: color-mix(in srgb, var(--text) 90%, transparent); overflow-wrap: anywhere; }
.legal__row a, .legal__p a { color: var(--gold); border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.legal__p { color: color-mix(in srgb, var(--text) 80%, transparent); max-width: 70ch; }
.legal__updated { color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.todo { color: #e5484d; background: color-mix(in srgb, #e5484d 10%, transparent); border-radius: 4px; padding: 0 5px; }
@media (min-width: 768px) {
  .legal__sec { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
  .legal__row { grid-template-columns: 190px 1fr; gap: 20px; }
}
