/* =========================================================================
   Die Goldene Nacht – Art-Deco-Stylesheet
   ========================================================================= */

:root {
  --black: #0a0907;
  --ink: #14110c;
  --coal: #1d1912;
  --panel: #231d14;
  --gold: #d4af37;
  --gold-2: #f3d978;
  --gold-3: #8c6d1f;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --cream: #f4ead3;
  --cream-dim: #cdbf9e;
  --emerald: #0f3b2e;
  --emerald-2: #16503e;
  --emerald-deep: #07201a;
  --emerald-black: #04120e;
  --burgundy: #4a1420;
  --burgundy-2: #6d1f2e;
  --burgundy-deep: #2a0a10;
  --marble: #5a2a1f;
  --marble-2: #8a4a35;
  --red: #a4272f;

  /* Oberflächen */
  --surface-emerald: linear-gradient(180deg, #0f3a2d 0%, #0a2a21 55%, #07201a 100%);
  --surface-velvet: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06), transparent 50%),
                    linear-gradient(180deg, #5a1826 0%, #3d0f1a 60%, #2a0a10 100%);
  --surface-marble: repeating-linear-gradient(112deg, transparent 0 22px, rgba(255,215,170,0.07) 22px 24px, transparent 24px 61px),
                    repeating-linear-gradient(68deg, transparent 0 35px, rgba(0,0,0,0.18) 35px 37px, transparent 37px 90px),
                    linear-gradient(180deg, #6a3224 0%, #4e2118 50%, #6a3224 100%);

  --font-display: 'Limelight', 'Poiret One', Georgia, serif;
  --font-deco: 'Poiret One', 'Josefin Sans', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-script: 'Pinyon Script', 'Brush Script MT', cursive;

  --gold-grad: linear-gradient(180deg, #f6e3a1 0%, #d4af37 35%, #a8841f 60%, #e9cf6e 100%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--emerald-black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-state="locked"] { overflow: hidden; }

::selection { background: var(--gold); color: var(--black); }

a { color: var(--gold-2); }

h1, h2, h3 { font-weight: 400; margin: 0; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hintergrund: feines Art-Deco-Muster */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--emerald-black);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(109, 31, 46, 0.45), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.11' stroke-width='1'%3E%3Cpath d='M0 40 A40 40 0 0 1 80 40'/%3E%3Cpath d='M10 40 A30 30 0 0 1 70 40'/%3E%3Cpath d='M20 40 A20 20 0 0 1 60 40'/%3E%3Cpath d='M30 40 A10 10 0 0 1 50 40'/%3E%3Cpath d='M-40 80 A40 40 0 0 1 40 80'/%3E%3Cpath d='M-30 80 A30 30 0 0 1 30 80'/%3E%3Cpath d='M-20 80 A20 20 0 0 1 20 80'/%3E%3Cpath d='M40 80 A40 40 0 0 1 120 80'/%3E%3Cpath d='M50 80 A30 30 0 0 1 110 80'/%3E%3Cpath d='M60 80 A20 20 0 0 1 100 80'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #0a2a22 0%, #061914 60%, #04120e 100%);
}

/* =========================================================================
   DIE TÜR
   ========================================================================= */

:root {
  --wall-w: clamp(28px, 7vw, 120px);   /* Breite der Wand links/rechts */
  --transom-h: clamp(64px, 11vh, 120px); /* Höhe des Oberlichts */
}

#door {
  position: fixed;
  inset: 0;
  z-index: 100;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  overflow: hidden;
}

body[data-state="open"] #door { display: none; }

/* Dunkler Hintergrund im Türrahmen – verschwindet beim Öffnen, dahinter liegt der Inhalt */
.door-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(180deg, #07201a 0%, #0c3127 50%, #07201a 100%);
  transition: opacity 1.2s ease 0.3s;
}
#door.opening .door-backdrop { opacity: 0; }

/* Marmorwand links/rechts und Sturz oben */
.door-wall {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--wall-w);
  background:
    var(--surface-marble);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  z-index: 3;
}
.door-wall.left { left: 0; border-right: 2px solid var(--gold); }
.door-wall.right { right: 0; border-left: 2px solid var(--gold); }

