/* =========================================================
   DESIGN SYSTEM — DUNKELGRÜN #3F7F64 + SILBER
========================================================= */

:root {
  --green: #3f7f64; /* DEIN Hauptgrün */
  --green-dark: #2c5c4a; /* tieferes Grün */
  --green-light: #7faf9a; /* sanfter Grünton */
  --green-main: #3f7f64;
  --green-dark: #2b5c49;
  --green-deep: #1e4032;
  --silver: #c8cfd4;
  --silver-dark: #9da4ab;

  --silver: #c8cfd4;
  --silver-dark: #9da4ab;

  --bg: #f3f0ec; /* warmes Off-White */
  --card: #ffffff;

  --ink: #142019;
  --muted: #5f6a72;

  --shadow-sm: 0 6px 18px rgba(44, 92, 74, 0.1);
  --shadow-md: 0 12px 35px rgba(44, 92, 74, 0.18);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
}

/* =========================================================
   RESET & BASIS
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Inter,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      1200px 800px at 20% 0%,
      rgba(63, 127, 100, 0.12),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 80% 20%,
      rgba(63, 127, 100, 0.08),
      transparent 60%
    ),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--green-dark);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus {
  top: 16px;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(63, 127, 100, 0.08), transparent 35%), #efece6;
  border-top: 1px solid rgba(63, 127, 100, 0.12);
  border-bottom: 1px solid rgba(63, 127, 100, 0.12);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(63, 127, 100, 0.18), rgba(63, 127, 100, 0.05)),
    var(--bg);
}

/* =========================================================
   HEADER + NAV
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 240, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--silver);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* LOGO */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
}

.brand-logo {
  height: 44px;
  width: auto;
}

/* Navigation Desktop */
.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(63, 127, 100, 0.1);
  color: var(--green-dark);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(63, 127, 100, 0.18);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle-lines {
  width: 20px;
  height: 2px;
  background: var(--green-dark);
  display: block;
  margin: 0 auto;
  position: relative;
  border-radius: 999px;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 999px;
}
.nav-toggle-lines::before {
  top: -6px;
}
.nav-toggle-lines::after {
  top: 6px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 0 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 92, 74, 0.7), rgba(44, 92, 74, 0.35)),
    url("https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  z-index: 0;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(243, 240, 236, 0),
    rgba(243, 240, 236, 1)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-card {
  max-width: 720px;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4.5vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: #fff;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--green);
}

.hero-title {
  margin: 0.8rem 0 0.35rem;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: var(--green-dark);
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0 1.2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--silver);
}

.meta-item {
  background: rgba(63, 127, 100, 0.06);
  border: 1px solid var(--silver);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem;
}

/* ==========================================
   HERO HEADER – REFERENZBILD STYLE (GRÜN)
========================================== */

.hero-countdown {
  position: relative;
  height: 90vh;
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Hintergrundbild */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(63, 127, 100, 0.7), rgba(40, 90, 71, 0.7)),
    url("images/Medien (2).jpg") center/cover no-repeat;
  z-index: 0;
}

/* Sanfter zusätzlicher Schleier */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(63, 127, 100, 0.12),
    rgba(30, 64, 50, 0.45)
  );
  z-index: 1;
}

/* Zentraler Block */
.hero-center {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

/* COUNTDOWN KREISE (EXAKT WIE IM BILD) */
.countdown-circles {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

/* EINZELNER KREIS */
.circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ZAHL */
.circle .count {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

/* LABEL */
.circle .label {
  font-size: 0.85rem;
  color: #e2e7eb; /* silberner Ton */
}

/* NAMEN UNTER DEN KREISEN */
.hero-names {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: 0.4px;
  margin: 0.6rem 0 0.25rem;
  color: white;
}

/* DATUM DARUNTER */
.hero-date {
  font-size: 1.3rem;
  color: #d0d6dc; /* Silber */
  margin: 0;
}

/* Weicher Übergang nach unten */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(
    180deg,
    rgba(243, 240, 236, 0),
    rgba(243, 240, 236, 1)
  );
  z-index: 2;
}

/* MOBILE */
@media (max-width: 640px) {
  .hero-countdown {
    height: 82vh;
    min-height: 560px;
  }

  .circle {
    width: 90px;
    height: 90px;
  }

  .circle .count {
    font-size: 1.5rem;
  }

  .hero-names {
    font-size: 1.9rem;
  }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 10px 25px rgba(44, 92, 74, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--green-dark);
  border-color: var(--green);
}

/* =========================================================
   GRID & CARDS
========================================================= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 1.25rem;
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

/* Story Media */
.card-media img {
  border-radius: var(--r-md);
  border: 1px solid var(--silver);
}

.media-caption {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border-radius: var(--r-md);
  background: rgba(63, 127, 100, 0.04);
  border: 1px solid var(--silver);
}

/* =========================================================
   CALLOUT
========================================================= */

.callout {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    rgba(63, 127, 100, 0.12),
    rgba(63, 127, 100, 0.05)
  );
  border: 1px solid var(--silver);
}

.callout-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.25rem;
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--r-md);
  background: rgba(63, 127, 100, 0.04);
  border: 1px solid var(--silver);
}

