:root {
  --bg: #07111f;
  --panel: rgba(9, 18, 34, 0.76);
  --line: rgba(131, 249, 221, 0.22);
  --text: #f3f7fd;
  --muted: #96a8c1;
  --accent: #83f9dd;
  --accent-strong: #34c4ff;
  --danger: #ff6a82;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --topbar-offset: 0.75rem;
  --topbar-spacer: 13.2rem;
}

body[data-theme="neon-club"] {
  --line: rgba(131, 249, 221, 0.22);
  --accent: #83f9dd;
  --accent-strong: #34c4ff;
  --danger: #ff6a82;
  --panel: rgba(9, 18, 34, 0.76);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

body[data-theme="vinyl-retro"] {
  --line: rgba(255, 125, 214, 0.26);
  --accent: #ffbf66;
  --accent-strong: #ff7d57;
  --danger: #ffd37f;
  --panel: rgba(34, 16, 14, 0.82);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

body[data-theme="festival-stage"] {
  --line: rgba(255, 95, 198, 0.3);
  --accent: #ff5fc6;
  --accent-strong: #4dc8ff;
  --danger: #ffc0f0;
  --panel: rgba(13, 12, 33, 0.8);
  --shadow: 0 30px 78px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(52, 196, 255, 0.12), transparent 35%), #07111f;
}
body[data-theme="vinyl-retro"] {
  background:
    radial-gradient(circle at top, rgba(255, 125, 87, 0.16), transparent 34%),
    radial-gradient(circle at bottom, rgba(255, 191, 102, 0.1), transparent 28%),
    #140c0d;
}
body[data-theme="festival-stage"] {
  background:
    radial-gradient(circle at top, rgba(77, 200, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom, rgba(255, 95, 198, 0.12), transparent 30%),
    #080a1a;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.page-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow { position: absolute; width: 30rem; height: 30rem; border-radius: 50%; filter: blur(50px); opacity: 0.3; }
.glow-a { top: -8rem; left: -4rem; background: var(--accent-strong); }
.glow-b { bottom: -10rem; right: -6rem; background: var(--accent); }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 48%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
  animation: gridShift 18s ease-in-out infinite;
}
.grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent-strong) 52%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-strong) 52%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.34;
  mix-blend-mode: screen;
  animation: gridPulse 10s ease-in-out infinite;
}
.grid-overlay::after {
  content: none;
}
.grid-blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.54;
  mix-blend-mode: screen;
}
.grid-blob-a {
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 68%);
  animation: blobOrbitA 20s ease-in-out infinite;
}
.grid-blob-b {
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-strong) 40%, transparent) 0%, transparent 70%);
  animation: blobOrbitB 22s ease-in-out infinite;
}

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-header-fixed {
  position: fixed;
  top: var(--topbar-offset);
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}
.site-topbar {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  pointer-events: auto;
  border: 1px solid rgba(131, 249, 221, 0.14);
  border-radius: 28px;
  background: rgba(7, 17, 31, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}
body[data-theme="vinyl-retro"] .site-topbar {
  border-color: rgba(255, 191, 102, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(58, 24, 18, 0.9), rgba(27, 12, 10, 0.88));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}
body[data-theme="festival-stage"] .site-topbar {
  border-color: rgba(255, 95, 198, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(14, 16, 46, 0.9), rgba(8, 10, 26, 0.88));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}
.site-topbar-spacer {
  height: calc(var(--topbar-spacer) + var(--topbar-offset));
}
.site-logo {
  display: inline-grid;
  align-items: center;
  justify-self: center;
  justify-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}
.site-logo-image {
  width: 52px;
  max-width: 52px;
  height: 52px;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  background-image: url("https://www.dv-inc.de/Logo/dawg-logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  border: 0;
  box-shadow: none;
}
.site-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}
.site-nav-shell {
  min-width: 0;
}
.nav-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 18, 34, 0.88);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.nav-scroll-hint.is-hidden {
  opacity: 0.35;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-icon-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.7rem 0.45rem;
  background: rgba(9, 18, 34, 0.72);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  min-height: 88px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-theme="vinyl-retro"] .nav-icon-card {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(78, 34, 20, 0.9), rgba(33, 15, 10, 0.88));
}
body[data-theme="festival-stage"] .nav-icon-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(28, 32, 76, 0.88), rgba(13, 14, 37, 0.88));
}
.nav-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(52, 196, 255, 0.3), rgba(131, 249, 221, 0.08));
  border: 1px solid rgba(131, 249, 221, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body[data-theme="vinyl-retro"] .nav-icon-wrap {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 191, 102, 0.35), rgba(255, 125, 87, 0.1));
  border-color: rgba(255, 191, 102, 0.28);
}
body[data-theme="festival-stage"] .nav-icon-wrap {
  background: linear-gradient(135deg, rgba(255, 95, 198, 0.3), rgba(77, 200, 255, 0.14));
  box-shadow: 0 0 18px rgba(255, 95, 198, 0.16);
}
.nav-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  transition: transform 0.2s ease;
}
.nav-icon-label {
  font-size: 0.78rem;
  line-height: 1.2;
}
.nav-link.active,
.site-logo.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--accent-strong) 50%, var(--accent));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-strong) 18%, transparent);
  color: var(--text);
}
.nav-link.active .nav-icon-wrap {
  transform: scale(1.08);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 45%, transparent), color-mix(in srgb, var(--accent) 24%, transparent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent);
}
.nav-link.active .nav-icon-wrap svg {
  transform: scale(1.12);
}
.nav-link:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.04));
}
.nav-link:hover .nav-icon-wrap {
  transform: scale(1.12);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-strong) 20%, transparent);
}
.nav-link:hover .nav-icon-wrap svg {
  transform: scale(1.18);
  animation: navIconSpin 1.8s linear infinite;
  animation-direction: var(--nav-spin-direction, normal);
}

