@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --green-950: #0a1d16;
  --green-900: #10281f;
  --green-800: #17392b;
  --green-700: #204e3a;
  --gold-300: #f0d99a;
  --gold-400: #e8c873;
  --gold-500: #d9b45c;
  --gold-600: #b8933f;
  --cream: #f8f2e4;
  --cream-dim: #cfc4a8;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(232, 200, 115, 0.16);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
a, button, input, textarea, label { touch-action: manipulation; }

body {
  font-family: var(--font-body);
  background: var(--green-950);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  animation: page-in 0.7s var(--ease) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ---------- Konfetti-Flimmer im Hero ---------- */

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.confetti span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0.5;
  animation: drift 9s ease-in-out infinite;
}

.confetti span:nth-child(1) { left: 8%;  top: 18%; width: 4px; height: 4px; animation-duration: 8s; }
.confetti span:nth-child(2) { left: 22%; top: 62%; animation-delay: 1s; }
.confetti span:nth-child(3) { left: 38%; top: 12%; width: 5px; height: 5px; animation-delay: 2s; animation-duration: 10s; }
.confetti span:nth-child(4) { left: 63%; top: 70%; animation-delay: 0.5s; }
.confetti span:nth-child(5) { left: 78%; top: 24%; width: 4px; height: 4px; animation-delay: 3s; animation-duration: 7s; }
.confetti span:nth-child(6) { left: 91%; top: 55%; animation-delay: 1.5s; }
.confetti span:nth-child(7) { left: 50%; top: 85%; width: 5px; height: 5px; animation-delay: 2.5s; animation-duration: 11s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.25; }
  50% { transform: translateY(-26px) translateX(10px); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .confetti span { animation: none; }
}

/* ---------- Mesh-Gradient Hintergrund + Grain ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 500px at 12% -8%, rgba(232, 200, 115, 0.16), transparent 60%),
    radial-gradient(900px 600px at 105% 8%, rgba(32, 78, 58, 0.65), transparent 55%),
    radial-gradient(600px 500px at 50% 115%, rgba(216, 180, 92, 0.08), transparent 60%),
    linear-gradient(165deg, var(--green-950) 0%, var(--green-900) 45%, var(--green-950) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
  flex: 1;
}

/* ---------- Navigation ---------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: rgba(10, 29, 22, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(232, 200, 115, 0.12);
}

.top-nav .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.01em;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.top-nav .brand span {
  color: var(--gold-400);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cream-dim);
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover { color: var(--cream); background: rgba(255,255,255,0.06); }

.nav-links a.active {
  color: var(--green-950);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  font-weight: 600;
}

@media (max-width: 480px) {
  .top-nav { padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
  .top-nav .brand span { display: none; }
  .nav-links a { padding: 9px 11px; font-size: 12.5px; }
}

/* ---------- Reveal-Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Kopf ---------- */

.site-header {
  text-align: center;
  padding: 72px 20px 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .site-header { padding: 44px 16px 24px; }
}

.crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 22px;
  font-weight: 500;
}

.crest .dot { color: var(--cream-dim); font-size: 6px; }

.big-number {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 168px);
  line-height: 0.85;
  font-weight: 600;
  font-optical-sizing: auto;
  font-style: italic;
  margin: 0;
  background: linear-gradient(178deg, var(--gold-300) 10%, var(--gold-600) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 40px rgba(216, 180, 92, 0.22));
  animation: float-num 7s ease-in-out infinite;
}

@keyframes float-num {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .big-number { animation: none; }
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 48px);
  margin: 6px 0 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-header h1 strong {
  font-weight: 600;
  font-style: italic;
  color: var(--gold-400);
}

.site-header p.sub {
  margin: 0 auto;
  max-width: 540px;
  color: var(--cream-dim);
  font-size: 17px;
  line-height: 1.7;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 30px;
  font-size: 26px;
}

.icon-row span {
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  animation: bob 4.5s ease-in-out infinite;
}

