/* ============================================================
   Julian & Magdalena – Hochzeitswebsite
   Stilrichtung: handgezeichnet / Pastell-Rosa, inspiriert
   von der Einladung
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Patrick+Hand&family=Shadows+Into+Light&display=swap');

:root {
  --cream: #FFF8F4;
  --cream-2: #FBEEE6;
  --ink: #2B2A2A;
  --ink-soft: #4A4848;
  --rose: #F4B6C2;
  --rose-2: #FDE4EA;
  --rose-3: #E89BAB;
  --rose-deep: #C77389;
  --green-soft: #C9D9B9;
  --yellow-soft: #F8E5A1;
  --shadow: 3px 3px 0 var(--ink);
  --shadow-rose: 3px 3px 0 var(--rose-3);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 19px;
  color: var(--ink);
  background-color: var(--cream);
  /* Sanftes "Papier"-Rauschen */
  background-image:
    radial-gradient(circle at 25% 15%, rgba(244, 182, 194, 0.10) 0, transparent 35%),
    radial-gradient(circle at 75% 85%, rgba(244, 182, 194, 0.08) 0, transparent 40%);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin: 0 0 0.6em;
  line-height: 1.1;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

a {
  color: var(--rose-deep);
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--ink); }

/* ============================================================
   Layout
   ============================================================ */

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 30px 0 80px;
  min-height: 70vh;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  background: var(--cream);
  border-bottom: 2px dashed var(--ink);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand:hover { color: var(--rose-deep); }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--rose-2);
  border-color: var(--ink);
  transform: rotate(-1deg);
}

.nav-badge {
  background: var(--rose-3);
  color: white;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.85rem;
  margin-left: 5px;
  font-family: 'Patrick Hand', cursive;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

/* ============================================================
   Karten / Cards (mit handgezeichnetem Look)
   ============================================================ */

.card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin: 0 0 24px;
  position: relative;
}

.card.pink {
  background: var(--rose-2);
}

.card.tilted-left { transform: rotate(-0.6deg); }
.card.tilted-right { transform: rotate(0.6deg); }

/* "Wackelige" Umrandung wie auf der Einladung */
.wavy-frame {
  position: relative;
  padding: 30px;
  background: var(--cream);
}
.wavy-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  pointer-events: none;
  /* Leicht versetzter Schatten */
  box-shadow: 4px 4px 0 var(--rose);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn,
button.btn,
input[type="submit"].btn {
  display: inline-block;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  padding: 10px 24px;
  background: var(--rose);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.btn-secondary {
  background: var(--cream);
}
.btn.btn-danger {
  background: #F4B6B6;
}
.btn.btn-success {
  background: var(--green-soft);
}
.btn.btn-small {
  padding: 5px 14px;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ============================================================
   Form-Elemente
   ============================================================ */

label {
  display: block;
  font-size: 1.1rem;
  margin: 12px 0 5px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  margin: 0 0 8px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--rose-3);
  background: var(--rose-2);
}

textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   Flash-Nachrichten
   ============================================================ */

.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.flash {
  padding: 12px 18px;
  margin-bottom: 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--rose-2);
  box-shadow: var(--shadow);
}
.flash.error { background: #FCD3D3; }
.flash.success { background: var(--green-soft); }
.flash.warning { background: var(--yellow-soft); }

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 2px dashed var(--ink);
  padding: 24px 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--ink-soft);
}

footer .hearts { color: var(--rose-3); font-size: 1.5rem; }

/* ============================================================
   Startseite / Hero
   ============================================================ */

.hero {
  text-align: center;
  padding: 30px 0 50px;
  position: relative;
}

.hero-doodles {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}

.hero-doodles img,
.hero-doodles svg {
  width: 60px;
  height: 60px;
}

.hero h1 {
  font-size: 4.5rem;
  margin: 10px 0 5px;
}
.hero h1 .amp { color: var(--rose-3); }

.hero-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
  max-width: 560px;
  margin: 12px auto 30px;
  line-height: 1.5;
}

.hero-locations {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  margin: 6px 0;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.countdown-box {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 110px;
  text-align: center;
  box-shadow: var(--shadow-rose);
  transform: rotate(-1deg);
}
.countdown-box:nth-child(even) { transform: rotate(1deg); }
.countdown-num {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose-deep);
  display: block;
  line-height: 1;
}
.countdown-label {
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

/* ============================================================
   Details / Ablauf / FAQ
   ============================================================ */

.page-title {
  text-align: center;
  margin-bottom: 30px;
}
.page-title h1 { margin-bottom: 4px; }
.page-title p { font-size: 1.15rem; color: var(--ink-soft); }

.section-title {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 14px;
}

.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--rose);
}
.timeline-item:nth-child(odd) { transform: rotate(-0.5deg); }
.timeline-item:nth-child(even) { transform: rotate(0.5deg); box-shadow: 2px 2px 0 var(--rose-3); }
.timeline-icon { width: 50px; height: 50px; }
.timeline-time { font-family: 'Caveat', cursive; font-size: 1.8rem; line-height: 1; }
.timeline-title { font-size: 1.1rem; }

