@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #00011F;
  --bg-2: #05072B;
  --text: #F1F1F1;
  --muted: rgba(241, 241, 241, .62);
  --line: rgba(241, 241, 241, .12);
  --indigo: #330BC3; --violet: #6714C4; --magenta: #DE29CC; --orchid: #C425CA; --yellow: #FFC40E; --coral: #FF9068;
  --wa: #25D366;
  --pad: clamp(20px, 5vw, 60px);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Aeonik", "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
main > section + section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad))); height: 1px; background: var(--line); }
.hero + section::before { display: none; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.lead { color: var(--muted); max-width: 560px; margin-top: 16px; }
.sub { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 640px; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1EBE5A; }
.btn-ghost { border: 1px solid rgba(241, 241, 241, .3); }
.btn-ghost:hover { border-color: var(--text); }

/* Platzhalter-Markierung, fliegt mit echtem Material raus */
.ph { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0, 1, 31, .55); color: rgba(241, 241, 241, .75); backdrop-filter: blur(6px); }

/* Weiches Play-Dreieck als Markenlicht im Hintergrund */
.glowmark { position: fixed; z-index: 0; pointer-events: none; width: min(80vw, 900px); right: -18vw; top: 18vh; opacity: .2; filter: blur(70px); animation: mark 38s ease-in-out infinite alternate; }
.glowmark.two { width: min(60vw, 640px); left: -22vw; right: auto; top: 55vh; opacity: .14; animation-duration: 46s; animation-direction: alternate-reverse; }
@keyframes mark { 0% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-8vw, 10vh) rotate(6deg) scale(1.08); } 100% { transform: translate(4vw, -6vh) rotate(-2deg) scale(.95); } }
main, footer { position: relative; z-index: 1; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(0, 1, 31, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: none; }
.nav .logo { position: relative; z-index: 2; }
.nav .logo img { height: 26px; width: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Header */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; background: var(--bg, #00011F); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 4%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,1,31,.9) 0%, rgba(0,1,31,.55) 38%, rgba(0,1,31,0) 62%), linear-gradient(180deg, rgba(0,1,31,.5) 0%, rgba(0,1,31,0) 25%); }
.hero { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
@media (max-width: 1024px) { .hero-media::after { background: linear-gradient(180deg, rgba(0,1,31,.5) 0%, rgba(0,1,31,0) 25%, rgba(0,1,31,.6) 58%, rgba(0,1,31,.9) 85%); } .hero-text { margin-left: 0; width: 100%; max-width: 620px; } .hero-media img { object-position: 65% 4%; } }
/* Breite Bildschirme: Foto nie oben/unten abschneiden, sondern komplett rechts zeigen und links weich auslaufen lassen */
@media (min-width: 1025px) and (min-aspect-ratio: 3/2) {
  .hero-media img { position: absolute; top: 0; right: 0; width: auto; height: 100%; aspect-ratio: 3 / 2; max-width: none; object-fit: cover; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
}
.hero .ph { top: 96px; left: var(--pad); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(110px, 19vh, 190px); }
.hero-content.wrap { max-width: none; }
.hero-text { width: min(100%, 600px); }
.hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 500; max-width: 12ch; }
.hero h1 span { display: block; color: rgba(241, 241, 241, .55); }
.hero p { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(241, 241, 241, .78); max-width: 520px; }
.hero .actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* Projekte */
.head { margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.project { display: block; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.thumb video { opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.thumb video.on { opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 1, 31, 0) 55%, rgba(0, 1, 31, .35) 100%); }
.project:hover .thumb img, .project:hover .thumb video { transform: scale(1.04); }
.thumb .play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(241, 241, 241, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center;
  opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s;
}
.thumb .play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--text); }
.project:hover .play, .project:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .thumb .play { opacity: 1; transform: none; } }
.project h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 500; margin-top: 16px; }
.project .meta { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Player */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 16px 24px; background: rgba(0, 1, 31, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s; }
.player[hidden] { display: none; }
.player.open { opacity: 1; }
.player-box { margin: 0; display: flex; flex-direction: column; align-items: center; }
.player-frame { position: relative; aspect-ratio: var(--ar, 16 / 9); width: min(92vw, var(--max), calc((100vh - 150px) * var(--arn, 1.7778))); width: min(92vw, var(--max), calc((100svh - 150px) * var(--arn, 1.7778))); border-radius: 8px; overflow: hidden; background: #000; }
.player-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.player-frame:fullscreen { width: 100%; border-radius: 0; }
.player figcaption { align-self: stretch; margin-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.player figcaption strong { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.player figcaption span { font-size: 14px; color: var(--muted); }
.player-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(241, 241, 241, .1); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.player-close:hover { background: rgba(241, 241, 241, .2); }
.player-close svg { width: 18px; height: 18px; }
.pc { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 28px 10px 8px; background: linear-gradient(180deg, rgba(0, 1, 31, 0), rgba(0, 1, 31, .75)); transition: opacity .3s; }
.player-frame.idle .pc { opacity: 0; }
.player-frame.idle { cursor: none; }
.pc button, .pc-big { border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.pc button { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.pc button:hover { background: rgba(241, 241, 241, .12); }
.pc svg { width: 20px; height: 20px; fill: currentColor; }
.pc-bar { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.pc-bar::before, .pc-buf, .pc-fill { content: ""; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.pc-bar::before { right: 0; background: rgba(241, 241, 241, .2); }
.pc-buf { background: rgba(241, 241, 241, .3); width: 0; }
.pc-fill { background: var(--text); width: 0; }
.pc-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .15s; }
.pc-bar:hover .pc-fill::after, .pc-bar.drag .pc-fill::after { transform: scale(1); }
.pc-time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(241, 241, 241, .85); padding: 0 6px; white-space: nowrap; }
.pc-big { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(241, 241, 241, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .2s, transform .2s; }
.pc-big svg { width: 24px; height: 24px; margin-left: 4px; fill: var(--text); }
.player-frame.playing .pc-big { opacity: 0; transform: scale(.9); pointer-events: none; }
.player-frame.is-hoch .pc-time .pc-dur { display: none; }
@media (max-width: 520px) { .pc-time { font-size: 12px; padding: 0 2px; } .pc-time .pc-dur { display: none; } }

/* Leistungen */

/* Studio */
.studio-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 48px; }
.studio-img { border-radius: 8px; overflow: hidden; }
.studio-img img { width: 100%; height: 100%; object-fit: cover; }
.studio-img.big { grid-row: span 2; }

/* Über mich */
.about .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about p { color: var(--muted); margin-top: 20px; max-width: 560px; }
.about .sub { color: var(--text); margin-top: 20px; }
.about .sub + p { margin-top: 24px; }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.contact-img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; }
.contact h2 { max-width: 15ch; }
.contact .actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Footer */
.social { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
.btn svg, .icon-btn svg { width: 20px; height: 20px; flex: none; }
.nav-social { display: flex; align-items: center; gap: 6px; }
.nav-social a { display: inline-flex; padding: 8px; color: rgba(241, 241, 241, .8); transition: color .2s; }
.nav-social a:hover { color: var(--text); }
.nav-social svg { width: 21px; height: 21px; }
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer img { height: 20px; width: auto; }
footer nav { display: flex; gap: 28px; }
footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about .wrap { grid-template-columns: 1fr; }
  .portrait, .contact-img { max-width: 420px; }
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav .wrap { height: 64px; }
  .nav .logo img { height: 22px; }
  .hero .ph { top: 80px; }
  .hero-media img { object-position: 50% 20%; }
  .hero-text { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .studio-img.big { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .studio-img:not(.big) { aspect-ratio: 4 / 3; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glowmark { animation: none; }
}
/* Handy quer: Text links, Foto rechts, alles auf einem Bildschirm */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 320px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(0,1,31,.92) 0%, rgba(0,1,31,.6) 42%, rgba(0,1,31,0) 65%); }
  .hero-media img { object-position: 100% 4%; }
  .hero-content { padding-bottom: 36px; }
  .hero-text { width: 46%; }
  .hero h1 { font-size: clamp(28px, 8.5vh, 40px); }
  .hero p { margin-top: 10px; font-size: 14px; }
  .hero .actions { margin-top: 16px; }
}

/* Was ich mache */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 28px; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.area img, .area video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.area video { opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.area video.on { opacity: 1; }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 1, 31, 0) 35%, rgba(0, 1, 31, .85) 100%); }
.area:hover img, .area:hover video { transform: scale(1.04); }
.area-text { position: relative; z-index: 2; }
.area h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.area p { margin-top: 8px; font-size: 15px; color: rgba(241, 241, 241, .75); }
.area .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.area .more svg { width: 16px; height: 16px; transition: transform .2s; }
.area:hover .more svg { transform: translateX(4px); }

/* Unterseiten */
.sub-hero { height: 78vh; height: 78svh; min-height: 480px; }
.sub-hero .hero-media img, .sub-hero .hero-media video { position: static; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }
.sub-hero .hero-content { padding-bottom: clamp(90px, 15vh, 150px); }
.intro .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro p { color: var(--muted); max-width: 600px; }
.intro p + p { margin-top: 20px; }
.intro .sub { margin-top: 0; color: var(--text); }
.intro .demo-wrap { display: block; }
.intro.split .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
.intro.split h2 { margin-bottom: 24px; }
.side-video { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.side-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo { margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.demo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph-note { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(241, 241, 241, .4); font-size: 14px; }

@media (max-width: 960px) {
  .areas { grid-template-columns: 1fr; }
  .area { aspect-ratio: 16 / 10; }
  .intro .wrap, .intro.split .wrap { grid-template-columns: 1fr; gap: 24px; }
  .side-video { max-width: 460px; margin-top: 16px; }
}
@media (max-width: 760px) {
  .area { padding: 22px; }
}

/* Große Bildschirme (1440p, 4K bei 100 % Skalierung): ganze Seite proportional größer.
   Stufe hängt von Breite UND Höhe ab, damit Ultrawide-Monitore nicht zu stark vergrößert werden.
   vh-Werte werden durch zoom mitvergrößert, deshalb dort durch --z teilen. */
@media (min-width: 1700px) and (min-height: 900px) { :root { --z: 1.15; } }
@media (min-width: 2200px) and (min-height: 1100px) { :root { --z: 1.4; } }
@media (min-width: 3000px) and (min-height: 1800px) { :root { --z: 1.9; } }
@media (min-width: 1700px) and (min-height: 900px) {
  html { zoom: var(--z); }
  .hero { height: calc(100svh / var(--z)); }
  .sub-hero { height: calc(78svh / var(--z)); }
  .player-frame { width: min(92vw, var(--max), calc((100svh / var(--z) - 150px) * var(--arn, 1.7778))); }
}
/* Sehr breite Fenster (Ultrawide): Header-Video komplett rechts zeigen statt oben und unten abzuschneiden */
@media (min-width: 1025px) and (min-aspect-ratio: 2/1) {
  .sub-hero .hero-media video { position: absolute; top: 0; right: 0; width: auto; height: 100%; aspect-ratio: 16 / 9; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
}
/* Handy hochkant: Startseiten-Foto in voller Breite statt stark herangezoomt */
@media (max-width: 760px) and (orientation: portrait) {
  .hero:not(.sub-hero) .hero-media img { height: auto; aspect-ratio: auto; object-fit: initial; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
}
