/* =========================================
   FOTOGRAFIE.CSS
   Seitenspezifische Styles – baut auf style.css auf.
   Aslan Filmwerkstatt – fotografie.html

   DESIGNPRINZIP: Gleiche Struktur wie Videoproduktion,
   aber eigene fotografische Identität:
   – Hintergründe in #303030 (warmes Dunkelgrau) statt
     cinematischem Tiefschwarzen #1b1919
   – Trenner-Titel in --text-warm (Cremeweiß #fff4cd)
     statt kaltem Porzellanweiß
   – Trenner-Sub in --tone-4 (Sandbeige #b38a61) statt
     Bernstein – weicher, photographischer
   – Navbar ebenfalls #303030
   – Kategorie-Trenner analog zu videoproduktion uf-divider

   Erstellt mit Unterstützung von Claude (Anthropic).
   ========================================= */


/* =========================================
   GLOBALER OVERFLOW-SCHUTZ
   ========================================= */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
*, *::before, *::after {
  min-width: 0;
}

body {
  background: #303030;
}

/* =========================================
   DESIGN-TOKEN OVERRIDE
   Navbar + Sektionen: #303030 (fotografie-spezifisch)
   ========================================= */
:root {
  --bg:      #303030;
  --bg-deep: #1b1919;
  --diag:    clamp(1.5rem, 3.5vw, 4.5rem);
}


/* =========================================
   NAVBAR OVERRIDES – Gleiche Größen wie Startseite
   ========================================= */
header {
  background: #161311 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Logo-Bild: gleiche Größe wie auf der Startseite */
header .brand img {
  width: 68px;
  height: 68px;
}

/* Radiales Glühen um das runde Icon –
   weicher Übergang des Bildrahmens in die Navbar.
   Das Bild selbst bleibt unverändert (border-radius: 50%
   kommt aus style.css). Der Schatten blendet die Kanten
   sanft in den Navbar-Hintergrund über. */
header .brand {
  position: relative;
  display: inline-block;
  line-height: 0;
}
header .brand::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(48, 48, 48, 0.7) 35%,
    rgba(48, 48, 48, 0.4) 55%,
    transparent 75%
  );
  z-index: -1;
  pointer-events: none;
}

/* Burger: höher skaliert, passend zum größeren Logo */
header .nav-toggle {
  width: 38px;
  height: 28px;
}
header .nav-toggle::before { top: 0; }
header .nav-toggle span    { top: 13px; }
header .nav-toggle::after  { bottom: 0; }

/* Nav-Padding etwas großzügiger */
header nav {
  padding: 0.9rem 1.25rem;
}


/* =========================================
   HERO – Unterseiten-Variante
   Konsistent mit videoproduktion.css
   ========================================= */
.hero-sub {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
  line-height: 0;
}

.hero-bg {
  position: relative;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.68) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 25, 25, 0.05) 0%,
    rgba(27, 25, 25, 0.45) 60%,
    rgba(27, 25, 25, 0.82) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: calc(var(--diag) + 1.5rem);
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  line-height: normal;
  overflow: hidden;
}

.hero-label {
  font-family: var(--ff-base);
  font-weight: 400;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.885em;
  text-transform: uppercase;
  color: rgba(254, 249, 250, 0.65);
  margin: 0 0 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.0rem, 6vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
}

.hero-content h1.fade-in {
  animation: fadeInUp 1.2s ease forwards;
}