.icon-row span:nth-child(2) { animation-delay: 0.3s; }
.icon-row span:nth-child(3) { animation-delay: 0.6s; }
.icon-row span:nth-child(4) { animation-delay: 0.9s; }
.icon-row span:nth-child(5) { animation-delay: 1.2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-row span { animation: none; }
}

.divider {
  width: 100%;
  max-width: 360px;
  margin: 38px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0.55;
}

/* ---------- Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  display: block;
  position: relative;
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(232, 200, 115, 0.16) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.card:hover::after { transform: translateX(120%); }

.card:hover, .card:focus-visible {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--gold-400);
  box-shadow: 0 30px 70px -20px rgba(216, 180, 92, 0.4);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-thumb img { transform: scale(1.06); }

.card-thumb .emoji-fallback { font-size: 46px; opacity: 0.75; }

.card-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 23, 18, 0.18);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover .play-badge { opacity: 1; }

.play-badge span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(12, 33, 26, 0.7);
  border: 1.5px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 20px;
  backdrop-filter: blur(3px);
}

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--cream);
}

.card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.5;
}

.empty-state {
  margin-top: 64px;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed rgba(232, 200, 115, 0.35);
  border-radius: var(--radius-lg);
  color: var(--cream-dim);
}

.empty-state .big { font-size: 36px; margin-bottom: 12px; }

/* ---------- Player-Seite ---------- */

.player-page .wrap { max-width: 940px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 22px;
  padding: 11px 20px;
  border: 1px solid rgba(232, 200, 115, 0.35);
  border-radius: 999px;
  text-decoration: none;
  color: var(--gold-400);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.back-link:hover {
  background: rgba(232, 200, 115, 0.1);
  border-color: var(--gold-400);
  transform: translateX(-3px);
}

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 200, 115, 0.22);
  background: #000;
}

.video-frame video {
  width: 100%;
  display: block;
  max-height: 78vh;
  background: #000;
}

.video-meta { margin-top: 26px; text-align: center; }

.video-meta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 10px;
  color: var(--cream);
  font-weight: 600;
}

.video-meta p {
  color: var(--cream-dim);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.player-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.player-nav a {
  flex: 1;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(232, 200, 115, 0.25);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.player-nav a:hover {
  border-color: var(--gold-400);
  background: rgba(232, 200, 115, 0.08);
  transform: translateY(-2px);
}

.player-nav a.primary {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: var(--green-950);
  font-weight: 700;
  border: none;
}

.not-found { text-align: center; padding: 90px 20px; color: var(--cream-dim); }

/* ---------- Erinnerungen / Upload ---------- */

.upload-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0 0 52px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

@media (max-width: 480px) {
  .upload-card, .guestbook-form { padding: 18px; border-radius: var(--radius); }
  .wrap { padding-left: 14px; padding-right: 14px; }
}

.upload-card .field-row { margin-bottom: 14px; }

.upload-card input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 200, 115, 0.22);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-card input[type="text"]::placeholder { color: var(--cream-dim); opacity: 0.7; }

.upload-card input[type="text"]:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.065);
}

.dropzone {
  position: relative;
  border: 1.5px dashed rgba(232, 200, 115, 0.35);
  border-radius: 16px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  margin-bottom: 16px;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--gold-400);
  background: rgba(232, 200, 115, 0.06);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone .dz-icon { font-size: 30px; margin-bottom: 8px; }
.dropzone .dz-text { color: var(--cream); font-weight: 500; font-size: 14.5px; }
.dropzone .dz-hint { color: var(--cream-dim); font-size: 12.5px; margin-top: 4px; }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 4px 0 16px;
  display: none;
}

.progress-track.active { display: block; }

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transition: width 0.2s ease;
}

.upload-card button {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: var(--green-950);
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.upload-card button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(216, 180, 92, 0.5); }
.upload-card button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.upload-status {
  margin: 12px 0 0;
  font-size: 13.5px;
  min-height: 18px;
  color: var(--gold-400);
}

.upload-status.error { color: #e69a9a; }

/* ---------- Foto-Wand (Collage) ---------- */

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px 20px;
  margin-top: 12px;
  padding: 10px 4px 40px;
}

