/* ==========================================================================
   Portfolio-Sektionen unter dem Hero (V4)
   Stil angelehnt an die Vorlage: tiefschwarz, riesige Verlaufs-Headlines,
   Serif-Akzente, nummerierte Zeilen, Pills.
   ========================================================================== */

:root {
  --ink: #050505;
  --ink-2: #0b0b0e;
  --card: rgba(255, 255, 255, .045);
  --card-line: rgba(255, 255, 255, .1);
  --display: "Bricolage Grotesque", sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
}

html, body { height: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Während des Intros nicht scrollen (wie die Vorlage) */
html:not(.is-ready) body { overflow: hidden; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.label {
  margin: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- NAV über dem Inhalt ---------- */
.nav {
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .07);
}
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}
@media (max-width: 640px) {
  .nav__links a { display: none; }
  .nav__links a[data-nav="projekte"], .nav__links a[data-nav="kontakt"] { display: inline; }
}

/* ---------- Riesige Verlaufs-Headline ---------- */
.giant {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  font-size: clamp(4.5rem, 17vw, 13.5rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 10%, #c9c9d3 45%, #5e5e6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: .06em;
}
.giant--right { text-align: right; }

/* Buchstaben-Reveal (JS splittet in .w > .c) */
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split] .c {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(180deg, #ffffff 10%, #c9c9d3 45%, #5e5e6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(.9em) rotate(6deg);
  opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity .9s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
[data-split].is-in .c { transform: none; opacity: 1; }
/* Nach dem Split trägt jedes Zeichen seinen eigenen Verlauf */
[data-split].is-split { background: none; }

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

/* Stack-Laufband */
.stack {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: 2.4rem 0 3rem;
  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.stack .label { margin-bottom: 1.4rem; }
.stack__rows {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  gap: .7rem;
  width: max-content;
  will-change: transform;
}
.marquee__track span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: .85rem;
  font-weight: 500;
  color: #d4d4dc;
  white-space: nowrap;
}
.marquee__track span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}

/* ---------- LEISTUNGEN ---------- */
.services {
  background: var(--ink);
  padding-top: clamp(4rem, 9vw, 7rem);
}
.services__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.acc { border-top: 1px solid rgba(255, 255, 255, .18); }
.acc__row { border-bottom: 1px solid rgba(255, 255, 255, .18); position: relative; }
.acc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.acc__row:hover::before, .acc__row.is-open::before { opacity: 1; }

.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.2rem, 2.6vw, 1.9rem) var(--gutter);
  max-width: 1280px;
  margin-inline: auto;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.acc__num {
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.acc__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.75rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: transform .5s var(--ease-out);
}
.acc__btn:hover .acc__title { transform: translateX(.4rem); }
.acc__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: transform .5s var(--ease-out), border-color .3s, background .3s;
}
.acc__btn:hover .acc__icon { border-color: var(--line); }
.acc__row.is-open .acc__icon { transform: rotate(-90deg); background: #fff; color: #050505; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.acc__row.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner {
  overflow: hidden;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 1.2rem 3rem;
}
@media (min-width: 800px) {
  .acc__inner { grid-template-columns: 1fr 1fr; padding-left: calc(var(--gutter) + clamp(1rem, 4vw, 3rem) + 2.2rem); }
}
.acc__inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-size: .95rem;
  color: #d4d4dc;
}
.acc__inner li { display: flex; gap: .7rem; align-items: baseline; }
.acc__inner li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--accent); translate: 0 -.1em; }
.acc__inner p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .98rem; }
.acc__inner .pill { justify-self: start; }
.acc__inner > :last-child { margin-bottom: 2rem; }
@media (min-width: 800px) { .acc__inner > * { margin-bottom: 2.2rem; } }

/* ---------- Pills (Erweiterung) ---------- */
.pill { gap: .5rem; font-style: normal; }
.pill--light { background: #f1efe9; color: #0a0a0a; border-color: #f1efe9; font-weight: 500; }
.pill--light:hover { background: #fff; color: #000; border-color: #fff; }
.pill--light svg { transition: transform .3s var(--ease-out); }
.pill--light:hover svg { transform: rotate(45deg); }
.pill--lg { min-height: 52px; padding: 0 1.6rem; font-size: 1rem; }

/* ---------- PROJEKTE ---------- */
.work {
  background: var(--ink);
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}
.work__head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 1000px) { .work__head { grid-template-columns: 7fr 4fr; } }

.mixed {
  margin: 0;
  line-height: .9;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .25em;
}
.mixed__bold {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #fff 15%, #6c6c78 110%);
  -webkit-background-clip: text;
  background-clip: text;
}
.mixed__serif {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 8.5vw, 7rem);
  color: #e9e7e1;
}
.work__intro p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.65; }