.hero-claim {
  font-family: var(--ff-accent);
  font-weight: 400;
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(254, 249, 250, 0.72);
  margin: 0.5rem 0 0;
  overflow: hidden;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================
   SEKTIONS-BASIS – Kohäsive Einheiten
   Jede Kategorie ist EINE Sektion (Trenner + Medien),
   keine getrennten Banner/Media-Blöcke mehr.
   ========================================= */
.foto-section {
  position: relative;
  background: var(--bg);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;

  /* Scroll-Reveal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.foto-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* CTA-Sektion: cinematisches Tiefschwarz als Abschluss */
.foto-section--cta {
  background:
    linear-gradient(rgba(27, 25, 25, 0.88), rgba(27, 25, 25, 0.88)),
    url("../img/Fotografie_Banner.jpg") center / cover no-repeat;
  padding-top: 4rem;
  padding-bottom: 6rem;
}


/* =========================================
   KATEGORIE-TRENNER (Divider zwischen Sektionen)
   Konsistent mit videoproduktion uf-divider –
   Bernstein-Gradient-Linie als visueller Separator.
   ========================================= */
.foto-divider {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 15%,
    var(--accent) 50%,
    rgba(255, 255, 255, 0.08) 85%,
    transparent 100%
  );
  padding: 0;
}


/* =========================================
   TRENNBAND (Titel + Untertitel pro Kategorie)
   ========================================= */
.foto-trenner {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
}

.trenner-titel {
  font-family: var(--ff-head);
  font-size: clamp(1.2rem, 5.5vw, 2.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: clamp(0.04em, 1.2vw, 0.35em);
  color: var(--text-warm);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  hyphens: manual;
  overflow-wrap: break-word;
}

.trenner-sub {
  font-family: var(--ff-base);
  font-weight: 300;
  font-size: clamp(0.68rem, 1.5vw, 0.84rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tone-4);
  margin: 0;
}


/* =========================================
   FOTO-INNER – Inhalts-Wrapper
   ========================================= */
.foto-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.foto-eyebrow {
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}


/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 10, 10, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(254, 249, 250, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  z-index: 1;
}
.lightbox__close:hover {
  color: var(--text-warm);
}

.lightbox__media-wrap {
  width: calc(100vw - 5rem);
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto-frame[data-lightbox]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}


/* =========================================
   MEDIA-BEREICHE
   Eng an den Trenner angebunden – als visuelle Einheit.
   ========================================= */
.foto-media-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 1.25rem 3.5rem;
}

.foto-frame {
  margin: 0;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1b1919;
  box-shadow:
    0 0 0 1px rgba(166, 111, 63, 0.12),
    0 8px 40px rgba(0, 0, 0, 0.45);
}

.foto-frame--wide {
  width: 100%;
}

.foto-frame img,
.foto-frame .foto-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.foto-frame:hover img,
.foto-frame:hover .foto-video {
  transform: scale(1.015);
}

/* Duo-Grid: zwei Bilder nebeneinander (Hotel) */
.foto-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}


/* =========================================
   CTA
   ========================================= */
.foto-cta {
  text-align: center;
  padding-top: 1.5rem;
}

.foto-cta__headline {
  font-family: var(--ff-head);
  font-size: clamp(1.2rem, 5.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: clamp(0.04em, 1.2vw, 0.35em);
  text-transform: uppercase;
  color: var(--text-warm);
  margin: 0 0 1.1rem;
  line-height: 1.15;
}

.foto-cta__text {
  color: rgba(254, 249, 250, 0.62);
  font-size: 0.97rem;
  line-height: 1.72;
  max-width: 32rem;
  margin: 0 auto 2rem;
}


/* =========================================
   FLOATING ACTION BUTTON
   (identisch zu videoproduktion.css)
   ========================================= */
.foto-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--ff-base);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease,
              background 0.2s ease, color 0.2s ease;
}
.foto-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.foto-fab:hover,
.foto-fab:focus-visible {
  background: var(--accent);
  color: var(--bg-deep);
}


/* =========================================
   RESPONSIVE – Tablet ≥ 640px
   ========================================= */
@media (min-width: 640px) {
  .foto-duo {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .foto-media-wrap {
    padding: 0 1.5rem 4rem;
  }
}


/* =========================================
   RESPONSIVE – Desktop ≥ 900px
   ========================================= */
@media (min-width: 900px) {
  .foto-media-wrap {
    padding: 0 2rem 5rem;
  }
  .foto-duo {
    gap: 2rem;
  }
  .foto-trenner {
    padding: 4.5rem 1.25rem 2.5rem;
  }
}


/* =========================================
   RESPONSIVE – Kleines Mobil ≤ 420px
   ========================================= */
@media (max-width: 420px) {
  .trenner-titel {
    letter-spacing: 0.06em;
  }
}


/* =========================================
   REDUCED MOTION – Barrierefreiheit
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .hero-content h1 {
    opacity: 1 !important;
  }
  .foto-section {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ---------------------------------------------------------
   RESPONSIVE 390px – Korrekturen
   --------------------------------------------------------- */
@media (max-width: 420px) {
  .cta-headline-inline {
    font-size: clamp(1.1rem, 7vw, 1.8rem);
  }
}

@media (max-width: 639px) {
  .hero-label {
    letter-spacing: 0.7em;
  }
}

/* ---------------------------------------------------------
   RESPONSIVE 900px – Korrekturen
   --------------------------------------------------------- */
@media (min-width: 911px) {
  .hero-label {
    letter-spacing: 1.4em;
  }
}