/*
Theme Name: Fabian Landingpage
Theme URI: https://example.com
Author: Fabian
Description: Schlankes One-Page-Theme für die Videografie-Landingpage. Kein Header/Footer-Ballast, komplett individuell aufgebaut.
Version: 0.8
Text Domain: fabian-landingpage
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #05070a;
  --bg-elevated: #0c1119;
  --navy-glow-1: #16305c;
  --navy-glow-2: #0a1a33;
  --navy-glow-3: #1c2f52;
  --fg: #f3f4f6;
  --fg-muted: #949aa6;
  --fg-faint: #5b616c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --rec: #e2554f;

  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur: 18px;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1120px;
  --edge: clamp(20px, 6vw, 72px);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================
   AMBIENT BREATHING GLOW (fixed, behind everything)
   ============================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 620px at 22% 15%, var(--navy-glow-3) 0%, transparent 58%),
    radial-gradient(ellipse 1000px 700px at 80% 85%, var(--navy-glow-1) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 90% 10%, var(--navy-glow-2) 0%, transparent 55%);
  opacity: 0.75;
  animation: breathe 11s ease-in-out infinite alternate;
}
@keyframes breathe {
  0%   { opacity: 0.55; transform: scale(1); }
  50%  { opacity: 0.85; transform: scale(1.04); }
  100% { opacity: 0.6;  transform: scale(1.01); }
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
  position: relative;
  z-index: 1;
}

/* ============================================
   REC / EYEBROW — signature motif, used everywhere
   ============================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px 1px rgba(226, 85, 79, 0.55);
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

section { position: relative; z-index: 1; }

/* ============================================
   GLASS UTILITY
   ============================================ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  background: rgba(5, 7, 10, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--fg-muted);
}
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav { padding: 16px var(--edge); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 64px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(30px, 5vw, 80px);
  color: var(--fg);
  max-width: 16ch;
}
.hero__role {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero__tagline {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.6;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  color: var(--fg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
.btn--ghost:hover { background: var(--glass-bg-strong); transform: translateY(-2px); }

.hero__scroll {
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--fg-faint), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION SPACING
   ============================================ */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
}

em.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
}

/* ============================================
   ABOUT
   ============================================ */
.about__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
}
.about h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}
.about p {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.75;
}
.about p + p { margin-top: 18px; }
@media (max-width: 800px) {
  .about__body { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   PROJECTS — swipeable reel
   ============================================ */
.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.projects__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 44px);
}
.projects__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.reel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px var(--edge) 28px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }

.card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 32vw, 340px);
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { transform: translateY(-4px); }

.card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, var(--navy-glow-1) 0%, transparent 55%),
    linear-gradient(160deg, #10162280, #05070a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,10,0) 45%, rgba(5,7,10,0.7) 100%);
}
.card:hover .card__thumb { border-color: var(--glass-border); }

.card__play {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font-size: 15px;
}
.card__tag {
  position: absolute;
  z-index: 1;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(5, 7, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.card__body { padding: 16px 4px 0; }
.card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}
.card__meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .reel { scroll-snap-type: x mandatory; gap: 14px; }
  .card { flex-basis: 78vw; }
}

/* ============================================
   VIDEO MODAL (glass lightbox player)
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 6, 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.modal.is-open { display: flex; }
.modal__panel {
  width: 100%;
  max-width: 900px;
  border-radius: 22px;
  padding: 14px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
.modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.modal__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 0 10px auto;
  color: var(--fg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ============================================
   PARTNERS — endless slow-motion logo marquee
   ============================================ */
.partners__marquee {
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.partners__track img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}
.partners__track img:hover {
  filter: none;
  opacity: 1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
}
@media (max-width: 640px) {
  .partners__track { animation-duration: 78s; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact__inner { text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(36px, 6vw, 64px);
  max-width: 16ch;
  margin: 0 auto;
}
.contact p {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.contact__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal {
  max-width: 760px;
  padding-top: 140px;
  padding-bottom: 100px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 40px;
}
.legal__content {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.8;
}
.legal__content h2,
.legal__content h3 {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 14px;
}
.legal__content p { margin: 0 0 16px; }
.legal__content ul,
.legal__content ol { margin: 0 0 16px 22px; padding: 0; }
.legal__content li { margin-bottom: 6px; }
.legal__content a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__back { margin-top: 40px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px var(--edge) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.footer a { color: var(--fg-faint); transition: color 0.2s ease; }
.footer a:hover { color: var(--fg-muted); }

/* ============================================
   MOBILE FINE-TUNING
   ============================================ */
@media (max-width: 640px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about__body { gap: 20px; }
  .projects__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .footer { flex-direction: column; align-items: flex-start; }
}
