/* =========================================================
   Papas Geburtstagsseite – warm & nostalgisch, mobil-first
   ========================================================= */

:root {
  --cream:      #f7efe1;
  --cream-soft: #fbf6ec;
  --paper:      #fffaf1;
  --green:      #2f4a3e;
  --green-deep: #233a30;
  --amber:      #c2703d;
  --amber-soft: #d98c54;
  --ink:        #3a2f28;
  --ink-soft:   #6a5b4f;
  --line:       #e4d6bf;
  --shadow:     0 14px 40px rgba(58, 47, 40, 0.18);
  --radius:     18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.1; }

strong { color: var(--green-deep); }
em { color: var(--amber); font-style: italic; }

/* ===================== Intro-Overlay ===================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(120% 90% at 50% 0%, #3a5a47 0%, var(--green) 45%, var(--green-deep) 100%);
  color: var(--cream);
  transition: opacity 0.9s ease;
}
.intro.is-hidden { opacity: 0; pointer-events: none; }

.intro__card { max-width: 520px; animation: rise 1s ease both; }
.intro__kicker {
  font-size: 1.05rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber-soft); margin-bottom: 18px;
}
.intro__title { font-size: clamp(2.6rem, 12vw, 4.2rem); margin: 0; color: #fff; }
.intro__age {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: clamp(4.5rem, 26vw, 9rem); line-height: 1; margin: 6px 0 4px;
  color: var(--amber-soft);
  text-shadow: 0 6px 26px rgba(0,0,0,0.3);
}
.intro__hint {
  font-size: 1.25rem; margin: 24px 0 4px; color: #fff;
}
.intro__note { font-size: 1rem; color: rgba(255,255,255,0.7); margin: 0; }

/* sanftes Pulsieren als Tipp-Einladung */
.intro__card::after {
  content: "";
  display: block;
  width: 54px; height: 54px;
  margin: 26px auto 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  position: relative;
  animation: pulse 2.2s ease-in-out infinite;
}
.intro__card::before {
  content: "↑";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  margin-top: 38px;
  font-size: 1.5rem; color: #fff; z-index: 1;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== Seite / Reveal ===================== */
.page { opacity: 0; transition: opacity 1s ease; }
.page.is-visible { opacity: 1; }

section { padding: clamp(48px, 9vw, 96px) 22px; }

.section-title {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  color: var(--green);
  margin: 0 0 0.5em;
  text-align: center;
}
.section-lead {
  text-align: center; color: var(--ink-soft); margin: 0 auto 2em;
  font-style: italic;
}

/* ===================== Hero ===================== */
.hero {
  min-height: 92vh;
  min-height: 92svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 22px;
  background:
    radial-gradient(130% 80% at 50% 18%, #fffaf0 0%, var(--cream) 55%, #efe2cb 100%);
  position: relative;
}
.hero__inner { max-width: 640px; animation: rise 1.1s ease both; }
.hero__kicker {
  font-size: 0.95rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.7rem, 13vw, 5rem);
  color: var(--green-deep);
  margin: 0 0 0.4em;
}
.hero__sub { font-size: 1.3rem; color: var(--ink-soft); margin: 0; }
.hero__scroll {
  margin-top: 46px; font-size: 1.8rem; color: var(--amber);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); opacity: 0.6; }
  50%     { transform: translateY(10px); opacity: 1; }
}

/* ===================== Brief ===================== */
.letter {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.letter__inner { max-width: 620px; margin: 0 auto; }
.letter__inner p { margin: 0 0 1.25em; }
.letter .section-title { text-align: left; }
.letter__turn {
  font-size: 1.32rem; color: var(--green-deep);
  border-left: 4px solid var(--amber); padding-left: 18px;
}
.letter__close {
  font-family: "Playfair Display", serif; font-size: 1.5rem;
  color: var(--amber); margin-top: 1.6em !important;
}

/* ===================== Galerie ===================== */
.gallery { background: var(--cream); }
.gallery__head { max-width: 620px; margin: 0 auto; }
.gallery__grid {
  max-width: 960px; margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .gallery__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery__grid { grid-template-columns: 1fr 1fr 1fr; } }

.photo {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.photo__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9dcc4;
}
.photo--avail .photo__frame { cursor: zoom-in; }
.photo__img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.photo--avail:active .photo__img { transform: scale(1.03); }

.photo__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(45deg, #efe3cd 0 12px, #ead9bd 12px 24px);
}
.photo__placeholder .cam { font-size: 2rem; opacity: 0.65; }
.photo__placeholder small { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

.photo__cap {
  font-size: 1.02rem; line-height: 1.5;
  color: var(--ink-soft);
  padding: 14px 16px 18px;
}

/* ===================== Timeline ===================== */
.timeline { background: var(--green); color: var(--cream); }
.timeline .section-title { color: #fff; }
.timeline__inner { max-width: 620px; margin: 0 auto; }
.timeline__list {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.timeline__list::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: rgba(255,255,255,0.25);
}
.timeline__list li {
  position: relative; padding: 0 0 28px 38px;
}
.timeline__list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber-soft); box-shadow: 0 0 0 4px rgba(217,140,84,0.2);
}
.timeline__role {
  display: block; font-family: "Playfair Display", serif;
  font-size: 1.32rem; color: #fff;
}
.timeline__desc { display: block; color: rgba(255,255,255,0.78); font-size: 1.05rem; }

/* ===================== Unterschriften ===================== */
.signs { background: var(--cream-soft); }
.signs__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.signs__grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}
@media (min-width: 620px) { .signs__grid { grid-template-columns: repeat(4, 1fr); } }

.sign {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sign__mark {
  width: 100%; aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--line);
}
.sign__mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sign__placeholder {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: 1.7rem; color: #cbb89c;
  opacity: 0.85;
}
.sign__name {
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================== Footer ===================== */
.footer { background: var(--green-deep); color: rgba(255,255,255,0.65); text-align: center; }
.footer__heart { font-size: 1.8rem; color: var(--amber-soft); margin: 0 0 10px; }
.footer__credit { font-size: 0.82rem; margin: 0; line-height: 1.5; }

/* ===================== Musik-Button ===================== */
.audio-toggle {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--green); color: #fff;
  font-size: 1.5rem; line-height: 1;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.audio-toggle:active { transform: scale(0.92); }
.audio-toggle .audio-toggle__off { display: none; }
.audio-toggle.is-muted { background: var(--ink-soft); }
.audio-toggle.is-muted .audio-toggle__on { display: none; }
.audio-toggle.is-muted .audio-toggle__off { display: inline; }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(25, 18, 12, 0.94);
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh; max-height: 78svh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__cap {
  color: #f3e9d8; font-size: 1.08rem; line-height: 1.5;
  margin-top: 16px; max-width: 640px; padding: 0 8px;
  margin-left: auto; margin-right: auto;
}
.lightbox__close, .lightbox__nav {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox__close {
  top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 64px; border-radius: 12px; font-size: 2.4rem;
}
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
@media (max-width: 520px) {
  .lightbox__nav { width: 42px; height: 56px; font-size: 2rem; opacity: 0.85; }
}

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
