/* ============================================================
   Victor Kneisl — Video & Fotografie
   Design tokens derived from the existing wordmark: bold rounded
   grotesk, pure black/white, single orange accent (the dot on the "i").
   ============================================================ */

:root {
  /* Color */
  --color-ink: #111111;
  --color-paper: #ffffff;
  --color-signal: #e8720c;
  --color-slate: #6b6f73;

  --color-ink-06: rgba(17, 17, 17, 0.06);
  --color-ink-12: rgba(17, 17, 17, 0.12);
  --color-ink-40: rgba(17, 17, 17, 0.4);
  --color-signal-14: rgba(232, 114, 12, 0.14);
  --color-signal-30: rgba(232, 114, 12, 0.3);
  --color-paper-85: rgba(255, 255, 255, 0.85);
  --color-warm-tint: #fdf1e7;

  /* Type */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  --fs-h1: clamp(2.6rem, 8vw, 5.75rem);
  --fs-h2: clamp(1.9rem, 4.4vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.375rem);
  --fs-body-lg: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-meta: 0.8125rem;

  /* Layout */
  --rail-w: 28px;
  --content-max: 74rem;
  --edge-pad: 1.25rem;
  --section-pad-y: 3rem;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

@media (min-width: 768px) {
  :root {
    --rail-w: 40px;
    --edge-pad: 2.5rem;
    --section-pad-y: 3.5rem;
  }
}

@media (min-width: 1080px) {
  :root {
    --rail-w: 56px;
    --edge-pad: 4rem;
    --section-pad-y: 4rem;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Nav is fixed with no flow height of its own, so anchor targets need
   this or their heading lands hidden underneath it. */
[id] { scroll-margin-top: 108px; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared type / utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin: 0 0 0.9rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn--accent {
  background: linear-gradient(180deg, #ed7d1a 0%, var(--color-signal) 100%);
  color: var(--color-paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(17, 17, 17, 0.12),
    0 10px 24px -12px rgba(232, 114, 12, 0.65);
}
.btn-icon {
  flex-shrink: 0;
  color: var(--color-paper);
  transition: transform 0.35s var(--ease);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(17, 17, 17, 0.12),
    0 18px 34px -14px rgba(232, 114, 12, 0.75);
}
.btn--accent:hover .btn-icon { transform: translateY(-1px) scale(1.08); }
.btn--accent:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(17, 17, 17, 0.12);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-ink-12);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--color-signal); border-color: var(--color-signal); }

/* ============================================================
   Signature element — altitude profile rail
   ============================================================ */
/* A true overlay now — no background of its own — so the line and dot
   render directly over the fullscreen hero video as well as every
   section beneath them, rather than sitting on an opaque sidebar. */
.altitude-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  height: 100vh;
  pointer-events: none;
  z-index: 40;
}

.altitude-svg {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: calc(100% - 24px - 72px);
  display: block;
}

.altitude-path {
  fill: none;
  stroke: var(--color-slate);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* Positioned in pixels by JS (js/main.js), computed from the same
   coordinate list that draws .altitude-path — always exactly on the line. */
.altitude-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 0 4px var(--color-signal-14);
}

/* Horizontal pill, fixed at a constant x just past the rail so it can
   never run off-screen — only its y tracks the dot, centered on it so
   the number sits at the same level as the marker. Small and blurred-
   glass rather than a solid block, since it can briefly cross paragraph
   text while scrolling; kept compact to minimize what it covers. */
.altitude-value {
  position: absolute;
  left: calc(var(--rail-w) + 4px);
  top: 0;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 4px 10px -6px rgba(17, 17, 17, 0.2);
  white-space: nowrap;
}

/* ============================================================
   Nav
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  padding-left: var(--rail-w);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav-bar--solid {
  background: var(--color-paper-85);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-ink-06);
}

/* Over the fullscreen video, nav links/toggle read white for legibility;
   once the nav goes solid (scrolled past the hero) they return to normal
   ink. The logo swaps to a white-wordmark asset (JS) — the orange dot
   stays orange in both versions. */
.nav-bar:not(.nav-bar--solid) .nav-links a { color: var(--color-paper); }
.nav-bar:not(.nav-bar--solid) .nav-toggle span { background: var(--color-paper); }

.nav-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.9rem var(--edge-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; }

@media (min-width: 768px) {
  .logo img { height: 34px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-bottom: 0.2rem; transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--color-signal); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--edge-pad) 1.25rem;
  font-weight: 500;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) {
  background: var(--color-paper);
  box-shadow: 0 16px 32px -18px rgba(17, 17, 17, 0.25);
}
.mobile-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--color-ink-06); }
.mobile-nav .btn { margin-top: 0.75rem; justify-content: center; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============================================================
   Section shell helpers (repeated per-section, not shared,
   to avoid specificity fights between section classes)
   ============================================================ */

.hero-content,
.leistungen,
.about {
  max-width: var(--content-max);
}

/* Intro/Showreel/Kontakt get a full-bleed background color, so the
   width/alignment constraint moves to an inner wrapper instead of the
   section itself — otherwise the background box would be capped at
   content-max and show white gutters on wide screens. */
.section-inner {
  margin-inline: auto;
  max-width: var(--content-max);
  padding-right: var(--edge-pad);
  padding-left: calc(var(--rail-w) + var(--edge-pad));
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--color-paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-ink);
}

