/* ============ Grundlegung ============ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk.woff2') format('woff2');
}

:root {
  --bg: #08090c;
  --bg-2: #0c0d11;
  --ink: #f4f5f7;
  --muted: rgba(244, 245, 247, .58);
  --line: rgba(244, 245, 247, .10);
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, .16);
  --radius: 20px;
  --pad: clamp(20px, 5vw, 44px);
  --maxw: 1180px;
  --font: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.65;
  letter-spacing: .004em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 3D-Bühne ============ */

/* Die Bühne bleibt beim Scrollen stehen: keine Verschiebung, kein Parallax.
   Der Inhalt darüber scrollt, der Hintergrund nicht. */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(255, 106, 0, .13), transparent 60%),
    radial-gradient(800px 500px at 8% 110%, rgba(255, 106, 0, .07), transparent 62%),
    var(--bg);
}

html.has-3d #stage { background: var(--bg); }

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s linear;
}

html.has-3d #bg-canvas { opacity: 1; }
html.no-js #bg-canvas { display: none; }

/* Falls WebGL ausbleibt: Sternfeld + Leuchten aus CSS */
.fallback-sky { display: none; }
body.no-3d .fallback-sky,
html.no-js .fallback-sky {
  display: block;
  position: absolute;
  inset: -20% -10%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.2px 1.2px at 34% 68%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.6px 1.6px at 58% 14%, rgba(255, 106, 0, .55), transparent),
    radial-gradient(1.2px 1.2px at 71% 52%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.4px 1.4px at 88% 76%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.2px 1.2px at 22% 88%, rgba(255, 106, 0, .4), transparent),
    radial-gradient(1.1px 1.1px at 46% 40%, rgba(255, 255, 255, .3), transparent);
  background-size: 42% 46%;
  animation: drift 90s linear infinite;
}

@keyframes drift {
  to { transform: translate3d(-42%, -46%, 0); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}

/* ============ Kopf ============ */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, padding .5s var(--ease);
}

/* Der Weichzeichner liegt auf einer eigenen Ebene: läge er direkt auf .top,
   würde .top zum Bezugspunkt für das fest positionierte Handy-Menü. */
.top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 9, 12, 0);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  backdrop-filter: blur(0) saturate(100%);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s;
}

.top.is-stuck::before {
  background: rgba(8, 9, 12, .78);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}

.top.is-stuck {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.02rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), #ffb072 60%, #7a2e00);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 22px rgba(255, 106, 0, .45);
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: rgba(8, 9, 12, .82);
}

.nav { display: flex; align-items: center; gap: 10px; }

.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color .3s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .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); }

.top-tools { display: flex; align-items: center; gap: 10px; position: relative; z-index: 45; }

.motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}

.motion:hover { color: var(--ink); border-color: rgba(255, 106, 0, .5); }

.motion-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.motion.is-off .motion-dot { background: rgba(255, 255, 255, .3); box-shadow: none; animation: none; }
.motion-label { display: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

.burger {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  position: relative;
}

.burger span, .burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}

.burger::before { top: 13px; }
.burger span { top: 18px; }
.burger::after { top: 23px; }

body.menu-open .burger::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger::after { transform: translateY(-5px) rotate(-45deg); }
body.menu-open .burger span { opacity: 0; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 45;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent), #ffbd8f);
  box-shadow: 0 0 14px rgba(255, 106, 0, .8);
}

/* ============ Hero ============ */

main { position: relative; z-index: 5; }

section { padding: clamp(76px, 11vh, 132px) var(--pad); }

.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: clamp(96px, 16vh, 160px);
  padding-bottom: clamp(60px, 10vh, 110px);
  perspective: 1400px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, .74);
  margin: 0 0 22px;
}

.eyebrow i {
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 12vw, 8.6rem);
  line-height: .86;
  font-weight: 700;
  letter-spacing: -.045em;
}

h1 .accent { color: var(--accent); }

.split { display: inline-block; }
.split .ch {
  display: inline-block;
  animation: letterIn 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes letterIn {
  from { opacity: 0; transform: translateY(1.05em) rotate(6deg); }
  to { opacity: 1; transform: none; }
}

.slogan {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}

.slogan b { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  --bg-btn: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-btn);
  color: #140800;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s;
  box-shadow: 0 10px 30px -12px rgba(255, 106, 0, .8);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px rgba(255, 106, 0, .9); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn svg { width: 17px; height: 17px; flex: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover { border-color: rgba(255, 106, 0, .6); box-shadow: none; }
.btn-ghost::before { display: none; }

/* Porträt mit Tiefenlage */

.portrait {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.portrait-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 106, 0, .07);
  aspect-ratio: 4 / 5;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}

.portrait:hover .portrait-frame img { transform: scale(1.12); }

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 12, .82) 100%);
}

