/* Wedding Website - Custom Styles (nur was Tailwind nicht abdeckt) */

/* Lokale Schrift */
@font-face {
  font-family: 'Sloop Script';
  src: url('../font/Sloop_Script_Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* Font Variablen */
:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', sans-serif;
  --color-rose: #c9a99a;
  --color-rose-light: #f5ece9;
  --color-gold: #c8a96e;
  --color-sage: #8a9e8d;
  --color-ivory: #faf7f4;
  --color-text: #455d36;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-ivory);
}

h1, h2 {
  font-family: 'Sloop Script', cursive;
}

h3, h4 {
  font-family: 'Sloop Script', cursive;
  font-size: 2.25rem !important;
}

/* Sanfter Scroll */
html {
  scroll-behavior: smooth;
}

/* Hero Overlay Gradient */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

/* Section Divider */
.divider-rose {
  width: 60px;
  height: 2px;
  background: var(--color-rose);
  margin: 0 auto;
}

/* Gold Akzent */
.text-gold { color: var(--color-gold); }
.bg-rose-soft { background-color: var(--color-rose-light); }
.bg-ivory { background-color: var(--color-ivory); }
.border-rose-soft { border-color: var(--color-rose); }

/* Timeline */
.timeline-dot {
  width: 14px;
  height: 14px;
  background: #455d36;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #455d36;
  flex-shrink: 0;
}

/* Karten Hover */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Formular Inputs */
.form-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--color-rose);
  box-shadow: 0 0 0 3px rgba(201, 169, 154, 0.15);
}

/* Submit Button */
.btn-wedding {
  background: #93a14e;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding: 14px 48px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-wedding:hover {
  background: #7d8a42;
  transform: translateY(-1px);
}

/* Logo */
.logo-btn {
  cursor: pointer;
  transition: transform 0.2s;
}
.logo-btn:hover {
  transform: scale(1.05);
}

/* Herzchen Regen */
.heart-particle {
  position: fixed;
  top: -60px;
  font-size: 1.5rem;
  animation: heartFall linear forwards;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
}

@keyframes heartFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(20deg); opacity: 0; }
}

/* Farbpalette Chips */
.color-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Grosse Farbpalette Chips (Dresscode, volle Breite) */
.color-chip-lg {
  width: 99px;
  height: 99px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Nav sticky */
.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 244, 0.92);
  border-bottom: 1px solid rgba(201,169,154,0.3);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 1;
}

.nav-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

/* Smooth Collapse */
.collapse-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  overflow: hidden;
}
.collapse-wrap.open {
  grid-template-rows: 1fr;
}
.collapse-inner {
  min-height: 0;
}

/* Mobile Nav Links */
.mobile-nav-link {
  display: block;
  padding: 10px 4px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: var(--color-rose);
}

/* Burger → X Animation */
.burger-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Fehler-Dialog ────────────────────────────────────────────── */
.error-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(69, 93, 54, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.error-dialog-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.error-dialog-box {
  background: #fff;
  border-radius: 14px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  text-align: center;
}
.error-dialog-overlay.is-open .error-dialog-box {
  transform: translateY(0);
}
.error-dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text);
  cursor: pointer;
  opacity: 0.4;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity 0.15s;
}
.error-dialog-close:hover { opacity: 1; }
.error-dialog-icon {
  font-size: 2.4rem;
  color: #c0392b;
  margin-bottom: 10px;
  line-height: 1;
}
.error-dialog-heading {
  font-family: 'Sloop Script', cursive !important;
  font-size: 2rem !important;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.error-dialog-message {
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
  white-space: pre-line;
}
.error-dialog-btn {
  display: inline-block;
  background: var(--color-rose);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.error-dialog-btn:hover { opacity: 0.85; }

/* Radio Buttons custom */
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 20px;
  border: 1.5px solid #e0d6d2;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.radio-option:has(input:checked) {
  border-color: #93a14e;
  background: #7b86414f;
}
.radio-option input[type="radio"] {
  accent-color: var(--color-rose);
  width: 18px;
  height: 18px;
}
