/* ════════════════════════════════════════════════════════════════════
   Beeconomy – Webseite (Hub, Spielseiten, News)
   Themes über <html data-theme="hub|beeconomy|beezarr|goal">
════════════════════════════════════════════════════════════════════ */
:root, [data-theme="hub"] {
  --bg: #15100a; --bg2: #1d160d; --surface: #241b10; --surface2: #2d2214; --line: rgba(255, 205, 120, .14);
  --text: #fbf3e4; --muted: #c8b797; --accent: #ffb703; --accent2: #ff8b00; --on-accent: #2a1800;
  --glow1: rgba(255, 183, 3, .22); --glow2: rgba(255, 120, 0, .12);
  --head-bg: rgba(21, 16, 10, .72); --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --radius: 22px; --radius-sm: 14px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-h: var(--font);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23ffb703' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
}
[data-theme="beeconomy"] {
  --bg: #fff8ea; --bg2: #ffefc8; --surface: #ffffff; --surface2: #fff6e2; --line: rgba(180, 120, 20, .18);
  --text: #2b2118; --muted: #7a6650; --accent: #ffb703; --accent2: #f08c00; --on-accent: #2a1800;
  --glow1: rgba(255, 196, 0, .35); --glow2: rgba(255, 150, 60, .18);
  --head-bg: rgba(255, 248, 234, .82); --shadow: 0 16px 40px rgba(120, 70, 0, .16);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23d99a00' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E");
}
[data-theme="beezarr"] {
  --bg: #1a120a; --bg2: #22170c; --surface: #2c1e10; --surface2: #382614; --line: rgba(242, 179, 61, .2);
  --text: #fff3d6; --muted: #d8c08f; --accent: #f2b33d; --accent2: #e0762a; --on-accent: #2a1600;
  --glow1: rgba(242, 179, 61, .25); --glow2: rgba(120, 190, 80, .12);
  --head-bg: rgba(26, 18, 10, .78); --radius: 14px; --radius-sm: 10px;
}
[data-theme="goal"] {
  --bg: #0b1220; --bg2: #0f1829; --surface: #152036; --surface2: #1b2944; --line: rgba(166, 245, 59, .16);
  --text: #eef4ff; --muted: #9fb0cc; --accent: #a6f53b; --accent2: #ffd43b; --on-accent: #0b1220;
  --glow1: rgba(166, 245, 59, .18); --glow2: rgba(255, 212, 59, .12);
  --head-bg: rgba(11, 18, 32, .8); --radius: 10px; --radius-sm: 8px;
  --font-h: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pattern: linear-gradient(rgba(166, 245, 59, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(166, 245, 59, .035) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
[data-theme="goal"] h1, [data-theme="goal"] h2, [data-theme="goal"] h3 { letter-spacing: .02em; text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ── Buttons & Badges ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); box-shadow: 0 8px 24px var(--glow1); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-danger { background: #e03131; color: #fff; }
[data-theme="beezarr"] .btn, [data-theme="goal"] .btn { border-radius: var(--radius-sm); }
[data-theme="beezarr"] .btn-primary { box-shadow: 0 4px 0 #8a4f12, 0 10px 24px var(--glow1); }
[data-theme="goal"] .btn-primary { box-shadow: 0 4px 0 #4f7a14, 0 10px 24px var(--glow1); text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-h); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.badge-accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Header ───────────────────────────────────────────────────────── */
.sh { position: sticky; top: 0; z-index: 100; background: var(--head-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; padding-top: env(safe-area-inset-top); }
.sh.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.sh-in { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.brand-t { font-weight: 900; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-t small { font-size: .62rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-l { color: var(--text); text-decoration: none; font-weight: 800; font-size: .95rem; padding: 9px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.nav-l:hover { background: var(--surface2); }
.nav-l.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.sh-act { display: flex; align-items: center; gap: 10px; }
.burger { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Burgermenü (Off-Canvas) ──────────────────────────────────────── */
.menu-ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 200; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 210; background: var(--bg2); border-left: 1px solid var(--line); overflow-y: auto; padding: calc(14px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); box-shadow: -20px 0 60px rgba(0, 0, 0, .35); animation: slidein .28s cubic-bezier(.2, .9, .3, 1); }
.menu-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 1.1rem; }
.menu-x { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.menu-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-lbl { margin: 0 0 6px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-l { display: block; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; }
.menu-l:hover { background: var(--surface); }
.menu-game { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--text); text-decoration: none; margin-bottom: 4px; }
.menu-game:hover, .menu-game.is-active { background: var(--surface); }
.menu-game small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.mg-logo { width: 58px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: #fff3d6; }
.mg-logo img { max-height: 40px; width: auto; object-fit: contain; }
.mg-beezarr { background: #fff8e8; } .mg-goal { background: #0b1220; } .mg-beeconomy { background: #6f5e45; }
.menu-foot { display: flex; gap: 16px; padding-top: 14px; font-size: .88rem; }
.menu-foot a { color: var(--muted); }
body.menu-open { overflow: hidden; }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 7vw, 90px); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 80% 20%, var(--glow1), transparent 60%), radial-gradient(50% 60% at 10% 90%, var(--glow2), transparent 60%), var(--pattern); background-size: auto, auto, 56px 98px; }
[data-theme="goal"] .hero::before { background-size: auto, auto, 32px 32px, 32px 32px; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; opacity: .28; filter: saturate(1.1); }
.hero-bg.pixel { image-rendering: pixelated; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 92%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 900; }
.hero h1 .hl { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-logo { width: min(520px, 100%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.hero-logo.tile { border-radius: 32px; }
.pixel { image-rendering: pixelated; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hub-Hero: drei schwebende Spielkarten */
.stack { position: relative; width: min(520px, 100%); aspect-ratio: 1 / .92; }
.stack-c { position: absolute; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.stack-c img { width: 100%; height: 100%; object-fit: cover; }
.stack-1 { width: 54%; aspect-ratio: 1; left: 0; top: 13%; z-index: 1; background: #6f5e45; animation: float 7s ease-in-out infinite; }
.stack-2 { width: 58%; aspect-ratio: 16 / 9; right: 0; top: 0; z-index: 2; background: #fff8e8; padding: 12px; animation: float 8s ease-in-out -2s infinite; }
.stack-2 img { object-fit: contain; }
.stack-3 { width: 42%; aspect-ratio: 1; right: 2%; bottom: 0; z-index: 2; background: #0b1220; animation: float 6.5s ease-in-out -4s infinite; }
.stack-1 { rotate: -6deg; } .stack-2 { rotate: 5deg; } .stack-3 { rotate: 4deg; }
.stack-bee { position: absolute; width: 19%; left: 30%; bottom: 1%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); animation: buzz 5s ease-in-out infinite; z-index: 3; }
@keyframes buzz { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(14px, -10px) rotate(3deg); } 50% { transform: translate(-6px, -18px) rotate(-2deg); } 75% { transform: translate(-14px, -6px) rotate(4deg); } }

/* ── Sektionen ────────────────────────────────────────────────────── */
.sec { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.sec-alt { background: var(--bg2); }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-hd h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; margin: 0; }
.sec-hd p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* ── Spielkarten (Hub) ────────────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.gcard:hover { transform: translateY(-6px); }
.gcard-media { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gcard-media .bgshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s ease; }
.gcard:hover .bgshot { transform: scale(1.06); }
.gcard-media .glogo { position: relative; max-width: 78%; max-height: 78%; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.gm-beeconomy { background: radial-gradient(circle at 50% 40%, #8a7556, #3d3122); }
.gm-beezarr { background: #233d18; }
.gm-goal { background: #0b1220; }
.gcard-b { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard-b h3 { font-size: 1.45rem; margin: 0; }
.gcard-b p { color: var(--muted); margin: 0; flex: 1; }
.gcard-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.gcard .status { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, .2); }

/* ── Features ─────────────────────────────────────────────────────── */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, border-color .2s ease; }
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: color-mix(in srgb, var(--accent) 16%, transparent); margin-bottom: 14px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feat p { color: var(--muted); margin: 0; font-size: .97rem; }
[data-theme="beezarr"] .feat { box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }

/* ── Galerie & Lightbox ───────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; }
.gallery a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: '⤢'; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; font-size: 1.1rem; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 5, 8, .92); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
.lb figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-height: calc(100vh - 120px); width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb figcaption { color: #e8e2d5; text-align: center; font-weight: 700; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb-x { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-p { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── News ─────────────────────────────────────────────────────────── */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard-img { aspect-ratio: 16 / 9; background: var(--surface2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; }
.ncard-img img.contain { object-fit: contain; padding: 14px; }
.ncard-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-weight: 700; }
.ncard h3 { font-size: 1.2rem; margin: 0; }
.ncard p { margin: 0; color: var(--muted); font-size: .96rem; }
.ncard .more { margin-top: auto; font-weight: 800; color: var(--accent); }
.gtag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 900; color: #1b1205; }
.ncard.feature { grid-column: 1 / -1; flex-direction: row; }
.ncard.feature .ncard-img { flex: 1.2; aspect-ratio: auto; min-height: 280px; }
.ncard.feature .ncard-b { flex: 1; padding: 30px; justify-content: center; }
.ncard.feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 800; font-size: .92rem; background: var(--surface); }
.filters a.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

/* Artikel */
.post { width: min(780px, 100% - 40px); margin: 0 auto; padding: clamp(30px, 6vw, 70px) 0; }
.post-cover { border-radius: var(--radius); overflow: hidden; margin: 24px 0 30px; border: 1px solid var(--line); background: var(--surface2); }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.post-cover img.contain { object-fit: contain; padding: 20px; max-height: 360px; margin: auto; }
.post h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; }
.post-body { font-size: 1.07rem; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.post-body li { margin: .3em 0; }
.post-body img { border-radius: var(--radius-sm); margin: 1em 0; border: 1px solid var(--line); }
.post-body blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* ── Spielseiten: Sub-Navigation ──────────────────────────────────── */
.subnav { position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 90; background: var(--head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 800; font-size: .9rem; }
.subnav a:hover { color: var(--text); background: var(--surface); }
.subnav a.is-active { color: var(--on-accent); background: var(--accent); }
.subnav .sn-cta { margin-left: auto; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent2)); }
[id] { scroll-margin-top: 140px; }

/* ── Bänder, Info-Boxen, Community ────────────────────────────────── */
.band { border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid var(--line); display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }
.band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.band p { margin: 0; color: var(--muted); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ccard h3 { margin: 0; font-size: 1.2rem; }
.ccard p { margin: 0; color: var(--muted); }
.ccard .btn { align-self: flex-start; margin-top: auto; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.code button { border: none; background: var(--surface2); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 800; font-family: var(--font); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.split img.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: '✓'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font-weight: 900; font-size: .85rem; }
.bees { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bee-chip { display: flex; flex-direction: column; align-items: center; width: 108px; padding: 10px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-weight: 800; font-size: .8rem; text-align: center; }
.bee-chip svg { width: 80px; height: 80px; }
.alert { padding: 14px 18px; border-radius: 14px; font-weight: 700; margin: 16px 0; border: 1px solid; }
.alert-ok { background: rgba(64, 192, 87, .12); border-color: rgba(64, 192, 87, .4); color: #8ce99a; }
.alert-err { background: rgba(224, 49, 49, .12); border-color: rgba(224, 49, 49, .4); color: #ffa8a8; }
[data-theme="beeconomy"] .alert-ok { color: #1f6b31; } [data-theme="beeconomy"] .alert-err { color: #a51d1d; }

/* ── Footer ───────────────────────────────────────────────────────── */
.sf { background: var(--bg2); border-top: 1px solid var(--line); padding: 54px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 0; }
.sf-in { width: min(1180px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.sf-in a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-weight: 700; }
.sf-in a:hover { color: var(--accent); }
.sf-in .brand { display: flex; padding: 0; color: var(--text); }
.sf-brand p { color: var(--muted); margin-top: 12px; }
.sf-h { font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.sf-bot { width: min(1180px, 100% - 40px); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.sf-bot a { color: var(--muted); }

/* ── Admin ────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form label { font-weight: 800; display: grid; gap: 6px; }
.form input[type="text"], .form input[type="datetime-local"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 500;
}
.form textarea { min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; line-height: 1.5; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hint { font-size: .85rem; color: var(--muted); font-weight: 600; }
.atable { width: 100%; border-collapse: collapse; }
.atable th, .atable td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable td .btn { margin: 2px; }
.inline-form { display: inline; }

/* ── Animationen beim Scrollen ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { display: none; }
  .sh-act { margin-left: auto; }
  .games { grid-template-columns: 1fr 1fr; }
  .games .gcard:last-child { grid-column: 1 / -1; }
  .sf-in { grid-template-columns: 1fr 1fr; }
  .gallery { --cols: 2 !important; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { width: min(380px, 86%); }
  .stack { width: min(420px, 100%); }
  .games { grid-template-columns: 1fr; }
  .games .gcard:last-child { grid-column: auto; }
  .ncard.feature { flex-direction: column; }
  .ncard.feature .ncard-img { min-height: 0; aspect-ratio: 16 / 9; }
  .form .row { grid-template-columns: 1fr; }
  [id] { scroll-margin-top: 130px; }
}
@media (max-width: 520px) {
  .wrap, .post { width: calc(100% - 32px); }
  .sh-in { width: calc(100% - 24px); min-height: 62px; }
  .subnav { top: calc(62px + env(safe-area-inset-top)); }
  .hide-xs { display: none !important; }
  .hero-cta .btn { flex: 1 1 100%; }
  .sf-in { grid-template-columns: 1fr; }
  .gallery { gap: 8px; }
  .feats { gap: 12px; }
  .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .feat .ic { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 13px; margin: 0; grid-row: span 2; }
  .feat h3 { font-size: 1.05rem; margin: 2px 0 4px; }
  .feat p { font-size: .93rem; }
  .lb-p, .lb-n { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .atable th:nth-child(3), .atable td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
