/* ========================================
   Wien, ich liebe dich — Design System
   ======================================== */

:root {
  --midnight: oklch(0.18 0.04 280);
  --burgundy-deep: oklch(0.22 0.09 18);
  --burgundy: oklch(0.32 0.13 18);
  --gold: oklch(0.78 0.13 80);
  --gold-soft: oklch(0.86 0.08 85);
  --cream: oklch(0.95 0.03 80);
  --border: oklch(0.3 0.05 280 / 0.5);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-script: "Dancing Script", cursive;

  --gradient-hero: linear-gradient(180deg, oklch(0.18 0.04 280 / 0.3) 0%, oklch(0.18 0.04 280 / 0.6) 50%, oklch(0.18 0.04 280) 100%);
  --gradient-burgundy: linear-gradient(135deg, var(--burgundy-deep), var(--midnight));
  --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-soft));
  --shadow-glow: 0 0 40px oklch(0.78 0.13 80 / 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--midnight);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.italic { font-style: italic; font-weight: 400; }
.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gold-soft { color: var(--gold-soft); }
.muted { color: oklch(0.95 0.03 80 / 0.6); font-size: 0.875rem; }
.tiny {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: oklch(0.95 0.03 80 / 0.4);
}

.script-label {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.divider {
  width: 6rem;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider.small { width: 4rem; margin: 0.75rem auto; opacity: 0.6; }

/* ========================================
   Reveal-on-scroll
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out var(--delay, 0s),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Petals & Particles
   ======================================== */
.petals, .particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particles { position: absolute; z-index: 2; }

.petal {
  position: absolute;
  top: -5vh;
  width: 14px;
  height: 14px;
  background: radial-gradient(ellipse at center, oklch(0.45 0.18 18) 30%, oklch(0.3 0.15 18) 100%);
  clip-path: path("M7 0 C11 4 14 7 14 11 C14 13 11 14 7 14 C3 14 0 13 0 11 C0 7 3 4 7 0 Z");
  filter: drop-shadow(0 0 6px rgba(180, 40, 60, 0.5));
  animation: petal-fall linear infinite;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px oklch(0.78 0.13 80 / 0.8);
  animation: float-particle ease-in-out infinite;
}

@keyframes petal-fall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(110vh) translateX(40px) rotate(720deg); opacity: 0; }
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50%      { transform: translateY(-30px) translateX(20px); opacity: 0.9; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.shimmer { animation: shimmer 3s ease-in-out infinite; }

/* ========================================
   HERO
   ======================================== */
main { position: relative; z-index: 0; }

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.15);
  will-change: transform;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero), oklch(0.22 0.09 18 / 0.4);
  background-blend-mode: normal, multiply;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
}
.hero-content h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  color: var(--cream);
  line-height: 1.05;
}
.hero-sub {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: oklch(0.95 0.03 80 / 0.8);
  font-weight: 300;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: oklch(0.78 0.13 80 / 0.8);
}
.scroll-cue span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
}
.scroll-cue .line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* ========================================
   Sections
   ======================================== */
.section {
  position: relative;
  z-index: 3;
  padding: 7rem 1.5rem;
}
@media (min-width: 768px) { .section { padding: 10rem 1.5rem; } }

.container { max-width: 72rem; margin: 0 auto; }
.container.narrow { max-width: 48rem; text-align: center; }

.burgundy-bg { background: var(--gradient-burgundy); }

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

/* ========================================
   Cards (Warum Wien)
   ======================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  border: 1px solid oklch(0.78 0.13 80 / 0.15);
  background: oklch(0.22 0.09 18 / 0.4);
  border-radius: 0.5rem;
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: transform 0.5s ease, border-color 0.5s, box-shadow 0.5s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.78 0.13 80 / 0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: oklch(0.78 0.13 80 / 0.5);
  box-shadow: 0 30px 60px -20px oklch(0.22 0.09 18 / 0.9);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid oklch(0.78 0.13 80 / 0.4);
  background: oklch(0.18 0.04 280 / 0.6);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.5s, box-shadow 0.5s;
}
.card:hover .icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}
.card h3 {
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.875rem;
  color: oklch(0.95 0.03 80 / 0.7);
  line-height: 1.7;
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .gallery .big  { grid-column: span 2; grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
  .gallery .tall { grid-row: span 2; }
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease-out;
}
.gallery figure:hover img { transform: scale(1.1); }
.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--midnight) 0%, oklch(0.18 0.04 280 / 0.3) 50%, transparent 100%);
  opacity: 0.9;
  transition: opacity 0.5s;
  pointer-events: none;
}
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--gold-soft);
  z-index: 1;
  opacity: 0.9;
  transform: translateY(8px);
  transition: transform 0.5s, opacity 0.5s;
}
.gallery figure:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================
   Letter Section
   ======================================== */
.letter-section { padding: 8rem 1.5rem; overflow: hidden; position: relative; }
@media (min-width: 768px) { .letter-section { padding: 12rem 1.5rem; } }
.letter-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--burgundy);
  filter: blur(160px);
  opacity: 0.2;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.letter {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.5;
  color: var(--cream);
}

/* ========================================
   Night Section
   ======================================== */
.night {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  z-index: 3;
}
.night-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.night-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.18 0.04 280 / 0.8), oklch(0.18 0.04 280 / 0.6), var(--midnight));
}
.night-content {
  position: relative;
  z-index: 3;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.night-content h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  color: var(--cream);
}
.dots {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px oklch(0.78 0.13 80 / 0.8);
  animation: shimmer 3s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.4s; }
.dots span:nth-child(3) { animation-delay: 0.8s; }

/* ========================================
   Footer
   ======================================== */
footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid oklch(0.78 0.13 80 / 0.15);
  background: var(--midnight);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
footer .script-label { margin-bottom: 0.5rem; font-size: 1.5rem; }
footer .heart { color: var(--burgundy); }

/* ========================================
   Reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