.yt-bg-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.32) 0%, rgba(17, 17, 17, 0.28) 20%, rgba(17, 17, 17, 0.35) 55%, rgba(17, 17, 17, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge-pad) 4.5rem calc(var(--rail-w) + var(--edge-pad));
  margin-inline: auto;
  width: 100%;
}

.hero .eyebrow { color: var(--color-signal); }
.hero h1 { color: var(--color-paper); margin-bottom: 0; }

/* ============================================================
   Intro (personal welcome, moved out of the hero)
   ============================================================ */
.intro {
  padding-block: var(--section-pad-y);
  background: var(--color-warm-tint);
}

.intro h2 {
  max-width: 36rem;
  margin-bottom: 1rem;
}

.intro p.intro-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.intro p {
  max-width: 42rem;
  text-align: left;
  font-size: var(--fs-body);
  color: var(--color-slate);
  line-height: 1.6;
}
.intro p + p { margin-top: 1.1rem; }
.intro p strong { color: var(--color-ink); font-weight: 600; }

/* ============================================================
   Leistungen
   ============================================================ */
.leistungen {
  margin-inline: auto;
  padding-block: var(--section-pad-y);
  padding-right: var(--edge-pad);
  padding-left: calc(var(--rail-w) + var(--edge-pad));
}

.tile-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1px;
  background: var(--color-ink-12);
  border: 1px solid var(--color-ink-12);
}

.tile {
  background: var(--color-paper);
  padding: 2.25rem 1.75rem;
  transition: background 0.3s var(--ease);
}
.tile:hover { background: #fbf8f4; }
.tile-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-slate);
  margin-bottom: 1rem;
}
.tile h3 { margin-bottom: 0.75rem; }
.tile p { color: var(--color-slate); }

@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Showreel
   ============================================================ */
.showreel {
  padding-block: var(--section-pad-y);
  background: var(--color-warm-tint);
}

.showreel-frame {
  position: relative;
  margin-top: 2.75rem;
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  border-radius: 6px;
  overflow: hidden;
}

.showreel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.showreel-frame:hover .showreel-poster { filter: brightness(0.6); transform: scale(1.03); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-paper);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.play-btn:hover {
  background: var(--color-signal);
  border-color: var(--color-signal);
  transform: translate(-50%, -50%) scale(1.08);
}
.play-btn svg { fill: currentColor; margin-left: 3px; }

.showreel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   About
   ============================================================ */
.about {
  margin-inline: auto;
  max-width: var(--content-max);
  padding-block: var(--section-pad-y);
  padding-right: var(--edge-pad);
  padding-left: calc(var(--rail-w) + var(--edge-pad));
  display: grid;
  gap: 3rem;
}

/* Editorial collage: one tall portrait plus two stacked thumbnails,
   rather than a single photo — gives the (now much longer) profile
   text real supporting imagery instead of one static picture. */
.about-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: var(--color-ink-06);
}
.about-img--main { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.about-img--alpine,
.about-img--bts { aspect-ratio: 1 / 1; }

.about-content p { color: var(--color-slate); margin-bottom: 1.15rem; max-width: 32rem; line-height: 1.7; }

.about-content p.about-lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-ink);
  max-width: 30rem;
  margin-bottom: 1.5rem;
}
.about-content h2 { color: var(--color-ink); margin-bottom: 2rem; }
.about-content .link-arrow { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .about { grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 4rem; }
  .about-media { position: sticky; top: 6.5rem; }
}

/* ============================================================
   Kontakt
   ============================================================ */
.kontakt {
  padding-block: var(--section-pad-y);
  background: var(--color-warm-tint);
}

.kontakt .section-inner > p { color: var(--color-slate); max-width: 30rem; margin: 0 0 3rem; }

.kontakt-direct {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
}
.kontakt-direct dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-slate);
  margin-bottom: 0.4rem;
}
.kontakt-direct dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.kontakt-direct dd a:hover { color: var(--color-signal); }

@media (min-width: 640px) {
  .kontakt-direct { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .kontakt-direct { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 3rem var(--edge-pad) 3rem calc(var(--rail-w) + var(--edge-pad));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  border-top: 1px solid var(--color-ink-06);
  color: var(--color-slate);
  font-size: 0.85rem;
}

.footer-logo img { height: 20px; width: auto; display: block; }

.footer-address {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  font-style: normal;
  margin-right: auto;
}

.footer-legal { display: flex; gap: 1.25rem; }

.site-footer a:hover { color: var(--color-signal); }

/* ============================================================
   Legal pages (Impressum, Datenschutz)
   ============================================================ */
.legal {
  margin-inline: auto;
  max-width: 46rem;
  padding-block: var(--section-pad-y);
  padding-right: var(--edge-pad);
  padding-left: calc(var(--rail-w) + var(--edge-pad));
}

.legal h1 { font-size: var(--fs-h2); margin-bottom: 0.75rem; overflow-wrap: break-word; hyphens: auto; }

.legal-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--color-slate);
  margin-bottom: 3rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-signal);
  margin: 1.85rem 0 0.6rem;
  overflow-wrap: break-word;
}

.legal-body p,
.legal-body ul {
  color: var(--color-slate);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 40rem;
}
.legal-body ul { padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body strong { color: var(--color-ink); font-weight: 600; }
.legal-body a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-ink-12);
  text-underline-offset: 2px;
  word-break: break-word;
}
.legal-body a:hover { color: var(--color-signal); text-decoration-color: currentColor; }

.legal-body address { font-style: normal; }

/* ============================================================
   Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-arrow, .tile, .showreel-poster, .play-btn { transition: none !important; }
}