.hero {
  display: block;
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}
.brand-lockup {
  text-align: center;
}
.page-main { padding: 2rem 0 3rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}
.brand-lockup h1,
.admin-topbar h1,
.admin-login-card h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(131, 249, 221, 0.28);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}
#brandHeadline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.01em;
  align-items: center;
  animation: headlineGlow 6s ease-in-out infinite;
}
.headline-letter,
.headline-space {
  display: inline-block;
}
.headline-letter {
  position: relative;
  animation:
    letterFloat 4.4s ease-in-out infinite,
    letterTint 5.2s ease-in-out infinite;
  animation-delay: calc(var(--letter-index) * 0.08s), calc(var(--letter-index) * 0.11s);
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.headline-letter.is-glitching {
  opacity: 0.08;
  transform: translateY(-0.08em) scale(0.96);
  filter: blur(1px);
}
.headline-letter.is-vanishing {
  opacity: 0;
}
.headline-letter::before,
.headline-letter::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.headline-letter.is-glitching::before,
.headline-letter.is-glitching::after {
  opacity: 0.72;
}
.headline-letter.is-glitching::before {
  color: color-mix(in srgb, var(--accent-strong) 90%, white);
  transform: translateX(-0.05em);
}
.headline-letter.is-glitching::after {
  color: color-mix(in srgb, var(--accent) 88%, white);
  transform: translateX(0.05em);
}
.headline-space {
  width: 0.28em;
}
.hero-background-logo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at center, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.56) 28%, rgba(7, 17, 31, 0.18) 48%, transparent 68%),
    url("https://www.dv-inc.de/Logo/dawg-logo.png");
  background-repeat: no-repeat;
  background-position: center center, center center;
  background-size: min(86vw, 980px), min(78vw, 900px);
}
.site-background-logo {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}
.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.motto,
.intro,
.booking-copy,
.form-note,
.form-feedback {
  color: var(--muted);
}
.form-feedback.success {
  color: #b5ffe9;
}
.form-feedback.error {
  color: #ffd0d8;
}
.motto-intro-box {
  width: min(760px, 100%);
  margin: 1.25rem auto 0;
  padding: 1.1rem 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
body[data-theme="vinyl-retro"] .motto-intro-box {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(58, 24, 18, 0.82), rgba(26, 12, 9, 0.82));
}
body[data-theme="festival-stage"] .motto-intro-box {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(22, 18, 58, 0.78), rgba(9, 11, 30, 0.82));
}
.motto-intro-box .motto {
  margin-top: 0;
}
.motto-intro-box .intro {
  margin-bottom: 0;
  line-height: 1.6;
}
.hero-chips,
.hero-actions,
.modal-actions,
.admin-topbar-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-chips span,
.hero-card-label,
.optional-marker,
.required-marker,
.user-badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.required-marker { color: #ffd27f; }
.hero-actions {
  justify-content: flex-end;
}
.brand-lockup .hero-actions {
  justify-content: center;
}
.seo-copy {
  margin: 1rem auto 0;
  max-width: 860px;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  line-height: 1.75;
}
.section-copy {
  margin: 0 0 1.25rem;
  max-width: none;
}

.primary-action,
.ghost-action,
.danger-action {
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary-action { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #04101d; font-weight: 700; box-shadow: 0 12px 32px rgba(52, 196, 255, 0.25); }
body[data-theme="vinyl-retro"] .primary-action {
  border-radius: 14px;
  background: linear-gradient(135deg, #ffbf66, #ff7d57);
  box-shadow: 0 14px 30px rgba(255, 125, 87, 0.22);
}
body[data-theme="festival-stage"] .primary-action {
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5fc6, #4dc8ff);
  box-shadow: 0 14px 34px rgba(255, 95, 198, 0.24);
}
.ghost-action { background: rgba(255, 255, 255, 0.03); border-color: var(--line); color: var(--text); }
.danger-action { background: rgba(255, 106, 130, 0.12); border-color: rgba(255, 106, 130, 0.36); color: #ffd9df; }
.primary-action:hover,
.ghost-action:hover,
.danger-action:hover,
.icon-card:hover { transform: translateY(-2px); }
.small { padding: 0.5rem 0.9rem; }
.full-width { width: 100%; justify-content: center; }

.content-panel,
.form-card,
.admin-login-card,
.admin-panel,
.admin-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
body[data-theme="vinyl-retro"] .content-panel,
body[data-theme="vinyl-retro"] .form-card,
body[data-theme="vinyl-retro"] .admin-login-card,
body[data-theme="vinyl-retro"] .admin-panel,
body[data-theme="vinyl-retro"] .admin-modal-card {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(53, 21, 16, 0.82), rgba(27, 12, 10, 0.82));
}
body[data-theme="festival-stage"] .content-panel,
body[data-theme="festival-stage"] .form-card,
body[data-theme="festival-stage"] .admin-login-card,
body[data-theme="festival-stage"] .admin-panel,
body[data-theme="festival-stage"] .admin-modal-card {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(16, 18, 50, 0.82), rgba(8, 10, 28, 0.84));
}
@keyframes sweep {
  to { transform: translateX(100%); }
}
@keyframes gridShift {
  0%, 100% {
    opacity: 0.92;
    filter: saturate(1.05) brightness(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.65) brightness(1.18);
  }
}
@keyframes gridPulse {
  0%, 100% {
    opacity: 0.22;
  }
  40% {
    opacity: 0.54;
  }
  70% {
    opacity: 0.3;
  }
}
@keyframes blobOrbitA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  25% {
    transform: translate3d(22vw, 12vh, 0) scale(1.16);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(34vw, -10vh, 0) scale(1.06);
    opacity: 0.82;
  }
  75% {
    transform: translate3d(12vw, -20vh, 0) scale(0.92);
    opacity: 0.56;
  }
}
@keyframes blobOrbitB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate3d(-20vw, -12vh, 0) scale(1.14);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-32vw, 10vh, 0) scale(1.22);
    opacity: 0.8;
  }
  75% {
    transform: translate3d(-12vw, 22vh, 0) scale(0.96);
    opacity: 0.54;
  }
}
@keyframes headlineGlow {
  0%, 100% {
    text-shadow:
      0 0 18px color-mix(in srgb, var(--accent) 32%, transparent),
      0 0 34px color-mix(in srgb, var(--accent-strong) 18%, transparent);
  }
  35% {
    text-shadow:
      0 0 26px color-mix(in srgb, var(--accent-strong) 42%, transparent),
      0 0 46px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  65% {
    text-shadow:
      0 0 22px color-mix(in srgb, var(--accent) 40%, transparent),
      0 0 40px color-mix(in srgb, var(--accent-strong) 24%, transparent);
  }
}
@keyframes letterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.03em); }
}
@keyframes letterTint {
  0%, 100% { color: var(--text); }
  22% { color: color-mix(in srgb, var(--accent) 48%, white); }
  48% { color: color-mix(in srgb, var(--accent-strong) 54%, white); }
  72% { color: color-mix(in srgb, var(--accent) 34%, var(--accent-strong)); }
  86% { color: color-mix(in srgb, var(--accent-strong) 38%, white); }
}
@keyframes navIconSpin {
  from { transform: scale(1.18) rotate(0deg); }
  to { transform: scale(1.18) rotate(360deg); }
}

