/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --bg-4:        #222222;
  --border:      #2a2a2a;
  --border-light:#333333;
  --text:        #f0ede8;
  --text-muted:  #7a7570;
  --text-dim:    #4a4642;
  --accent:      #c8a96e;
  --accent-dim:  #8a7148;
  --accent-glow: rgba(200, 169, 110, 0.15);
  --red:         #d45f5f;
  --green:       #5faa7a;
  --font-display:'Bebas Neue', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }
.nav-link-host { color: var(--accent); }
.nav-link-host:hover { color: var(--accent); background: var(--accent-glow); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.main { flex: 1; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero (index) ────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200,169,110,0.07), transparent);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  max-width: 540px; margin: 0 auto 2.5rem;
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ── Info Cards ──────────────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 3rem 0;
}
.info-card {
  background: var(--bg-2);
  padding: 1.75rem 1.5rem;
}
.info-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.info-card-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Map Button ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: #dfc080; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-dim); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #e06b6b; }

/* ── Section Heading ─────────────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.upload-zone {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 2.5rem;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.upload-zone input[type=file] { display: none; }
.upload-zone-title {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.upload-zone-hint { font-size: 0.78rem; color: var(--text-dim); }
.upload-progress {
  display: none;
  margin: 1rem 0;
  height: 2px;
  background: var(--bg-4);
  border-radius: 1px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
}
.gallery-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg-3); cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-download-btn {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
}

.gallery-empty {
  padding: 4rem; text-align: center;
  color: var(--text-dim); font-size: 0.9rem;
}

/* ── Voting ──────────────────────────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--accent-dim); }

.search-results {
  position: relative; margin-bottom: 2rem;
}
.search-result-list {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-4); }
.search-result-cover {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-4);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 0.88rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-artist {
  font-size: 0.78rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-add {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap; flex-shrink: 0;
}

/* ── Vote Cards ──────────────────────────────────────────────────────────── */
.vote-section-label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.vote-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2rem; }
.vote-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  position: relative; overflow: hidden;
}
.vote-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--vote-pct, 0%);
  background: rgba(200,169,110,0.06);
  transition: width 0.5s ease;
}
.vote-card:hover { border-color: var(--border-light); }
.vote-card-cover {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-4);
}
.vote-card-info { flex: 1; min-width: 0; }
.vote-card-title {
  font-size: 0.92rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vote-card-artist {
  font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vote-card-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem;
  flex-shrink: 0;
}
.vote-count {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1;
  color: var(--accent);
}
.vote-count-label {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.vote-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bg-4);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.vote-btn:hover { color: var(--accent); border-color: var(--accent-dim); }
.vote-btn.voted { background: var(--accent-glow); color: var(--accent); border-color: var(--accent-dim); }
.vote-btn:disabled { opacity: 0.4; cursor: default; }

.vote-winner {
  border-color: var(--accent-dim) !important;
}
.vote-winner-badge {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-glow);
  padding: 0.15rem 0.5rem; border-radius: 2px;
}

.no-host-notice {
  padding: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted); font-size: 0.88rem;
}

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.admin-card-title {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1.25rem;
}
.playing-now {
  display: flex; align-items: center; gap: 1.25rem;
}
.playing-cover {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  object-fit: cover; background: var(--bg-4); flex-shrink: 0;
}
.playing-info {}
.playing-title { font-size: 1rem; font-weight: 500; }
.playing-artist { font-size: 0.85rem; color: var(--text-muted); }
.playing-bar {
  margin-top: 1.5rem; height: 2px;
  background: var(--bg-4); border-radius: 1px; overflow: hidden;
}
.playing-bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1s linear; }

.queue-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.queue-item:last-child { border-bottom: none; }
.queue-cover {
  width: 40px; height: 40px; border-radius: var(--radius);
  object-fit: cover; background: var(--bg-4); flex-shrink: 0;
}
.queue-info { flex: 1; min-width: 0; }
.queue-title { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-artist { font-size: 0.76rem; color: var(--text-muted); }
.queue-votes { font-size: 0.8rem; color: var(--accent); flex-shrink: 0; }

.spotify-connect-box {
  text-align: center; padding: 4rem 2rem;
}
.spotify-connect-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }

/* ── Toast / Flash ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem; color: var(--text);
  transform: translateY(20px); opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }

/* ── Misc Utilities ──────────────────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mb-2  { margin-bottom: 1rem; }
.flex  { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 0 1rem; }
  .nav-links { gap: 0; }
  .nav-link { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}





/* ── Cookie Modal Overlay ────────────────────────────────────────────────── */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cookie-overlay--visible {
  display: block;
}

/* ── Cookie Modal ────────────────────────────────────────────────────────── */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 8001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  opacity: 0;
  width: calc(100% - 2rem);
  max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}
.cookie-modal--visible {
  display: block;
  transform: translate(-50%, -50%);
  opacity: 1;
}
.cookie-modal-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.cookie-modal-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.cookie-modal-detail-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition), border-color var(--transition);
}
.cookie-modal-detail-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.cookie-modal-actions {
  margin-top: 1.75rem;
}
.cookie-modal-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cookie-modal-btn:hover {
  background: #dfc080;
  transform: translateY(-1px);
}
.cookie-modal-btn:active {
  transform: translateY(0);
}

/* ── Footer links ────────────────────────────────────────────────────────── */
.footer-sep {
  margin: 0 0.5rem;
  color: var(--text-dim);
}
.footer-dp-link {
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.footer-dp-link:hover {
  color: var(--accent);
}

/* ── Datenschutz Page ────────────────────────────────────────────────────── */
.dp-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.dp-block:last-child { border-bottom: none; }
.dp-block--highlight {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0 -2rem 0 -2rem;
}
.dp-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.dp-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.dp-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dp-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.2rem;
  position: relative;
}
.dp-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62rem;
  width: 4px; height: 4px;
  background: var(--accent-dim);
  border-radius: 50%;
}
.dp-list strong { color: var(--text); font-weight: 500; }
.dp-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: color var(--transition);
}
.dp-link:hover { color: var(--text); }
.dp-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.dp-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.dp-table td {
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dp-table tr:last-child td { border-bottom: none; }
.dp-table code {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  background: var(--bg-4);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--accent);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cookie-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(20px);
    opacity: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2rem 1.25rem 2.5rem;
  }
  .cookie-modal--visible {
    transform: translateY(0);
    opacity: 1;
  }
  .dp-block--highlight {
    margin: 0;
  }
}