/* ══════════════════════════════════════════════════════════
   held: werbe & grafik studio — Design System
   Heldenblau #1369B0 · Nachtblau · Gold in Mikro-Dosen
   ══════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'Zodiak';
  src: url('../fonts/zodiak-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('../fonts/zodiak-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('../fonts/zodiak-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ── Tokens ── */
:root {
  --bg: #0A0A0B;
  --bg-2: #0E0E10;
  --surface: #131316;
  --surface-2: #19191D;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F1F1EF;
  --text-2: #9C9C9A;
  --brand: #1369B0;
  --brand-2: #4C9FE0;
  --brand-soft: rgba(76, 159, 224, 0.10);
  --bg-glass: rgba(10, 10, 11, 0.72);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --radius: 18px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F7F7F5;
  --bg-2: #EFEFEC;
  --surface: #FFFFFF;
  --surface-2: #F4F4F2;
  --line: rgba(0, 0, 0, 0.10);
  --text: #131313;
  --text-2: #6E6E6C;
  --brand: #0F5E9E;
  --brand-2: #1369B0;
  --brand-soft: rgba(19, 105, 176, 0.07);
  --bg-glass: rgba(247, 247, 245, 0.78);
  --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.16);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html[data-font="2"] { font-size: 115%; }
html[data-font="3"] { font-size: 130%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

::selection { background: var(--brand); color: #fff; }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 400; letter-spacing: 0; }

.chev { color: var(--brand-2); font-family: var(--font-body); font-weight: 800; }

/* Fokus sichtbar */
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top 0.25s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ── Layout-Helfer ── */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-wide { width: min(1420px, 94vw); margin-inline: auto; }

.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }

.eyebrow {
  font-size: 0.8rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--text-2); margin-bottom: 1.1rem;
}
.eyebrow .chev { letter-spacing: 0; margin-right: 0.35em; }

.h2 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin-bottom: 1.4rem;
}
.h2 em { font-style: normal; color: var(--brand-2); }

.section__intro {
  max-width: 640px; color: var(--text-2);
  font-size: 1.06rem; margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.lead { font-size: 1.15rem; font-weight: 500; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 640; font-size: 0.95rem;
  padding: 0.78em 1.6em; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; position: relative;
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease,
              color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn--lg { padding: 0.95em 2em; font-size: 1.02rem; }
.btn--primary {
  background: var(--text); color: var(--bg);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
}
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--primary .chev { color: currentColor; transition: transform 0.3s var(--ease-out); }
.btn--primary:hover .chev { transform: translateX(4px); }
.btn--ghost {
  border-color: var(--line); color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.icon-btn:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ── Scroll-Fortschritt ── */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210;
  background: transparent; pointer-events: none;
}
#progress-bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  /* Inhalt bündig mit der Hero-Sektion (Container min(1180px, 92vw)) */
  padding-inline: max(4vw, calc((100% - 1180px) / 2));
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.header.is-scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__logo img {
  width: clamp(92px, 8.5vw, 120px); height: auto;
  transition: filter 0.45s ease;
}
[data-theme="dark"] .header__logo img,
[data-theme="dark"] .footer__logo .lockup__word { filter: brightness(0) invert(1); }

/* ── Logo-Lockup: „held“ + Slogan in Wortmarkenbreite ── */
.lockup { display: inline-flex; flex-direction: column; }
.lockup__word { display: block; width: 100%; height: auto; }
.lockup__slogan {
  display: flex; justify-content: space-between;
  text-transform: uppercase; line-height: 1;
  font-family: var(--font-body); font-weight: 550;
  color: var(--text-2);
}

.header__nav ul { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; }
.nav-link {
  text-decoration: none; font-weight: 550; font-size: 0.95rem;
  color: var(--text-2); position: relative; padding: 6px 2px;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brand-2);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s 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: 0 50%;
}

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Theme-Icon: nur das jeweils passende zeigen */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; }
.nav-burger span {
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Intro ── */
.intro {
  position: fixed; inset: 0; z-index: 400;
  background: #0A0A0B;
  display: grid; place-items: center;
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__logo {
  position: relative; z-index: 2; opacity: 0; transform: scale(0.92);
  width: min(280px, 56vw);
}
.intro__logo .lockup { width: 100%; }
.intro__logo .lockup__word { filter: brightness(0) invert(1); }
.intro__logo .lockup__slogan {
  color: #B9B9B7;
  font-size: clamp(10px, 3.5vw, 18.2px); margin-top: 11px;
}
@media (min-width: 520px) {
  .intro__logo .lockup__slogan { font-size: 18.2px; }
}
.intro__skip {
  position: absolute; bottom: 34px; right: 38px; z-index: 3;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75); font-family: var(--font-body);
  font-size: 0.85rem; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.intro__skip:hover { border-color: #fff; color: #fff; }
.intro.is-done { pointer-events: none; }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: var(--header-h);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(1180px, 92vw); margin-inline: auto;
  padding-block: clamp(30px, 6vh, 70px);
}
.hero__eyebrow { opacity: 0; }
.hero__title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.04;
  margin: 0.4rem 0 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .w {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.hero__hl { color: var(--brand-2); position: relative; }

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-2);
  max-width: 560px; opacity: 0;
}
.hero__cta { display: flex; gap: 14px; margin-top: 2.2rem; flex-wrap: wrap; opacity: 0; }

.hero__eyebrow, .hero__sub, .hero__cta { transition: opacity 0.7s ease; }
body.hero-in .hero__title .w { transform: translateY(0); }
body.hero-in .hero__eyebrow { opacity: 1; transition-delay: 0.35s; }
body.hero-in .hero__sub { opacity: 1; transition-delay: 0.5s; }
body.hero-in .hero__cta { opacity: 1; transition-delay: 0.65s; }
.reduce-motion .hero__title .w { transform: none !important; transition: none !important; }
.reduce-motion .hero__eyebrow, .reduce-motion .hero__sub, .reduce-motion .hero__cta {
  opacity: 1 !important; transition: none !important;
}

.hero__scroll {
  position: absolute; bottom: 48px; right: clamp(20px, 4vw, 52px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-2); text-decoration: none; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--brand-2);
  animation: scrollHint 2s var(--ease-out) infinite;
}
@keyframes scrollHint { 0% { top: -50%; } 100% { top: 110%; } }