/* Gestapelte Projektkarten: jede Karte klebt oben, die nächste schiebt sich darüber */
.pcards { display: grid; gap: 4vh; }
.pcard {
  position: relative;
  --p: 0;
}
@media (min-height: 640px) and (min-width: 700px) {
  .pcard { position: sticky; top: calc(5.5rem + var(--i) * 1.1rem); }
}
@media (min-height: 760px) and (max-width: 699px) {
  .pcard { position: sticky; top: calc(4.5rem + var(--i) * .7rem); }
}

.pcard__inner {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding: 1rem 1rem 1.6rem;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(var(--c), .2), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(var(--c), .07), transparent 60%),
    #0c0c0f;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * .06));
  filter: brightness(calc(1 - var(--p) * .55));
  will-change: transform, filter;
}
/* feines Raster im Hintergrund */
.pcard__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.pcard__body { position: relative; order: 2; padding: 0 .4rem; display: flex; flex-direction: column; align-items: flex-start; }
.pcard__media { position: relative; order: 1; display: block; }

@media (min-width: 900px) {
  .pcard__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(1.4rem, 2.4vw, 2rem);
    padding-left: clamp(2rem, 3.6vw, 3.2rem);
  }
  .pcard__body { order: 1; padding: 0; }
  .pcard__media { order: 2; }
}

.pcard__meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.2rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pcard__num {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(var(--c), .16);
  color: rgb(var(--c));
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.pcard__num i { font-style: normal; opacity: .55; }

.pcard__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.pcard__title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1em;
  color: #e9e7e1;
}
.pcard__body p { margin: 0 0 1.3rem; color: #a9a9b4; line-height: 1.65; max-width: 30rem; }
.pcard__tags { list-style: none; margin: 0 0 1.7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pcard__tags li {
  font-size: .74rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #c7c7d0;
}

/* Browser-Rahmen: alle Previews exakt gleich gross (16:10, oben verankert) */
.browser {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #17171b;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }
.browser__bar b {
  margin: 0 auto;
  padding: .2rem .9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font-size: .66rem;
  font-weight: 500;
  color: #7d7d88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.browser__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.browser__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out), object-position 3s var(--ease-in-out);
}
.pcard__media:hover .browser__shot img { transform: scale(1); }

/* ---------- Weitere Projekte (mit Bildvorschau am Cursor) ---------- */
.more { position: relative; margin-top: clamp(5rem, 10vw, 8rem); }
.more .label { margin-bottom: 1rem; }
.more__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.more__list a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: padding .5s var(--ease-out), color .3s;
}
.more__list span { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 2.2rem); letter-spacing: -.025em; transition: color .3s; }
.more__list em { font-style: normal; font-size: .82rem; color: var(--muted); }
.more__list svg { color: var(--muted); transition: transform .4s var(--ease-out), color .3s; }
.more__list a:hover { padding-left: 1rem; }
.more__list a:hover svg { transform: rotate(45deg); color: #fff; }
.more__list:hover a:not(:hover) span { color: rgba(255, 255, 255, .3); }
@media (max-width: 560px) {
  .more__list a { grid-template-columns: 1fr auto; }
  .more__list em { grid-row: 2; font-size: .75rem; margin-top: -.6rem; }
}
.more__preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 300px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) translate(-50%, -50%) scale(.6) rotate(var(--rot, 0deg));
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.more__preview.is-on { opacity: 1; transform: translate3d(var(--mx, 0), var(--my, 0), 0) translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); }
.more__preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (hover: none) { .more__preview { display: none; } }

/* ---------- ÜBER MICH ---------- */
.about { position: relative; background: var(--ink); padding-top: clamp(4rem, 9vw, 7rem); overflow: clip; }

/* Riesiges Namens-Laufband, läuft mit dem Scroll */
.namebar { display: grid; gap: .2em; font-size: clamp(3.6rem, 11vw, 10rem); margin-bottom: clamp(2rem, 6vw, 4rem); }
.namebar__row {
  display: flex;
  align-items: center;
  width: max-content;
  gap: .35em;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.namebar__row--outline span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); }
.namebar__row--solid span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  color: #e9e7e1;
}
.namebar__row b {
  flex: none;
  width: .32em;
  height: .32em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .4em rgba(var(--accent-rgb), .7);
}
.namebar__row--outline b { background: transparent; border: 2px solid rgba(var(--accent-rgb), .8); box-shadow: none; }

