/*
 * BSV Bindlach – club design (blue/yellow). Loaded after assets/css/site.css: the shared building blocks stay,
 * colours, header/footer, page heads and the start page get the club look. Hexagons echo the club logo.
 */
:root {
  --navy: #13295b;
  --navy-deep: #0b1a3d;
  --gelb: #f6c437;
  --anthrazit: var(--navy);
  --night: var(--navy-deep);
  --primary: #e2565f;            /* coral from the mascot's bandana */
  --hellblau: #2f62d8;
  --link: #2450b8;
  --ink: #18213a;
  --black: #18213a;
  --accent-ink: #8a6200;
  --bg: #f6f4ef;
  --soft: #ece8df;
  --line: #e3ded2;
  --muted: #5f6577;
  --radius: 22px;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cg fill='none' stroke='%23f6c437' stroke-opacity='.13' stroke-width='1.4'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16z'/%3E%3Cpath d='M28 61v37M2 16 0 15M54 16l2-1'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- header + footer */
.theme-bsv .site-header, .theme-bsv .site-header.over-hero { position: sticky; top: 0; background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.theme-bsv .site-header.scrolled { background: color-mix(in srgb, var(--navy) 96%, transparent); box-shadow: 0 6px 24px rgba(5, 12, 30, .35); }
.theme-bsv .brand img { width: auto; height: 46px; }
.theme-bsv .brand-name { font-weight: 800; letter-spacing: -.01em; }
/* yellow marks the current page only in the dark top bar (8.6:1); the white dropdown uses navy (WCAG AA, see below) */
.theme-bsv .nav-desktop > ul > li > a[aria-current], .theme-bsv .nav-desktop > ul > li.is-active > a { color: var(--gelb); }
.theme-bsv .nav-desktop .sub a { color: var(--ink); }
.theme-bsv .nav-desktop .sub a:hover, .theme-bsv .nav-desktop .sub a[aria-current] { background: #e8eef9; color: var(--navy); }   /* 12:1 */
.theme-bsv .nav-desktop .sub a[aria-current] { font-weight: 700; box-shadow: inset 4px 0 0 var(--gelb); }
/* keyboard focus visible on light and dark backgrounds: navy outline (14:1 on white) + yellow halo (8.6:1 on navy) */
.theme-bsv :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gelb); }
.theme-bsv .site-footer { background: var(--navy-deep) var(--hex); }
.theme-bsv .site-footer .brand img { height: 56px; }
.theme-bsv .mobile-menu { background: var(--navy-deep); }

/* ---------------------------------------------------------------- buttons */
.theme-bsv .btn-accent { background: var(--gelb); color: var(--navy-deep); box-shadow: 0 8px 24px color-mix(in srgb, var(--gelb) 35%, transparent); }
.theme-bsv .btn-accent:hover { background: #fff; color: var(--navy-deep); }
.theme-bsv .btn-dark, .theme-bsv .cms-form button[type=submit] { background: var(--navy); color: var(--gelb); }
.theme-bsv .btn-dark:hover, .theme-bsv .cms-form button[type=submit]:hover { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- start page: hero */
.bsv-hero { position: relative; color: #fff; background: var(--hex), radial-gradient(120% 90% at 85% 10%, #1e3b7d 0%, var(--navy) 45%, var(--navy-deep) 100%);
  padding: clamp(40px, 7vw, 88px) 0 clamp(88px, 12vw, 132px); overflow: hidden; isolation: isolate; }
.bsv-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gelb) 30%, transparent), transparent 70%); }
.bsv-hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .bsv-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.bsv-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  font: 600 .9rem var(--head); color: #fff; }
.bsv-kicker .icon { color: var(--gelb); }
.bsv-hero-title { margin: 0; color: #fff; font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.bsv-hero-title::after { content: ""; display: block; width: 88px; height: 8px; margin-top: 20px; border-radius: 999px; background: var(--gelb); }
.bsv-hero-lead { margin: 20px 0 0; max-width: 38ch; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: rgba(255, 255, 255, .88); }
.bsv-hero .hero-actions { margin-top: 30px; }
.bsv-hero-media { position: relative; margin: 0; }
.bsv-hero-media::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 30px; background: var(--gelb); z-index: -1; transform: rotate(2.5deg); }
.bsv-hero-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(3, 10, 30, .45); }
.bsv-badge { position: absolute; left: clamp(-8px, -2vw, -24px); bottom: 22px; display: flex; gap: 12px; align-items: center; max-width: 280px; padding: 12px 16px;
  border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .95rem; line-height: 1.35; }
.bsv-badge .icon { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy); color: var(--gelb); }
.bsv-badge b { display: block; font: 700 .78rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 899px) { .bsv-badge { left: 12px; bottom: 12px; } }