/* ── Der Held ── */
.held { background: var(--bg-2); }
.held__grid {
  display: grid; grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start; margin-top: 1rem;
}
.held__text p + p { margin-top: 1.1em; color: var(--text-2); }

.stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3.4rem);
  margin-top: 2.6rem; justify-content: start;
}
.stat dt {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-2); order: 2; margin-top: 0.3rem;
}
.stat dd {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1;
  color: var(--text);
}
.stat__plus { color: var(--brand-2); }

.held__portrait { position: relative; }
.held__frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.held__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(0, 0, 0, 0.28), transparent 60%);
  mix-blend-mode: multiply; pointer-events: none;
}
.held__frame img {
  width: 100%; display: block;
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
  filter: contrast(1.02);
}
.held__portrait:hover .held__frame img { transform: scale(1.04); filter: contrast(1.05) brightness(1.03); }
.held__portrait figcaption {
  margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.5;
}
.held__portrait figcaption strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 1.1rem; color: var(--text);
}

/* Werte */
.values { list-style: none; margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.value { border-bottom: 1px solid var(--line); }
.value__head {
  display: flex; align-items: baseline; gap: 1.1rem; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.15rem 0.2rem; color: var(--text);
}
.value__idx {
  font-size: 1.15rem; transition: transform 0.35s var(--ease-out);
}
.value__head[aria-expanded="true"] .value__idx { transform: rotate(90deg) translateX(2px); }
.value__word {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: 0.24em;
  transition: color 0.3s ease, letter-spacing 0.45s var(--ease-out);
}
.value__head:hover .value__word,
.value__head[aria-expanded="true"] .value__word { color: var(--brand-2); letter-spacing: 0.3em; }
.value__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.value__body > p {
  overflow: hidden; color: var(--text-2); max-width: 560px;
  padding-left: calc(1.15rem + 1.1rem);
}
.value.is-open .value__body { grid-template-rows: 1fr; }
.value.is-open .value__body > p { padding-bottom: 1.2rem; }

/* ── Leistungen ── */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  position: relative;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.45s ease;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              var(--brand-soft), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.card:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line)); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 58px; height: 58px; margin-bottom: 1.1rem;
  border-radius: 50%;
  transform: translateZ(30px);
  filter: grayscale(1) brightness(1.05);
  transition: transform 0.5s var(--ease-out), filter 0.4s ease;
}
.card:hover .card__icon {
  transform: translateZ(46px) scale(1.08) rotate(-6deg);
  filter: none;
}
.card h3 {
  font-size: 1.3rem; margin-bottom: 0.85rem; transform: translateZ(20px);
}
.card__list { list-style: none; color: var(--text-2); font-size: 0.95rem; transform: translateZ(12px); }
.card__list li { padding: 0.28em 0 0.28em 1.2em; position: relative; }
.card__list li::before {
  content: '>'; position: absolute; left: 0; top: 0.28em;
  color: var(--brand-2); font-family: var(--font-body); font-weight: 800;
}