.faq-grid {
  display: grid;
  gap: 18px;
}
.faq-item {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.faq-item .faq-icon { width: 36px; height: 36px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.contact-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--rose-2);
  text-align: center;
}
.contact-card .name {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
}
.contact-card .phone {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
}

.maps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

/* ============================================================
   Quiz
   ============================================================ */

.quiz-question {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.quiz-question h3 { margin-bottom: 14px; font-family: 'Patrick Hand', cursive; font-size: 1.25rem; }

.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  margin: 0;
  font-weight: normal;
  transition: background 0.15s ease;
}
.quiz-options label:hover { background: var(--rose-2); }
.quiz-options input[type="radio"] {
  width: auto; margin: 0; accent-color: var(--rose-3);
}
.quiz-options input[type="radio"]:checked + span { font-weight: 700; }

.quiz-result-q {
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.quiz-result-q.correct { background: var(--green-soft); }
.quiz-result-q.wrong { background: #FCD3D3; }

.score-banner {
  text-align: center;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--rose-2);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transform: rotate(-1deg);
}
.score-banner .big {
  font-family: 'Caveat', cursive;
  font-size: 5rem;
  line-height: 1;
  color: var(--rose-deep);
}

/* ============================================================
   Gästebuch
   ============================================================ */

.guestbook-entry {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-rose);
  position: relative;
}
.guestbook-entry:nth-child(3n) { transform: rotate(-0.6deg); }
.guestbook-entry:nth-child(3n+1) { transform: rotate(0.5deg); }
.guestbook-entry:nth-child(3n+2) { background: var(--rose-2); }
.guestbook-entry .meta {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.guestbook-entry .author { color: var(--rose-deep); }
.guestbook-entry .date { font-size: 1rem; color: var(--ink-soft); }
.guestbook-entry .message { white-space: pre-line; }
.guestbook-entry .delete-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.1rem;
}
.guestbook-entry .delete-btn:hover { color: var(--rose-deep); }

/* ============================================================
   Galerie
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 8px 8px 10px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-0.8deg);
}
.gallery-card:nth-child(even) { transform: rotate(0.9deg); box-shadow: var(--shadow-rose); }
.gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink-soft);
}
.gallery-card .caption {
  padding: 6px 4px 2px;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  text-align: center;
}
.gallery-card .gallery-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================================
   Spiel
   ============================================================ */

.game-stage {
  display: block;
  margin: 0 auto;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Responsiv: volle Breite, Höhe folgt dem Seitenverhältnis (900:360 = 2.5:1) */
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 900 / 360;
  touch-action: manipulation; /* verhindert Doppeltipp-Zoom beim Spielen */
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
}

/* Mobiler Sprung-Button unter dem Spielfeld */
.game-touch-controls {
  display: none;
  margin-top: 12px;
  text-align: center;
}
.game-touch-btn {
  width: 100%;
  max-width: 900px;
  padding: 16px;
  font-size: 1.3rem;
  font-family: 'Caveat', cursive;
  background: var(--rose);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.game-touch-btn:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }

@media (hover: none) and (pointer: coarse) {
  .game-touch-controls { display: block; }
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.leaderboard th, .leaderboard td {
  padding: 8px 12px;
  border-bottom: 1.5px dashed var(--ink-soft);
  text-align: left;
}
.leaderboard tbody tr:nth-child(1) td { font-weight: 700; color: var(--rose-deep); }

/* ============================================================
   Admin
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: var(--rose-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: 'Caveat', cursive;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1;
}
.stat .label { font-size: 1rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1.5px dashed var(--ink-soft);
  text-align: left;
  font-size: 1rem;
}
.admin-table th { background: var(--rose-2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pending-row { background: var(--yellow-soft); }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.85rem;
}
.pill.approved { background: var(--green-soft); }
.pill.pending { background: var(--yellow-soft); }
.pill.admin { background: var(--rose); }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.chart-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.chart-card h3 { margin-bottom: 10px; }

/* ============================================================
   Susi-Easter-Egg
   ============================================================ */

.susi-egg {
  position: fixed; /* wird von JS auf absolute überschrieben, wenn an Elementen verankert */
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 50;
  opacity: 0.4;
  transition: opacity 0.2s ease, filter 0.2s ease;
  /* JS setzt transform: rotate(...) – CSS-Animationen würden das überschreiben,
     deshalb arbeiten wir hier mit filter für den Hover-Effekt. */
  filter: drop-shadow(0 1px 0 var(--ink-soft));
}
.susi-egg:hover {
  opacity: 1;
  filter: drop-shadow(2px 2px 0 var(--rose-3)) drop-shadow(0 0 8px var(--rose));
}
.susi-egg.found { display: none; }

.susi-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  z-index: 200;
  animation: pop 0.4s ease;
}
@keyframes pop {
  0%   { transform: translateX(-50%) scale(0.5); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.05); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.susi-counter {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  margin-left: 6px;
  color: var(--rose-deep);
}

/* ============================================================
   Helpers
   ============================================================ */

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.9rem; }
.spacer { height: 30px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.intro-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-rose);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.intro-card:hover {
  transform: translate(-2px, -2px);
  color: var(--ink);
}
.intro-card .icon { width: 48px; height: 48px; margin: 0 auto 8px; display: block; }
.intro-card h3 { margin: 8px 0 4px; }
.intro-card p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Navbar: User-Dropdown
   ============================================================ */

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-2);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.nav-dropdown-toggle:hover { transform: rotate(-1deg); }
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rose-3);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
}
.nav-caret { font-size: 0.8rem; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 200px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Patrick Hand', cursive;
}
.nav-dropdown-menu li a:hover { background: var(--rose-2); }