/* Manifest: ruhiges Zwei-Spalten-Layout, Text leuchtet Wort für Wort auf */
.manifest { position: relative; height: 240vh; }
.manifest__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.manifest__aura {
  position: absolute;
  right: -20vmax;
  top: 50%;
  width: 80vmax;
  height: 80vmax;
  translate: 0 -50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent);
  filter: blur(40px);
  opacity: calc(.3 + var(--mp, 0) * .7);
  pointer-events: none;
}
.manifest__grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .manifest__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6rem); }
}

.manifest__side { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; }
.manifest__side .label { grid-column: 1 / -1; margin-bottom: .6rem; }
.manifest__photo {
  margin: 0;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
}
.manifest__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(calc(1 - var(--mp, 0)));
  transform: scale(calc(1.12 - var(--mp, 0) * .12));
}
.manifest__caption { margin: 0; font-weight: 600; font-size: .95rem; }
.manifest__caption span { display: block; margin-top: .2rem; font-weight: 400; font-size: .8rem; color: var(--muted); }

@media (min-width: 900px) {
  .manifest__side { grid-template-columns: 1fr; gap: 0; align-self: center; }
  .manifest__side .label { margin-bottom: 1.4rem; }
  .manifest__photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; }
  .manifest__caption { margin-top: 1.1rem; }
}

