/* =====================================================================
   Mega Fun Spielhalle – Stylesheet
   Farbkonzept nach Fassade (außen3.jpg): Schwarz, Gold-Zierlinien,
   Magenta/Pink, Orange-Rot, Violett-Verläufe.
   ===================================================================== */

:root {
  --black:      #0d0a12;
  --black-2:    #17121f;
  --black-3:    #221a2e;
  --white:      #ffffff;
  --text:       #f3eef7;
  --muted:      #b9afc6;
  --gold:       #e6b94a;
  --gold-dark:  #b8892a;
  --magenta:    #e6007e;
  --pink:       #ff3ea5;
  --orange:     #ff5a1f;
  --red:        #e4002b;
  --purple:     #6a1b9a;
  --grad-brand: linear-gradient(135deg, #ff5a1f 0%, #e6007e 55%, #6a1b9a 100%);
  --grad-gold:  linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  --radius:     10px;
  --shadow:     0 10px 40px rgba(0,0,0,.45);
  --maxw:       1180px;
  --font:       "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(230,0,126,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,90,31,.12), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--pink); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: .25em 0; }
address { font-style: normal; }
.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,10,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: var(--grad-gold) 1;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand img { width: 96px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand-text { font-weight: 900; letter-spacing: .12em; font-size: 1.05rem; line-height: 1.1; text-transform: uppercase; }
.brand-text span { color: var(--gold); }
.brand-text small { display: block; font-size: .65rem; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .55rem .9rem; color: var(--text); font-weight: 600; border-radius: 8px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); text-decoration: none; border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: transform .2s, opacity .2s; }
.header-bar { background: var(--grad-brand); color: #fff; font-size: .85rem; font-weight: 600; }
.header-bar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .35rem 0; justify-content: center; }
.header-bar a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .5rem; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-bar span:nth-child(4) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center;
  padding: 4rem 0; overflow: hidden; isolation: isolate;
  background: var(--grad-brand); /* Fallback, solange hero-bg.jpg fehlt */
}
.hero .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,10,18,.35) 0%, rgba(13,10,18,.55) 60%, var(--black) 100%);
}
.hero h1 { text-shadow: 0 4px 24px rgba(0,0,0,.6); margin-bottom: .3em; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 720px; margin-inline: auto; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-logo { width: 180px; margin: 0 auto 1rem; filter: drop-shadow(0 6px 20px rgba(0,0,0,.7)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }
.hero-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 0; color: #fff; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-list li { padding: 0 .9rem; border-left: 1px solid rgba(255,255,255,.35); }
.hero-list li:first-child { border-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 6px; font-weight: 700; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #1a1200; }
.btn-primary:hover { color: #000; background: #f2ca66; }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover { color: #000; background: #f2ca66; }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(230,185,74,.12); color: var(--gold); }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--black-2); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 2px; margin: .7rem auto 0; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--black-3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.card:hover { border-color: rgba(230,185,74,.45); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-brand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--gold); }
.card-body p:last-child { margin-bottom: 0; }
.card-body .more { margin-top: auto; padding-top: .8rem; font-weight: 700; }

/* Bild-Fallback: Wenn ein (KI-)Bild noch fehlt, bleibt ein Farbverlauf sichtbar */
img.img-missing { visibility: hidden; }

/* Feature (Text + Bild abwechselnd) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 2.5rem 0; }
.feature + .feature { border-top: 1px solid rgba(255,255,255,.07); }
.feature:nth-child(even) .feature-img { order: -1; }
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--grad-brand); border: 1px solid rgba(230,185,74,.25); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature h2, .feature h3 { color: var(--gold); }
.feature ul { padding-left: 1.2rem; }
.feature li { margin: .3em 0; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature:nth-child(even) .feature-img { order: 0; }
}

/* Öffnungszeiten */
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.hours-box {
  background: linear-gradient(160deg, var(--black-3), var(--black-2)); border: 1px solid rgba(230,185,74,.35);
  border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: var(--shadow);
}
.hours-box .day { color: var(--muted); font-weight: 700; }
.hours-box .time { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: var(--gold); line-height: 1.1; margin: .3rem 0; }
.hours-box .note { color: var(--muted); font-size: .95rem; margin: 0; }
.open-state { display: inline-block; margin-top: 1rem; padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.08); }
.open-state.is-open { background: rgba(46, 204, 113, .18); color: #7ef0a8; }
.open-state.is-closed { background: rgba(228,0,43,.18); color: #ff8aa0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* News */
.news-card .date { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.news-article { max-width: 820px; margin-inline: auto; }
.news-article .date { color: var(--muted); }
.news-article .news-img { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; box-shadow: var(--shadow); }
.news-article .body { font-size: 1.1rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed rgba(255,255,255,.15); border-radius: var(--radius); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; }
.info-list dt { color: var(--gold); font-weight: 700; padding-top: .1rem; }
.info-list dd { margin: 0; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.07); }
@media (max-width: 480px) { .info-list { grid-template-columns: 1fr; gap: .2rem; } .info-list dd { margin-bottom: .6rem; } }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(230,185,74,.3); box-shadow: var(--shadow); }
.map-box img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map-box .map-links { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem; background: var(--black-3); }

/* Spielerschutz Box */
.protect-box {
  background: linear-gradient(135deg, rgba(230,0,126,.15), rgba(106,27,154,.15));
  border: 1px solid rgba(230,0,126,.4); border-radius: var(--radius); padding: 2rem;
}
.protect-box h2 { color: #fff; }
.hotline { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; background: var(--black); border: 2px solid var(--gold); border-radius: 8px; padding: .8rem 1.4rem; font-size: 1.5rem; font-weight: 900; color: var(--gold); margin: .5rem 0; white-space: nowrap; text-decoration: none; }
.hotline:hover { color: var(--pink); border-color: var(--pink); text-decoration: none; }
.hotline small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; white-space: normal; max-width: 320px; }

/* Content pages (Impressum etc.) */
.page-hero { padding: 3.5rem 0 2rem; background: linear-gradient(180deg, var(--black-2), transparent); text-align: center; }
.page-hero h1 { color: var(--gold); }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; color: var(--gold); margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; }
.prose th { color: var(--gold); white-space: nowrap; }
.prose .box { background: var(--black-3); border-left: 4px solid var(--magenta); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }

/* Notice bar / Footer */
.notice-bar { background: #1c0d1a; border-top: 2px solid var(--magenta); font-size: .9rem; color: #f8d9ea; }
.notice-bar p { margin: 0; padding: .9rem 0; text-align: center; }
.notice-bar a { color: #fff; text-decoration: underline; }
.site-footer { background: #08060c; border-top: 1px solid rgba(255,255,255,.08); padding: 3rem 0 1.5rem; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem; }
.site-footer h3 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-logo { width: 100px; margin-bottom: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(8,6,12,.92); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-gate-box { background: var(--black-3); border: 1px solid rgba(230,185,74,.45); border-radius: var(--radius); padding: 2rem; max-width: 520px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.age-gate-box img { margin: 0 auto 1rem; }
.age-gate-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.age-gate-note { font-size: .8rem; color: var(--muted); margin: 1.2rem 0 0; }
body.age-gate-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sprungziele unter dem Sticky-Header freihalten */
section[id], .feature[id] { scroll-margin-top: 140px; }
@media (max-width: 860px) { section[id], .feature[id] { scroll-margin-top: 150px; } }