/* Lichtschein, der beim Öffnen aus der Tür strömt */
.door-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(243, 217, 120, 0.85), rgba(212, 175, 55, 0.3) 30%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
@keyframes doorGlow { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
#door.opening .door-light { animation: doorGlow 2.4s ease-in-out forwards; }

/* Oberlicht / Sunburst über der Tür */
.door-transom {
  position: absolute;
  left: var(--wall-w);
  right: var(--wall-w);
  top: 0;
  height: var(--transom-h);
  background: linear-gradient(180deg, #0a2a21, #061a14);
  border-bottom: 3px solid var(--gold);
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.door-transom svg { width: 100%; height: 100%; display: block; }

.door-panels {
  position: absolute;
  left: var(--wall-w);
  right: var(--wall-w);
  top: var(--transom-h);
  bottom: 0;
  transform-style: preserve-3d;
  z-index: 2;
}

.panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.4), transparent 18%, transparent 82%, rgba(0,0,0,0.4)),
    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #11493a 0%, #0b3328 50%, #0f4234 100%);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.55), inset 0 0 80px rgba(0,0,0,0.45), 0 0 60px rgba(0,0,0,0.8);
  transition: transform 2.2s cubic-bezier(0.65, 0, 0.35, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}
.panel svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel-left { left: 0; transform-origin: left center; }
.panel-right { right: 0; transform-origin: right center; }

/* Türgriffe */
.panel .handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 140px;
  margin-top: -70px;
  border-radius: 7px;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(0,0,0,0.6), inset 0 0 2px rgba(255,255,255,0.6);
}
.panel-left .handle { right: 28px; }
.panel-right .handle { left: 28px; }

#door.opening .panel-left { transform: rotateY(-108deg); }
#door.opening .panel-right { transform: rotateY(108deg); }

/* Messingschild mit Eingabe */
.door-plaque {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--transom-h) / 2);
  transform: translate(-50%, -50%);
  width: min(92vw, 440px);
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.2rem);
  text-align: center;
  background:
    var(--surface-velvet);
  border: 2px solid var(--gold);
  outline: 1px solid rgba(212,175,55,0.5);
  outline-offset: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.85), 0 0 0 10px rgba(20,8,10,0.92), inset 0 0 60px rgba(0,0,0,0.35);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 4;
}
#door.opening .door-plaque { opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }

.door-plaque .eyebrow {
  font-family: var(--font-deco);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.door-plaque h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.door-plaque .hint {
  margin: 1rem 0 1.2rem;
  color: var(--cream-dim);
  font-style: italic;
  font-size: 1.05rem;
}

.pw-form { display: flex; flex-direction: column; gap: 0.8rem; }

.pw-form input {
  width: 100%;
  font-family: var(--font-deco);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-align: center;
  padding: 0.8rem 1rem;
  color: var(--cream);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--gold-3);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pw-form input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.pw-form input::placeholder { color: rgba(205,191,158,0.45); letter-spacing: 0.2em; }

.btn-gold {
  display: inline-block;
  font-family: var(--font-deco);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  color: var(--black);
  background: var(--gold-grad);
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }

.pw-error {
  min-height: 1.4em;
  margin: 0.2rem 0 0;
  color: #e8a7a7;
  font-size: 1rem;
}

@keyframes shake {
  10%, 90% { transform: translate(calc(-50% - 2px), -50%); }
  20%, 80% { transform: translate(calc(-50% + 4px), -50%); }
  30%, 50%, 70% { transform: translate(calc(-50% - 6px), -50%); }
  40%, 60% { transform: translate(calc(-50% + 6px), -50%); }
}
.door-plaque.shake { animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both; }

.door-footer {
  position: absolute;
  left: 0; right: 0; bottom: 2vh;
  text-align: center;
  font-family: var(--font-deco);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(212,175,55,0.6);
  z-index: 4;
  transition: opacity 0.4s;
}
#door.opening .door-footer { opacity: 0; }

/* =========================================================================
   INHALT
   ========================================================================= */

#main {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease 0.6s;
}
body[data-state="open"] #main, #main.revealed { opacity: 1; }

