/* ============================================================
   GLOBALE STYLES — Kamera-Service-Website
   Farbpalette, Typo-Skala, Reset, Hilfeklassen
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;1,300&family=Hanken+Grotesk:wght@300;400;500&display=swap');

/* ── CSS-Tokens ───────────────────────────────────────────── */
:root {
  --ink:       #0F0E0C;
  --ink-soft:  #1A1815;
  --light:     #F3EFE6;
  --muted:     #8C857A;
  --tungsten:  #C9A15A;
  --shadow:    #050504;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  /* Typo-Skala */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-5xl:  5rem;
  --text-6xl:  6.5rem;

  /* Spacing-Rhythmus */
  --space-section: clamp(5rem, 10vw, 9rem);
  --space-inner:   clamp(2rem, 4vw, 4rem);

  /* Seitliche Begrenzung */
  --max-w:   1200px;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ink);
  color: var(--light);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Film-Grain-Overlay ───────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: grain 0.8s steps(1) infinite;
}

@keyframes grain {
  0%   { background-position:   0   0; }
  10%  { background-position: -5%  -10%; }
  20%  { background-position: -15%  5%; }
  30%  { background-position:  7% -25%; }
  40%  { background-position: -5%  25%; }
  50%  { background-position: -15% 10%; }
  60%  { background-position:  15% -5%; }
  70%  { background-position:  0  15%; }
  80%  { background-position:  3%  35%; }
  90%  { background-position: -10%  10%; }
  100% { background-position:   9%  18%; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ── Layout-Hilfeklassen ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

/* ── Licht-Bleed / Sektionsübergang ──────────────────────── */
.light-bleed {
  position: relative;
}
.light-bleed::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  width: 60%;
  height: 1px;
  background: radial-gradient(ellipse at center, var(--tungsten) 0%, transparent 70%);
  opacity: 0.5;
}

/* ── Typografie ───────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Scroll-Reveal-Basis ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navigation (oben auf Hero) ───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Fade nach unten bei Scroll */
  transition: background 0.4s ease;
}
.nav.scrolled {
  background: linear-gradient(to bottom, rgba(15,14,12,0.92) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
  color: var(--light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__contact {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__contact:hover { color: var(--tungsten); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--shadow);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dunkler Verlauf oben + unten */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(5,5,4,0.55) 0%,   transparent 30%),
    linear-gradient(to top,     rgba(5,5,4,0.75) 0%,   transparent 45%);
  pointer-events: none;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll-hint svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint { animation: none; }
}

/* ── Hero Sound-Toggle ────────────────────────────────────── */
.hero__sound-btn {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero__sound-btn:hover { color: var(--light); }
.hero__sound-btn:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
.hero__sound-btn svg { width: 22px; height: 22px; }

/* ── Hero-Einblende-Sequenz ───────────────────────────────── */
.hero__wordmark {
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xl);
  letter-spacing: 0.08em;
  color: var(--light);
  opacity: 0;
  animation: fadeInDown 1.2s ease 0.3s forwards;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__wordmark { opacity: 1; animation: none; }
}

/* ── Positionierungszeile ─────────────────────────────────── */
.tagline-section {
  background: var(--ink);
  padding-block: var(--space-section);
  text-align: center;
}
.tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-3xl), 5.5vw, var(--text-5xl));
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--light);
  max-width: 20ch;
  margin-inline: auto;
}
.tagline__sub {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Projekte ─────────────────────────────────────────────── */
.projects-section {
  background: var(--ink-soft);
  padding-block: var(--space-section);
}

.projects-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.project-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-item:nth-child(even) {
    direction: rtl;
  }
  .project-item:nth-child(even) > * {
    direction: ltr;
  }
  .project-item {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.project-media-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

/* Cinematic: 2.39:1 */
.project-media-wrap.cinematic { aspect-ratio: 2.39 / 1; }
/* Wide: 16:9 */
.project-media-wrap.wide      { aspect-ratio: 16 / 9; }

.project-media-wrap img,
.project-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
}
.project-item:hover .project-media-wrap img,
.project-item:hover .project-media-wrap video {
  transform: scale(1.03);
}

/* Licht-Bleed Hover auf Projekten */
.project-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,161,90,0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.project-item:hover .project-media-wrap::after { opacity: 1; }

/* Platzhalter-Fläche wenn kein Bild geladen */
.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1815 0%, #0f0e0c 50%, #14120f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: absolute;
  inset: 0;
}

.project-info { padding-block: 0.5rem; }

.project-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--light);
  margin-top: 0.5rem;
  transition: color 0.2s;
}
.project-item:hover .project-title { color: var(--tungsten); }

.project-context {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 40ch;
}

/* ── Über mich ────────────────────────────────────────────── */
.about-section {
  background: var(--ink);
  padding-block: var(--space-section);
}

