/*
 * STAR LABS Entertainment — Startseite und Rechtsseiten, Fassung 10/2026.
 * Eine Datei, keine Abhängigkeiten. Schriften liegen lokal (DSGVO).
 */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400.woff2?v=8909904a') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500.woff2?v=f3779f1e') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600.woff2?v=f9a06e79') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url('../fonts/cinzel-latin-500.woff2?v=2864b2c9') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-latin-700.woff2?v=8efa224f') format('woff2'); }

:root {
  --bg: #07080b;
  --ink: #ece9e2;
  --muted: #8b8e95;
  --faint: #4a4d54;
  --line: rgba(236, 233, 226, 0.12);
  --gold: #e8c98a;
  --gold-light: #f6ecd6;
  --gold-deep: #9c7b45;
  --accent: var(--gold);
  --accent-text: var(--accent);
  --ink-rgb: 236, 233, 226;
  --bg-rgb: 7, 8, 11;
  --body-text: #c9c6bf;
  --ok: #9fdca6;
  --error: #ef9f9f;
  --shadow: rgba(0, 0, 0, 0.55);
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: dark;
}

/* Helles Thema: warmes Papier, dunkles Gold — Kontrast für Text bleibt über 4.5:1. */
:root[data-theme='light'] {
  --bg: #f4f1ea;
  --ink: #15171b;
  --muted: #5c5f66;
  --faint: #a9a7a0;
  --line: rgba(21, 23, 27, 0.13);
  --gold: #a87a2e;
  --gold-light: #d9b679;
  --gold-deep: #6e4f1c;
  --accent-text: color-mix(in srgb, var(--accent) 58%, #000);
  --ink-rgb: 21, 23, 27;
  --bg-rgb: 244, 241, 234;
  --body-text: #33363c;
  --ok: #2f7a3a;
  --error: #b23b3b;
  --shadow: rgba(40, 32, 20, 0.22);
  color-scheme: light;
}

/* Fließender Themenwechsel als Rückfall ohne View Transitions: nur während des Wechsels. */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease), border-color 0.7s var(--ease),
    fill 0.7s var(--ease), stroke 0.7s var(--ease), box-shadow 0.7s var(--ease) !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font: 400 1rem/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------ Hintergrund */

.globe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 100%; height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: background-color 0.6s var(--ease);
}

main, .footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ Kopf */

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: env(safe-area-inset-top) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 0;
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__main { font: 700 1.05rem/1 'Cinzel', serif; letter-spacing: 0.14em; text-transform: uppercase; }
.brand__sub { margin-top: 5px; font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative; text-decoration: none; font-size: 0.86rem; font-weight: 500;
  color: var(--muted); transition: color 0.25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

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

.lang {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius);
}
/* Markierung gleitet zur gewählten Sprache, statt umzuspringen. */
.lang::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 50%;
  background: var(--ink);
  transition: transform 0.55s var(--ease), background-color 0.7s var(--ease);
}
:root[lang='en'] .lang::before { transform: translateX(100%); }
.lang button {
  appearance: none; border: 0; background: none; color: var(--muted);
  font: 600 0.72rem/1 'Inter', sans-serif; letter-spacing: 0.08em;
  padding: 8px 10px; min-height: 32px; cursor: pointer;
}
.lang button { transition: color 0.45s var(--ease); }
.lang button[aria-pressed='true'] { color: var(--bg); }

.theme-toggle {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: none; color: var(--ink); cursor: pointer;
}
.theme-toggle svg {
  position: absolute; width: 17px; height: 17px;
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}
.theme-toggle__sun { transform: translateY(130%) rotate(-90deg); opacity: 0; }
:root[data-theme='light'] .theme-toggle__moon { transform: translateY(-130%) rotate(90deg); opacity: 0; }
:root[data-theme='light'] .theme-toggle__sun { transform: none; opacity: 1; }
.theme-toggle:hover { border-color: var(--ink); }

.btn--small { min-height: 34px; padding: 0 14px; gap: 14px; font-size: 0.84rem; }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: none; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; width: 100%; }
.menu a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
  text-decoration: none;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open a:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open a:nth-child(3) { transition-delay: 0.12s; }
