:root {
  --gold: #f7c86a;
  --gold-strong: #ffb84a;
  --bg-dark: rgba(10, 8, 6, 0.74);
  --panel: rgba(15, 12, 10, 0.72);
  --border: rgba(247, 200, 106, 0.35);
  --text: #f8ebcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #120d09;
  min-height: 100vh;
}

body.overlay-open {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.88), rgba(0,0,0,0.22));
}

.brand {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.35rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 184, 74, 0.45);
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff4df;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

.menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: min(280px, 82vw);
  height: 100vh;
  z-index: 30;
  padding: 5rem 1.2rem 1.2rem;
  background: rgba(8, 7, 6, 0.96);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -10px 0 30px rgba(0,0,0,0.45);
  transition: right 0.28s ease;
}

.menu-drawer.open { right: 0; }

.menu-drawer a {
  display: block;
  padding: 0.9rem 1rem;
  margin-bottom: 0.55rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}

.menu-drawer a:hover,
.menu-drawer a.active {
  color: #1a1209;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 25;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.page {
  min-height: 100vh;
}

.home-page {
  background: #0f0b08;
}

.hero-page {
  padding-top: 72px;
}

.hero-image-wrap {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border: none;
  box-shadow: none;
}

.content-background {
  background-image:
    linear-gradient(rgba(6, 10, 12, 0.55), rgba(6, 10, 12, 0.72)),
    url('zauberbibliothek_300dpi.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.content-page {
  position: relative;
  padding: 96px 1rem 2rem;
}

.panel {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

h1, h2 {
  color: var(--gold);
  margin-top: 0;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 184, 74, 0.25);
}

p, li, address {
  font-size: 1.05rem;
  line-height: 1.7;
}

ul, ol {
  padding-left: 1.3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(247, 200, 106, 0.18);
}

.label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(247, 200, 106, 0.15);
  border: 1px solid rgba(247, 200, 106, 0.22);
  color: var(--gold);
  font-size: 0.92rem;
}

a.inline-link {
  color: var(--gold);
}

footer {
  width: min(960px, 100%);
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #ead8b2;
}

@media (max-width: 700px) {
  .content-background {
    background-attachment: scroll;
  }

  .panel {
    padding: 1rem;
  }

  p, li, address {
    font-size: 1rem;
  }
}
