@font-face {
  font-family: "Funnel Sans";
  src: url("../fonts/FunnelSans-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --soft: #bdbdbd;
  --dim: #a8a8a8;
  --line: #2a2a2a;
  --accent: #39c6b8;
  --accent-deep: #06201e;
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .85, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Funnel Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #000; padding: 10px 14px; border: 1px solid var(--accent); }
.noscript { padding: 24px var(--pad); color: var(--soft); }

/* ---------- Header ---------- */
header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding: 22px var(--pad);
}
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.brand a { font-weight: 600; }
.brand span { color: var(--muted); font-size: 15px; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
nav.main > a { padding: 10px 0; }
.lang { display: flex; gap: 2px; }
.lang button { min-width: 44px; min-height: 44px; background: none; border: 0; color: #8a8a8a; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--fg); }
.lang button:hover { color: var(--accent); }

/* ---------- Sucherrahmen ---------- */
.frame {
  position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  pointer-events: none; opacity: 0; z-index: 3;
  transition: left .32s var(--ease), opacity .2s ease;
}
.frame.on { opacity: 1; }
.frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--accent); }
.frame .c1 { left: 14px; top: 14px; border-left-width: 2px; border-top-width: 2px; }
.frame .c2 { right: 14px; top: 14px; border-right-width: 2px; border-top-width: 2px; }
.frame .c3 { left: 14px; bottom: 14px; border-left-width: 2px; border-bottom-width: 2px; }
.frame .c4 { right: 14px; bottom: 14px; border-right-width: 2px; border-bottom-width: 2px; }
.frame .x1 { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; background: var(--accent); }
.frame .x2 { position: absolute; left: 50%; top: 50%; width: 2px; height: 20px; margin: -10px 0 0 -1px; background: var(--accent); }
.frame.fs { width: 25%; }
.frame.fs i { width: 20px; height: 20px; }
.frame.fs .c1, .frame.fs .c3 { left: 10px; }
.frame.fs .c2, .frame.fs .c4 { right: 10px; }
.frame.fs .c1, .frame.fs .c2 { top: 10px; }
.frame.fs .c3, .frame.fs .c4 { bottom: 10px; }

/* ---------- Kacheln ---------- */
.work { margin: 0 var(--pad); }
.row {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0; margin: 0; background: #000; color: var(--fg);
  text-align: left; cursor: pointer; overflow: hidden;
  transition: color .2s ease;
}
.tile .img, .tile .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .img { opacity: .32; transition: opacity .3s ease; }
.work.has-active .tile { color: var(--dim); }
.work.has-active .tile .img { opacity: .18; }
.tile:hover, .work.has-active .tile:hover { color: var(--fg); }
.tile:hover .img { opacity: .6; }
.work .tile.is-active, .work .tile.is-active:hover { color: var(--accent); }
.work .tile.is-active .img { opacity: .7; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
.tile .ring { position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .2s ease; }
.tile.is-active .ring { box-shadow: inset 0 0 0 2px var(--accent); }
.tile .t {
  position: absolute; left: clamp(16px, 3vw, 44px); top: clamp(16px, 3vw, 40px); right: 16px;
  font-size: clamp(28px, 5.4vw, 84px); font-weight: 600; letter-spacing: -.035em; line-height: .98;
}
.tile .s {
  position: absolute; left: clamp(16px, 3vw, 44px); bottom: clamp(16px, 3vw, 36px); right: 64px;
  font-size: clamp(13px, 1.15vw, 16px); color: var(--soft);
}
.tile .chev {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(14px, 3vw, 32px);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.tile.is-active .chev { transform: rotate(180deg); }

/* ---------- Projektbereich ---------- */
.panel {
  position: relative; margin: 14px 0 28px; border: 2px solid var(--accent); background: #000;
  padding: clamp(28px, 3.5vw, 48px) clamp(18px, 3vw, 44px) clamp(36px, 4.5vw, 60px);
  animation: ndopen .42s var(--ease) both;
}
.notch {
  position: absolute; top: -13px; width: 22px; height: 22px; margin-left: -11px; background: #000;
  border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(45deg);
}
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.panel-head .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.panel-head h2, .panel-head h3 {
  font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--accent);
}
.panel-head .role { font-size: 17px; }
.btn { min-height: 44px; padding: 0 16px; background: none; border: 1px solid #444; color: var(--fg); font-size: 15px; cursor: pointer; transition: border-color .2s; }
.btn:hover { border-color: var(--accent); }
.intro { margin-top: 16px; max-width: 56ch; color: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; margin-top: 28px; }
.card { min-width: 0; animation: ndcard .5s var(--ease) both; }
.still {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; margin: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden;
}
.still picture, .still img { width: 100%; height: 100%; object-fit: cover; }
.still img { transition: transform .5s var(--ease); }
.still:hover img { transform: scale(1.025); }
.still .shade { position: absolute; inset: 0; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .18s ease; }
.still:hover .shade { opacity: 1; }
.plus {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(0,0,0,.6); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: scale(.75); transition: opacity .18s ease, transform .22s var(--ease);
}
.still:hover .plus, .still:focus-visible .plus { opacity: 1; transform: none; }
.card h3 { margin-top: 16px; font-size: 21px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.note { margin-top: 4px; font-size: 15px; color: var(--accent); }
.desc { margin-top: 10px; font-size: 15px; color: #d0d0d0; }

/* ---------- Stills-Ansicht ---------- */
.lb { position: fixed; inset: 0; z-index: 60; overflow-y: auto; }
.lb-dim {
  position: fixed; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  background: rgba(0,0,0,.88); cursor: zoom-out; animation: ndfade .25s ease both;
}
.lb-inner { position: relative; pointer-events: none; }
.slot { position: absolute; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.06); transition: transform .48s var(--ease), opacity .3s ease; }
.slot picture, .slot img { width: 100%; height: 100%; object-fit: cover; }
.lb-cap { position: absolute; right: 24px; opacity: 0; transition: opacity .3s ease .25s; }
.lb.ready .lb-cap { opacity: 1; }
.lb-cap p:first-child { font-size: 20px; font-weight: 500; }
.lb-cap p + p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.lb-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); border: 1px solid var(--accent); color: #fff; cursor: pointer;
}
.lb.closing { opacity: 0; transition: opacity .2s ease; }

/* ---------- Übergang ---------- */
.bridge { margin-top: clamp(40px, 5vw, 72px); padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; }
.bridge-line { width: 2px; height: clamp(72px, 9vw, 128px); background: var(--accent); }
.bridge-line.fade { background: linear-gradient(180deg, rgba(57,198,184,0), var(--accent)); }
.bridge-frame { position: relative; max-width: 980px; padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 80px); }
.bridge-frame p { font-size: clamp(26px, 3.6vw, 54px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.c { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent); transition: transform .45s var(--ease); }
.c1 { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.c2 { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.c3 { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.c4 { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.bridge-frame:hover .c1 { transform: translate(10px, 10px); }
.bridge-frame:hover .c2 { transform: translate(-10px, 10px); }
.bridge-frame:hover .c3 { transform: translate(10px, -10px); }
.bridge-frame:hover .c4 { transform: translate(-10px, -10px); }

/* ---------- Studium & Kontakt ---------- */
.block { padding: 0 var(--pad); }
.block.contact { margin-top: clamp(112px, 12vw, 176px); padding-bottom: clamp(64px, 7vw, 96px); }
.block-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: baseline; padding-top: 40px; border-top: 2px solid var(--accent); }
.block-head > h2 { flex: 1 1 240px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--accent); }
.block-text { flex: 999 1 520px; }
.studium-intro { margin-top: 28px; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -.01em; color: #e6e6e6; }
.lead { max-width: 34ch; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.01em; }
.small { margin-top: 16px; font-size: 15px; color: var(--muted); }

.srow {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stile {
  position: relative; display: block; width: 100%; height: clamp(96px, 8vw, 124px);
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0; margin: 0; background: #000; color: var(--fg); text-align: left; cursor: pointer; overflow: hidden;
  transition: background .25s ease, color .2s ease;
}
.srow.has-active .stile { color: var(--dim); }
.stile:hover, .srow.has-active .stile:hover { color: var(--fg); background: #0c0c0c; }
.srow .stile.is-active, .srow .stile.is-active:hover { color: var(--accent); background: var(--accent-deep); }
.stile .ring { position: absolute; inset: 0; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .2s ease; }
.stile.is-active .ring { box-shadow: inset 0 0 0 2px var(--accent); }
.stile .t {
  position: absolute; left: clamp(14px, 2vw, 28px); top: clamp(14px, 2vw, 26px); right: 14px;
  font-size: clamp(19px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  overflow-wrap: anywhere; hyphens: auto;
}
.stile .chev {
  position: absolute; right: clamp(14px, 2vw, 26px); bottom: clamp(12px, 2vw, 22px);
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.stile.is-active .chev { transform: rotate(180deg); }
.spanel { margin: 14px 0 0; padding: clamp(28px, 3.5vw, 48px) clamp(18px, 3vw, 44px); }
.spanel h3 { font-size: clamp(26px, 2.8vw, 40px); }
.spanel-body { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-top: 24px; }
.spanel-body > p { flex: 999 1 420px; max-width: 60ch; font-size: 18px; color: #e0e0e0; }
.spanel-body > div { flex: 1 1 240px; }
.spanel-body .label { font-size: 15px; color: var(--muted); }
.spanel-body ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; color: #d0d0d0; }

.thesis {
  position: relative; margin-top: 24px; border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 3vw, 44px);
  display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: baseline;
}
.thesis .c { width: 22px; height: 22px; }
.thesis .c1 { left: -1px; top: -1px; }
.thesis .c4 { right: -1px; bottom: -1px; }
.thesis { display: block; }
.thesis h3 { font-size: 17px; font-weight: 500; color: var(--accent); }
.thesis-main { margin-top: 16px; }
.thesis-title { max-width: 32ch; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.18; }
.thesis-text { margin-top: 22px; max-width: none; font-size: 17px; line-height: 1.65; color: #cfcfcf; }

.contact .block-head { align-items: flex-start; gap: 28px 64px; }
.contact-body { flex: 999 1 520px; display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center; }
.portrait { position: relative; flex: 0 0 auto; width: 150px; height: 188px; background: #111; }
.portrait picture, .portrait img, .pz-fig picture, .pz-fig img { width: 100%; height: 100%; object-fit: cover; }
.portrait img, .pz-fig img { filter: grayscale(1) contrast(1.06); }
.portrait-btn { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.portrait-btn img { transition: transform .4s var(--ease); }
.portrait-btn:hover img { transform: scale(1.04); }
.pz { position: fixed; inset: 0; z-index: 60; }
.pz-fig { position: fixed; margin: 0; background: #111; transform-origin: 0 0; transition: transform .42s var(--ease); z-index: 1; }
.pz-fig .c { width: 26px; height: 26px; }
.pz-fig .c1 { left: 12px; top: 12px; } .pz-fig .c2 { right: 12px; top: 12px; }
.pz-fig .c3 { left: 12px; bottom: 12px; } .pz-fig .c4 { right: 12px; bottom: 12px; }
.pz .lb-close { z-index: 2; opacity: 0; transition: opacity .2s ease .2s; }
.pz.ready .lb-close { opacity: 1; }
.pz.closing .lb-dim { opacity: 0; transition: opacity .35s ease; }
.pz.closing .lb-close { opacity: 0; transition-delay: 0s; }
.portrait .c { width: 16px; height: 16px; z-index: 1; pointer-events: none; }
.portrait .c1 { left: 8px; top: 8px; } .portrait .c2 { right: 8px; top: 8px; }
.portrait .c3 { left: 8px; bottom: 8px; } .portrait .c4 { right: 8px; bottom: 8px; }
.contact-links { flex: 1 1 260px; min-width: 0; }
.contact-links .big { display: table; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; padding: 4px 0; overflow-wrap: anywhere; }
.social { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 14px; font-size: 15px; }
.social a { padding: 10px 0; color: var(--muted); }
.social a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 28px var(--pad) 36px; font-size: 14px; color: #8a8a8a; border-top: 1px solid #222;
}
footer.site .legal { display: flex; gap: 28px; }
footer.site a { color: #8a8a8a; }
footer.site a:hover { color: var(--accent); }

/* ---------- Rechtsseiten ---------- */
.legal-page { padding: clamp(40px, 6vw, 96px) var(--pad) clamp(64px, 8vw, 120px); max-width: 860px; }
.legal-page h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--accent); }
.legal-page h2 { margin-top: 40px; font-size: 22px; font-weight: 600; }
.legal-page p, .legal-page li { color: #d0d0d0; }
.legal-page p { margin-top: 12px; max-width: 68ch; }
.legal-page ul { margin: 12px 0 0; padding-left: 20px; }
.legal-page .hint { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.legal-page a { color: var(--accent); }

/* ---------- Animationen ---------- */
@keyframes ndopen { from { clip-path: inset(0 0 100% 0); transform: translateY(-18px); opacity: .3; } to { clip-path: inset(-24px -24px -24px -24px); transform: none; opacity: 1; } }
@keyframes ndcard { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ndfade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tile { aspect-ratio: 1 / 1; }
  .tile .s { right: 48px; left: 14px; bottom: 14px; }
  .tile .t { left: 14px; top: 14px; right: 10px; font-size: clamp(20px, 6.3vw, 34px); overflow-wrap: anywhere; }
  .tile .chev { right: 10px; bottom: 10px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spanel .notch { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .frame { display: none !important; }
  .plus { opacity: 1; transform: none; left: auto; top: auto; right: 10px; bottom: 10px; margin: 0; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .card, .lb-dim { animation: none !important; }
  .frame, .slot, .c, .still img { transition: none !important; }
}
