/* =========================================================
   GRAND EPOCH MASQUERADE – WEBSITE
   FINAL STYLE SHEET (CLOSE-X AM SEITENENDE)
   ========================================================= */

/* =======================
   FONTS
   ======================= */
@font-face{
  font-family: "Cinzel";
  src: url("/fonts/cinzel-v26-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Cinzel";
  src: url("/fonts/cinzel-v26-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Lora";
  src: url("/fonts/lora-v32-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =======================
   ROOT VARS
   ======================= */
:root{
  --bg: #0A1224;
  --gold: #D4B57A;

  --text: rgba(240,236,228,.92);
  --text-soft: rgba(240,236,228,.75);
  --line: rgba(212,181,122,.45);

  --container: 780px;
  --pad-x: 20px;

  --h1: 30px;
  --h2: 20px;
  --body: 18px;
  --lh: 1.7;

  --space-1: 10px;
  --space-2: 18px;
  --space-3: 28px;
  --space-4: 44px;
  --space-5: 64px;

  --tap: 44px;
}

/* =======================
   RESET & BASE
   ======================= */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  font-family: "Lora", serif;
  font-size: var(--body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
}

/* Hintergrundbild */
.bg{
  position: fixed;
  inset: 0;
  background: url("/images/hintergrund.png") center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links global GOLD */
a{
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =======================
   TOPBAR / MENU BUTTON
   ======================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  padding: var(--space-2) var(--pad-x);
  display: flex;
  justify-content: flex-end;
  background: rgba(10,18,36,.65);
}

.menu-button{
  width: var(--tap);
  height: var(--tap);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-icon-img{
  width: 34px;
  height: 34px;
}

/* =======================
   MENU OVERLAY
   ======================= */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10,18,36,.35);
}

.menu-overlay[hidden]{ display:none; }

.menu-inner{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;

  width: min(420px, 86vw);
  padding: 28px 22px;

  background: rgba(10,18,36,.85);
  border-left: 1px solid rgba(212,181,122,.25);

  overflow-y: auto;
}

.menu-close{
  font-size: 30px;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  margin-left: auto;
  line-height: 1;
}

.menu-group{
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212,181,122,.18);
}

.menu-group:last-child{
  border-bottom: none;
}

.menu-group a{
  display: block;
  padding: 6px 0;
  font-size: 18px;
}

/* =======================
   CONTENT
   ======================= */
.content-shell{
  padding: 0 var(--pad-x) var(--space-5);
}

.content{
  max-width: var(--container);
  margin: 0 auto;
  padding-top: var(--space-4);
  background: transparent;
}

/* =======================
   TITLES / TEXT
   ======================= */
.page-title{
  font-family: "Cinzel", serif;
  font-size: var(--h1);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-3);
}

.page-text h2{
  font-family: "Cinzel", serif;
  font-size: var(--h2);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: var(--space-4) 0 var(--space-2);
}

.page-text p{
  margin: 0 0 var(--space-2);
}

/* =======================
   NAV ARROWS
   ======================= */
.page-nav{
  max-width: var(--container);
  margin: var(--space-4) auto;
  display: flex;
  justify-content: space-between;
}

.nav-arrow img{
  width: 40px;
  height: auto;
}

/* =======================
   CLOSE X – AM SEITENENDE
   ======================= */
.close-x{
  display: flex;
  justify-content: center;
  align-items: center;

  margin: var(--space-5) auto 0;
  position: static;          /* <<< WICHTIG */
  transform: none;
  z-index: auto;

  color: var(--gold);
  text-decoration: none;
}

.close-x img{
  width: 28px;
  height: auto;
}

/* =======================
   FOOTER
   ======================= */
.footer{
  position: relative;
  z-index: 20;
  padding: var(--space-3) var(--pad-x) var(--space-4);
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
}

.footer a{
  color: var(--gold);
  text-decoration: none;
}
.footer a:hover{
  text-decoration: underline;
}

/* =======================
   AUTOMATISCHE FORMATE (JS)
   ======================= */

/* Uhrzeiten im Ablauf (Seite 5) */
.time {
  color: var(--gold);
  font-weight: 600;
}

/* Öffnungs-Hinweise (z.B. bei Tickets) */
.opening-label {
  color: var(--gold);
  font-weight: 600;
}
