/* ============================================================
   erikoangelo — Fotografie aus Leidenschaft
   Warmes, helles Galerie-Design · Fraunces (selbst gehostet)
   ============================================================ */

/* ===== Fonts (lokal, DSGVO-konform) ===== */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --paper:      #f6f1e7;
  --paper-soft: #efe7d8;
  --card:       #fffdf8;
  --ink:        #211c15;
  --ink-soft:   #58503f;
  --muted:      #97907f;
  --accent:     #bc5b28;
  --accent-dark:#9c4a20;
  --line:       rgba(33, 28, 21, 0.12);
  --nav-h:      76px;
  --serif:      'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:       system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease:       cubic-bezier(0.33, 1, 0.68, 1);
  --shadow:     0 10px 30px rgba(33, 28, 21, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ===== Navigation ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(246, 241, 231, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, height 0.35s;
}

#navbar.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover        { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.25s;
}

.nav-brand span { color: var(--accent); }
.nav-brand:hover { color: var(--accent-dark); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 210;
}

.nav-hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 1.3rem 0; }

.mobile-menu ul li a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  transition: color 0.25s;
}

.mobile-menu ul li a:hover { color: var(--accent); }

/* ===== Hero ===== */
#top {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.5vw, 6.4rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-text {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2.4rem;
  line-height: 1.8;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.55s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(188, 91, 40, 0.35);
}

.btn-ghost {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid rgba(188, 91, 40, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.25s, color 0.25s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
}

.btn-ghost:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }

/* Polaroid-Stapel */
.hero-stack {
  position: relative;
  height: 520px;
  opacity: 0;
  animation: fadeIn 1.1s var(--ease) 0.5s forwards;
}

.polaroid {
  position: absolute;
  background: var(--card);
  padding: 12px 12px 42px;
  box-shadow: var(--shadow);
  border-radius: 4px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, z-index 0s;
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid figcaption {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.polaroid.p1 {
  width: 250px; height: 330px;
  top: 8%; left: 2%;
  transform: rotate(-7deg);
  z-index: 1;
}

.polaroid.p2 {
  width: 270px; height: 360px;
  top: 20%; left: 33%;
  transform: rotate(3.5deg);
  z-index: 3;
}

.polaroid.p3 {
  width: 235px; height: 315px;
  top: 2%; right: 0;
  transform: rotate(8deg);
  z-index: 2;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 22px 50px rgba(33, 28, 21, 0.22);
  z-index: 10;
}

/* ===== About ===== */
#about {
  padding: 7.5rem 2.5rem;
  background: var(--paper-soft);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.about-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.about-head h2 em { font-style: italic; color: var(--accent); font-weight: 400; }

.about-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 760px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem 1.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.about-card .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===== Galerie ===== */
#galerie {
  padding: 7.5rem 1.5rem 5rem;
  max-width: 1500px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.section-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Filter */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.65rem 1.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Masonry */
.gallery-grid {
  columns: 4;
  column-gap: 14px;
}

@media (max-width: 1300px) { .gallery-grid { columns: 3; } }
@media (max-width: 780px)  { .gallery-grid { columns: 2; } }
@media (max-width: 440px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-soft);
  animation: fadeIn 0.5s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.55s var(--ease);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(33, 28, 21, 0.06);
  pointer-events: none;
}

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

.gallery-item.hidden { display: none; }

/* ===== Zitat-Band ===== */
#zitat {
  background: var(--ink);
  color: var(--paper);
  padding: 7rem 2.5rem;
  text-align: center;
}

#zitat blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.45;
  max-width: 850px;
  margin: 0 auto;
}

#zitat cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 15, 11, 0.96);
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 87vh;
  object-fit: contain;
  user-select: none;
  transition: opacity 0.22s;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

#lb-img.loading { opacity: 0; }

#lb-close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(246, 241, 231, 0.6);
  transition: color 0.2s, transform 0.3s var(--ease);
  background: none;
  border: none;
  font-weight: 300;
}

#lb-close:hover { color: #fff; transform: rotate(90deg); }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(246, 241, 231, 0.07);
  border: 1px solid rgba(246, 241, 231, 0.15);
  color: rgba(246, 241, 231, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  transition: all 0.25s var(--ease);
  user-select: none;
  backdrop-filter: blur(6px);
}

.lb-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#lb-prev { left: 1.4rem; }
#lb-next { right: 1.4rem; }

#lb-counter {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(246, 241, 231, 0.45);
}

/* ===== Unterseiten (Impressum / Datenschutz) ===== */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
}

.page-content h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.page-content h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.4rem 0 0.7rem;
}

.page-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink-soft);
}

.page-content p {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  line-height: 1.85;
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { color: var(--accent-dark); }

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 2rem 3.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer-brand span { color: var(--accent); }

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(246, 241, 231, 0.55);
  margin-bottom: 2.4rem;
}

.footer-links {
  margin-bottom: 2.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a { color: rgba(246, 241, 231, 0.55); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-links .sep { margin: 0 1rem; color: rgba(246, 241, 231, 0.2); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(246, 241, 231, 0.3);
}

/* ===== Animationen ===== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stack {
    height: 400px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
  .polaroid.p1 { width: 200px; height: 265px; left: 4%; }
  .polaroid.p2 { width: 215px; height: 290px; left: 36%; }
  .polaroid.p3 { width: 190px; height: 255px; right: 2%; }
}

@media (max-width: 860px) {
  .about-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #navbar { padding: 0 1.4rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand { position: static; transform: none; }

  #top { padding: calc(var(--nav-h) + 1.5rem) 1.4rem 3rem; }

  .hero-stack { height: 300px; }
  .polaroid.p1 { width: 138px; height: 185px; left: 0; top: 12%; }
  .polaroid.p2 { width: 150px; height: 205px; left: 31%; top: 22%; }
  .polaroid.p3 { width: 132px; height: 178px; right: 0; top: 4%; }
  .polaroid { padding: 7px 7px 26px; }
  .polaroid figcaption { font-size: 0.65rem; bottom: 5px; }

  #about { padding: 5rem 1.4rem; }
  #zitat { padding: 5rem 1.4rem; }

  .filter-btn { padding: 0.55rem 1.2rem; font-size: 0.65rem; }

  .lb-arrow { width: 42px; height: 42px; font-size: 1.2rem; }
  #lb-prev { left: 0.6rem; }
  #lb-next { right: 0.6rem; }
}