.portrait-tag {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 9, 12, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
  transform: translateZ(0);
}

.portrait-tag b { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.portrait-tag em { color: var(--accent); font-style: normal; font-variant-numeric: tabular-nums; }

.chip {
  position: absolute;
  z-index: 3;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 0, .35);
  background: rgba(8, 9, 12, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .9);
  animation: float 7s ease-in-out infinite;
}

.chip-1 { top: 16px; left: 16px; }
.chip-2 { top: 40%; right: 14px; animation-delay: -2.4s; }
.chip-3 { bottom: 86px; left: 16px; animation-delay: -4.1s; }

@keyframes float {
  0%, 100% { translate: 0 -6px; }
  50% { translate: 0 10px; }
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 7vh, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.facts { display: flex; gap: clamp(22px, 4vw, 46px); flex-wrap: wrap; margin: 0; }

.facts div { min-width: 90px; }
.facts dt {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.facts dd small { font-size: .8rem; color: var(--accent); font-weight: 500; }

.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2.6s ease-in-out infinite; transform-origin: top; }

@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============ Typografie der Abschnitte ============ */

.sec-head { display: grid; gap: 14px; margin-bottom: clamp(34px, 5vh, 56px); }

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.95rem, 5.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 22ch;
}

.sec-head p { margin: 0; max-width: 62ch; color: var(--muted); }

.num {
  font-size: .76rem;
  letter-spacing: .2em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Einblenden beim Scrollen */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* ============ Funktionen ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  grid-column: span 2;
  padding: 30px 26px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s, background .5s;
  transform-style: preserve-3d;
}

.card:nth-child(1), .card:nth-child(2) { grid-column: span 3; }
.card:nth-child(7) { grid-column: span 6; }

.card::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  left: var(--gx, 50%);
  top: var(--gy, 0);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 106, 0, .22), transparent 62%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.card:hover { transform: translateY(-6px); border-color: rgba(255, 106, 0, .4); }
.card:hover::before { opacity: 1; }

.card-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 106, 0, .28);
  background: rgba(255, 106, 0, .08);
  color: var(--accent);
}

.card-ico svg { width: 26px; height: 26px; }

.card:hover .card-ico svg .dash { animation: dash 1.4s var(--ease) forwards; }

.dash { stroke-dasharray: 90; stroke-dashoffset: 0; }

@keyframes dash { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

.card h3 { margin: 0 0 8px; font-size: 1.14rem; letter-spacing: -.02em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: .74rem;
  letter-spacing: .14em;
  color: rgba(244, 245, 247, .28);
  font-variant-numeric: tabular-nums;
}

/* ============ Galerie ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  display: block;
  grid-column: span 2;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
  aspect-ratio: 3 / 2;
  transition: transform .7s var(--ease), border-color .5s;
}

.tile:nth-child(1) { grid-column: span 4; aspect-ratio: 16 / 9; }
.tile:nth-child(2) { grid-column: span 2; }
.tile:nth-child(5) { grid-column: span 3; aspect-ratio: 16 / 10; }
.tile:nth-child(6) { grid-column: span 3; aspect-ratio: 16 / 10; }

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(.82) brightness(.92);
}

.tile:hover img { transform: scale(1.09); filter: saturate(1.05) brightness(1); }
.tile:hover { border-color: rgba(255, 106, 0, .5); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(8, 9, 12, .88));
  font-size: .84rem;
  letter-spacing: .01em;
  transform: translateY(6px);
  opacity: .86;
  transition: transform .6s var(--ease), opacity .6s;
}

.tile:hover .tile-cap { transform: none; opacity: 1; }
.tile-cap em { font-style: normal; color: var(--accent); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(4, 5, 7, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lb-figure {
  position: relative;
  margin: 0;
  max-width: 1180px;
  width: 100%;
  transform: scale(.96) translateY(10px);
  transition: transform .6s var(--ease);
}

.lightbox.is-open .lb-figure { transform: none; }

.lb-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 72vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  perspective: 1200px;
  touch-action: pan-y;
}

.lb-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 106, 0, .25);
  border-top-color: var(--accent);
  opacity: 0;
  transition: opacity .25s;
}

.lb-stage.is-loading::after { opacity: 1; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.lb-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-style: preserve-3d;
  transition: transform .12s linear;
}

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.lb-bar h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.lb-bar p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }

.lb-nav { display: flex; align-items: center; gap: 8px; }

.lb-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}

.lb-btn:hover { border-color: rgba(255, 106, 0, .6); background: rgba(255, 106, 0, .12); transform: translateY(-2px); }
.lb-btn svg { width: 18px; height: 18px; }

.lb-close { position: absolute; top: -56px; right: 0; }
.lb-count { font-size: .78rem; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============ Fähigkeiten ============ */

.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.radar-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  overflow: hidden;
}

