/* =========================================================
   Fotohahne — Hochzeitsfotografie
   ========================================================= */

/* Self-hosted Schriftarten (statt Google Fonts CDN) — vermeidet die
   Übertragung von Besucher-IP-Adressen an Google beim Laden externer
   Schriften. Dateien liegen in fonts/, unicode-range deckt Latin-1
   (inkl. äöüß) ab. Playfair Display ist ein Variable Font: eine Datei
   deckt alle drei Schnitte 500/600/700 ab. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-dark: #1c1a18;
  --color-dark-2: #2a2724;
  --color-cream: #faf7f2;
  --color-cream-2: #f1ebe1;
  --color-gold: #b8925a;
  --color-gold-light: #d8b98a;
  --color-text: #3a3632;
  --color-text-light: #75706a;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --header-height: 84px;
  --max-width: 1200px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-dark); }

h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.center { text-align: center; }
.section-sub.center { max-width: 560px; margin: 0 auto 56px; color: var(--color-text-light); }

section { padding: 110px 0; }

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.btn-primary { background: var(--color-gold); color: #fff; }
.btn-primary:hover { background: var(--color-dark); }

.btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-block { width: 100%; text-align: center; border: none; }

/* -------------------- Header -------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), height var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(28, 26, 24, 0.92);
  height: 68px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo span { color: var(--color-gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: #f2ede6;
  font-size: 0.92rem;
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--color-gold);
  padding: 10px 22px !important;
  border-radius: 2px;
  color: #fff !important;
}

.nav-cta:hover { background: var(--color-gold-light); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.35) 45%, rgba(20,18,16,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 760px;
  padding: 0 24px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--color-gold-light);
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: #f2ede6;
}

.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollHint 1.8s infinite;
}

@keyframes scrollHint {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* -------------------- About -------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-media img {
  border-radius: 4px;
  aspect-ratio: 900 / 1100;
  object-fit: cover;
  width: 100%;
}

.about-text p { color: var(--color-text-light); margin-bottom: 18px; }

.about-facts {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  list-style: none;
}

.about-facts strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-gold);
}

.about-facts span { font-size: 0.85rem; color: var(--color-text-light); }

/* -------------------- Portfolio / Gallery -------------------- */

.portfolio { background: var(--color-cream-2); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(28,26,24,0.35);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Fehlende Fotos werden per JS (fhPlaceholder in js/script.js) durch ein
   generiertes SVG-Platzhalterbild ersetzt — hier nur ein dezenter Rahmen. */
.is-placeholder { outline: 1px dashed #d8cdb8; outline-offset: -1px; }

/* -------------------- Lightbox -------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,9,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active { display: flex; }

.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 2px; }

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* -------------------- Services -------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.service-card {
  background: #fff;
  padding: 44px 32px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #ece5d8;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(28,26,24,0.08);
}

.service-icon { font-size: 2.2rem; margin-bottom: 20px; }

.service-card h3 { margin-bottom: 14px; font-size: 1.3rem; }

.service-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* -------------------- Testimonials -------------------- */

.testimonials { background: var(--color-dark); color: #f2ede6; }

.testimonials h2, .testimonials .eyebrow { color: #fff; }
.testimonials .eyebrow { color: var(--color-gold-light); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--color-dark-2);
  padding: 36px 30px;
  border-radius: 4px;
  border-top: 2px solid var(--color-gold);
}

.testimonial-card p { font-size: 0.98rem; font-style: italic; color: #dcd6cd; margin-bottom: 20px; }

.testimonial-card footer { font-size: 0.85rem; color: var(--color-gold-light); font-weight: 500; }

/* -------------------- Contact -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info p { color: var(--color-text-light); margin-bottom: 32px; }

.contact-details { list-style: none; }

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid #e4dccd;
}

.contact-details strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-gold); }
.contact-details a, .contact-details span { font-size: 1.05rem; }

.contact-form { background: #fff; padding: 40px; border-radius: 4px; border: 1px solid #ece5d8; }

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }

.form-row label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-light); }

.form-row input, .form-row textarea {
  padding: 12px 14px;
  border: 1px solid #ddd4c4;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
  color: var(--color-text);
  resize: vertical;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--color-gold); text-align: center; min-height: 1.2em; }

/* -------------------- Footer -------------------- */

.site-footer { background: var(--color-dark); color: #cfc9c0; padding: 44px 0; }

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

.footer-social { display: flex; gap: 24px; }

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

.footer-copy { font-size: 0.82rem; color: #8a847b; width: 100%; text-align: center; margin-top: 20px; }

.footer-legal { font-size: 0.82rem; color: #8a847b; width: 100%; text-align: center; margin-top: 8px; display: flex; justify-content: center; gap: 10px; }

.footer-legal a { color: #cfc9c0; }
.footer-legal a:hover { color: var(--color-gold-light); }

/* -------------------- Rechtliche Seiten (Impressum, Datenschutz) -------------------- */

.legal { padding: 150px 0 100px; }

.legal .container { max-width: 820px; }

.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }

.legal .legal-updated { color: var(--color-text-light); font-size: 0.85rem; margin-bottom: 44px; }

.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }

.legal p, .legal li { color: var(--color-text-light); margin-bottom: 14px; }

.legal ul { padding-left: 20px; }

.legal a { color: var(--color-gold); text-decoration: underline; }

.legal strong { color: var(--color-dark); }

/* -------------------- Back to top -------------------- */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .main-nav.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.3); }

  .burger { display: flex; }

  .services-grid, .testimonial-grid { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .contact-form { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .about-facts { gap: 28px; }
}
