/* ===== TOKENS ===== */
:root {
  --primary: #c4607e;
  --primary-dark: #a34d69;
  --primary-light: #f5dce4;
  --gold: #c9a84c;
  --gold-light: #f5e9c5;
  --bg: #fdf9f7;
  --bg-alt: #f7eeea;
  --text: #3d2b1f;
  --text-light: #8a6f60;
  --white: #ffffff;
  --border: #e8d8d0;
  --shadow-sm: 0 2px 8px rgba(61,43,31,.07);
  --shadow: 0 4px 24px rgba(61,43,31,.10);
  --shadow-lg: 0 8px 40px rgba(61,43,31,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .25s ease;
  --nav-h: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.mt-1 { margin-top: 1rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.link { color: var(--primary); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); text-decoration: none; }
.btn-large { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: .75rem;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.section-title + .section-sub { margin-top: .5rem; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin: .75rem auto 2rem;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf0f4 0%, #fdf9f7 50%, #fef5e0 100%);
  padding: 1.5rem;
}
.login-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--border);
}
.login-deco { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.login-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}
.login-sub { color: var(--text-light); font-size: .95rem; margin-bottom: 2rem; }
.login-input-wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pw-input-row {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-input-row input {
  width: 100%;
  padding: .85rem 3rem .85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  text-align: center;
  letter-spacing: .1em;
  transition: border-color var(--transition);
}
.pw-input-row input:focus { border-color: var(--primary); }
.toggle-pw {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: .25rem;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.toggle-pw:hover { color: var(--primary); }
.login-input-wrap .btn { width: 100%; justify-content: center; }
.error-msg { color: #d64545; font-size: .875rem; margin-top: .75rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,249,247,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  align-items: center;
}
.nav-link {
  display: block;
  padding: .45rem .85rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  background: linear-gradient(160deg, #fdf0f4 0%, #fdf9f7 45%, #fef8eb 100%);
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title span {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-style: italic;
  font-weight: 400;
}
.hero-meta { color: var(--text-light); font-size: 1.1rem; margin-bottom: .4rem; }
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 2rem 0;
}
.countdown-item { text-align: center; min-width: 80px; }
.countdown-item span {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.countdown-item label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-top: .3rem; display: block; }
.countdown-sep { font-size: 2rem; color: var(--primary); font-weight: 700; align-self: flex-start; margin-top: .2rem; }
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-shapes span {
  position: absolute;
  font-size: 2.5rem;
  opacity: .12;
  animation: float 8s ease-in-out infinite;
}
.hero-shapes span:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.hero-shapes span:nth-child(2) { top: 20%; right: 10%; animation-delay: 1.5s; }
.hero-shapes span:nth-child(3) { bottom: 25%; left: 5%; animation-delay: 3s; }
.hero-shapes span:nth-child(4) { bottom: 15%; right: 8%; animation-delay: 4.5s; }
.hero-shapes span:nth-child(5) { top: 55%; left: 50%; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== FORMS ===== */
.form-card { max-width: 620px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a6f60' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
/* Gäste-Stepper (Plus/Minus) */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.stepper-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.stepper-btn:hover:not(:disabled) { background: var(--primary); color: var(--white); }
.stepper-btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper-value {
  min-width: 3.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.stepper-hint { font-size: .85rem; color: var(--text-light); margin-top: .5rem; }
.guest-names-list { display: flex; flex-direction: column; gap: .75rem; }
.guest-name-input {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.guest-name-input:focus { border-color: var(--primary); }

.radio-group { display: flex; flex-direction: column; gap: .75rem; }
.radio-label { cursor: pointer; }
.radio-label input[type="radio"] { display: none; }
.radio-box {
  display: block;
  padding: .85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  user-select: none;
}
.radio-label input[type="radio"]:checked + .radio-box {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.radio-box:hover { border-color: var(--primary); }
.form-actions { margin-top: 2rem; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-message {
  margin-top: 1rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  text-align: center;
}
.form-message.success { background: #e6f9ec; color: #1a7a35; border: 1px solid #b6e8c5; }
.form-message.error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c3; }

/* ===== ANFAHRT ===== */
.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.anfahrt-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--text); }
.info-card p { color: var(--text-light); font-size: .95rem; line-height: 1.7; }
.map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

/* ===== FOTO-GALERIE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: .65rem 1rem;
  font-size: .85rem;
  color: var(--text-light);
  text-align: center;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--gold-light));
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.timeline-card { flex: 1; }
.timeline-time {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: .35rem;
}
.timeline-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.timeline-card p { color: var(--text-light); font-size: .95rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.faq-q:hover { background: var(--primary-light); color: var(--primary-dark); }
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; flex-shrink: 0; color: var(--primary); transition: var(--transition); }
.faq-q[aria-expanded="true"]::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-a p { color: var(--text-light); font-size: .95rem; }

/* ===== BILDER ===== */
.bilder-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 2rem;
}
.bilder-icon { font-size: 4rem; margin-bottom: 1.25rem; display: block; }
.bilder-placeholder h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.bilder-placeholder p { color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.modal-box p { color: var(--text-light); margin-bottom: 1.75rem; }
.modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* ===== ADMIN ===== */
.admin-header {
  background: var(--text);
  color: var(--white);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-header h1 { font-size: 1.15rem; font-weight: 600; }
.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-header .btn-outline { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.85); }
.admin-header .btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.demo-banner {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: #6b4f00;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number { font-family: 'Raleway', sans-serif; font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-light); margin-top: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-section h2 {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 600;
}
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg-alt);
  padding: .85rem 1.25rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: .9rem 1.25rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.table-loading { text-align: center; color: var(--text-light); padding: 2rem !important; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-yes { background: #e6f9ec; color: #1a7a35; }
.badge-no { background: #fdecea; color: #c0392b; }
.btn-delete {
  background: none;
  border: 1px solid #f5c6c3;
  color: #c0392b;
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-delete:hover { background: #fdecea; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .anfahrt-grid { grid-template-columns: 1fr; }
  .map-container { order: -1; height: 320px; aspect-ratio: unset; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link { border-radius: var(--radius-sm); padding: .65rem 1rem; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .countdown-item { min-width: 60px; }
  .countdown-sep { font-size: 1.5rem; }

  .timeline::before { left: 28px; }
  .timeline-dot { width: 56px; height: 56px; font-size: 1.4rem; }

  .login-card { padding: 2.5rem 1.5rem; }
  .card { padding: 1.25rem; }
  .modal-box { padding: 1.75rem; }
  .modal-actions { flex-direction: column; }
  .admin-header h1 { font-size: .95rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