.wrap { width: min(100% - 2.5rem, 860px); margin: 0 auto; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0 3rem;
  overflow: hidden;
}
.hero-sunburst {
  position: absolute;
  left: 50%; top: 50%;
  width: min(140vw, 1300px);
  height: min(140vw, 1300px);
  transform: translate(-50%, -52%);
  opacity: 0.8;
  pointer-events: none;
  animation: slowspin 180s linear infinite;
}
@keyframes slowspin { to { transform: translate(-50%, -52%) rotate(360deg); } }
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-deco);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  color: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.08;
  margin: 1.2rem auto 1rem;
  max-width: 14ch;
  letter-spacing: 0.02em;
}
.hero .sub {
  font-family: var(--font-deco);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero .when {
  margin-top: 1.4rem;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--cream-dim);
}
.hero .cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  display: inline-block;
  font-family: var(--font-deco);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.7;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* --- Countdown ----------------------------------------------------------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.8rem);
  margin-top: 2.4rem;
}
.countdown .unit {
  min-width: 64px;
  padding: 0.6rem 0.4rem 0.5rem;
  border: 1px solid rgba(212,175,55,0.55);
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(109,31,46,0.55), rgba(42,10,16,0.75));
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.countdown .num {
  font-family: var(--font-deco);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  font-family: var(--font-deco);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.3rem;
}

/* --- Deko-Trenner -------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  width: min(100% - 2.5rem, 560px);
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 44px; height: 22px; flex: none; }

/* --- Brief --------------------------------------------------------------- */
.letter {
  position: relative;
  padding: clamp(2rem, 5vw, 3.8rem) clamp(1.4rem, 5vw, 3.6rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%),
    var(--surface-emerald);
  border: 1px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 120px rgba(0,0,0,0.25);
}
.letter::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,175,55,0.4);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 46px; height: 46px;
  color: var(--gold);
}
.corner svg { width: 100%; height: 100%; display: block; }
.corner.tl { top: -2px; left: -2px; }
.corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.corner.br { bottom: -2px; right: -2px; transform: scale(-1); }

.letter .salutation {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold-2);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.letter p { margin: 0 0 1.2em; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.letter p.lead { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
.letter p.lead::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  color: var(--gold);
}
.letter .accent {
  font-family: var(--font-deco);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-align: center;
  margin: 1.6em 0;
}
.letter .toast {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--gold-2);
  margin: 1.6em 0;
}
.letter .signature {
  margin-top: 2rem;
  text-align: right;
}
.letter .signature .closing { font-style: italic; color: var(--cream-dim); margin: 0; }
.letter .signature .name {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--gold-2);
  line-height: 1;
  margin-top: 0.2em;
}

/* --- Überschriften ------------------------------------------------------- */
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: 0.03em;
  margin-top: 0.6rem;
}
.section-head .lede { color: var(--cream-dim); font-style: italic; margin: 0.6rem auto 0; max-width: 50ch; }

/* --- Eckdaten ------------------------------------------------------------ */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.fact {
  position: relative;
  padding: 1.8rem 1.4rem 1.6rem;
  background: var(--surface-emerald);
  border: 1px solid rgba(212,175,55,0.5);
  border-top: 3px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  text-align: center;
}
.fact .icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.9rem;
  color: var(--gold);
}
.fact .icon svg { width: 100%; height: 100%; display: block; }
.fact h3 {
  font-family: var(--font-deco);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.fact .big {
  font-family: var(--font-deco);
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  color: var(--cream);
  line-height: 1.25;
}
.fact p { margin: 0.4rem 0 0; color: var(--cream-dim); font-size: 1.05rem; }
.fact .schedule { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.fact .schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dotted rgba(212,175,55,0.3); }
.fact .schedule li:last-child { border-bottom: none; }
.fact .schedule .t { font-family: var(--font-deco); color: var(--gold-2); white-space: nowrap; }
.fact .schedule .w { text-align: right; }
.fact a { text-decoration: none; border-bottom: 1px solid rgba(212,175,55,0.5); }

/* --- Dresscode ----------------------------------------------------------- */
.dresscode {
  text-align: center;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.4rem, 5vw, 3rem);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(212,175,55,0.4);
  outline-offset: 6px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243,217,120,0.18), transparent 60%),
    var(--surface-marble);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 100px rgba(0,0,0,0.35);
}
.dresscode .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 0.8rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-deco);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
}
.dresscode .items li {
  padding: 0.5rem 1.1rem;
  color: var(--gold-2);
  border: 1px solid rgba(212,175,55,0.7);
  background: rgba(20, 8, 6, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.3);
}
.dresscode p { margin: 0.6rem auto 0; max-width: 56ch; }
.dresscode .motto { font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--cream); }

