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

:root {
  --cream: #FAF8F5;
  --gold: #B8924A;
  --gold-light: #D4AF70;
  --green: #2E4034;
  --green-light: #3D5544;
  --text: #2C2417;
  --text-muted: #7A6E63;
  --border: #E8E0D0;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(44,36,23,.12);
  --radius: 12px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

section { padding: 80px 0; }
section:nth-child(even) { background: var(--white); }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold);
}
.divider span { color: var(--gold); font-size: 1.2rem; }

/* ===== LOGIN OVERLAY ===== */
#login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, #1a2a1e 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.login-box .script-name {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.login-box p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.login-box input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 2px;
}
.login-box input:focus { border-color: var(--gold); }
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .1s;
  width: 100%;
}
.btn-primary:hover { background: var(--green-light); }
.btn-primary:active { transform: scale(.98); }
.login-error {
  color: #c0392b;
  font-size: .85rem;
  margin-top: 10px;
  min-height: 20px;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 20px;
  transition: background .3s, box-shadow .3s, padding .3s;
}
#navbar.scrolled {
  background: rgba(46,64,52,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding: 10px 20px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav menu */
.nav-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,64,52,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  color: var(--white);
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
}
.nav-menu a:hover { color: var(--gold-light); }

/* ===== HERO ===== */
#hero {
  height: 100dvh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,48,36,.55) 0%, rgba(10,20,14,.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 20px;
}
.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
  margin-bottom: 8px;
}
.hero-date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.hero-place {
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,.8);
  letter-spacing: 2px;
  margin-bottom: 40px;
}
.countdown {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.countdown-item {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 72px;
}
.countdown-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-light);
}
.countdown-label {
  display: block;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}
.hero-scroll svg { opacity: .6; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABLAUF ===== */
#ablauf { background: var(--cream); }
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: 40px; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 40px; }
.timeline-time {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 6px;
}
.timeline-content p { color: var(--text-muted); font-size: .95rem; }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50%;
  z-index: 1;
}
.menu-placeholder {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}
.menu-placeholder strong { color: var(--green); display: block; font-style: normal; margin-bottom: 4px; }