/* ── Projekte: Masonry-3D-Ring ── */
.work { background: var(--bg-2); overflow: hidden; }
.work .container { position: relative; z-index: 3; }

.ring {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  /* voller Seitenanschnitt aus dem zentrierten Container heraus */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.ring__viewport {
  position: relative;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2vw, 26px);
  padding-block: 12px;
  perspective: 2200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  cursor: grab;
}
.ring.is-dragging .ring__viewport { cursor: grabbing; }

.ring__row {
  position: relative;
  height: var(--rowh, 170px);
  transform-style: preserve-3d;
  /* Die Reihen-Bänder überlappen die ausladenden Karten der Nachbarreihen —
     sie dürfen Klicks nicht abfangen, nur die Karten selbst */
  pointer-events: none;
}
.ring__stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.ring__card {
  position: absolute; top: 50%; left: 50%;
  margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ring__frame {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px -20px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.ring__card:hover .ring__frame { border-color: var(--brand-2); box-shadow: 0 24px 56px -22px rgba(0,0,0,0.75); }
.ring__card img {
  flex: 1; min-height: 0; width: 100%;
  object-fit: cover; object-position: top center; display: block;
}

/* Flache Print-Arbeiten als „schwebendes Papier": randlos mit weichem
   Schlagschatten — die räumliche Perspektive liefert der rotierende Ring
   selbst. Schatten via CSS = keine schweren Bilddateien, theme-adaptiv. */
.ring__card.is-paper .ring__frame {
  background: none; border: none; box-shadow: none;
  overflow: visible; border-radius: 0;
}
.ring__card.is-paper .ring__frame img {
  object-fit: contain; object-position: center;
  transform: scale(0.95);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.5)) drop-shadow(0 2px 4px rgba(0,0,0,0.38));
  transition: transform 0.5s var(--ease-out), filter 0.4s ease;
}
.ring__card.is-paper:hover .ring__frame { box-shadow: none; }
.ring__card.is-paper:hover .ring__frame img {
  transform: scale(0.99);
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.6)) drop-shadow(0 3px 6px rgba(0,0,0,0.42));
}