.home-highlight { margin-top: 0.5rem; }
.icon-section { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 2rem; }
.icon-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem 0.75rem;
  background: var(--panel);
  color: var(--text);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-decoration: none;
  text-align: center;
}
.icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(52, 196, 255, 0.3), rgba(131, 249, 221, 0.08));
  border: 1px solid rgba(131, 249, 221, 0.25);
}
.icon-wrap svg { width: 30px; height: 30px; fill: var(--accent); }

.content-panel { padding: 1.6rem; margin-bottom: 1.5rem; }
.content-panel,
.site-topbar,
.admin-shell,
.home-heading {
  position: relative;
  z-index: 1;
}
.section-heading { margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-heading.small h2 { font-size: 1.35rem; }

.about-grid,
.split-layout,
.admin-grid {
  display: grid;
  gap: 1.25rem;
}
.about-grid { grid-template-columns: 1.25fr 0.9fr 0.9fr; }
.about-stack { grid-template-columns: 1fr; }
.split-layout { grid-template-columns: 1fr 1fr; }
.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.booking-intro-box {
  display: grid;
  gap: 0.8rem;
}
.list-card,
.imprint-card {
  border-radius: 24px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.about-copy-card p:first-child { margin-top: 0; }
.about-copy-card p:last-child { margin-bottom: 0; }
.privacy-copy > :first-child { margin-top: 0; }
.privacy-copy > :last-child { margin-bottom: 0; }
.list-card ul,
.booking-answer-list {
  margin: 0;
  padding-left: 1.25rem;
}

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-card,
.guestbook-card,
.admin-list-card,
.event-card,
.user-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.event-card {
  display: grid;
  align-content: start;
}
.event-media {
  width: 100%;
  min-height: 260px;
  padding: 1rem 1rem 0;
  display: grid;
  place-items: center;
}
body[data-theme="vinyl-retro"] .gallery-card,
body[data-theme="vinyl-retro"] .guestbook-card,
body[data-theme="vinyl-retro"] .admin-list-card,
body[data-theme="vinyl-retro"] .event-card,
body[data-theme="vinyl-retro"] .user-card {
  border-radius: 14px;
  background: rgba(255, 240, 214, 0.04);
}
body[data-theme="festival-stage"] .gallery-card,
body[data-theme="festival-stage"] .guestbook-card,
body[data-theme="festival-stage"] .admin-list-card,
body[data-theme="festival-stage"] .event-card,
body[data-theme="festival-stage"] .user-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}
.gallery-cover-image,
.event-card img {
  width: auto;
  max-width: 300px;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.gallery-card {
  padding: 1rem;
}
.gallery-overview-card {
  text-decoration: none;
  display: block;
}
.gallery-card .gallery-copy {
  padding: 1rem 0 0;
}
.gallery-meta {
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.gallery-detail-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}
.gallery-detail-cover {
  width: min(100%, 720px);
  max-width: 720px;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin: 1rem auto 0;
  border-radius: 22px;
}
.gallery-detail-grid {
  margin-top: 1rem;
}
.gallery-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.admin-gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.admin-gallery-thumb-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-gallery-thumb-card img {
  width: 100%;
  max-width: none;
  height: 140px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 14px;
}
.admin-gallery-thumb-actions {
  display: grid;
  gap: 0.5rem;
}
.admin-gallery-upload-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gallery-thumb-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.gallery-thumb-card img {
  width: min(100%, 300px);
  max-width: 300px;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.admin-list-card img {
  width: min(100%, 300px);
  max-width: 300px;
  height: 260px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.gallery-copy,
.guestbook-card,
.admin-list-card,
.event-copy {
  padding: 1rem;
}
.event-meta {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.guestbook-list,
.admin-list {
  display: grid;
  gap: 1rem;
}
.guestbook-header { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.admin-reply { padding: 0.8rem 1rem; border-radius: 16px; background: rgba(131, 249, 221, 0.07); color: #d7fff6; }

.form-card,
.stacked-form { display: grid; gap: 1rem; }
.booking-form-stack,
.booking-input-box,
.booking-fields-grid,
.booking-detail-box {
  display: grid;
  gap: 1rem;
}
.booking-input-box,
.booking-detail-box {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.booking-fields-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.form-card { padding: 1.2rem; }
.form-card.compact { padding: 0; background: transparent; border: 0; box-shadow: none; }
label { display: grid; gap: 0.45rem; }
input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1rem;
  color: var(--text);
}
textarea { resize: vertical; }

.admin-shell { display: grid; padding: 2rem 0 3rem; }
.admin-login-card { max-width: 520px; margin: 3rem auto 0; padding: 2rem; }
.admin-backlink { margin-bottom: 0; text-align: center; color: var(--muted); }
.admin-dashboard.hidden,
.hidden { display: none; }
.admin-topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.admin-section-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.admin-nav-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0.95rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  text-decoration: none;
}
.admin-nav-card:hover,
.admin-nav-card.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(131, 249, 221, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.admin-stage {
  display: grid;
}
.admin-panel { padding: 1.4rem; }
.admin-panel.hidden-by-nav { display: none; }
.about-admin-form {
  gap: 1.1rem;
}
.admin-field-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-list-card,
.admin-list-card.stack { display: grid; gap: 0.8rem; }
.booking-config-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.inline-toggle { display: flex; align-items: center; gap: 0.55rem; }
.inline-toggle input { width: auto; }
.top-divider { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1rem; margin-top: 1rem; }
.user-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.admin-modal { border: 0; background: transparent; }
.admin-modal::backdrop { background: rgba(4, 8, 16, 0.72); }
.admin-modal-card { max-width: 520px; padding: 2rem; }
.empty-state { color: var(--muted); }
.status-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(9, 18, 34, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 30;
}
.status-notice.success {
  border-color: rgba(131, 249, 221, 0.35);
  color: #d9fff3;
}
.status-notice.error {
  border-color: rgba(255, 106, 130, 0.45);
  color: #ffe1e7;
}

@media (max-width: 980px) {
  :root {
    --topbar-spacer: 16rem;
  }

  .split-layout,
  .about-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-nav,
  .icon-section,
  .gallery-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-spacer: 10.5rem;
  }

  .admin-topbar,
  .guestbook-header,
  .user-card {
    flex-direction: column;
    align-items: start;
  }

  .site-topbar {
    gap: 0.7rem;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 22px;
  }
  .site-nav {
    min-width: 0;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .site-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-scroll-hint {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .site-logo {
    font-size: 1.05rem;
    gap: 0.3rem;
  }
  .site-logo-image {
    width: 36px;
    max-width: 36px;
    height: 36px;
  }
  .nav-icon-card {
    min-width: 78px;
    min-height: 64px;
    padding: 0.45rem 0.3rem;
    border-radius: 16px;
    gap: 0.25rem;
    flex: 0 0 auto;
  }
  .nav-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }
  .nav-icon-wrap svg {
    width: 16px;
    height: 16px;
  }
  .nav-icon-label {
    font-size: 0.62rem;
    line-height: 1.1;
  }
  .hero { padding-top: 2rem; }
  .event-media {
    min-height: 200px;
    padding: 0.85rem 0.85rem 0;
  }
  .event-card img {
    max-width: min(100%, 300px);
    max-height: 200px;
  }
  .event-copy {
    width: 100%;
    padding: 0.85rem;
  }
  .event-meta {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .admin-section-nav,
  .icon-section,
  .gallery-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .brand-lockup h1,
  .admin-topbar h1,
  .admin-login-card h1 {
    letter-spacing: 0.08em;
  }
}