/* key facts overlap the hero; hexagon icons like the logo */
.bsv-facts { position: relative; z-index: 2; margin-top: -64px; }
.bsv-facts-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .bsv-facts-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 16px; } }
.bsv-fact { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.bsv-hex { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 58px; background: var(--navy); color: var(--gelb);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* next highlights (start page editor, section 3): one low bar per event
   (date field | eyebrow over name · short text | link). The link covers the whole bar, its text stays for screen readers. */
.bsv-events { margin-top: clamp(28px, 5vw, 48px); }
.theme-bsv .bs-events { list-style: none; display: grid; gap: 12px; max-width: 780px; margin: 0 auto; padding: 0; }
.theme-bsv .bs-events li { position: relative; margin: 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-left: 6px solid var(--gelb); line-height: 1.4; display: flex; flex-direction: column; }
.theme-bsv .bs-events li::before { content: "Danach"; display: block; margin-bottom: 2px; font: 600 .8rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.theme-bsv .bs-events li:first-child::before { content: "Nächstes Highlight"; }
.theme-bsv .bs-events .bs-tag { order: -1; display: flex; width: fit-content; align-items: center; gap: 6px; margin: 0 0 10px; padding: 7px 10px; border-radius: 10px;
  background: var(--navy); color: #fff; font: 600 .85rem/1.3 var(--head); letter-spacing: 0; text-transform: none; }
.theme-bsv .bs-events .bs-tag::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; background: var(--gelb);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.theme-bsv .bs-events strong { font: 700 1.25rem/1.35 var(--head); }
.theme-bsv .bs-events .sub { display: inline; color: var(--muted); }
.theme-bsv .bs-events a { align-self: flex-end; margin-top: 4px; font-size: 0; text-decoration: none; }
.theme-bsv .bs-events a::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.theme-bsv .bs-events a::after { content: "Mehr \2192"; font: 600 1rem var(--head); color: var(--ink); }
.theme-bsv .bs-events a:focus-visible::before { outline: 3px solid var(--navy); outline-offset: 2px; }
.theme-bsv .bs-events li:hover { box-shadow: var(--shadow-lg); }
@media (min-width: 760px) {
  .theme-bsv .bs-events li { display: block; align-content: center; min-height: 82px; padding: 16px 104px 16px 242px; }
  /* one width for all date fields, so the names line up */
  .theme-bsv .bs-events .bs-tag { position: absolute; left: 20px; top: 50%; width: 12.9rem; margin: 0; transform: translateY(-50%); }
  .theme-bsv .bs-events .sub::before { content: " · "; }
  .theme-bsv .bs-events a::after { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); }
}

/* ---------------------------------------------------------------- start page: sections */
.bsv-intro .entry { font-size: 1.06rem; }
.bsv-intro .entry > h2:first-child { margin-top: 0; font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 800; }
.theme-bsv .bs-card { border-top: 5px solid var(--gelb); }
.theme-bsv .bs-card h3 { overflow-wrap: break-word; hyphens: auto; }
.theme-bsv .cms-form { max-width: none; }
.bsv-highlights { background: var(--soft) var(--hex); }
.theme-bsv .card { border-top: 5px solid var(--gelb); }
.theme-bsv .card-ph { background-color: var(--navy); color: var(--gelb); }
.theme-bsv .card-media img { object-fit: cover; }
.bsv-news { padding-top: clamp(48px, 8vw, 96px); }
.bsv-join { color: #fff; background: var(--navy) var(--hex); padding: clamp(48px, 8vw, 88px) 0; }
.bsv-join-inner { display: grid; gap: 24px; align-items: center; justify-items: start; }
@media (min-width: 760px) { .bsv-join-inner { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } }
.bsv-mascot { width: 200px; max-width: 60vw; padding: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--gelb) 60%, transparent); }
.bsv-join h2 { margin: 0 0 10px; color: var(--gelb); font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 800; }
.bsv-join p { margin: 0 0 22px; max-width: 46ch; font-size: 1.1rem; color: rgba(255, 255, 255, .88); }

/* ---------------------------------------------------------------- sub pages */
.theme-bsv .page-hero { background: var(--hex), linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1d3a7a); }
.theme-bsv .page-hero .page-title::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 16px; border-radius: 999px; background: var(--gelb); }
.theme-bsv .page-hero.has-image::after { background: linear-gradient(90deg, rgba(11, 26, 61, .94) 0%, rgba(11, 26, 61, .72) 60%, rgba(11, 26, 61, .45) 100%); }
.theme-bsv .page-date { color: rgba(255, 255, 255, .85); }
.theme-bsv .page-date .icon { color: var(--gelb); }

/* imported WordPress blocks: media + text, images, striped tables */
.theme-bsv .wp-block-media-text { display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; margin: clamp(32px, 6vw, 64px) 0; }
@media (min-width: 820px) {
  .theme-bsv .wp-block-media-text { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .theme-bsv .wp-block-media-text.has-media-on-the-right { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .theme-bsv .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
}
.theme-bsv .wp-block-media-text__media { margin: 0; }
.theme-bsv .wp-block-media-text__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.theme-bsv .wp-block-media-text__content > :first-child { margin-top: 0; }
.theme-bsv .wp-block-media-text__content h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.theme-bsv .wp-block-image { margin: 1.5em 0; }
.theme-bsv .wp-block-image img { border-radius: var(--radius); }
.theme-bsv .wp-block-image .aligncenter { text-align: center; }
.theme-bsv .wp-block-image .aligncenter img { margin: 0 auto; }
.theme-bsv .entry li::marker, .theme-bsv.entry li::marker { color: var(--gelb); }
.theme-bsv .entry hr, .theme-bsv.entry hr { border: 0; height: 2px; margin: clamp(32px, 6vw, 56px) auto; max-width: 160px; background: var(--gelb); border-radius: 2px; }
.theme-bsv .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--soft) 70%, #fff); }
.theme-bsv .wp-block-table td:first-child strong { color: var(--navy); }
.theme-bsv .news-body time { color: var(--accent-ink); }
.theme-bsv .news-card { border-left: 5px solid var(--gelb); }