/* Browser-Chrome der Website-Mockups */
.ring__bar {
  flex: 0 0 20px;
  display: flex; align-items: center; gap: 4px;
  padding-inline: 8px;
  background: #17181b;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ring__bar i { width: 6px; height: 6px; border-radius: 50%; background: #3d4046; flex: 0 0 auto; }
.ring__bar b {
  margin-left: 5px; min-width: 0;
  font-weight: 400; font-size: 8.5px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Bildunterschrift nur bei Hover (Details zeigt die Lightbox) */
.ring__cap {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  pointer-events: none; text-align: left;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.ring__cap strong { font-family: var(--font-display); font-weight: 400; font-size: 0.92rem; line-height: 1.15; }
.ring__cap span { font-size: 0.66rem; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }
.ring__card:hover .ring__cap, .ring__card:focus-visible .ring__cap { opacity: 1; transform: translateY(0); }

.ring__ui {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: clamp(1.2rem, 2.6vw, 2rem);
}
.ring__nav {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.ring__nav:hover { border-color: var(--brand-2); color: var(--brand-2); }
.ring__nav:active { transform: scale(0.92); }
.ring__hint {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-2); text-align: center; user-select: none;
}
.ring__hint .chev { letter-spacing: 0; }

/* Fallback nur wenn der Browser kein 3D kann: scrollbares Band */
.no-carousel3d .ring__viewport {
  perspective: none; flex-direction: row;
  overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.no-carousel3d .ring__row, .no-carousel3d .ring__stage { display: contents; }
.no-carousel3d .ring__card {
  position: relative; top: auto; left: auto;
  transform: none !important; opacity: 1 !important; flex: 0 0 auto;
  width: clamp(240px, 70vw, 340px) !important; height: 220px !important;
  scroll-snap-align: center;
}
.no-carousel3d .ring__card .ring__cap { opacity: 1; transform: none; }
.no-carousel3d .ring__ui { display: none; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: clamp(20px, 5vw, 60px);
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__inner {
  max-width: min(1100px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column; gap: 0.9rem;
  transform: scale(0.96); transition: transform 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox__inner img {
  max-width: 100%; max-height: 76vh; width: auto; margin-inline: auto;
  border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8);
}
.lightbox__cap { display: flex; flex-direction: column; gap: 2px; color: #fff; text-align: center; }
.lightbox__cap strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.lightbox__cap span { font-size: 0.85rem; color: rgba(255,255,255,0.66); }
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
  transition: background-color 0.3s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: clamp(12px, 3vw, 34px); }
.lightbox__nav--next { right: clamp(12px, 3vw, 34px); }
.lightbox.is-single .lightbox__nav { display: none; }

/* ── Kunden: Namensliste ── */
.clients__list {
  list-style: none; margin-top: 1rem;
  display: grid; grid-template-columns: repeat(5, 1fr);
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
}
.clients__list li {
  border-top: 1px solid var(--line);
  padding: 0.5rem 0.1rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  color: var(--text-2); line-height: 1.35;
  display: flex; align-items: baseline; gap: 0.5rem;
  transition: color 0.3s ease, padding-left 0.35s var(--ease-out);
}
.clients__list li::before {
  content: '>'; color: var(--brand-2); font-family: var(--font-body);
  font-weight: 800; font-size: 0.75em; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.clients__list li:hover { color: var(--text); padding-left: 0.3rem; }
.clients__list li:hover::before { opacity: 1; transform: translateX(0); }

/* Einklappbare Zusatz-Kunden */
.clients.is-collapsed .clients__list li.extra { display: none; }
.clients__more { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.clients:not(.is-collapsed) .clients__more .chev { transform: rotate(90deg); display: inline-block; }
.clients__more .chev { transition: transform 0.35s var(--ease-out); }

/* ── Studio ── */
.studio__grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.studio__intro .section__intro { margin-bottom: 2rem; }
.studio__addr {
  display: inline-flex; align-items: center; gap: 0.9rem;
  text-decoration: none; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.7rem 1.6rem 0.7rem 0.75rem;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.studio__addr:hover { border-color: var(--brand-2); transform: translateY(-3px); }
.studio__pin {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.studio__addr-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.85rem; color: var(--text-2); }
.studio__addr-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--text); }
.studio__addr-arrow { transition: transform 0.35s var(--ease-out); }
.studio__addr:hover .studio__addr-arrow { transform: translateX(4px); }

.studio__photo { margin: 0; }
.studio__frame {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in;
}
.studio__frame img {
  width: 100%; height: auto; display: block;
  transition: transform 1s var(--ease-out);
}
.studio__frame:hover img { transform: scale(1.03); }
.studio__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-glass); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.studio__frame:hover .studio__zoom, .studio__frame:focus-visible .studio__zoom {
  opacity: 1; transform: scale(1);
}
.studio__credit {
  margin-top: 0.9rem; font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--text-2); text-align: right;
}

/* ── Kontakt ── */
.contact { text-align: left; }
.contact__title { font-size: clamp(3rem, 8vw, 6rem); }
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1rem;
}
.contact__card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.8rem;
  text-decoration: none; position: relative;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease, background-color 0.45s ease;
}
.contact__card:hover {
  border-color: var(--brand-2); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact__label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--text-2);
}
.contact__value { font-family: var(--font-display); font-weight: 400; font-size: 1.18rem; overflow-wrap: anywhere; }
.contact__arrow {
  position: absolute; right: 1.4rem; top: 1.2rem; font-size: 1.3rem;
  transition: transform 0.35s var(--ease-out);
}
.contact__card:hover .contact__arrow { transform: translateX(5px); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 2.6rem 0; background: var(--bg-2); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.6rem; flex-wrap: wrap;
}
.footer__logo { width: 132px; }
.footer__logo .lockup__word { transition: filter 0.45s ease; }
.footer__logo .lockup__slogan { font-size: 8.6px; margin-top: 5px; }
.footer__note { font-size: 0.85rem; color: var(--text-2); }
.footer__nav { display: flex; gap: 1.4rem; }
.footer__nav a {
  font-size: 0.85rem; color: var(--text-2); text-decoration: none;
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--brand-2); }

/* ── Barrierefreiheits-Dock ── */
.a11y { position: fixed; left: 18px; bottom: 18px; z-index: 260; }
.a11y__toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(19, 105, 176, 0.7);
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}
.a11y__toggle:hover { transform: scale(1.08); background: var(--brand-2); }
.a11y__panel {
  position: absolute; left: 0; bottom: 64px;
  width: min(320px, calc(100vw - 36px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem;
  box-shadow: var(--shadow);
}
.a11y__title { font-size: 1.05rem; margin-bottom: 0.9rem; }
.a11y__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.5rem 0;
}
.a11y__label { font-size: 0.88rem; color: var(--text-2); }
.a11y__controls { display: flex; gap: 6px; }
.a11y__btn {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.a11y__btn:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand-2); }
.a11y__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.a11y__btn.is-active, .a11y__btn[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.a11y__hint { font-size: 0.72rem; color: var(--text-2); margin-top: 0.7rem; }

/* Lupe */
#page { transition: transform 0.18s ease-out; }
body.magnify-on { overflow: hidden; }
body.magnify-on #page {
  transform: scale(var(--zoom, 1.9));
  transition: none;
  cursor: zoom-in;
}
.magnify-badge {
  position: fixed; top: calc(var(--header-h) + 10px); left: 50%; transform: translateX(-50%);
  z-index: 280; background: var(--brand); color: #fff;
  font-size: 0.82rem; font-weight: 650; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
}

