/* Lokal gehostete Schriften (kein Google-Fonts-Request nötig) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/CormorantGaramond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/CormorantGaramond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/GreatVibes.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/Jost.woff2") format("woff2");
}

:root {
  --black: #141414;
  --ink: #2b2b2b;
  --white: #ffffff;
  --paper: #fdfcfa;
  --gold: #c2a05c;
  --gold-deep: #a8863f;
  --gold-soft: #e9dcc0;
  --grey: #757068;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.2rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-soft);
}

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.1rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.2rem 0;
  position: relative;
  transition: color 0.4s ease;
}
nav.scrolled a {
  color: var(--ink);
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}
nav a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
header {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(194, 160, 92, 0.16),
      transparent 55%
    ),
    linear-gradient(175deg, #191919 0%, #101010 60%, #161513 100%);
  padding: 6rem 1.5rem 4rem;
}

.hero-eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
  animation: fadeUp 1.2s 0.2s ease both;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 1.15;
  animation: fadeUp 1.2s 0.5s ease both;
  position: relative;
}
/* Nur die Normalschrift bestimmt Breite und Position:
   die Runen werden mittig darübergelegt, ohne Platz einzunehmen. */
.name-slot {
  position: relative;
  display: inline-block;
}
/* Buchstaben-Welle: jedes Zeichen blendet einzeln, zeitversetzt um */
.name-variant .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.name-variant.visible .ch {
  opacity: 1;
  transform: translateY(0);
}
.name-variant.runes {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 0.06em));
  font-family: Georgia, serif;
  font-size: 0.72em;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}
/* Runen sind breiter als die Namen: am & verankern,
   damit sie nur nach aussen wachsen und das & frei bleibt */
.name-slot:first-of-type .name-variant.runes {
  right: 0;
}
.name-slot:last-of-type .name-variant.runes {
  left: 0;
}
@media (max-width: 720px) {
  .name-variant.runes {
    font-size: 0.58em;
    letter-spacing: 0.1em;
  }
}
.hero-names .amp {
  display: inline-block;
  color: var(--gold);
  font-size: 0.55em;
  transform: translateY(-0.25em);
  padding: 0 0.12em;
}

.hero-date {
  font-family: "Jost", sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeUp 1.2s 0.8s ease both;
}

.hero-place {
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.8rem;
  animation: fadeUp 1.2s 1s ease both;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.4rem auto 0;
  animation: fadeUp 1.2s 1.1s ease both;
}
.ornament .line {
  width: clamp(50px, 12vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament .line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ornament svg {
  flex-shrink: 0;
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(1.2rem, 5vw, 3rem);
  margin-top: 2.6rem;
  animation: fadeUp 1.2s 1.3s ease both;
}
.count-unit {
  text-align: center;
  min-width: 3.5rem;
}
.count-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.count-label {
  font-family: "Jost", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint svg {
  display: block;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem;
}
.container {
  max-width: 820px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 0.9rem;
}
h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  text-align: center;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 0 auto 2.8rem;
}
.section-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-divider .line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead {
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.3rem);
  max-width: 620px;
  margin: 0 auto;
  color: var(--grey);
}
.lead em {
  color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 560px;
  margin: 3.2rem auto 0;
  padding-left: 2.2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    var(--gold-soft),
    var(--gold),
    var(--gold-soft)
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 15px var(--gold);
  transform: scale(0.65);
}
.timeline-time {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.timeline-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--black);
  margin: 0.15rem 0 0.2rem;
}
.timeline-text {
  color: var(--grey);
  font-size: 1.1rem;
}

/* ---------- Location ---------- */
.location-section {
  background: var(--white);
}
.location-card {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gold-soft);
  background: var(--paper);
  overflow: hidden;
}
.location-info {
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.location-address {
  color: var(--grey);
  font-size: 1.15rem;
  line-height: 1.6;
}
.location-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.location-note svg {
  flex-shrink: 0;
  color: var(--gold-deep);
}

.btn {
  display: inline-block;
  margin-top: 1.8rem;
  align-self: flex-start;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  border: 1px solid var(--gold);
  padding: 0.85rem 1.8rem;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.btn:hover {
  background: var(--gold);
  color: var(--white);
}

.location-map {
  min-height: 320px;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- Info cards (Dresscode / Geschenke) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(20, 20, 20, 0.18);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  margin-bottom: 1.3rem;
}
.card h3 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 0.7rem;
}
.card p {
  color: var(--grey);
  font-size: 1.1rem;
}
.card p em {
  color: var(--ink);
}

/* ---------- Fotos (Upload + Galerie) ---------- */
.fotos-section {
  background: var(--white);
}
.upload-card {
  max-width: 560px;
  margin: 3rem auto 0;
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}
.upload-card label {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
  text-align: left;
}
.upload-card input[type="text"] {
  width: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.4rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.upload-card input[type="text"]:focus {
  border-color: var(--gold);
}
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
}
.btn-file,
.btn-send {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--black);
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease;
}
.btn-file:hover {
  background: var(--gold-soft);
}
.btn-send {
  background: var(--gold);
  color: var(--white);
}
.btn-send:hover {
  background: var(--gold-deep);
}
.btn-send:disabled {
  opacity: 0.45;
  cursor: default;
}
.file-chosen {
  font-size: 1.05rem;
  color: var(--grey);
  margin-top: 0.9rem;
  font-style: italic;
}
.upload-progress {
  height: 3px;
  background: var(--gold-soft);
  margin-top: 1.2rem;
  display: none;
}
.upload-progress .bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease;
}
.upload-status {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 1.5em;
}
.upload-status.error {
  color: #9c3c3c;
}
.upload-hint {
  font-size: 0.95rem;
  color: var(--grey);
  margin-top: 0.9rem;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 3rem;
}
.foto-grid figure {
  margin: 0;
  cursor: zoom-in;
}
.foto-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--gold-soft);
  background: var(--paper);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.foto-grid figure:hover img {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(20, 20, 20, 0.25);
}
.foto-grid figcaption {
  font-family: "Jost", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.4rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.foto-empty {
  text-align: center;
  color: var(--grey);
  font-style: italic;
  margin-top: 2.6rem;
}

/* Lightbox / Diashow */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0d0d0d;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3.5rem 0 2.5rem;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 74vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-caption {
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.3rem;
  text-align: center;
  padding: 0 1rem;
}
.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.6rem;
  transition: color 0.3s ease;
  line-height: 0;
}
.lb-btn:hover {
  color: var(--gold);
}
.lb-close {
  top: 1rem;
  right: 1rem;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 0.4rem;
}
.lb-next {
  right: 0.4rem;
}
.lb-topbar {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
}
.lb-play {
  position: static;
}
@media (max-width: 720px) {
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 0.6rem;
    transform: none;
  }
  .lightbox img {
    max-height: 66vh;
  }
}

/* ---------- Closing ---------- */
.closing {
  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(194, 160, 92, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, #161616, #101010);
  color: var(--white);
  text-align: center;
}
.closing .script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.3;
}
.closing .sub {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  font-size: 1.2rem;
}

footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1.6rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
footer .heart {
  color: var(--gold);
}
footer a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  nav {
    gap: 1.1rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
  .location-card {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .btn {
    align-self: center;
  }
  .location-info {
    text-align: center;
  }
  .location-note {
    justify-content: center;
  }
}

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