/* Brettspieltage Bindlach – frontend. Mobile first. Brand colors are overridable in CMS settings (:root vars). */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gelb: #fad02c;
  --anthrazit: #42403f;
  --hellblau: #2c8ffa;
  --primary: #e84747;
  --black: #2a2827;
  --ink: var(--black);
  --night: color-mix(in srgb, var(--anthrazit) 78%, #000);
  --link: color-mix(in srgb, var(--hellblau) 70%, #000);
  --accent-ink: color-mix(in srgb, var(--gelb) 45%, #6b4e00);
  --bg: #faf8f4;
  --surface: #ffffff;
  --soft: #f3efe6;
  --muted: #6b6762;
  --line: #e7e2d8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 28, 26, .06), 0 8px 24px rgba(30, 28, 26, .07);
  --shadow-lg: 0 2px 4px rgba(30, 28, 26, .06), 0 18px 48px rgba(30, 28, 26, .14);
  --head: "Outfit", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --gutter: 16px;
}
@media (min-width: 1024px) { :root { --header-h: 76px; --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 17px/1.7 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 1.6em 0 .5em; font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.sr, .skip-link { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; clip: auto; left: 16px; top: 8px; z-index: 300; background: var(--gelb); color: var(--anthrazit); padding: 10px 16px; border-radius: 10px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.icon { flex-shrink: 0; vertical-align: middle; }
.eyebrow { font: 600 .8rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .6rem; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--head); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s, color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-accent { background: var(--gelb); color: var(--anthrazit); box-shadow: 0 6px 20px color-mix(in srgb, var(--gelb) 40%, transparent); }
.btn-accent:hover { background: #fff; color: var(--anthrazit); }
.btn-dark { background: var(--anthrazit); color: var(--gelb); }
.btn-dark:hover { background: var(--night); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--anthrazit); }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 600 1rem var(--head); color: var(--ink); text-decoration: none; }
.link-arrow:hover { color: var(--primary); }

/* ---------------------------------------------------------------- header */
.announcement { background: var(--primary); color: #fff; font-size: .95rem; padding: 8px 0; text-align: center; position: relative; z-index: 60; }
.announcement p { margin: 0; }
.announcement a { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); color: #fff; background: color-mix(in srgb, var(--anthrazit) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: background-color .25s, box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.site-header.over-hero { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over-hero.scrolled { background: color-mix(in srgb, var(--anthrazit) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gelb); text-decoration: none; min-width: 0; }
.brand img { height: 36px; width: auto; }
.brand-name { font: 700 1.12rem/1.1 var(--head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: #fff; }
@media (max-width: 419px) { .brand-name { white-space: normal; max-width: 9em; font-size: 1.02rem; line-height: 1.05; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-cta { display: none; margin-left: 6px; }
.nav-desktop { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .brand img { height: 42px; }
  .brand-name { font-size: 1.25rem; }
}
@media (min-width: 1180px) {
  .burger { display: none; }
  .nav-desktop { display: block; margin-left: auto; }
  .header-actions { margin-left: 8px; }
  .nav-desktop > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav-desktop li { position: relative; }
  .nav-desktop > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: #fff; text-decoration: none; font: 500 1rem var(--head); white-space: nowrap; }
  .nav-desktop > ul > li > a:hover, .nav-desktop > ul > li:focus-within > a { background: rgba(255, 255, 255, .12); }
  .nav-desktop > ul > li.is-active > a { color: var(--gelb); }
  .nav-desktop .icon { opacity: .7; transition: transform .2s; }
  .nav-desktop li:hover > a .icon { transform: rotate(180deg); }
  .nav-desktop .sub { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .18s; }
  .nav-desktop .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-desktop li:hover > .sub, .nav-desktop li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-desktop .sub a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .nav-desktop .sub a:hover, .nav-desktop .sub a[aria-current] { background: var(--soft); color: var(--anthrazit); }
  .nav-desktop .sub a[aria-current] { box-shadow: inset 3px 0 0 var(--gelb); }
}

/* ---------------------------------------------------------------- overlays (mobile menu, search) */
.overlay { position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain; }
.overlay[hidden] { display: none; }
.mobile-menu { background: var(--night); color: #fff; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: fadeIn .2s ease; }
.overlay-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.m-nav ul { list-style: none; margin: 0; padding: 0; }
.m-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.m-nav .m-top, .m-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 4px; background: none; border: 0; color: #fff; font: 600 1.35rem/1.2 var(--head); text-decoration: none; cursor: pointer; text-align: left; }
.m-toggle .icon { transition: transform .2s; opacity: .7; }
.m-group.open .m-toggle .icon { transform: rotate(180deg); }
.m-group > ul { display: none; padding: 0 0 12px 4px; }
.m-group.open > ul { display: block; }
.m-group > ul a { display: block; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 1.05rem; }
.m-group > ul a:hover, .m-group > ul a[aria-current] { background: rgba(255, 255, 255, .08); color: var(--gelb); }
.m-foot { display: grid; gap: 16px; margin-top: 24px; }
.m-social { display: flex; gap: 8px; }
.m-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; }
.search-overlay { background: rgba(20, 19, 18, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .15s ease; }
.search-box { position: relative; max-width: 760px; margin-top: 12vh; background: #fff; border-radius: var(--radius); padding: 28px 20px 24px; box-shadow: var(--shadow-lg); }
.search-close { position: absolute; top: 8px; right: 8px; color: var(--ink); }
.search-close:hover { background: var(--soft); }
.search-label { display: block; font: 700 1.5rem var(--head); margin-bottom: 14px; }
.search-inline { display: flex; background: #fff; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .15s; }
.search-inline:focus-within { border-color: var(--gelb); }
.search-inline input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; background: transparent; color: var(--ink); outline: none; }
.search-inline button { border: 0; background: var(--anthrazit); color: var(--gelb); width: 52px; cursor: pointer; display: grid; place-items: center; }
.search-inline.big input { padding: 15px 22px; font-size: 1.1rem; }
.search-inline.big button { width: 60px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- hero (front page) */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 19, 18, .55) 0%, rgba(20, 19, 18, .15) 35%, rgba(20, 19, 18, .85) 100%); }
.hero.no-image { min-height: auto; padding-top: var(--header-h); background-image: radial-gradient(color-mix(in srgb, var(--gelb) 18%, transparent) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.hero-inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(88px, 14vw, 140px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 .95rem var(--head); border: 1px solid rgba(255, 255, 255, .18); }
.chip .icon { color: var(--gelb); }
.hero-title { color: #fff; margin: 0; font-size: clamp(2.5rem, 9vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.hero-lead { font-size: clamp(1.1rem, 2.6vw, 1.4rem); max-width: 36ch; margin: 18px 0 0; color: rgba(255, 255, 255, .9); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; max-width: 440px; }
.countdown div { background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 12px 6px; text-align: center; }
.countdown b { display: block; font: 700 clamp(1.6rem, 6vw, 2.2rem)/1 var(--head); color: var(--gelb); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* facts overlap the hero */
.facts { position: relative; z-index: 2; margin-top: -56px; }
.facts-grid { display: grid; gap: 12px; }
.fact { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-lg); }
.fact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gelb); color: var(--anthrazit); flex-shrink: 0; }
.fact-title { margin: 0; font: 600 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact-text { margin: 2px 0 0; font: 600 1.12rem/1.35 var(--head); color: var(--ink); }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-title { margin: 0 0 clamp(20px, 3vw, 36px); font-size: clamp(1.75rem, 4.2vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head .section-title { margin: 0; }
.highlights { background: var(--soft); }
.intro .entry { font-size: 1.08rem; }
.intro + .highlights { padding-top: clamp(48px, 8vw, 96px); }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-media { display: block; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--anthrazit); background-color: var(--gelb); background-image: radial-gradient(rgba(66, 64, 63, .16) 1.5px, transparent 1.6px); background-size: 18px 18px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-title { font: 700 1.2rem/1.25 var(--head); }
.card-text { color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 .95rem var(--head); color: var(--anthrazit); }
.card:hover .card-more { color: var(--primary); }
.related { background: var(--soft); }
@media (max-width: 599px) {
  .related .cards { gap: 10px; }
  .related .card { flex-direction: row; border-radius: var(--radius-sm); }
  .related .card-media { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .related .card-ph .icon { width: 30px; height: 30px; }
  .related .card-body { padding: 12px 14px; gap: 2px; }
  .related .card-title { font-size: 1.05rem; }
  .related .card-body { justify-content: center; }
  .related .card-text { flex: none; max-height: 3.1em; line-height: 1.55; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .related .card-more { display: none; }
}

/* ---------------------------------------------------------------- impressions strip */
.gallery.strip { display: flex; margin: 0; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; scrollbar-width: thin; }
.strip .gallery-item { flex: 0 0 auto; width: min(72vw, 360px); aspect-ratio: 4/3; scroll-snap-align: start; border-radius: var(--radius-sm); }
@media (min-width: 1248px) { .gallery.strip { padding-left: calc((100vw - 1200px) / 2 + var(--gutter)); } }

/* ---------------------------------------------------------------- page hero (sub pages) */
.page-hero { position: relative; color: #fff; background-color: var(--anthrazit); background-image: radial-gradient(color-mix(in srgb, var(--gelb) 16%, transparent) 1.5px, transparent 1.6px); background-size: 22px 22px; padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 6vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center/cover no-repeat; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25, 24, 23, .92) 0%, rgba(25, 24, 23, .7) 60%, rgba(25, 24, 23, .45) 100%); }
.page-hero .page-title { color: #fff; margin: 0; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.page-hero .eyebrow { color: var(--gelb); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gelb); }
.breadcrumb [aria-current] { color: var(--gelb); }
.draft-note { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 8px; background: var(--primary); font-size: .9rem; }
.page-body { padding-top: clamp(32px, 6vw, 64px); }

/* ---------------------------------------------------------------- content (entry) */
.entry { max-width: 780px; margin: 0 auto; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
.entry h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
.entry h2[style], .entry p[style] { color: inherit !important; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: .25em 0; }
.entry li::marker { color: var(--accent-ink); }
.entry figure { margin: 2em 0; }
.entry figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.entry img { border-radius: var(--radius-sm); }
.entry .has-text-align-center, .entry .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.entry img.aligncenter { display: block; }
.entry .alignleft, .entry .alignright { float: none; display: block; margin: 1em auto; }
@media (min-width: 700px) {
  .entry .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
  .entry .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
}
.entry::after { content: ""; display: table; clear: both; }
.entry hr { border: 0; height: 2px; background: var(--line); margin: 2.5em 0; }
.entry blockquote { margin: 2em 0; padding: 1em 1.4em; border-radius: var(--radius-sm); background: var(--soft); border-left: 5px solid var(--gelb); }
.entry strong { color: var(--ink); }
.wp-block-columns { display: grid; gap: 24px; margin: 1.5em 0; }
@media (min-width: 760px) { .wp-block-columns { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.wp-block-column:empty { display: none; }
.wp-block-columns:has(> .wp-block-column:empty) { justify-items: center; text-align: center; }
.wp-block-column img { display: block; margin: 0 auto 8px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-button a { display: inline-flex; align-items: center; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; background: var(--anthrazit); color: var(--gelb); font: 600 1rem var(--head); text-decoration: none; }
.wp-block-button a:hover { background: var(--primary); color: #fff; }
.notice { background: #fff6d6; border: 1px solid var(--gelb); padding: 12px 16px; border-radius: var(--radius-sm); }
/* wide elements break out of the reading column */
.entry > .gallery, .entry > .wp-block-table, .entry > .table-wrap, .entry > .logo-wall { width: min(1152px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }

/* ---------------------------------------------------------------- design blocks (bs-*), see app/blocks.php */
.bs-callout { margin: 1.5em 0; padding: 16px 20px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gelb) 22%, #fff); border-left: 5px solid var(--gelb); }
.bs-callout.is-success { background: #e8f7ec; border-left-color: #3fa25b; }
.bs-callout.is-warning { background: #fdecec; border-left-color: var(--primary); }
.bs-callout > :first-child { margin-top: 0; }
.bs-callout > :last-child { margin-bottom: 0; }
.bs-cards { display: grid; gap: 16px; margin: 1.5em 0; grid-template-columns: 1fr; }
@media (min-width: 600px) { .bs-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.bs-card { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 20px; overflow: hidden; }
.bs-card > img:first-child { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 16px; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.bs-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.bs-card p { margin: 0 0 8px; }
.bs-card > :last-child { margin-bottom: 0; }
.bs-columns { display: grid; gap: 24px; margin: 1.5em 0; }
@media (min-width: 760px) { .bs-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bs-columns.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bs-columns > div > :first-child { margin-top: 0; }
.bs-faq { margin: 1.5em 0; display: grid; gap: 10px; }
.bs-faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.bs-faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font: 600 1.05rem var(--head); position: relative; }
.bs-faq summary::-webkit-details-marker { display: none; }
.bs-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent-ink); transition: transform .2s; }
.bs-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bs-faq details > :not(summary) { margin: 0; padding: 0 20px 16px; }
.bs-timeline { margin: 1.5em 0; border-left: 3px solid var(--gelb); padding-left: 0; }
.bs-time { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 10px 0 10px 18px; position: relative; }
.bs-time::before { content: ""; position: absolute; left: -9px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--gelb); border: 3px solid var(--bg); }
.bs-when { font: 700 1.1rem var(--head); color: var(--anthrazit); }
.bs-time p { margin: 2px 0 0; color: var(--muted); }
.bs-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5em 0; }
.bs-btn { display: inline-flex; align-items: center; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; background: var(--anthrazit); color: var(--gelb); font: 600 1rem var(--head); text-decoration: none; }
.bs-btn:hover { background: var(--primary); color: #fff; }
.bs-btn.is-secondary { background: transparent; color: var(--anthrazit); box-shadow: inset 0 0 0 2px var(--anthrazit); }
.bs-btn.is-secondary:hover { background: var(--anthrazit); color: var(--gelb); }
.bs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1.5em 0; }
.bs-stats > div { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.bs-stats strong { display: block; font: 800 clamp(1.6rem, 5vw, 2.2rem)/1.1 var(--head); color: var(--anthrazit); }
.bs-stats span { color: var(--muted); font-size: .95rem; }
.bs-banner { position: relative; margin: 2em 0; border-radius: var(--radius); overflow: hidden; color: #fff; }
.bs-banner img { display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 0; }
@media (max-width: 599px) { .bs-banner img { aspect-ratio: 4/3; } }
.bs-banner figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; margin: 0; color: #fff; font-size: 1rem; background: linear-gradient(transparent, rgba(15, 14, 13, .85)); }
.bs-banner figcaption strong { display: block; color: var(--gelb); font: 700 clamp(1.2rem, 3.5vw, 1.6rem) var(--head); }
.bs-section { margin: 2em 0; padding: clamp(24px, 5vw, 40px); border-radius: var(--radius); }
.bs-section.is-yellow { background: var(--gelb); }
.bs-section.is-dark { background: var(--anthrazit); color: #fff; }
.bs-section.is-dark h2, .bs-section.is-dark h3 { color: var(--gelb); }
.bs-section.is-dark a { color: var(--gelb); }
.bs-section.is-soft { background: var(--soft); }
.bs-section > :first-child { margin-top: 0; }
.bs-section > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- tables (results, rankings) */
.table-wrap, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--surface);
  background-image: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent), linear-gradient(to right, rgba(0,0,0,.12), transparent), linear-gradient(to left, rgba(0,0,0,.12), transparent);
  background-position: left center, right center, left center, right center; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.wp-block-table .table-wrap { margin: 0; box-shadow: none; border-radius: 0; background: none; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.entry table.wide { min-width: 640px; }
.entry td, .entry th { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry thead th, .entry table.first-row-head tr:first-child td { background: var(--anthrazit); color: #fff; font: 600 .82rem var(--head); letter-spacing: .06em; text-transform: uppercase; position: sticky; top: 0; }
.entry table.first-row-head tr:first-child td strong { color: #fff; }
.entry tbody tr:nth-child(even) td { background: #fbf9f5; }
.entry tbody tr:hover td { background: #fff6d6; }
.entry td.has-text-align-center, .entry th.has-text-align-center { text-align: center; }
.entry table.first-row-head tr:nth-child(2) td:first-child, .entry table.first-row-head tr:nth-child(3) td:first-child, .entry table.first-row-head tr:nth-child(4) td:first-child { font-weight: 700; }
.wp-block-table figcaption { padding: 10px 14px; }

/* ---------------------------------------------------------------- gallery & lightbox */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 2em 0; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s, filter .3s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(12, 12, 11, .96); z-index: 400; display: flex; align-items: center; justify-content: center; touch-action: pan-y; animation: fadeIn .15s ease; }
.lightbox img { max-width: 100vw; max-height: 82svh; object-fit: contain; user-select: none; }
@media (min-width: 760px) { .lightbox img { max-width: 88vw; border-radius: 6px; } }
.lightbox .lb-cap { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #ddd; font-size: .95rem; padding: 0 70px; }
.lightbox button { position: absolute; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--gelb); color: var(--anthrazit); }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: none; } }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* detail view (games): image + info panel */
.lb-detail .lb-stage { flex-direction: column; justify-content: flex-start; padding-top: calc(64px + env(safe-area-inset-top)); }
.lb-detail .lb-stage img { max-height: 40svh; max-width: calc(100vw - 32px); flex: none; margin-bottom: 16px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .5)); }
.lb-panel { width: 100%; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 22px 20px calc(88px + env(safe-area-inset-bottom)); }
.lb-panel .gi-title { margin: 0 0 12px; font-size: clamp(1.5rem, 5vw, 2rem); }
.lb-panel .tags li:first-child { background: color-mix(in srgb, var(--gelb) 45%, #fff); }
.lb-panel .gi-desc { margin-top: 16px; font-size: 1.03rem; line-height: 1.7; }
.lb-detail .lb-cap { top: calc(22px + env(safe-area-inset-top)); bottom: auto; left: 16px; right: auto; padding: 0; text-align: left; }
@media (min-width: 900px) {
  .lb-detail .lb-stage { flex-direction: row; align-items: center; justify-content: center; gap: 36px; padding: 48px 96px; }
  .lb-detail .lb-stage img { max-width: min(52vw, 640px); max-height: 82svh; margin: 0; }
  .lb-panel { flex: 0 1 420px; max-height: 82svh; border-radius: 22px; padding: 30px 30px 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
  .lb-detail .lb-cap { left: 24px; }
}
.game-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font: 600 .88rem var(--head); color: var(--anthrazit); }
.tile-overlay .game-more { color: var(--gelb); }
.game-card:hover .game-more { text-decoration: underline; }

/* ---------------------------------------------------------------- game cards (gallery layout "cards") */
.game-list { margin: 2em 0; }
.entry > .game-list { width: min(1152px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
.game-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.game-tools .search-inline { position: relative; max-width: 520px; }
.game-tools .search-icon { display: grid; place-items: center; width: 52px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
@media (min-width: 760px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; } }
.chip-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .92rem var(--head); cursor: pointer; transition: .15s; }
.chip-btn small { font-weight: 500; color: var(--muted); }
.chip-btn:hover { border-color: var(--anthrazit); }
.chip-btn.is-on { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--gelb); }
.chip-btn.is-on small { color: rgba(255, 255, 255, .7); }
.game-empty { color: var(--muted); margin: 0; }
.gallery.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 700px) { .gallery.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .gallery.game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.game-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.game-card[hidden] { display: none; }
.game-card .game-media { aspect-ratio: 1; border-radius: 0; background: linear-gradient(160deg, #fff, var(--soft)); }
.game-card .game-media img { object-fit: contain; padding: 10%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }
.game-card .game-media:hover img { transform: scale(1.04); }
.game-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--line); }
.game-title { margin: 0; font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.25; }
.tags, .entry .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.entry .tags li { margin: 0; }
.tags li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--soft); font-size: .8rem; line-height: 1.35; color: var(--ink); }
.tags li .icon { color: var(--accent-ink); }
.tags li:first-child { background: color-mix(in srgb, var(--gelb) 35%, #fff); }
.game-desc { margin: 0; font-size: .9rem; color: var(--muted); }

/* tiles: large image, heading + tags on the image */
.gallery.game-grid.is-tiles { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .gallery.game-grid.is-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1180px) { .gallery.game-grid.is-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.game-tile { background: none; box-shadow: none; overflow: visible; border-radius: var(--radius); }
.game-tile .tile-media { position: relative; display: flex; flex-direction: column; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow); isolation: isolate; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.game-tile .tile-media::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--img) center/cover no-repeat; filter: blur(22px) brightness(.72) saturate(1.25); }
/* image and text share the tile height: more tags = smaller box, never covered */
.game-tile .tile-media img { position: relative; flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; padding: 6% 7% 2%; border-radius: 0; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); transition: transform .4s; }
.game-tile.no-meta .tile-media img { padding: 6%; }
.game-tile .tile-media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-tile .tile-media:hover img { transform: scale(1.04); }
.tile-overlay { position: relative; flex: none; padding: 14px 18px 18px; background: linear-gradient(180deg, rgba(15, 14, 13, 0), rgba(15, 14, 13, .7) 35%, rgba(15, 14, 13, .88)); color: #fff; }
.tile-title { margin: 0 0 10px; color: #fff; font-size: clamp(1.25rem, 4.5vw, 1.5rem); line-height: 1.15; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tile-overlay .tags li { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); font-size: .82rem; }
.tile-overlay .tags li .icon { color: var(--gelb); }
.tile-overlay .tags li:first-child { background: var(--gelb); color: var(--anthrazit); border-color: var(--gelb); }
.tile-overlay .tags li:first-child .icon { color: var(--anthrazit); }
.tile-desc { margin-top: 8px; }

/* ---------------------------------------------------------------- forms */
.cms-form { max-width: 640px; margin: 2em 0; padding: clamp(20px, 4vw, 32px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.cms-form .field { margin-bottom: 18px; }
.cms-form label { display: block; font: 600 .98rem var(--head); margin-bottom: 6px; }
.cms-form label.check { display: flex; gap: 12px; align-items: flex-start; font: 400 .95rem/1.5 var(--body); cursor: pointer; }
.cms-form label.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--anthrazit); flex-shrink: 0; }
.cms-form input:not([type=checkbox]):not([type=radio]), .cms-form textarea, .cms-form select { width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cms-form input:focus, .cms-form textarea:focus, .cms-form select:focus { outline: none; border-color: var(--anthrazit); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gelb) 55%, transparent); }
.cms-form fieldset { border: 0; padding: 0; margin: 0; }
.cms-form legend { font: 600 .98rem var(--head); margin-bottom: 6px; }
.cms-form .help { display: block; color: var(--muted); margin-top: 6px; font-size: .88rem; }
.cms-form .btn, .cms-form button[type=submit] { width: 100%; }
@media (min-width: 600px) { .cms-form .btn, .cms-form button[type=submit] { width: auto; } }
.cms-form button[type=submit] { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7em 2em; border: 0; border-radius: 999px; background: var(--anthrazit); color: var(--gelb); font: 600 1.05rem var(--head); cursor: pointer; transition: background-color .15s; }
.cms-form button[type=submit]:hover { background: var(--primary); color: #fff; }
.req { color: var(--primary); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-errors { background: #fdecec; border: 1px solid var(--primary); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-success { background: #e8f7ec; border: 1px solid #3fa25b; border-radius: var(--radius); padding: 20px 24px; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- search results */
.search-results { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.search-results a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; }
.search-results a:hover { transform: translateY(-2px); }
.sr-title { display: block; font: 700 1.15rem var(--head); }
.sr-text { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- info + logo bands */
.band { padding: clamp(40px, 7vw, 72px) 0; }
.band-info { background: var(--gelb); }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.info-card { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.info-title { margin: 0 0 8px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.info-text > :first-child { margin-top: 0; }
.info-text > :last-child { margin-bottom: 0; }
.band-logos { background: var(--surface); border-top: 1px solid var(--line); }
.logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; margin: 12px 0; }
@media (min-width: 600px) { .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; } }
.logo-wall img { width: 100%; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; border-radius: 0; }
.logo-wall img:hover { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .78); padding: clamp(40px, 7vw, 72px) 0 calc(24px + env(safe-area-inset-bottom)); font-size: .97rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-text p { margin: 14px 0 0; max-width: 42ch; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--gelb); color: var(--anthrazit); }
.footer-col h2 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gelb); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a, .footer-bottom a { color: rgba(255, 255, 255, .85); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-col a:hover, .footer-bottom a:hover, .footer-col a[aria-current] { color: var(--gelb); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .55); }

.admin-bar { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font: 600 .95rem var(--head); box-shadow: var(--shadow-lg); }
.admin-bar:hover { color: #fff; background: var(--anthrazit); }

/* ---------------------------------------------------------------- reveal on scroll (JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
body.no-scroll { overflow: hidden; }

@media print {
  .site-header, .band, .site-footer, .admin-bar, .related { display: none; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero .page-title { color: #000; }
}

/* ---------------------------------------------------------------- news ([news] placeholder, posts) */
.page-date { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; color: rgba(255, 255, 255, .85); font: 500 1rem var(--head); }
.news-list { display: grid; gap: 18px; margin: 1.5em 0; }
.news-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.news-media { display: block; aspect-ratio: 16/9; background: var(--soft); }
.news-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.news-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.news-body time { font: 600 .8rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.news-title { font: 700 1.25rem/1.25 var(--head); }
.news-text { color: var(--muted); font-size: .98rem; }
@media (min-width: 720px) {
  .news-card { grid-template-columns: 280px minmax(0, 1fr); }
  .news-card.no-image { grid-template-columns: minmax(0, 1fr); }
  .news-media { aspect-ratio: auto; height: 100%; min-height: 180px; }
}
