/* ============================================================
   FOTOGRAFIE — Fernand Freudemann
   style.css — Vertikaler Scroll, Mobile First
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --black: #0a0a08;
  --black-warm: #111110;
  --black-soft: #1a1a17;
  --charcoal: #2a2a26;
  --gold: #c8a96e;
  --gold-light: #d4bc8a;
  --gold-muted: #9a845c;
  --gold-dim: #6b5d3e;
  --cream: #e8e4d8;
  --cream-soft: #d4d0c4;
  --cream-muted: #a09c90;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Cormorant Garamond', 'Garamond', serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-slow: 0.6s;
  --duration-med: 0.4s;
  --duration-fast: 0.25s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--black);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover { color: var(--gold-light); }

::selection {
  background: var(--gold-dim);
  color: var(--cream);
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================================
   BRAND — Portrait-Bild oben links
   ============================================================ */
.brand {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 300;
}

.brand__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  object-fit: cover;
  transition: border-color var(--duration-fast) ease;
}

.brand:hover .brand__img {
  border-color: var(--gold);
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.menu-btn {
  position: fixed;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-btn__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.menu-btn__lines span {
  display: block;
  height: 1px;
  background: var(--gold);
  transition: all var(--duration-fast) ease;
  width: 100%;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 10, 8, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-med) ease, visibility var(--duration-med) ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.06em;
  transition: color var(--duration-fast) ease;
}

.menu-overlay a:hover { color: var(--gold); }

.menu-overlay__section-title {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: var(--space-sm);
}

/* ============================================================
   HERO — Landing mit Name + Fotografie
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.hero__pre {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: var(--space-xs);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__line {
  width: 40px;
  height: 1px;
  background: var(--gold-muted);
  margin: var(--space-sm) auto;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--cream-muted);
  letter-spacing: 0.06em;
}

/* Scroll-Hinweis im Hero */
.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dim);
  text-decoration: none;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll svg {
  width: 25px;
  height: 25px;
  stroke: var(--gold-dim);
  stroke-width: 1.5;
  fill: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   COVER-STREAM — VERTIKAL, Mobile First
   ============================================================ */
.home {
  padding: var(--space-md) var(--space-sm) var(--space-xl);
}

/* Mobile: Cover untereinander, zentriert */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-bottom: var(--space-xl);
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.cover:hover {
  transform: scale(1.01);
}

/* Goldrahmen (Passepartout) */
.cover__frame {
  padding: 6px;
  border: 0.5px solid var(--gold-dim);
  display: inline-block;
  max-width: 85vw;
}

.cover__inner-frame {
  border: 1px solid var(--gold-muted);
  line-height: 0;
  overflow: hidden;
}

.cover__img {
  width: 80vw;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.cover:hover .cover__img {
  transform: scale(1.03);
}

/* Titel IMMER unter dem Cover */
.cover__info {
  text-align: center;
  margin-top: var(--space-sm);
}

.cover__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.cover__count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   GALERIE-OVERLAY
   ============================================================ */
.gallery-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--duration-med) ease,
              visibility var(--duration-med) ease,
              transform var(--duration-med) var(--ease-out-expo);
}

.gallery-view.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Close-Button: "close" in Buchstaben */
.gallery-view__close {
  position: fixed;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(10, 10, 8, 0.6);
  border: 0.8px solid var(--gold-dim);
  border-radius: 20px;
  cursor: pointer;
  color: var(--cream-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  line-height: 1;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
  text-decoration: none;
}

.gallery-view__close:hover {
  color: var(--gold);
  border-color: var(--gold-muted);
}

/* Galerie-Header */
.gallery-view__header {
  text-align: center;
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}

.gallery-view__number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: var(--space-xs);
}

.gallery-view__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.gallery-view__desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--cream-muted);
  font-style: italic;
}

/* Galerie-Bilder */
.gallery-view__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-sm) var(--space-xl);
}

.gallery-view__item {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-view__frame {
  padding: 6px;
  border: 0.5px solid var(--gold-dim);
  display: inline-block;
  width: 100%;
}

.gallery-view__inner-frame {
  border: 1px solid var(--gold-muted);
  line-height: 0;
  overflow: hidden;
  width: 100%;
}

/* Portrait-Bilder: Höhe begrenzen, Seitenverhältnis bewahren */
.gallery-view__img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.gallery-view__caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream-muted);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 0.6rem;
}

/* ============================================================
   GALERIE-TAGS — bei einzelnen Bildern in der Galerie
   ============================================================ */
.gallery-view__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0.5rem;
}

.gallery-view__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--duration-fast) ease;
  border: 0.5px solid var(--gold-dim);
  border-radius: 12px;
  padding: 3px 10px;
  text-decoration: none;
}

.gallery-view__tag:hover {
  color: var(--gold);
  border-color: var(--gold-muted);
}

/* Back-to-top in Galerie */
.gallery-view__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) 0 var(--space-xl);
  gap: 0.3rem;
  cursor: pointer;
  color: var(--gold-dim);
  transition: color var(--duration-fast) ease;
  text-decoration: none;
}

.gallery-view__top:hover { color: var(--gold); }

.gallery-view__top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.gallery-view__top span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   TABLET (≥ 640px) — Cover versetzt: ungerade links, gerade rechts
   Zwei-Spalten-Grid, gerade Spalte nach unten versetzt
   ============================================================ */
@media (min-width: 640px) {
  .home {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
  }

  .cover {
    margin-bottom: 0;
  }

  /* Ungerade (1, 3, 5...): linke Spalte */
  .cover:nth-child(odd) {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
  }

  .cover:nth-child(odd) .cover__info {
    text-align: left;
  }

  /* Gerade (2, 4, 6...): rechte Spalte, nach unten versetzt */
  .cover:nth-child(even) {
    grid-column: 2;
    justify-self: end;
    align-items: flex-end;
    margin-top: 12vh;
  }

  .cover:nth-child(even) .cover__info {
    text-align: right;
  }

  .cover__img {
    width: 100%;
    max-width: 380px;
  }

  .cover__frame {
    max-width: none;
  }

  .gallery-view__images {
    padding: 0 var(--space-md) var(--space-xl);
  }

  .gallery-view__item {
    max-width: 700px;
  }
}

/* ============================================================
   DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .home {
    max-width: 1100px;
    gap: var(--space-lg);
  }

  .cover:nth-child(even) {
    margin-top: 16vh;
  }

  .cover__img {
    max-width: 440px;
  }

  .cover__title {
    font-size: 1.3rem;
  }

  .gallery-view__item {
    max-width: 800px;
  }

  .gallery-view__images {
    gap: var(--space-xl);
  }

  .brand__img {
    width: 54px;
    height: 54px;
  }
}

/* ============================================================
   WIDE DESKTOP (≥ 1440px)
   ============================================================ */
@media (min-width: 1440px) {
  .home {
    max-width: 1300px;
  }

  .cover__img {
    max-width: 500px;
  }

  .gallery-view__item {
    max-width: 900px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cover, .cover__img, .gallery-view, .menu-overlay {
    transition: none;
  }
  .hero__scroll {
    animation: none;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .menu-btn, .brand, .hero__scroll, body::after,
  .gallery-view__close, .gallery-view__top { display: none; }
}