@media (max-width: 780px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: 1.5px dashed var(--ink); margin-top: 8px; }
  .nav-dropdown-toggle { width: 100%; justify-content: center; }
}

/* ============================================================
   Footer-Links
   ============================================================ */

.footer-links {
  margin-top: 14px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1.5px dotted var(--rose-3);
  padding: 0 4px;
}
.footer-links a:hover { color: var(--rose-deep); }
.footer-sep { color: var(--rose-3); margin: 0 4px; }

/* ============================================================
   Admin: Bilder-Slots
   ============================================================ */

.image-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.image-slot-preview {
  text-align: center;
  margin: 12px 0;
}
.image-slot-preview img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: var(--rose-2);
}
.image-slot-empty {
  display: inline-block;
  padding: 30px 24px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  width: 140px; height: 140px;
  line-height: 80px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: var(--rose-2);
}

/* ============================================================
   Admin: Export-Grid
   ============================================================ */

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.export-card {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  transition: transform 0.15s ease;
}
.export-card:hover {
  transform: translate(-2px, -2px);
  color: var(--ink);
}
.export-card h3 { margin: 0; }
.export-card p { margin: 0; flex: 1; }
.export-card .btn { align-self: flex-start; }

/* ============================================================
   Edit-Buttons in Gästebuch & Galerie
   ============================================================ */

.entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--rose);
  flex-wrap: wrap;
}
.entry-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 6px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}
.entry-action-btn:hover { color: var(--rose-deep); background: rgba(255,255,255,0.4); }

.gallery-actions {
  display: inline-flex;
  gap: 6px;
}
.gallery-actions a, .gallery-actions button { font-size: 1rem; }

/* Code-Blocks und pre */
code {
  background: var(--rose-2);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}
pre { font-size: 0.95rem; }
pre code { background: none; border: none; padding: 0; }

/* ============================================================
   Countdown: Post-Hochzeit-Zustand
   ============================================================ */

.countdown-married {
  text-align: center;
  padding: 26px 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--rose-2);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  margin: 40px auto;
  max-width: 560px;
}
.married-headline {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1.1;
}
.married-sub {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  margin-top: 8px;
}

/* ============================================================
   Galerie-Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(43, 42, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border: 3px solid var(--cream);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  background: var(--cream);
}
.lightbox-figure figcaption {
  color: var(--cream);
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  line-height: 1;
}
.lightbox-close:hover { background: var(--rose-2); }

.lightbox-nav {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  padding: 0;
}
.lightbox-nav:hover { background: var(--rose-2); }

@media (max-width: 600px) {
  .lightbox { padding: 10px; gap: 4px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .lightbox-figure figcaption { font-size: 1.2rem; }
}

/* ============================================================
   Admin: Fragen verwalten
   ============================================================ */

.question-card { position: relative; }
.q-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.q-num {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--rose-deep);
  font-weight: 700;
}
.option-list {
  display: grid;
  gap: 8px;
  margin: 6px 0 4px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-row input[type="radio"] {
  width: auto;
  flex-shrink: 0;
  accent-color: var(--rose-3);
  transform: scale(1.3);
  margin: 0 2px;
}
.option-row input[type="text"] {
  margin: 0;
  flex: 1;
}
/* Zeile mit ausgewählter (richtiger) Antwort dezent grün hinterlegen */
.option-row:has(input[type="radio"]:checked) input[type="text"] {
  background: var(--green-soft);
  border-color: var(--ink);
}
.q-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
