@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Cinzel+Decorative:wght@400&display=swap');

/* ─── Palette ─── */
:root {
  --dark:    #1E1B2E;
  --teal:    #5C8E8A;
  --teal-lt: #7AADA8;
  --gold:    #BFA030;
  --gold-lt: #D8CC80;
  --fog:     #D8CCAA;
  --fog-dim: rgba(216, 204, 170, 0.55);
  --fog-faint: rgba(216, 204, 170, 0.15);
  --purple:  #3D3548;
  --box-bg:  rgba(30, 27, 46, 0.60);
  --box-bg-dark: rgba(20, 18, 32, 0.75);
}

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

html, body {
  min-height: 100%;
  font-family: 'Cinzel', serif;
  color: var(--fog);
  background: var(--dark);
}

/* ── Hintergrund (für alle Stockwerke gleich) ── */
body {
  background-image: url('../img/Floor_HG.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
}

/* ── Zentrierter Content-Bereich ── */
#wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(20, 18, 32, 0.88);
  border-left:  1px solid var(--fog-dim);
  border-right: 1px solid var(--fog-dim);
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════
   FLOOR BAR (identisch zur Lobby)
════════════════════════════════ */
#floor-bar {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 0.45rem 2.5rem;
  min-width: 260px;
  border: 1px solid var(--fog-dim);
  background: rgba(22, 25, 46, 0.65);
  backdrop-filter: blur(4px);
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--fog);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* ════════════════════════════════
   PAGE LAYOUT
════════════════════════════════ */
#page {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  flex: 1;
  padding-top: 3.5rem; /* Platz für fixed floor-bar */
}

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
#sidebar {
  border-right: 1px solid var(--fog-faint);
  background: var(--box-bg-dark);
  backdrop-filter: blur(4px);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.sidebar-section h4 {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  color: var(--teal-lt);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--fog-faint);
}

.sidebar-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-section ul li::before {
  content: '›';
  color: var(--gold);
  margin-right: 0.5rem;
}

.sidebar-section a {
  font-size: 0.65rem;
  color: var(--fog-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.sidebar-section a:hover { color: var(--fog); }

/* Visitor Counter */
#visitor-count {
  display: flex;
  align-items: center;
}

#visitor-count img {
  height: 18px;
  width: auto;
  opacity: 0.85;
}

#back-to-lobby {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--fog-dim);
  background: transparent;
  border: 1px solid var(--fog-faint);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}

#back-to-lobby:hover {
  background: var(--fog-faint);
  color: var(--fog);
}

/* ════════════════════════════════
   MAIN CONTENT
════════════════════════════════ */
#content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.box {
  border: 1px solid var(--fog-dim);
  background: var(--box-bg);
  backdrop-filter: blur(4px);
  padding: 1.4rem 1.8rem;
}

.box h2 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--fog);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--fog-faint);
}

.box h3 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--teal-lt);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.box h3:first-child { margin-top: 0; }

.box p {
  font-size: 0.65rem;
  line-height: 1.8;
  color: var(--fog-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.box p:last-child { margin-bottom: 0; }

.box blockquote {
  border-left: 2px solid var(--gold);
  margin: 0.8rem 0 1rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
}

.box blockquote p {
  font-size: 0.65rem;
  color: var(--gold-lt);
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.box blockquote p:last-child { margin-bottom: 0; }

.wip-badge {
  display: inline-block;
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(191, 160, 48, 0.4);
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.6rem;
}

/* ════════════════════════════════
   RECHTES BEDIENPANEL
════════════════════════════════ */
#right-nav {
  position: fixed;
  right: 4%;
  top: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

#how-to-box {
  width: 220px;
  border: 1.5px solid var(--fog-dim);
  padding: 1.2rem 1.4rem 1.3rem;
  background: rgba(30, 27, 46, 0.52);
  backdrop-filter: blur(3px);
}

#how-to-box h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--fog);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 0.8rem;
}

#how-to-box p {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  line-height: 1.7;
  color: var(--fog-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

#how-to-box p:last-of-type { margin-bottom: 0; }

#floor-panel {
  background: rgba(22, 25, 46, 0.68);
  border: 1px solid var(--fog-dim);
  backdrop-filter: blur(4px);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

#floor-panel .panel-title {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--teal-lt);
  text-transform: uppercase;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.floor-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fog);
  background: rgba(22, 25, 46, 0.75);
  border: 1px solid rgba(216, 204, 170, 0.2);
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  line-height: 1;
}

.floor-btn:hover {
  background: rgba(91, 142, 138, 0.35);
  border-color: var(--teal);
  color: var(--gold-lt);
}

.floor-btn:active { transform: scale(0.95); }

.floor-btn.active-floor {
  border-color: var(--gold);
  color: var(--gold);
}

.floor-btn.lobby-btn {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  height: 32px;
  width: 100%;
  border-color: rgba(91, 142, 138, 0.4);
  color: var(--teal-lt);
}

.floor-btn.lobby-btn:hover {
  border-color: var(--teal);
  color: var(--fog);
  background: rgba(91, 142, 138, 0.2);
}

/* ── Bonfire ── */
#bonfire-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#bonfire-img {
  width: 26px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  filter: drop-shadow(0 0 6px rgba(224, 128, 48, 0.5));
  display: block;
  margin-left: auto;
}

#bonfire-img:hover {
  filter: drop-shadow(0 0 12px rgba(255, 160, 32, 0.9));
  transform: scale(1.08);
}

/* ── Dropdown ── */
#floor-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 999;
  width: 200px;
  background: rgba(20, 18, 32, 0.92);
  border: 1px solid var(--fog-dim);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
}

#floor-dropdown.open {
  display: flex;
}

.dropdown-title {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  color: var(--teal-lt);
  text-transform: uppercase;
  padding: 0.6rem 1rem 0.5rem;
  border-bottom: 1px solid var(--fog-faint);
}

#floor-dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

#floor-dropdown li a,
#floor-dropdown li span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--fog-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--fog-faint);
}

#floor-dropdown li a:hover {
  background: var(--fog-faint);
  color: var(--fog);
}

#floor-dropdown li.current span {
  color: var(--gold);
  cursor: default;
}

#floor-dropdown li.lobby-entry a {
  color: var(--teal-lt);
  border-bottom: none;
}

#floor-dropdown li.lobby-entry a:hover {
  color: var(--fog);
}


#music-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--fog-dim);
  background: rgba(22, 25, 46, 0.68);
  backdrop-filter: blur(4px);
  overflow: hidden;
  width: 160px;
}

#music-btn {
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--fog-dim);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(216, 204, 170, 0.15);
  padding: 0.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

#music-btn:hover { background: rgba(91, 142, 138, 0.2); color: var(--fog); }
#music-btn.playing { color: var(--gold); }

#volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
}

.vol-label, .vol-value {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--fog-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.vol-value { min-width: 18px; text-align: right; }

#volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(216, 204, 170, 0.2);
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fog-dim);
  cursor: pointer;
  transition: background 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover { background: var(--gold); }
#volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fog-dim);
  border: none;
  cursor: pointer;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
#footer {
  border-top: 1px solid var(--fog-faint);
  background: var(--box-bg-dark);
  backdrop-filter: blur(6px);
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(216, 204, 170, 0.3);
  text-transform: uppercase;
}

#footer a {
  color: rgba(216, 204, 170, 0.4);
  text-decoration: none;
}

#footer a:hover { color: var(--fog-dim); }
