@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #000000;
  --ink-2: #545454;
  --muted: #828282;
  --line: #ebebeb;
  --frame: 1080px;
  --pad: 44px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; color-scheme: light; }
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p, figcaption { text-wrap: pretty; }

/* Tastatur-Fokus sichtbar, aber nicht bei Mausklick */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.footer :focus-visible { outline-color: #fff; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus-visible { transform: none; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* Rahmen mit den feinen vertikalen Linien */
.frame {
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Typografie ---------- */
.display { font-size: 72px; line-height: .95; letter-spacing: -.03em; font-weight: 500; }
.h1 { font-size: 48px; line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.h2 { font-size: 64px; line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.muted { color: var(--muted); }
.lead { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; max-width: 480px; }
.label, .small-label { font-size: 14px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 56px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; letter-spacing: -.02em; }
.text-link svg { order: 2; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translate(2px,-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 20px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 24px);
  z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 6px 6px 6px 12px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; letter-spacing: -.02em;
  transition: gap .5s var(--ease), padding .5s var(--ease);
}
.nav-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding-right: 30px; }
.nav-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 4px; overflow: hidden; max-width: 320px;
  transition: max-width .5s var(--ease), opacity .3s; }
.nav-links a { padding: 10px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.nav-links a:hover { background: #f2f2f2; }
.nav-links .nav-cta { background: #f2f2f2; }
.nav-links .nav-cta:hover { background: #e8e8e8; }
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 12px 10px; gap: 3px; }
.nav-toggle i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .35; }
.nav-toggle i:first-child { opacity: 1; }

.nav.is-compact .nav-links { max-width: 0; opacity: 0; visibility: hidden; transition: max-width .5s var(--ease), opacity .3s, visibility 0s .5s; }
.nav.is-compact { gap: 0; }
.nav.is-compact .nav-toggle { display: flex; }
.nav.is-compact.is-open .nav-links { max-width: 320px; opacity: 1; visibility: visible; transition: max-width .5s var(--ease), opacity .3s; }
.nav-links a[aria-current="page"] { background: #f2f2f2; }
.nav.is-compact.is-open .nav-toggle i { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  padding: 120px var(--pad) 140px;
  min-height: 720px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-bottom: 18px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 12px; font-weight: 600; letter-spacing: -.02em;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #22c55e; opacity: .35;
  animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }
.hero .lead { margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: #000; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.02em;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.btn:active { transform: translateY(0) scale(.98); }

/* Kartenstapel rechts oben: 3D-Perspektive, Karten reihen sich nach hinten */
.stack {
  position: relative; height: 420px; margin-top: -40px;
  perspective: 1100px; perspective-origin: 30% 50%;
  transform-style: preserve-3d;
  --step: 100px;
}
.stack:hover { --step: 135px; }
.stack-card {
  position: absolute; top: 30px; left: 40px;
  width: 280px; aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden; background: #ddd;
  box-shadow: -18px 24px 50px rgba(0,0,0,.28);
  transform-origin: 50% 50%;
  transition: transform 1s var(--ease), opacity .8s, filter .8s;
  opacity: 0;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card { cursor: pointer; display: block; }
.stack-label {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: #fff; font-size: 16px; letter-spacing: -.02em; line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease);
}
.stack-label small { display: block; font-size: 11px; font-weight: 600; opacity: .85; margin-top: 3px; }
.stack-card::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0; transition: opacity .5s; pointer-events: none; }
.stack-card[data-pos="0"] .stack-label, .stack-card[data-pos="0"]::after { opacity: 1; transform: none; }
.stack-label { z-index: 1; }
.stack-dots { display: flex; gap: 8px; padding-left: 52px; margin-top: 4px; }
.stack-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #d4d4d4; cursor: pointer;
  transition: width .4s var(--ease), background .3s; }
.stack-dot:hover { background: #a3a3a3; }
.stack-dot.is-active { width: 26px; background: var(--ink); }
.stack-dots { align-items: center; }
.stack-pause { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.stack-pause:hover { background: #ececec; color: var(--ink); }
.stack-pause .i-play, .stack-pause[aria-pressed="true"] .i-pause { display: none; }
.stack-pause[aria-pressed="true"] .i-play { display: inline; }
.stack-card[data-pos="0"] { z-index: 4; opacity: 1; transform: translateX(0) translateZ(0) rotateY(-28deg); }
.stack-card[data-pos="1"] { z-index: 3; opacity: 1; transform: translateX(var(--step)) translateZ(-110px) rotateY(-28deg); filter: brightness(.82); }
.stack-card[data-pos="2"] { z-index: 2; opacity: 1; transform: translateX(calc(var(--step) * 2)) translateZ(-220px) rotateY(-28deg); filter: brightness(.66); }
.stack-card[data-pos="3"] { z-index: 1; opacity: 0; transform: translateX(calc(var(--step) * 3)) translateZ(-330px) rotateY(-28deg); filter: brightness(.5); }
.stack-card.is-leaving { z-index: 5; opacity: 0; transform: translateX(-180px) translateZ(120px) rotateY(-28deg); }
.stack:not(.is-ready) .stack-card { opacity: 0; transform: translateX(260px) translateZ(-400px) rotateY(-28deg); }

/* ---------- Sektionen ---------- */
.section { padding: 100px var(--pad); border-top: 1px solid var(--line); position: relative; }
.section::before { /* Trennlinie über die ganze Breite */
  content: ""; position: absolute; top: -1px; left: 50%; width: 100vw; transform: translateX(-50%);
  border-top: 1px solid var(--line);
}
#work { border-top: 0; padding-top: 0; }
#work::before { display: none; }
.section > .h2 { margin-bottom: 56px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.card { display: block; }
.card-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 16px; }
.card-info h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }
.card-info p { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; margin-top: 2px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; padding-top: 5px; transition: color .2s; }
.card:hover .card-link { color: var(--ink); }

/* Leistungen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 140px; padding-bottom: 140px; }
.split .h2 { margin-bottom: 0; }
.small-title { font-size: 18px; letter-spacing: -.02em; margin: 56px 0 16px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; }
.tool {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--surface); border-radius: 9px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.tool:hover { transform: translateY(-3px); }
.tool-txt { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #000; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0; }
.services { display: flex; flex-direction: column; gap: 22px; padding-left: 20px; }
.service { display: flex; align-items: center; gap: 14px; font-size: 22px; line-height: 1.4; letter-spacing: -.03em; }
.service-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #000; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
}

/* Über mich */
.about { display: grid; grid-template-columns: 370px 1fr; gap: 64px; margin-top: 8px; }
.portrait { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; aspect-ratio: 370 / 410; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-name { font-size: 18px; letter-spacing: -.02em; margin-top: 16px; }
.about-role { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.about-text { display: flex; flex-direction: column; gap: 30px; }
.about-text p { font-size: 22px; line-height: 1.4; letter-spacing: -.03em; }

.social { display: flex; gap: 8px; }
.social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease); }
.social a:hover { transform: translateY(-2px); }
.social-overlay { position: absolute; right: 14px; bottom: 14px; }
.social-overlay a { color: #fff; width: 24px; height: 24px; }
.social-dark a { background: #fff; color: #000; }

/* ---------- Unterseiten ---------- */
.page-head { padding: 160px var(--pad) 80px; }
.page-head .lead { margin-top: 24px; }
.project-head { max-width: calc(576px + 2 * var(--pad)); margin: 0 auto; padding: 150px var(--pad) 100px; }
.meta { display: flex; gap: 32px; margin: 32px 0 30px; font-size: 12px; font-weight: 600; letter-spacing: -.02em; }
.meta div { display: flex; gap: 10px; }
.meta dt { color: var(--ink-2); }
.meta dd { margin: 0; }
.project-text { display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }
.project-head .small-label { margin-top: 36px; font-size: 12px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { font-size: 12px; font-weight: 600; padding: 7px 12px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
.project-head .text-link { margin-top: 36px; }

.blocks { display: flex; flex-direction: column; gap: 56px; }
.block { margin: 0; }
.media { border-radius: var(--radius); overflow: hidden; background: #eee; }
.media img, .media video { width: 100%; height: auto; }
.media video { background: #000; }
.media-vertical { max-width: 420px; margin: 0 auto; }
.sheet { max-width: 820px; margin: 0 auto; background: #fff; }
.sheet img { width: 100%; margin-top: -1px; }
.sheet img:first-child { margin-top: 0; }
.media-row .media-vertical { max-width: none; }
.media-row:has(.media-vertical) { max-width: 852px; margin: 0 auto; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-row .media img { height: 100%; object-fit: cover; }
.block figcaption { max-width: 576px; margin: 22px auto 0; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; color: var(--ink-2); }

.legal h2 { font-size: 18px; letter-spacing: -.02em; margin: 40px 0 10px; font-weight: 500; }
.legal p { font-size: 15px; line-height: 1.6; color: #333; font-weight: 400; }
.legal a { text-decoration: underline; }

.notfound { min-height: 60vh; }
.notfound .small-label { margin-bottom: 16px; }
.notfound-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.notfound-links .btn { padding: 12px 20px; }

/* ---------- Footer ---------- */
.footer { background: #0a0a0a; color: #fff; overflow: hidden; }
.footer-inner { max-width: var(--frame); margin: 0 auto; padding: 72px var(--pad) 40px; }
.footer-title { font-size: 72px; line-height: .95; letter-spacing: -.03em; font-weight: 500; }
.ft-line { display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; }
.ft-muted { display: block; color: var(--muted); }
.words { position: relative; display: inline-grid; color: var(--muted); }
.word { grid-area: 1 / 1; opacity: 0; filter: blur(10px); transform: translateY(40%);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); }
.word.is-active { opacity: 1; filter: blur(0); transform: none; }
.word.is-out { opacity: 0; filter: blur(10px); transform: translateY(-40%); }
.footer-contact { display: grid; grid-template-columns: 340px 1fr; margin-top: 48px; padding-bottom: 28px; border-bottom: 1px solid #333; }
.footer-contact .label, .footer-meta .label { margin-bottom: 10px; font-size: 12px; }
.footer-mail { font-size: 18px; letter-spacing: -.02em; }
.footer-meta { display: grid; grid-template-columns: 340px 1fr auto; margin-top: 28px; font-size: 12px; font-weight: 600; }
.footer-meta div a { margin-right: 14px; transition: opacity .2s; }
.footer-meta div a:hover { opacity: .6; }
.copy { align-self: end; color: var(--muted); }
.footer-giant {
  font-size: min(23vw, 330px); line-height: .78; font-weight: 500; letter-spacing: -.03em;
  text-align: center; margin-top: 60px; margin-bottom: -.12em; white-space: nowrap;
}

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; filter: blur(8px); transform: translateY(24px);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .frame { border: 0; }
}
@media (max-width: 991px) {
  .display, .footer-title { font-size: 56px; }
  .h2 { font-size: 48px; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; min-height: 0; padding-bottom: 80px; }
  .stack-wrap { margin: 50px auto 0; width: 100%; max-width: 480px; }
  .stack { margin: 0; height: 400px; }
  .stack-card { left: 30px; }
  .split { grid-template-columns: 1fr; gap: 64px; padding-top: 100px; padding-bottom: 100px; }
  .services { padding-left: 0; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-card { max-width: 370px; }
}
@media (max-width: 767px) {
  :root { --pad: 16px; }
  .display, .footer-title { font-size: 44px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 38px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section > .h2 { margin-bottom: 36px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { overflow: clip; }
  .nav { top: 12px; gap: 4px; padding: 5px; font-size: 13px; }
  .nav-brand { padding-right: 2px; }
  .nav-brand span { display: none; }
  .nav-links a { padding: 9px 9px; }
  .nav.is-compact .nav-brand span { display: inline; }
  .stack { height: 320px; --step: 52px; }
  .stack-dots { padding-left: 32px; }
  .stack:hover { --step: 52px; }
  .stack-card { width: 200px; left: 20px; }
  .service { font-size: 19px; }
  .about-text p { font-size: 19px; }
  .media-row { grid-template-columns: 1fr; }
  .page-head, .project-head { padding-top: 120px; padding-bottom: 64px; }
  .footer-contact, .footer-meta { grid-template-columns: 1fr; gap: 28px; }
  .footer-giant { margin-top: 40px; }
}