.about-inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 2fr;
    align-items: center;
  }
}

.about-portrait-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--ink-soft);
}
.about-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-text-block .eyebrow { margin-bottom: 1.5rem; }

.about-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--light);
  max-width: 52ch;
}

/* ── Leistungen ───────────────────────────────────────────── */
.services-section {
  background: var(--ink-soft);
  padding-block: var(--space-section);
}

.services-grid {
  display: grid;
  gap: 0;
}

.service-item {
  border-top: 1px solid rgba(140,133,122,0.2);
  padding-block: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.service-item:last-child { border-bottom: 1px solid rgba(140,133,122,0.2); }

@media (min-width: 600px) {
  .service-item {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.service-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xl);
  color: var(--light);
}

.service-text {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-section {
  background: var(--ink);
  padding-block: var(--space-section);
}

.reviews-grid {
  display: grid;
  gap: 3rem;
}

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

.review-item { max-width: 48ch; }

.review-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--light);
}

.review-attribution {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}

.review-attribution strong {
  display: block;
  color: var(--light);
  font-weight: 400;
}

/* ── CTA / Schluss ────────────────────────────────────────── */
.cta-section {
  background: var(--ink-soft);
  padding-block: clamp(6rem, 12vw, 11rem);
  text-align: center;
}

.cta-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  line-height: 1.15;
  color: var(--light);
  max-width: 24ch;
  margin-inline: auto;
}

.cta-sub {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

.cta-btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.9rem 2.5rem;
  border: 1px solid rgba(201,161,90,0.5);
  color: var(--tungsten);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cta-btn:hover {
  background: rgba(201,161,90,0.1);
  border-color: var(--tungsten);
  color: var(--light);
}
.cta-btn:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 4px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--shadow);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--tungsten); }
.footer-social a:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 3px;
}

.footer-copy {
  color: var(--muted);
  font-size: var(--text-xs);
  opacity: 0.6;
}

/* ── Projekt Inline-Player ────────────────────────────────── */
.project-player { cursor: pointer; }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: color 0.2s, opacity 0.3s;
  opacity: 0.85;
  pointer-events: none;
}
.play-btn svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); }
.project-player:hover .play-btn { color: var(--tungsten); opacity: 1; }

/* Wenn Video aktiv: Play-Button ausblenden, Video/Thumbnail zeigen */
.project-player.playing .play-btn             { opacity: 0; pointer-events: none; }
.project-player.playing .project-placeholder,
.project-player.playing .project-media-thumb  { opacity: 0; }

.project-player video.inline-video,
.project-player iframe.inline-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-player.playing video.inline-video,
.project-player.playing iframe.inline-video { opacity: 1; }

/* ── Sektions-Heading-Gruppe ──────────────────────────────── */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  color: var(--light);
  margin-top: 0.75rem;
}

/* ── Focus Styles (global) ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 3px;
}

/* ── iOS / Touch Basics ───────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }

/* ── YouTube / iframe responsive Wrapper ─────────────────── */
/* Verwendung: <div class="embed-wrap"><iframe ...></iframe></div> */
.embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Mobile — umfassende Anpassungen ─────────────────────── */
@media (max-width: 768px) {

  /* Nav: etwas kompakter, Touch-Targets groß genug */
  .nav { padding: 1rem var(--gutter); }
  .nav__contact {
    padding-block: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero: min-height reduzieren für sehr kleine Screens */
  .hero { min-height: 500px; }

  /* Portrait: auf Mobile nicht die ganze Seite ausfüllen */
  .about-portrait-wrap { max-height: 70vw; }

  /* Fließtext etwas kompakter auf kleinen Screens */
  .about-text { font-size: var(--text-base); }

  /* Review-Zitate volle Breite */
  .review-item { max-width: 100%; }

  /* Service-Zeilen etwas weniger Padding */
  .service-item { padding-block: 1.5rem; }

  /* CTA-Button einfacher tippbar */
  .cta-btn {
    padding: 1rem 2rem;
    min-width: 180px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer: sauber gestapelt */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Play-Button etwas kleiner auf Mobile */
  .play-btn svg { width: 44px; height: 44px; }

  /* Sektions-Abstand reduzieren */
  :root { --space-section: clamp(3.5rem, 8vw, 6rem); }
}

/* ── Sehr kleine Screens (≤ 480px) ───────────────────────── */
@media (max-width: 480px) {
  .tagline { font-size: var(--text-3xl); }
  .hero__scroll-hint { display: none; }
  .section-title { font-size: var(--text-2xl); }
  .project-title { font-size: var(--text-xl); }
}

/* ── iOS Safe Area (Home-Indikator) ──────────────────────── */
.footer {
  padding-bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
.hero__sound-btn {
  bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
.hero__scroll-hint {
  bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