.menu a span { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu a b { font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }

/* ------------------------------------------------------------ Bausteine */

section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: var(--max); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.section-head {
  display: flex; align-items: baseline; gap: 20px;
  padding-bottom: 20px; margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.section-head__num { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 52px; padding: 0 20px;
  border: 1px solid rgba(var(--ink-rgb), 0.35); border-radius: var(--radius);
  background: none; color: var(--ink);
  font: 500 0.92rem/1 'Inter', sans-serif; text-decoration: none; cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: none; }
.btn { white-space: nowrap; }
.btn i { font-style: normal; transition: transform 0.5s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--bg); border-color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ------------------------------------------------------------ Hero */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.hero__title {
  margin: 24px 0 clamp(28px, 5vh, 56px);
  font-size: clamp(3.6rem, 13.5vw, 12.5rem);
  font-weight: 600; letter-spacing: -0.065em; line-height: 0.88;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; }
.line--accent > span {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 22%, var(--gold) 44%, var(--gold-deep) 72%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: -250% 50%; } }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__lead { max-width: 30ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ Laufband */

.marquee {
  position: relative; z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.55);
  padding: clamp(14px, 2vw, 22px) 0;
}
.marquee__track {
  display: flex; width: max-content; align-items: center; gap: clamp(18px, 2.4vw, 36px);
  font-size: clamp(1.8rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  white-space: nowrap; will-change: transform;
}
.marquee__track span:nth-of-type(even) { color: var(--faint); }
.marquee__track em { font-style: normal; font-weight: 400; color: var(--accent); }
.no-js .marquee__track, .reduced .marquee__track { animation: none; }

/* ------------------------------------------------------------ Projekte */

.projects { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.project { border-bottom: 1px solid var(--line); }
.project a {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 15rem) minmax(0, 13rem);
  gap: 20px;
  padding: clamp(20px, 2.6vw, 34px) 8px;
  text-decoration: none;
}
.project a::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.project a:hover::before, .project a:focus-visible::before { transform: scaleY(1); }
.project__num { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.project__name {
  display: flex; align-items: center; gap: 14px; justify-self: start;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  transition: transform 0.55s var(--ease), color 0.35s;
}
.project a:hover .project__name { transform: translateX(14px); color: var(--accent-text); }
.project__tag { font-size: 0.9rem; color: var(--muted); }
.project__url {
  justify-self: end; display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.86rem; color: var(--muted); transition: color 0.3s;
}
.project__url i { font-style: normal; display: inline-block; transition: transform 0.5s var(--ease); }
.project a:hover .project__url { color: var(--ink); }
.project a:hover .project__url i { transform: translate(3px, -3px); }

.badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 7px 4px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg);
}

/* Logo-Plättchen: in der Zeile nur am Telefon, am Rechner folgt es dem Zeiger. */
.project__plate {
  display: none;
  width: 56px; aspect-ratio: 1; border-radius: var(--radius);
  background: #111318; overflow: hidden;
  place-items: center; padding: 8px;
}
.project__plate img { width: 100%; height: 100%; object-fit: contain; }
.project__plate--light { background: #fff; }
.project__plate--cover { padding: 0; }
.project__plate--cover img { object-fit: cover; }
.project__plate--yko { background: #121517; display: none; gap: 2px; padding: 6px; }
.project__plate--yko svg { width: 46%; }
.project__plate--yko b { font-size: 0.72rem; letter-spacing: 0.12em; color: #e8e2d6; }

.preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(220px, 20vw, 300px); aspect-ratio: 1;
  pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.6);
  transition: opacity 0.35s var(--ease);
}
.preview.is-on { opacity: 1; }
.preview__inner {
  width: 100%; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px var(--shadow), 0 0 0 1px var(--line);
}
.preview__inner .project__plate { display: grid; width: 100%; height: 100%; padding: 18%; }
.preview__inner .project__plate--cover { padding: 0; }
.preview__inner .project__plate--yko { padding: 22%; gap: 10px; }
.preview__inner .project__plate--yko b { font-size: 1.6rem; }

/* ------------------------------------------------------------ Haltung */

.statement { padding-block: clamp(100px, 16vw, 220px); }
.statement__text {
  max-width: 18ch;
  font-size: clamp(2.2rem, 6.4vw, 5.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02;
}
.statement__text .w { opacity: 0.16; transition: opacity 0.25s linear; }
.statement__text .w.on { opacity: 1; }
.no-js .statement__text .w { opacity: 1; }

/* ------------------------------------------------------------ Leistungen */

.services__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.services__grid li {
  position: relative; overflow: hidden;
  padding: clamp(22px, 3vw, 40px);
  min-height: clamp(170px, 18vw, 240px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.45);
  transition: background-color 0.4s;
}
.services__grid li::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.services__grid li:hover { background: rgba(var(--ink-rgb), 0.035); }
.services__grid li:hover::after { transform: scaleX(1); }
.services__grid span { font-size: 0.78rem; color: var(--muted); }
.services__grid h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.services__grid p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------ Kontakt */

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.contact__lead { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; max-width: 16ch; }
.contact__mail {
  display: inline-block; margin-top: 24px;
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--ink); border-color: var(--ink); }

.form { display: grid; gap: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; padding-top: 22px; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 10px 0 12px;
  border: 0; border-bottom: 1px solid rgba(var(--ink-rgb), 0.25); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 400 16px/1.4 'Inter', sans-serif;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 0; top: 33px;
  font-size: 1rem; color: var(--muted); pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease), color 0.3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-28px) scale(0.78); color: var(--ink);
}
.field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.form__status { font-size: 0.92rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--error); }
.form__note { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.form__note a { color: var(--muted); }

/* ------------------------------------------------------------ Fuß */

.footer { padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); max-width: var(--max); margin-inline: auto; overflow: hidden; }
.footer__big {
  font: 700 clamp(2.6rem, 13.2vw, 12.5rem)/0.8 'Cinzel', serif;
  letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
  color: rgba(var(--ink-rgb), 0.07);
  transform: translateY(12%);
  user-select: none;
}
.footer__row {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.footer__row nav { display: flex; gap: 24px; }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--ink); }