.photo-item {
  --rot: 0deg;
  --ty: 0px;
  position: relative;
  width: clamp(128px, 32vw, 200px);
  background: var(--cream);
  padding: 9px 9px 30px;
  border-radius: 5px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85) rotate(var(--rot)) translateY(calc(var(--ty) + 22px));
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease), opacity 0.5s var(--ease);
}

.photo-item.in-view {
  opacity: 1;
  transform: rotate(var(--rot)) translateY(var(--ty));
}

.photo-item.in-view:hover,
.photo-item.in-view:focus-visible {
  transform: rotate(0deg) scale(1.09) translateY(calc(var(--ty) - 6px));
  box-shadow: 0 26px 55px -14px rgba(0, 0, 0, 0.65);
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .photo-item { transition: none; opacity: 1; transform: rotate(var(--rot)) translateY(var(--ty)); }
}

.photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--green-800);
}

.photo-item .photo-caption {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--green-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-item .photo-caption strong { font-style: normal; font-weight: 600; }

.photo-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(calc(var(--rot) * -1));
  font-size: 18px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5));
  pointer-events: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 11, 0.92);
  backdrop-filter: blur(6px);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  will-change: transform;
}

.lightbox-meta {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--cream-dim);
  font-size: 13.5px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox.meta-in .lightbox-meta { opacity: 1; }

.lightbox-meta strong { color: var(--gold-400); }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232, 200, 115, 0.3);
  color: var(--cream);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-close:hover, .lightbox-nav:hover {
  background: rgba(232, 200, 115, 0.15);
  border-color: var(--gold-400);
}

.lightbox-close { top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.lightbox-nav.prev { left: max(20px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: max(20px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 16px; }
  .lightbox-close { width: 40px; height: 40px; }
  .lightbox { padding: 14px; }
  .lightbox-meta { bottom: max(14px, env(safe-area-inset-bottom)); font-size: 12.5px; padding: 0 50px; }
}

/* ---------- Gästebuch ---------- */

.guestbook-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 46px 0 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.guestbook-form .field-row { margin-bottom: 14px; }

.guestbook-form input[type="text"],
.guestbook-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 200, 115, 0.22);
  border-radius: 12px;
  padding: 13px 16px;
  resize: vertical;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.guestbook-form input[type="text"]::placeholder,
.guestbook-form textarea::placeholder { color: var(--cream-dim); opacity: 0.7; }

.guestbook-form input[type="text"]:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.065);
}

.guestbook-form textarea { margin-bottom: 16px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.guestbook-form button {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: var(--green-950);
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.guestbook-form button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(216, 180, 92, 0.5); }
.guestbook-form button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.gb-status {
  margin: 12px 0 0;
  font-size: 13.5px;
  min-height: 18px;
  color: var(--gold-400);
}

.gb-status.error { color: #e69a9a; }

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gb-entry {
  display: flex;
  gap: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.gb-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-600));
  color: var(--green-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-entry-body h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-entry-body h4 time {
  font-weight: 400;
  font-size: 12px;
  color: var(--cream-dim);
}

.gb-entry-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cream-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.site-footer {
  text-align: center;
  padding: 34px 20px 44px;
  color: var(--cream-dim);
  font-size: 13px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.site-footer .heart { color: var(--gold-400); }

/* ---------- QR-Seite ---------- */

.qr-toolbar { display: flex; justify-content: center; gap: 12px; margin: 30px 0; }

.qr-toolbar button {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: var(--green-950);
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.qr-card {
  background: var(--cream);
  color: var(--green-950);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-card .qr-box { display: flex; justify-content: center; margin-bottom: 12px; }
.qr-card h4 { margin: 0 0 4px; font-size: 15px; font-family: var(--font-display); }
.qr-card small { color: #555; word-break: break-all; }

@media print {
  body { background: white !important; color: black; }
  body::before, body::after, .top-nav, .site-header, .qr-toolbar, .site-footer { display: none !important; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