/* ===== LOCATION ===== */
#location { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.location-text h3 { font-size: 1.6rem; color: var(--green); margin-bottom: 16px; }
.location-text p { color: var(--text-muted); margin-bottom: 12px; }
.location-facts {
  list-style: none;
  margin: 16px 0;
}
.location-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.location-facts li:last-child { border: none; }
.location-facts .icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.location-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e4dc 0%, #d4cfc6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: .8rem;
  text-align: center;
  padding: 12px;
}
.photo-placeholder svg { opacity: .4; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: background .2s, color .2s;
  font-size: .95rem;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ===== ANFAHRT ===== */
#anfahrt { background: var(--cream); }
.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.steps-list { list-style: none; margin: 20px 0; }
.steps-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.step-text strong { display: block; color: var(--green); margin-bottom: 2px; }
.step-text span { color: var(--text-muted); font-size: .9rem; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { display: block; width: 100%; height: 380px; border: none; }
.maps-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #4285F4;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 16px;
  transition: background .2s;
  font-size: .95rem;
}
.maps-btn:hover { background: #3367D6; color: var(--white); }
.maps-btn svg { flex-shrink: 0; }
.parking-note {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: .9rem;
  color: var(--text-muted);
}
.parking-note strong { color: var(--text); }

/* ===== HOTEL ===== */
#hotel { background: var(--white); }
.hotel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.hotel-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hotel-card-header {
  background: var(--green);
  color: var(--white);
  padding: 28px;
}
.hotel-card-header h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--white);
}
.hotel-card-header .stars { color: var(--gold-light); letter-spacing: 2px; }
.hotel-card-body { padding: 28px; }
.hotel-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.hotel-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text-muted);
}
.hotel-features .icon { color: var(--gold); }
.hotel-contact { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
.hotel-contact p { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 8px; }
.hotel-contact a { color: var(--green); font-weight: 700; }
.hotel-img-placeholder {
  background: linear-gradient(135deg, #dde8e0 0%, #c5d6c9 100%);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ===== GALERIE ===== */
#galerie { background: var(--cream); }
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,64,52,0);
  transition: background .3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(46,64,52,.4); }
.gallery-item-label {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-item-label { opacity: 1; }
.gallery-item.hidden { display: none; }
.gallery-video-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.gallery-video-item video { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon svg {
  width: 56px;
  height: 56px;
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.gallery-empty p { margin-top: 8px; font-size: .9rem; }

/* ===== FOTO UPLOAD FAB ===== */
.fab-upload {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(184,146,74,.45);
  transition: transform .2s, box-shadow .2s;
  min-height: 52px;
}
.fab-upload:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(184,146,74,.5); }
.fab-label { display: none; }
.fab-tooltip {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--green);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .9rem;
  max-width: 260px;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 499;
  display: none;
}
.fab-tooltip.visible { display: block; }
.fab-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 36px;
  border: 8px solid transparent;
  border-top-color: var(--green);
  border-bottom: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--green);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 48px 20px;
}
.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
footer p { font-size: .9rem; }
footer .heart { color: var(--gold-light); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; }
  .timeline-item:nth-child(odd) .timeline-content { margin-right: 0; text-align: left; }
  .timeline-content { margin-left: 52px !important; }
  .timeline-dot { left: 20px; top: 18px; }

  .location-grid { grid-template-columns: 1fr; }
  .location-photo-grid { grid-template-columns: repeat(2, 1fr); }

  .anfahrt-grid { grid-template-columns: 1fr; }
  .anfahrt-grid .map-container { order: -1; }
  .map-container iframe { height: 260px; }

  .hotel-grid { grid-template-columns: 1fr; }
  .hotel-features { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .fab-upload .fab-label { display: block; }

  .countdown { gap: 12px; }
  .countdown-item { padding: 12px 14px; min-width: 60px; }
  .countdown-num { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .login-box { padding: 36px 24px; }
  .login-box .script-name { font-size: 2.4rem; }
}

/* ===== Kamera-/Upload-Sheet (FAB) ===== */
.cam-sheet { position: fixed; inset: 0; z-index: 1000; display: none; }
.cam-sheet.open { display: block; }
.cam-backdrop { position: absolute; inset: 0; background: rgba(20,16,10,.55); backdrop-filter: blur(2px); }
.cam-box {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--white); color: var(--text);
  border-radius: 18px 18px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,.25); animation: camUp .22s ease;
}
@media (min-width: 540px) {
  .cam-box { bottom: auto; top: 50%; transform: translate(-50%,-50%); border-radius: 18px; }
}
@keyframes camUp { from { transform: translate(-50%, 40px); opacity: 0; } }
.cam-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.cam-title { font-family: 'Playfair Display', serif; margin: 2px 0 16px; font-size: 1.3rem; color: var(--green); }
.cam-namebox { margin-bottom: 16px; }
.cam-namebox label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.cam-namebox input { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }
.cam-choices { display: flex; flex-direction: column; gap: 10px; }
.cam-bigbtn {
  display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; background: var(--gold); color: #fff;
}
.cam-bigbtn:hover { filter: brightness(1.05); }
.cam-bigbtn.sec { background: var(--cream); color: var(--text); border: 1px solid var(--border); }
.cam-iconbtn { border: 1px solid var(--border); background: var(--white); border-radius: 12px; padding: 0 16px; font-size: 1.2rem; cursor: pointer; }
.cam-live video { width: 100%; max-height: 60vh; background: #000; border-radius: 12px; display: block; }
.cam-live-actions { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.cam-live-actions .cam-bigbtn { flex: 1; }
.cam-progress { height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; margin-top: 14px; display: none; }
.cam-progress.show { display: block; }
.cam-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.cam-msg { margin-top: 14px; padding: 11px 13px; border-radius: 10px; display: none; font-size: .92rem; }
.cam-msg.ok { display: block; background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.cam-msg.err { display: block; background: #fdecea; border: 1px solid #f5b7b1; color: #c0392b; }
.cam-link { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: .88rem; padding: 6px 4px; margin-top: 2px; align-self: center; }
.cam-link:hover { color: var(--gold-light); }
