/* =========================================================
   Projekt-spezifische Anpassungen
   Diese Regeln überschreiben bewusst einzelne Werte aus styles.css.
   ========================================================= */

/* Größeres Logo im Header */
.site-header { height: 92px; }
.brand img { width: 250px; height: 76px; }
/* Neues Titelbild im Startbereich */
.hero-image {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, .84), rgba(8, 8, 7, .22)),
    url('assets/home/schatzkaestle-main.jpg') center / cover no-repeat;
}

/* Anpassungen für Mobilgeräte */
@media (max-width: 800px) {
  .site-header { height: 76px; }
  .brand img { width: 170px; height: 62px; }
  .site-header nav { top: 76px; }
}
/* =========================================================
   ZENTRALER HINWEISDIALOG
   Inhalte, Zeitraum und Aktivierung: data/popup.json
   ========================================================= */
body.popup-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 8, 7, 0.82);
  backdrop-filter: blur(7px);
}

.popup-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 42px 48px 48px;
  border: 1px solid rgba(212, 175, 55, 0.66);
  border-radius: 18px;
  background: #11110f;
  color: var(--paper);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font: 400 29px/1 var(--font-body, sans-serif);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.popup-close:hover {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(90deg);
}

.popup-close:focus-visible,
.popup-action:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.popup-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.popup-image {
  display: block;
  width: 100%;
  max-height: 240px;
  margin: 0 0 26px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  object-fit: cover;
}

.popup-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.popup-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display, serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.popup-text {
  max-width: 44ch;
  margin: 18px auto 0;
  color: rgba(245, 240, 230, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.popup-action {
  display: inline-flex;
  justify-content: center;
  min-width: 152px;
  margin-top: 28px;
  padding: 13px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  font: 600 0.72rem/1 var(--font-body, sans-serif);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.popup-action:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .popup-overlay {
    padding: 16px;
  }

  .popup-dialog {
    max-height: calc(100vh - 32px);
    padding: 38px 24px 30px;
  }

  .popup-logo {
    width: 72px;
    height: 72px;
  }

  .popup-image {
    max-height: 190px;
    margin-bottom: 22px;
  }
}

/* =========================================================
   SPEISEKARTE: SPRACHAUSWAHL
   Deutsch ist der voreingestellte Menüinhalt.
   ========================================================= */
.menu-language-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 12px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.menu-language-label {
  margin-right: 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-language-switcher button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: 500 0.78rem/1 var(--font-body, sans-serif);
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.menu-language-switcher button:hover,
.menu-language-switcher button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.menu-language-switcher button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .menu-language-switcher {
    gap: 6px;
  }

  .menu-language-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .menu-language-switcher button {
    flex: 1 1 auto;
  }
}

.menu-language-flag {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.95rem;
  line-height: 1;
  vertical-align: -0.08em;
}