.time {
  font-weight: 900;
  color: var(--green-dark);
}

/* =========================================================
   LOCATIONS GRID
========================================================= */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.location-card {
  margin: 0;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

.location-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.location-card figcaption {
  padding: 1rem;
  text-align: center;
}

/* =========================================================
   MAP EMBED
========================================================= */

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
}

.thumb {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
}

/* =========================================================
   FORMS (GÄSTEBUCH)
========================================================= */

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--silver);
  background: #fff;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.guestbook-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pill {
  min-width: 34px;
  height: 30px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-weight: 900;
  color: var(--green-dark);
  background: rgba(63, 127, 100, 0.08);
  border: 1px solid var(--silver);
}

.guestbook-entry {
  border-radius: var(--r-md);
  padding: 0.9rem;
  background: rgba(63, 127, 100, 0.04);
  border: 1px solid var(--silver);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: linear-gradient(180deg, var(--green-dark), #1f3f33);
  color: rgba(255, 255, 255, 0.92);
  padding: 2.2rem 0;
}

.footer a {
  color: var(--silver);
}

/* =========================================================
   RESPONSIVE NAV
========================================================= */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(243, 240, 236, 0.96);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
    border-bottom: 1px solid var(--silver);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    padding: 1rem;
  }
}

/* Small screens */
@media (max-width: 520px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .callout {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   NEUES STORY-LAYOUT (VERTIKAL)
=============================== */

.story-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Textkarte etwas luftiger */
.story-text {
  padding: 1.6rem 1.6rem 1.4rem;
}

/* Zitat optisch absetzen */
.story-quote {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  font-style: italic;
}

/* Bildkarte sauber gestaltet */
.story-image-card {
  margin: 0;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

/* Bild füllt Breite UND bleibt proportional */
.story-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bildunterschrift */
.story-image-card figcaption {
  padding: 1rem;
  text-align: center;
  background: rgba(63, 127, 100, 0.04);
  border-top: 1px solid var(--silver);
}

/* Auf kleinen Screens noch sauberer */
@media (max-width: 520px) {
  .story-wrapper {
    gap: 1.2rem;
  }
}

/* ===============================
   SCHÖNER "GUT ZU WISSEN" BLOCK
=============================== */

.info-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Raster statt Bullet-Listen */
.info-grid {
  display: grid;
  gap: 0.9rem;
}

/* Einzelner Punkt */
.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: var(--r-md);
  background: rgba(63, 127, 100, 0.04);
  border: 1px solid var(--silver);
}

/* Icons */
.info-icon {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(63, 127, 100, 0.1);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

/* Tipp-Box unten */
.tip-box {
  padding: 0.9rem;
  border-radius: var(--r-md);
  background: rgba(63, 127, 100, 0.06);
  border: 1px solid var(--silver);
}

/* Bild unten */
.info-image {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
}

.info-image figcaption {
  padding: 0.9rem;
  text-align: center;
  background: rgba(63, 127, 100, 0.04);
  border-top: 1px solid var(--silver);
}

/* =========================
   MODERNE GALERIE
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--silver);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover; /* KEINE Verzerrung mehr */
  display: block;
}

/* =========================
   LIGHTBOX (VOLLBILD)
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 25, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--r-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Schließen-Button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--silver);
  color: white;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

/* Pfeile */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--silver);
  color: white;
  font-size: 1.6rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

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

/* Zähler */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: white;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--silver);
}

/* Optional: macht die Cards "klickbar" */
.location-card img {
  cursor: zoom-in;
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  display: none; /* wird per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(100%, 1000px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: #fff;
  margin-top: 14px;
  text-align: center;
  max-width: min(100%, 1000px);
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.95;
}

/* Container für Bild + Caption (damit Caption unter dem Bild sitzt) */
.lightbox {
  flex-direction: column;
}

/* Close Button */
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   RESPONSIVE CONTACT INFO
========================= */

.contact-info {
  margin: 0.9rem 0 1.1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.25rem 0;
}

.contact-label {
  opacity: 0.85;
  font-weight: 500;
}

/* Mobile: untereinander statt nebeneinander */
@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-row a {
    font-size: 1rem;
  }
}

.text-link {
  text-decoration: underline;
  font-weight: 500;
  color: rgba(40, 90, 71, 0.7);
}

.text-link:hover {
  opacity: 0.8;
}

.qr-box {
  margin: 1.2rem auto 0;
  text-align: center;
}

.qr-box img {
  width: 200px;
  max-width: 100%;
  padding: 0.6rem;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--silver);
}

iframe {
  border-radius: var(--r-md);
}

/* =========================
   FOOTER LAYOUT (RESPONSIVE)
========================= */

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* rechte Seite optisch etwas dezenter */
.footer-right {
  text-align: right;
}

/* Mobile */
@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* =========================
   GÄSTEBUCH – TEXT + BILD
========================= */

.guestbook-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.guestbook-image {
  margin: 0;
  display: flex;
  justify-content: center;
}

.guestbook-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

/* Mobile: Bild unter Text */
@media (max-width: 720px) {
  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .guestbook-image {
    margin-top: 0.5rem;
  }
}