/* ── Custom Cursor ── */
.cursor { position: fixed; inset: 0; z-index: 500; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-2); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 1.4px solid var(--text-2);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  opacity: 0.6;
}
.cursor.is-hover .cursor__ring { width: 54px; height: 54px; opacity: 1; border-color: var(--brand-2); }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ── Reveal-Grundzustand (JS setzt Animation) ── */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js.reduce-motion [data-reveal] { opacity: 1; transform: none; }

/* ── Reduzierte Bewegung ── */
html.reduce-motion { scroll-behavior: auto; }
html.snap .hero { min-height: 860px; height: 860px; }
.reduce-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
.reduce-motion .marquee__track { animation: none; }
.reduce-motion .hero__scroll-line::after { animation: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ══════════ Responsive ══════════ */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .clients__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .header { justify-content: space-between; gap: 0; }
  .header__nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg);
    backdrop-filter: blur(18px);
    display: grid; place-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .header__nav.is-open { opacity: 1; pointer-events: auto; }
  .header__nav ul { flex-direction: column; text-align: center; gap: 8vh; }
  .nav-link { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
  .nav-burger { display: inline-flex; }
  .header__cta { display: none; }

  .held__grid { grid-template-columns: 1fr; }
  .held__portrait { max-width: 420px; }
  .stats { grid-template-columns: repeat(3, auto); gap: 1.6rem; }

  .studio__grid { grid-template-columns: 1fr; }
  .studio__credit { text-align: left; }

  .contact__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .br-desk { display: none; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .clients__list { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 1.2rem; }
  .stat dd { font-size: 2rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .a11y { left: 12px; bottom: 12px; }
}

/* ══════════ Rechtsseiten (Impressum / Datenschutz) ══════════ */
.legal-header {
  position: sticky; top: 0;
  background: var(--bg-glass); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.legal-page { background: var(--bg); color: var(--text); }
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem); }
.legal .container { max-width: 820px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--text-2); text-decoration: none; font-size: 0.9rem;
  margin-bottom: 2.2rem; transition: color 0.3s ease, gap 0.3s var(--ease-out);
}
.legal__back:hover { color: var(--brand-2); gap: 0.7em; }
.legal h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.legal__lead { color: var(--text-2); margin-bottom: 2.6rem; font-size: 1.05rem; }
.legal h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.4rem;
  margin: 2.6rem 0 0.7rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; font-weight: 650; margin: 1.4rem 0 0.4rem; color: var(--text); }
.legal p, .legal address, .legal ul { color: var(--text-2); margin-bottom: 1rem; font-style: normal; line-height: 1.75; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--brand-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal address strong { display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.legal__note {
  margin-top: 2.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.2rem 1.5rem; font-size: 0.85rem; color: var(--text-2);
}
