/* ==========================================================================
   HOCHZEITSWOCHENENDE — Design System
   Abgeleitet aus der Corporate Design Mappe (Waldgrün & Gold/Senf)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
  --forest: #142416;       /* Waldgrün Dunkel — Haupttitel, Kerntexte */
  --gold: #B59948;         /* Gold/Senf — Akzente, Linien, Subtitel */
  --offwhite: #FAFCF9;     /* Off-White — Hintergrund */
  --graygreen: #7A857B;    /* Sekundärfarbe — Zusatzinfos */

  --gold-10: rgba(181, 153, 72, 0.1);
  --gold-30: rgba(181, 153, 72, 0.3);
  --forest-10: rgba(20, 36, 22, 0.1);
  --forest-20: rgba(20, 36, 22, 0.2);

  --section-space: clamp(4rem, 9vw, 7.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--offwhite);
  color: var(--forest);
  font-weight: 300;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typografie ---------- */

.eyebrow {
  display: inline-block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-size: 0.7rem;
}

h1, .h1 {
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--forest);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.25;
  margin: 0;
}

h2, .h2 {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold-30);
}

p { margin: 0 0 1rem; color: var(--forest); font-weight: 300; }
.muted { color: var(--graygreen); font-size: 0.85rem; }

a { color: var(--forest); }

/* ---------- Zierelemente (minimalistisch) ---------- */

.divider-line {
  width: 46px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 2rem auto;
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin: 2.5rem auto;
}

/* ---------- Layout ---------- */

.section {
  padding: var(--section-space) 1.75rem;
  max-width: 880px;
  margin: 0 auto;
}

.section--wide { max-width: 1080px; }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.4rem 1rem;
  background: rgba(250, 252, 249, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-10);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--forest);
  font-weight: 500;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
}

.hero .eyebrow { margin-bottom: 1.6rem; }

.hero .names {
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.15;
}

.hero .names em {
  font-style: normal;
  color: var(--gold);
  font-weight: 300;
  font-size: 0.5em;
  display: block;
  letter-spacing: 0.3em;
  margin: 0.6em 0;
}

.hero .meta {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--graygreen);
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--graygreen);
}

/* ---------- Ablauf / Schedule ---------- */

.day-block { margin-bottom: 4rem; }
.day-block:last-child { margin-bottom: 0; }

.schedule-row {
  display: grid;
  grid-template-columns: 14% 54% 32%;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--forest-10);
  align-items: start;
}
.day-block .schedule-row:last-child { border-bottom: none; }

.schedule-time {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--forest);
  padding-top: 0.1rem;
}

.schedule-event .tag {
  display: block;
  color: var(--gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.schedule-event .title { font-weight: 400; font-size: 1rem; }
.schedule-event .desc { color: var(--graygreen); font-size: 0.85rem; margin-top: 0.3rem; }

.schedule-location {
  text-align: right;
  font-size: 0.85rem;
}
.schedule-location .place { font-weight: 600; color: var(--forest); }
.schedule-location .detail { color: var(--graygreen); font-size: 0.78rem; margin-top: 0.2rem; }

/* ---------- RSVP Formular ---------- */

.rsvp-intro { text-align: center; margin-bottom: 3rem; }

form { max-width: 560px; margin: 0 auto; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 500;
  margin: 1.6rem 0 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--forest-20);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--forest);
}
input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; gap: 2rem; margin-top: 0.5rem; }
.radio-option {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.95rem; font-weight: 300; cursor: pointer;
}
.radio-option input { accent-color: var(--forest); width: 16px; height: 16px; }

.hint { color: var(--graygreen); font-size: 0.78rem; margin-top: 0.4rem; }

button, .btn {
  display: inline-block;
  background: var(--forest);
  color: var(--offwhite);
  border: none;
  padding: 1rem 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-top: 2.6rem;
  transition: background 0.3s ease;
}
button:hover, .btn:hover { background: var(--gold); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.success-box {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.success-box .eyebrow { margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--graygreen);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ---------- Admin ---------- */

.admin-shell { max-width: 1100px; margin: 0 auto; padding: 3rem 1.75rem 6rem; }

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gold-30);
}

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gold-30); margin-bottom: 3rem; border: 1px solid var(--gold-30);
}
.stat-card { background: var(--offwhite); padding: 1.6rem 1.2rem; text-align: center; }
.stat-card .value { font-size: 2rem; font-weight: 200; color: var(--forest); }
.stat-card .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-top: 0.4rem; }

.panel {
  border: 1px solid var(--gold-30);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th {
  text-align: left; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.65rem; color: var(--gold); font-weight: 500;
  padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--gold-30);
}
td { padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--forest-10); color: var(--forest); font-weight: 300; vertical-align: top; }
tr:last-child td { border-bottom: none; }

.table-wrap { overflow-x: auto; }

.btn-small {
  font-size: 0.68rem; padding: 0.65rem 1.4rem; margin-top: 0;
}
.btn-outline {
  background: transparent; color: var(--forest); border: 1px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--offwhite); }

.login-shell {
  min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.login-box { width: 100%; max-width: 380px; text-align: center; }

.error-text { color: #a13a2f; font-size: 0.8rem; margin-top: 1rem; min-height: 1.2em; }

.spotify-status-line { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--graygreen); display: inline-block; }
.status-dot.on { background: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .schedule-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .schedule-location { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