.radar-card canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .78rem;
  color: var(--muted);
}

.radar-legend li { display: flex; align-items: center; gap: 7px; }
.radar-legend b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.skill-list { list-style: none; margin: 0; padding: 0; }

.skill-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), background .5s;
}

.skill-list li:first-child { border-top: 1px solid var(--line); }
.skill-list li:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(255, 106, 0, .07), transparent 70%); }

.skill-name { font-weight: 600; letter-spacing: -.01em; }
.skill-note { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; margin-top: 2px; }

.skill-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.skill-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ffc59c);
  box-shadow: 0 0 12px rgba(255, 106, 0, .6);
  transition: width 1.2s var(--ease) .1s;
}

.is-in .skill-bar i { width: var(--w, 70%); }

.skill-pct { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .84rem;
  color: var(--muted);
  transition: transform .4s var(--ease), color .3s, border-color .3s, background .3s;
}

.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.tag:hover { transform: translateY(-3px); color: var(--ink); border-color: rgba(255, 106, 0, .5); background: rgba(255, 106, 0, .09); }

/* ============ Weg ============ */

.track { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.track li {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px clamp(18px, 3vw, 40px);
  padding: 26px 0 26px;
  border-top: 1px solid var(--line);
}

.track li:last-child { border-bottom: 1px solid var(--line); }

.track-when { font-size: .82rem; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 5px; }
.track-body h3 { margin: 0 0 6px; font-size: 1.16rem; letter-spacing: -.02em; }
.track-body p { margin: 0; color: var(--muted); max-width: 66ch; }

.track li::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width 1.1s var(--ease);
}

.track li.is-in::after { width: 100%; }

/* ============ Kontakt ============ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-side { display: grid; gap: 22px; align-content: start; }
.contact-side p { margin: 0; color: var(--muted); }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.meta-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.meta-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.meta-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.meta-list a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.meta-list span { color: var(--muted); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }

.field label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--accent); font-style: normal; }

.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 245, 247, .3); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255, 106, 0, .75);
  background: rgba(255, 106, 0, .05);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .12);
}

.field.has-error input, .field.has-error textarea { border-color: #ff4d4d; background: rgba(255, 77, 77, .06); }
.err { min-height: 1.1em; font-size: .82rem; color: #ff8f8f; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.privacy { margin: 0; font-size: .8rem; color: var(--muted); max-width: 42ch; }

.notice {
  display: none;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid;
  font-size: .94rem;
  line-height: 1.55;
}

.notice.is-on { display: flex; }
.notice.ok { border-color: rgba(255, 106, 0, .5); background: rgba(255, 106, 0, .1); color: var(--ink); }
.notice.bad { border-color: rgba(255, 77, 77, .5); background: rgba(255, 77, 77, .08); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Fuss ============ */

.foot {
  position: relative;
  z-index: 5;
  padding: 40px var(--pad) 46px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--muted);
  background: rgba(8, 9, 12, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.foot a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 9, 12, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease), border-color .3s;
}

.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(255, 106, 0, .6); }
.to-top svg { width: 18px; height: 18px; }

/* ============ Responsive ============ */

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card, .card:nth-child(1), .card:nth-child(2) { grid-column: span 2; }
  .card:nth-child(7) { grid-column: span 4; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .tile, .tile:nth-child(2) { grid-column: span 2; }
  .tile:nth-child(1), .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 4; aspect-ratio: 16 / 10; }
  .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .radar-card { max-width: 420px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 var(--pad);
    background: rgba(8, 9, 12, .96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .7s var(--ease), visibility .7s;
  }
  body.menu-open .nav { transform: none; visibility: visible; pointer-events: auto; }
  .nav a { font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; padding: 8px 0; color: var(--ink); opacity: .35; transition: opacity .5s var(--ease), color .3s; }
  body.menu-open .nav a { opacity: 1; transition-delay: calc(var(--i, 0) * 70ms + .1s); }
  .nav a::after { left: 0; right: 40%; }
  .burger { display: block; }
  .motion-label { display: none; }
  .hero { min-height: auto; padding-top: clamp(92px, 15vh, 120px); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait {
    order: 0;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .portrait-frame { width: 100%; }
  .chip { position: static; animation: none; }
  .track li { grid-template-columns: 1fr; }
  .track-when { padding-top: 0; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(1), .card:nth-child(2), .card:nth-child(7) { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile, .tile:nth-child(1), .tile:nth-child(2), .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .lb-stage { aspect-ratio: 4 / 3; max-height: 58vh; }
  .lb-close { top: -50px; }
  .hero-foot { gap: 26px; }
  .facts dd { font-size: 1.25rem; }
  section { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .split .ch { opacity: 1; transform: none; }
  .is-in .skill-bar i, .skill-bar i { width: var(--w, 70%); }
}
