:root {
  --bg: #121110;
  --soft: #1d1a18;
  --ink: #f4efe8;
  --muted: rgba(244,239,232,.6);
  --line: rgba(255,255,255,.12);
  --accent: #ff6a4d;
  --n1: #ff6a4d; --n2: #ffd23f; --n3: #3df5c4; --n4: #7b8cff; --n5: #ff5fa2; --n6: #a6ff4d;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }

/* Glühende Farbwolken im Hintergrund – wie auf der Projekt-Bühne */
body::before, body::after {
  content: ''; position: fixed; z-index: -1; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  filter: blur(110px); opacity: .28; pointer-events: none;
  animation: glow-drift 20s ease-in-out infinite alternate;
}
body::before { background: #ff4d2e; top: -25vw; left: -20vw; }
body::after { background: #3d5afe; bottom: -30vw; right: -20vw; animation-delay: -10s; }
@keyframes glow-drift { to { transform: translate(8vw, 6vw) scale(1.15); } }

/* Blaue Lichtschleier zwischen den Abschnitten – mal rechts, mal links */
.haze { position: relative; height: 0; z-index: -1; pointer-events: none; }
.haze::before {
  content: ''; position: absolute; top: 0; width: 64vw; aspect-ratio: 1; transform: translateY(-50%);
  background: radial-gradient(circle closest-side, rgba(61, 90, 254, .3), rgba(61, 90, 254, .1) 55%, transparent);
  animation: haze-drift 22s ease-in-out infinite alternate;
}
.haze.r::before { right: -26vw; }
.haze.l::before { left: -26vw; animation-delay: -11s; }
@keyframes haze-drift { to { transform: translate(3vw, calc(-50% + 4vw)) scale(1.08); } }
@media (max-width: 720px) { .haze::before { width: 110vw; } .haze.r::before { right: -55vw; } .haze.l::before { left: -55vw; } }
@media (prefers-reduced-motion: reduce) { .haze::before { animation: none; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, 88vw); margin: 0 auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 17, 16, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: .01em;
  display: flex; align-items: center; gap: .7rem;
}
.logo .mark { width: 9px; height: 9px; border: 1px solid var(--accent); transform: rotate(45deg); transition: background .4s, box-shadow .4s; }
.logo:hover .mark { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav ul { display: flex; gap: 2.6rem; list-style: none; }
.nav ul a {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); transition: color .3s; position: relative;
}
.nav ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav ul a[aria-current]::after, .nav ul a:hover::after { transform: scaleX(1); }

/* Typo */
.eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: #ffb199; margin-bottom: 1.6rem; font-weight: 500;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 7.6vw, 6.8rem);
  line-height: .98; letter-spacing: -.02em;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em;
}
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
h4 {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 1rem;
}
.lead { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }

/* Intro (Unterseiten) */
.intro { padding: 7rem 0 4.5rem; position: relative; }
.intro .lead { margin-top: 2rem; }
.intro h1 { font-size: clamp(3.2rem, 8.4vw, 7.6rem); line-height: .92; }
.intro h1 em { text-shadow: 0 0 40px rgba(255,106,77,.45); }
.intro::after {
  content: ''; position: absolute; right: 0; top: 5rem; width: clamp(120px, 18vw, 240px); aspect-ratio: 1;
  border: 1.5px dashed var(--accent); border-radius: 50%; opacity: .45; pointer-events: none;
  animation: intro-spin 26s linear infinite;
}
@keyframes intro-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .intro::after { width: 90px; top: 2.5rem; } }

/* Links & Buttons */
.link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link[hidden] { display: none; }
.link span { transition: transform .4s var(--ease); }
.link:hover span { transform: translateX(4px); }
.btn, button {
  font: inherit; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent); cursor: pointer;
  padding: 1.05rem 2.3rem; border-radius: 999px; display: inline-block;
  box-shadow: 0 14px 40px -16px var(--accent);
  transition: background .4s, color .4s, transform .4s var(--ease), box-shadow .4s;
}
.btn:hover, button:hover { background: transparent; color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), 0 0 30px -6px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--n3); color: var(--n3); box-shadow: 0 0 26px -8px var(--n3); }

/* Section */
.section { padding: 7rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }

/* Werk-Karten */
.work { --c: var(--n1); display: block; cursor: pointer; }
.work:nth-child(6n+2) { --c: var(--n2); }
.work:nth-child(6n+3) { --c: var(--n3); }
.work:nth-child(6n+4) { --c: var(--n4); }
.work:nth-child(6n+5) { --c: var(--n5); }
.work:nth-child(6n+6) { --c: var(--n6); }
.work .frame {
  overflow: hidden; background: var(--soft); position: relative; isolation: isolate; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px var(--c);
  transition: box-shadow .6s, border-radius .8s var(--ease);
}
.work .frame::after {
  content: ''; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: .8; transition: opacity .7s; pointer-events: none;
}
.work img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform 1.4s var(--ease), filter .8s;
}
.work:hover .frame { border-radius: 4px; box-shadow: 0 0 0 2px var(--c), 0 40px 80px -30px var(--c); }
.work:hover .frame::after { opacity: 0; }
.work:hover img { transform: scale(1.04); filter: none; }
.work:focus-visible { outline: 2px dashed var(--c); outline-offset: 8px; }
.work .meta h3 { transition: color .4s; }
.work:hover .meta h3 { color: var(--c); }
.work .tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  background: var(--bg); color: var(--c); border: 1px solid var(--c); padding: .35rem .7rem; border-radius: 999px;
}
.work .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.work .meta small { font-size: .74rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.work .tools { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(18,17,16,.96); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 4vh 6vw;
  opacity: 0; pointer-events: none; transition: opacity .5s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 3.5rem; align-items: center; max-width: 1200px; width: 100%; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; transform: scale(.98); transition: transform .7s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption h3 { font-size: 2rem; margin-bottom: 1rem; }
.lightbox figcaption p { color: var(--muted); margin-bottom: 1.6rem; }
.lightbox figcaption dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; font-size: .88rem; margin-bottom: 2rem; }
.lightbox dt { color: var(--muted); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding-top: .2rem; }
.lightbox .close {
  position: absolute; top: 1.6rem; right: 1.8rem; background: none; border: 0; color: var(--ink);
  padding: .5rem; font-size: .74rem; letter-spacing: .2em;
}
.lightbox .close { box-shadow: none; }
.lightbox .close:hover { transform: none; color: var(--accent); background: none; box-shadow: none; }

/* Formular */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2.4rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: .4rem;
}
input, select, textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: .6rem 0; outline: none; border-radius: 0;
  transition: border-color .4s;
}
textarea { resize: vertical; min-height: 7rem; }
select option { background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent), 0 10px 20px -16px var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.4rem 0; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
footer a { transition: color .3s; }
footer a:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav ul { gap: 1.4rem; }
  .intro { padding: 4.5rem 0 3rem; }
  .section { padding: 5rem 0; }
  form { grid-template-columns: 1fr; }
  .lightbox figure { grid-template-columns: 1fr; gap: 1.6rem; }
  .lightbox img { max-height: 55vh; }
}
@media (max-width: 560px) {
  .nav { height: 72px; }
  .nav ul { gap: 1rem; }
  .nav ul a { font-size: .66rem; letter-spacing: .14em; }
  .logo { font-size: 1.25rem; }
  .logo .mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