/* ------------------------------------------------------------ Rechtsseiten */

.legal { max-width: 820px; padding-top: calc(var(--header-h) + 64px); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; margin: 56px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--body-text); margin-bottom: 12px; }
.legal a { color: var(--ink); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.legal .back { display: inline-block; margin-top: 40px; }
.legal-page .globe { opacity: 0.35; }

/* ------------------------------------------------------------ Einblenden */

.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.js.is-ready .hero__title .line > span { transform: none; }

/* ------------------------------------------------------------ Breiten */

@media (min-width: 761px) and (max-width: 1365px) {
  .project a { grid-template-columns: 2.5rem 52px minmax(0, 1fr) minmax(0, 13rem) minmax(0, 12rem); }
  .project__plate { display: grid; width: 52px; }
  .project__plate--yko b { font-size: 0.62rem; }
}

@media (max-width: 1080px) {
  .project a { grid-template-columns: 2.5rem 52px minmax(0, 1fr) minmax(0, 12rem); }
  .project__url { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero__title { letter-spacing: -0.06em; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .project a {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: 'plate name' 'plate tag';
    gap: 6px 16px; padding: 18px 0;
  }
  .project__num { display: none; }
  .project__plate { display: grid; grid-area: plate; }
  .project__name { grid-area: name; font-size: 1.55rem; flex-wrap: wrap; gap: 10px; }
  .project__tag { grid-area: tag; font-size: 0.85rem; }
  .project a:hover .project__name { transform: none; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid li { min-height: 0; gap: 18px; }
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 8px; }
  .form__foot .btn { width: 100%; }
  .footer__row { flex-direction: column; }
}

@media (min-width: 761px) { .menu { display: none; } }

@media (hover: none), (pointer: coarse) { .preview { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js .hero__title .line > span { opacity: 1; transform: none; }
}

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

/* Version steht im Quelltext (Fuß, <meta>, version.txt), wird aber nicht angezeigt. */
.version { display: none; }

/* ------------------------------------------------------------ Sprachwechsel */

.js [data-i18n] {
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease), transform 0.6s var(--ease);
}
.i18n-out { opacity: 0 !important; filter: blur(14px); transform: translateY(-0.8em); }
.i18n-enter { opacity: 0 !important; filter: blur(14px); transform: translateY(0.8em); transition: none !important; }
.i18n-scramble { font-variant-numeric: tabular-nums; }
.i18n-scramble .glyph { color: var(--gold); opacity: 0.85; }
.marquee { transition: opacity 0.45s var(--ease), filter 0.45s var(--ease); }
.marquee.i18n-out, .marquee.i18n-enter { opacity: 0; filter: blur(10px); }

/* Lichtlinie, die beim Sprachwechsel einmal über den Bildschirm fährt. */
.lang-sweep {
  position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--gold) 14%, transparent) 85%, var(--gold) 99%, transparent);
  transform: translateY(-160px);
  animation: sweep 1.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes sweep { to { transform: translateY(calc(100vh + 20px)); } }