/* --- Taxi ---------------------------------------------------------------- */
.taxi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(212,175,55,0.5);
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(212,175,55,0.12), transparent 60%), var(--surface-emerald);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.taxi .icon { width: 56px; height: 56px; color: var(--gold); }
.taxi .icon svg { width: 100%; height: 100%; }
.taxi h3 { font-family: var(--font-deco); letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.85rem; color: var(--gold); margin-bottom: 0.4rem; }
.taxi p { margin: 0; }
@media (max-width: 520px) { .taxi { grid-template-columns: 1fr; text-align: center; } .taxi .icon { margin: 0 auto; } }

/* --- RSVP ---------------------------------------------------------------- */
.rsvp-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.4rem, 5vw, 3rem);
  background: var(--surface-velvet);
  border: 1px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 120px rgba(0,0,0,0.3);
}
.rsvp-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(212,175,55,0.4); pointer-events: none; }

.field { margin-bottom: 1.5rem; }
.field label, .field .label {
  display: block;
  font-family: var(--font-deco);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.field input[type="text"], .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.2rem;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  background: rgba(10, 4, 6, 0.55);
  border: 1px solid rgba(212,175,55,0.6);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[type="text"]:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.field textarea { min-height: 96px; resize: vertical; }
.field .help { margin: 0.4rem 0 0; font-size: 0.98rem; color: var(--cream-dim); font-style: italic; }

/* Zusage / Absage als zwei Schalter */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(212,175,55,0.6);
  background: rgba(10, 4, 6, 0.5);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-deco);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--cream);
  margin: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
  user-select: none;
}
.choice label small { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--cream-dim); }
.choice label:hover { border-color: var(--gold); }
.choice input:focus-visible + label { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.choice input:checked + label {
  background: var(--gold-grad);
  color: var(--black);
  border-color: var(--gold-2);
}
.choice input:checked + label small { color: #3a2f12; }

.plusone { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.plusone input { width: 1.2rem; height: 1.2rem; accent-color: var(--gold); }
.plusone span { font-size: 1.15rem; }

.rsvp-extra { transition: opacity 0.3s, max-height 0.4s; overflow: hidden; }
.rsvp-extra.hidden { opacity: 0; max-height: 0; margin: 0; pointer-events: none; }

.rsvp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.rsvp-msg { min-height: 1.4em; margin: 0; font-size: 1.05rem; }
.rsvp-msg.error { color: #e8a7a7; }
.rsvp-msg.ok { color: var(--gold-2); }

.rsvp-success {
  text-align: center;
  padding: 1rem 0;
}
.rsvp-success .big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0.6rem 0;
}
.rsvp-success p { color: var(--cream-dim); }
.rsvp-success .again { background: none; border: none; color: var(--gold-2); font-family: var(--font-body); font-size: 1.05rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* --- Footer -------------------------------------------------------------- */
footer {
  text-align: center;
  padding: 3rem 1rem 2.4rem;
  font-family: var(--font-deco);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(212,175,55,0.65);
}
footer .hosts { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.6rem; }

/* --- Reveal-Animation beim Scrollen -------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-wrap { width: min(100% - 2rem, 1100px); margin: 0 auto; padding: 2rem 0 4rem; position: relative; z-index: 1; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.admin-head h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.admin-head .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.admin-head .actions form { margin: 0; }
.btn-small {
  font-family: var(--font-deco);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.6rem 1rem;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.btn-small:hover { background: var(--gold); color: var(--black); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.8rem; }
.stat { padding: 1rem; border: 1px solid rgba(212,175,55,0.5); border-top: 2px solid var(--gold); background: var(--surface-emerald); text-align: center; }
.stat .num { font-family: var(--font-deco); font-size: 2.2rem; line-height: 1; color: var(--gold-2); }
.stat .lbl { font-family: var(--font-deco); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.68rem; color: var(--cream-dim); margin-top: 0.4rem; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(212,175,55,0.5); background: rgba(4,18,14,0.6); }
table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
th, td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(212,175,55,0.18); }
th { font-family: var(--font-deco); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold); background: rgba(212,175,55,0.07); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(212,175,55,0.04); }
td.c-name { font-weight: 600; white-space: nowrap; }
td.c-date { white-space: nowrap; color: var(--cream-dim); font-size: 0.95rem; }
td.c-diet { max-width: 320px; }
td.empty { text-align: center; padding: 2.5rem; color: var(--cream-dim); font-style: italic; }
.muted { color: rgba(205,191,158,0.55); font-size: 0.9em; }
.badge { display: inline-block; font-family: var(--font-deco); letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.7rem; padding: 0.25rem 0.6rem; border: 1px solid; }
.badge-zusage { color: var(--gold-2); border-color: var(--gold); background: rgba(212,175,55,0.12); }
.badge-absage { color: #d9a3a3; border-color: rgba(164,39,47,0.7); background: rgba(164,39,47,0.12); }
.btn-del { background: none; border: 1px solid transparent; color: rgba(205,191,158,0.5); cursor: pointer; font-size: 1rem; padding: 0.2rem 0.5rem; }
.btn-del:hover { color: #e8a7a7; border-color: rgba(164,39,47,0.7); }
td.c-del form { margin: 0; }

.admin-login { min-height: 100vh; display: grid; place-items: center; position: relative; z-index: 1; padding: 1rem; }
.admin-login .door-plaque { position: static; transform: none; }

@media (max-width: 480px) {
  .door-footer { font-size: 0.6rem; letter-spacing: 0.18em; }
  .door-plaque { outline-offset: 4px; }
}

/* --- Grammophon ---------------------------------------------------------- */
.gramophone {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.6rem 2.2rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid var(--gold);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(212,175,55,0.16), transparent 55%),
    var(--surface-emerald);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 100px rgba(0,0,0,0.25);
}
.gramophone-art { color: var(--gold); width: 180px; height: 180px; }
.gramophone-art svg { width: 100%; height: 100%; display: block; }
.gramophone-art .notes { animation: floatNotes 3s ease-in-out infinite; transform-origin: 140px 65px; }
@keyframes floatNotes { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(-6px); opacity: 1; } }
.gramophone-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0.5rem 0 0.3rem; }
.gramophone-body .lede { color: var(--cream-dim); font-style: italic; margin: 0 0 1.1rem; }
.gramophone-player iframe.spotify { display: block; border: 0; border-radius: 12px; }
.gramophone-player .help { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--cream-dim); font-style: italic; }
@media (max-width: 640px) {
  .gramophone { grid-template-columns: 1fr; text-align: center; }
  .gramophone-art { margin: 0 auto; width: 140px; height: 140px; }
}