.manifest__text {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: max(1.4rem, min(3vw, 5vh));
  line-height: 1.28;
  letter-spacing: -.022em;
}
.manifest__text .mw { color: rgba(255, 255, 255, .16); transition: color .5s var(--ease-out); }
.manifest__text .mw.is-lit { color: #f4f4f6; }
.manifest__text em { font-style: normal; }
.manifest__text em .mw.is-lit { color: var(--accent-soft); }

.manifest__foot { display: flex; align-items: center; gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.manifest__bar { flex: 1; max-width: 16rem; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.manifest__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--mp, 0)); }
.manifest__count { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.manifest__count i { font-style: normal; color: #fff; }

/* Zahlen, die wie ein Kilometerzähler hochrollen */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 1.5rem;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.3rem; }
.fact p { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 15rem; }
.odo {
  display: inline-flex;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #f4f4f6;
}
.odo__col { display: inline-block; height: 1.15em; overflow-x: visible; overflow-y: clip; }
.odo__strip {
  display: flex;
  flex-direction: column;
  transition: transform 2.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
.odo__strip span { display: block; height: 1.15em; line-height: 1.15em; }
.odo__suffix { color: var(--accent-soft); }

/* ---------- WERDEGANG (horizontal gepinnt) ---------- */
.path { position: relative; background: var(--ink); }
.path__pin { position: relative; }
.path__inner { padding: clamp(4rem, 9vw, 6rem) 0; }
.path__intro { padding-inline: var(--gutter); max-width: 30rem; margin-bottom: 2.5rem; }
.path__intro .label { margin-bottom: 1rem; }
.path__title {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.path__title em { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: 0; color: #e9e7e1; }
.path__sub { margin: 0 0 1.6rem; color: var(--muted); line-height: 1.65; }

.path__track {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 1rem;
}
.station {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-line);
}
.station--now {
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .04) 60%), var(--card);
  border-color: rgba(var(--accent-rgb), .4);
}
.station__when { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.station h3 {
  margin: .9rem 0 .35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.station__role { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.3rem; color: #e9e7e1; }
.station__where { margin: .25rem 0 1.2rem; font-size: .82rem; color: var(--muted); }
.station ul { margin: 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--card-line); display: grid; gap: .45rem; font-size: .88rem; color: #c7c7d0; }
.station li { display: flex; gap: .6rem; }
.station li::before { content: "—"; color: var(--accent); }
.station__badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.station__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fd38a; box-shadow: 0 0 0 4px rgba(47, 211, 138, .18); }
.path__bar { display: none; }

@media (min-width: 900px) {
  .path.is-pinned { height: var(--path-h, 300vh); }
  .path.is-pinned .path__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .path.is-pinned .path__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 0 0 var(--gutter);
    transform: translateX(var(--path-x, 0px));
    will-change: transform;
  }
  .path.is-pinned .path__intro { flex: none; width: 24rem; padding: 0; margin: 0; }
  .path.is-pinned .path__track { display: flex; gap: 1.2rem; padding: 0 var(--gutter) 0 0; }
  .path.is-pinned .station { flex: none; width: 23rem; min-height: 25rem; padding: 2rem 1.9rem; }
  .path.is-pinned .path__bar {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 3rem;
    height: 2px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden;
  }
  .path__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform-origin: 0 50%; transform: scaleX(var(--path-p, 0)); }
}

/* ---------- KONTAKT ---------- */
.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.contact__bg {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(35% 30% at 78% 65%, rgba(47, 211, 165, .14), transparent 70%),
    radial-gradient(30% 30% at 60% 20%, rgba(255, 61, 113, .1), transparent 70%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(4%, -3%, 0) rotate(8deg); }
}

.contact__grid {
  flex: 1;
  display: grid;
  gap: 3rem;
  align-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1.2fr .8fr; gap: 6rem; align-items: center; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.6rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #d4d4dc;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #2fd38a; box-shadow: 0 0 0 0 rgba(47, 211, 138, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(47, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 138, 0); } }

.contact__title {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.045em;
  color: transparent;
  background: linear-gradient(180deg, #fff 20%, #6c6c78 120%);
  -webkit-background-clip: text;
  background-clip: text;
}
.contact__sub { margin: 0 0 2.2rem; max-width: 32rem; color: #b9b9c4; font-size: 1.05rem; line-height: 1.65; }
.contact__btns { display: flex; flex-wrap: wrap; gap: .7rem; }

.contact__card {
  border-radius: 24px;
  padding: 1.8rem;
  background: rgba(20, 20, 24, .55);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  gap: 1.5rem;
}
.contact__item .label { display: block; margin-bottom: .45rem; font-size: .62rem; }
.contact__item p, .contact__item a { margin: 0; font-size: 1.02rem; color: #f1f1f4; overflow-wrap: anywhere; }
.contact__item a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact__social { display: flex; gap: .55rem; }
.contact__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
.contact__social a:hover { background: #fff; color: #000; border-color: #fff; text-decoration: none; transform: translateY(-2px); }
.contact__hobbies { color: #c7c7d0 !important; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot a:hover { color: #fff; }

/* Reduzierte Bewegung: alles sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-split] .c { opacity: 1 !important; transform: none !important; }
  .contact__bg { animation: none; }
}

/* ---------- Design-Umschalter (Neu | Klassisch) ---------- */
.nav__links { margin-left: auto; }
.design-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.design-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.design-switch a:hover { color: var(--text); }
.design-switch a[aria-current] { background: #f1efe9; color: #0a0a0a; }
@media (max-width: 640px) {
  .design-switch a { padding: 0 .65rem; font-size: .66rem; }
}
/* Auf dem Handy ersetzt der Umschalter die Links (Kontakt-Button sitzt im Hero) */
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ---------- Schrift-Akzente ohne dritte Schriftart ----------
   Früher Serif-Kursiv; jetzt dieselbe Display-Schrift, nur leicht und in Akzentfarbe. */
.mixed__serif,
.pcard__title em,
.path__title em,
.namebar__row--solid span {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--accent-soft);
}
.pcard__title em { font-size: 1em; }
.mixed__serif { font-size: clamp(2.6rem, 8vw, 6.5rem); text-transform: uppercase; }
.namebar__row--solid span { text-transform: uppercase; color: #ececf1; }
.station__role { font-family: inherit; font-style: normal; font-weight: 600; font-size: 1rem; color: var(--accent-soft); }

/* ---------- Colorpicker (später nur für Admins) ---------- */
.admin-tools {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
}
.theme-fab {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .2s;
}
.theme-fab:hover { transform: scale(1.06); border-color: rgba(255, 255, 255, .3); }
.theme-fab__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 50%, var(--accent-soft) 0);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
}
.theme-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + .7rem);
  width: min(272px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 17, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  font-size: .85rem;
  animation: panelIn .35s var(--ease-out);
}
.theme-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.theme-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; font-weight: 600; }
.theme-panel__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  cursor: pointer;
}
.theme-panel__close:hover { color: #fff; }
.theme-panel__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .9rem; }
.swatch {
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--sw);
  cursor: pointer;
  transition: transform .2s var(--ease-out), border-color .2s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.theme-panel__custom {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.theme-panel__custom input {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.theme-panel__custom input::-webkit-color-swatch-wrapper { padding: 0; }
.theme-panel__custom input::-webkit-color-swatch { border: 0; border-radius: 8px; }
.theme-panel__custom input::-moz-color-swatch { border: 0; border-radius: 8px; }
.theme-panel__custom span { flex: 1; }
.theme-panel__custom code { font: 500 .78rem/1 Inter, sans-serif; color: var(--muted); }
.theme-panel__reset {
  width: 100%;
  min-height: 40px;
  margin-top: .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.theme-panel__reset:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
