/* MerkurZeit — тёмный дизайн, как на прежнем сайте: чёрный фон, бирюзовые акценты, тёмные карточки залов. */

:root {
  --bg: #000;
  --card: #1c1c1e;
  --card-2: #262628;
  --text: #fff;
  --muted: #c7c7cc;
  --line: rgba(255, 255, 255, .14);
  --accent: #19d3da;      /* бирюзовый, как логотип и активный пункт меню */
  --route: #3e7a8a;       /* кнопка «Route planen» */
  --route-hover: #4b92a5;
  --mail: #3b7a57;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: underline; text-underline-offset: .2em; font-size: 1.5rem; color: var(--text); }
.logo-mark { width: 36px; height: 16px; color: var(--accent); flex: none; }
.social { display: flex; gap: .5rem; margin-left: 1rem; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; color: #fff; }
.social svg { width: 24px; height: 24px; }
.social .ig { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #f58529 25%, #dd2a7b 55%, #8134af 80%, #515bd4 100%); }
.social .fb { background: #3b5998; }
.nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 1rem; padding: .4rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
/* подменю «Mehr» */
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: var(--text); font: 400 1rem/1.55 var(--sans); padding: .4rem 0; cursor: pointer; }
.nav-more-btn svg { width: 12px; height: 8px; transition: transform .2s; }
.nav-more-btn:hover, .nav-more-btn.is-current { color: var(--accent); }
.nav-more-list { display: none; position: absolute; right: 0; top: calc(100% + .6rem); min-width: 200px; background: #1c1c1e; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.nav-more-list a { display: block; padding: .6rem .8rem; border-radius: 6px; }
.nav-more-list a:hover { background: rgba(255, 255, 255, .06); }
.nav-more.open .nav-more-list { display: block; }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 901px) {
  .nav-more:hover .nav-more-list, .nav-more:focus-within .nav-more-list { display: block; }
  .nav-more::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .8rem; } /* мостик, чтобы меню не закрывалось при наведении */
}
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; }
  .brand { font-size: 1.3rem; }
  .menu-btn { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: .75rem; }
  .nav-open .nav { display: flex; }
  .nav a { padding: .8rem 0; border-top: 1px solid var(--line); }
  .nav-more-btn { display: none; }
  .nav-more-list { display: block; position: static; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0; }
  .nav-more-list a { padding: .8rem 0; border-radius: 0; }
}
@media (max-width: 420px) { .social { margin-left: 0; } .social a { width: 34px; height: 34px; } }

/* ---------- Главная: приветствие ---------- */
.hero { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1.25rem; }
.hero-welcome { font-size: 1.35rem; margin-bottom: .4rem; }
.hero-text p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 4px; }
.age-badge { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; margin-top: .5rem; }
.age-badge span { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid #e5484d; color: #e5484d; font-size: .95rem; font-weight: 700; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

/* ---------- Залы ---------- */
.halls-section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section-title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.halls { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 820px) { .halls { grid-template-columns: 1fr; } }
.hall { background: var(--card-2); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.hall-photo img { width: 100%; aspect-ratio: 403 / 334; object-fit: cover; }
.hall-body { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.hall h3 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 400; text-align: center; margin-bottom: 1rem; }
.hall-body > p { font-size: 1rem; }
.hall-facts { margin: 0 0 1.75rem; font-size: 1rem; }
.hall-facts div { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .2rem; }
.hall-facts dt { color: var(--muted); }
.hall-facts dd { margin: 0; }
.hall-facts a { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 0; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn--route { background: var(--route); color: #000; align-self: center; margin-top: auto; }
.btn--route:hover { background: var(--route-hover); color: #000; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Галерея ---------- */
.gallery-section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 4vw, 3.5rem); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.gallery a { display: block; overflow: hidden; border-radius: 2px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Плашка «Spielerschutz» ---------- */
.protection-note { text-align: center; padding: 1.5rem 0 2.5rem; }
.protection-note h2 { font-size: 1.05rem; font-weight: 400; margin-bottom: .3rem; }
.protection-note p { max-width: 46rem; margin: 0 auto .4rem; font-size: 1rem; }
.protection-note a { text-decoration: underline; }

/* ---------- Текстовые страницы ---------- */
.page { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.prose { max-width: 50rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: #e8e8ed; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
.prose code { font-size: .9em; }
.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
.page-photo { margin: 2rem 0 0; }
.page-photo img { border-radius: 6px; max-height: 520px; object-fit: cover; width: 100%; }
.notfound { text-align: center; }
.notfound h1 { font-size: 6rem; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.footer-left { text-align: center; border-right: 1px solid rgba(255, 255, 255, .6); padding-right: 1rem; }
.footer-icons { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.round { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #2c2c2e; color: #fff; }
.round--mail { background: var(--mail); }
.round svg { width: 26px; height: 26px; }
.footer-left p { margin: 0; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding-left: clamp(1rem, 10vw, 7rem); }
.footer-links a, .consent-open { color: #fff; font: 700 1.15rem/1.4 var(--sans); text-decoration: underline; }
.consent-open { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 400; font-size: 1rem; }
.consent-open:hover { color: var(--accent); }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-left { border-right: 0; padding-right: 0; }
  .footer-links { align-items: center; padding-left: 0; }
}

/* ---------- Баннер согласия ---------- */
.consent { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: #1c1c1e; color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-top: 4px solid var(--accent); border-radius: 14px; padding: 1.2rem 1.35rem 1.3rem; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); }
.consent-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .4rem; }
.consent-text { font-size: .9rem; line-height: 1.5; color: #e8e8ed; margin: 0 0 1rem; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: .6rem; }
/* обе кнопки одинаковые: отказ так же заметен, как согласие */
.consent-btn { flex: 1; background: var(--route); color: #000; }
.consent-btn:hover { background: var(--route-hover); }

/* ---------- Просмотр фото ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 4px; }
.lb-btn { position: fixed; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #000; font: 400 1.6rem/1 var(--sans); cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