/* --- Schwebender Musik-Knopf ------------------------------------------- */
.music-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem 0.7rem 0.8rem;
  color: var(--gold-2);
  background: rgba(14, 11, 8, 0.92);
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-deco);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s, background 0.2s;
}
body[data-state="open"] .music-fab { opacity: 1; transform: none; }
.music-fab:hover { background: rgba(212,175,55,0.15); }
.music-fab svg { width: 22px; height: 22px; flex: none; }
.music-fab .ic-off { display: none; }
.music-fab[aria-pressed="false"] .ic-off { display: block; }
.music-fab[aria-pressed="true"] { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); animation: fabPulse 2.4s ease-out infinite; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.45), 0 10px 30px rgba(0,0,0,0.6); } 100% { box-shadow: 0 0 0 16px rgba(212,175,55,0), 0 10px 30px rgba(0,0,0,0.6); } }
.music-fab-label { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .music-fab-label { display: none; } .music-fab { padding: 0.75rem; } }
.music-inline { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.music-inline .btn-gold, .music-inline .btn-outline { font-size: 0.9rem; padding: 0.75rem 1.3rem; }
@media (max-width: 640px) { .music-inline { justify-content: center; } }

/* Goldglanz auf Überschriften */
.hero h1, .section-head h2, .door-plaque h1 { filter: drop-shadow(0 0 18px rgba(212,175,55,0.28)); }
.divider { color: var(--gold-2); }
