/*
Theme Name: Bandunion Galerie Fix 2026
Theme URI: https://www.bandunion.at/
Author: Bandunion
Description: Ein eigenständiges, responsives Theme für die österreichische Band-Initiative Bandunion.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: bandunion
*/

:root {
  --bu-ink: #111318;
  --bu-muted: #60656f;
  --bu-paper: #f6f3ee;
  --bu-white: #fffdf9;
  --bu-orange: #ee5a24;
  --bu-yellow: #f3b32b;
  --bu-blue: #182738;
  --bu-line: rgba(17, 19, 24, .12);
  --bu-shadow: 0 18px 50px rgba(17, 19, 24, .12);
  --bu-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--bu-ink); background: var(--bu-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--bu-orange); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bu-blue); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: relative; z-index: 5; color: #fff; background: var(--bu-blue); border-bottom: 4px solid var(--bu-orange); }
.top-strip { background: #0d151f; color: #c8d2dd; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.top-strip .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-branding { padding: 20px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.brand-link:hover, .brand-link:focus-visible { color: #fff; }
.brand-link img { width: 58px; height: 68px; object-fit: contain; }
.brand-wordmark { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.brand-tagline { display: block; color: #aebdca; font-size: .72rem; letter-spacing: .1em; margin-top: 5px; font-weight: 500; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0 0 18px; }
.main-nav a { color: #fff; text-decoration: none; font-size: .84rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--bu-yellow); }
.hero { color: #fff; background: linear-gradient(110deg, rgba(24,39,56,.96), rgba(24,39,56,.75)), url('assets/images/hero-header.webp') center/cover; padding: clamp(72px, 11vw, 140px) 0 100px; }
.hero-kicker { color: var(--bu-yellow); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 800; }
.hero h1 { max-width: 820px; margin: 14px 0 18px; font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: .95; letter-spacing: -.065em; }
.hero p { max-width: 660px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d6e0e8; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: var(--bu-orange); color: #fff; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.button:hover { color: #fff; background: #c94212; }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.button--ghost:hover { background: #fff; color: var(--bu-blue); }
.section { padding: 84px 0; }
.section--tight { padding: 48px 0; }
.section--dark { color: #fff; background: var(--bu-blue); }
.section--paper-alt { background: #ece5da; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.eyebrow { color: var(--bu-orange); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p { max-width: 510px; color: var(--bu-muted); margin: 0; }
.section--dark .section-heading p { color: #b6c2cf; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(17,19,24,.04); }
.card__image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #d9d2c8; }
.card__image.cd-panorama { aspect-ratio: 541 / 200; height: auto; object-fit: contain; object-position: center; background: #12202c; }
.card__body { padding: 23px; }
.card__body h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.1; }
.card__body p { margin: 0; color: var(--bu-muted); }
.card__meta { color: var(--bu-orange); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 9px; }
.timeline { position: relative; margin: 8px 0 0 8px; padding-left: 34px; border-left: 2px solid rgba(238,90,36,.35); }
.timeline-item { position: relative; padding: 0 0 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -43px; top: 7px; width: 15px; height: 15px; border: 4px solid var(--bu-paper); border-radius: 50%; background: var(--bu-orange); box-shadow: 0 0 0 2px var(--bu-orange); }
.timeline-year { color: var(--bu-orange); font-weight: 850; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline h3 { margin: 3px 0 4px; font-size: 1.3rem; }
.band-list { columns: 3 220px; column-gap: 30px; margin: 0; padding: 0; list-style: none; }
.band-list li { break-inside: avoid; border-bottom: 1px solid rgba(255,255,255,.13); padding: 9px 0; color: #dce4eb; }
.band-list a { text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bu-line); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); overflow: hidden; }
.stat { background: var(--bu-white); padding: 26px; }
.stat strong { display: block; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; color: var(--bu-orange); }
.stat span { display: block; margin-top: 8px; color: var(--bu-muted); font-weight: 700; }
.page-hero { background: var(--bu-blue); color: #fff; padding: 70px 0 62px; }
.page-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.page-content { padding: 64px 0 90px; }
.content-shell { max-width: 1040px; }
.content-shell h2 { margin-top: 2.3em; font-size: 2rem; line-height: 1.1; }
.content-shell h3 { margin-top: 2em; line-height: 1.2; }
.content-shell p, .content-shell li { font-size: 1.06rem; }
.content-shell blockquote { margin: 28px 0; padding: 12px 24px; border-left: 4px solid var(--bu-orange); color: var(--bu-muted); background: rgba(255,255,255,.55); }
.site-footer { color: #c5d0d9; background: #0d151f; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #f3b32b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 18px; font-size: .84rem; display: flex; justify-content: space-between; gap: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.band-list--full { columns: 2 300px; column-gap: 42px; }
.band-list--full li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--bu-ink); border-bottom-color: var(--bu-line); }
.band-list--full li a { font-weight: 750; }
.band-style { color: var(--bu-muted); font-size: .78rem; white-space: nowrap; }
.cd-archive-intro, .news-intro { max-width: 850px; }
.archive-note { padding: 15px 18px; border-left: 4px solid var(--bu-orange); background: rgba(238,90,36,.08); color: var(--bu-muted); }
.cd-entries { display: grid; gap: 34px; margin-top: 38px; }
.cd-entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(17,19,24,.04); }
.cd-entry__visual { display: flex; align-items: center; justify-content: center; background: #12202c; min-width: 0; }
.cd-panorama { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 541 / 200; object-fit: contain; object-position: center; }
.cd-entry__body { padding: 28px; }
.cd-entry__body h2 { margin-top: 0; }
.cd-entry__body h3 { margin-top: 28px; font-size: 1rem; }
.streaming-link { margin: 14px 0 0; font-weight: 800; }
.review-callout { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--bu-orange); background: rgba(238,90,36,.07); }
.review-callout p { margin: 0 0 10px; color: var(--bu-muted); }
.review-callout p:last-child { margin-bottom: 0; }
.cd-band-list { columns: 1; max-height: 500px; overflow: auto; padding-right: 8px; }
.cd-band-list li { padding: 6px 0; }
.cd-entry--best { grid-template-columns: minmax(0, .75fr) minmax(300px, 1fr); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.news-card { padding: 25px; background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); }
.news-card h2 { margin: 4px 0 10px; font-size: 1.45rem; line-height: 1.15; }
.news-card p { margin: 0; color: var(--bu-muted); }
.news-card__date, .news-card__source { color: var(--bu-orange); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.news-card__source { margin-top: 16px; color: var(--bu-muted); font-weight: 600; letter-spacing: .04em; }
.history-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.history-media figure { margin: 0; background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: 14px; overflow: hidden; }
.history-media img { width: 100%; height: 190px; object-fit: cover; }
.history-media figcaption { padding: 12px 14px; color: var(--bu-muted); font-size: .87rem; line-height: 1.4; }
.gallery-intro { margin-top: -18px; color: var(--bu-muted); }
.gallery-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.gallery-tile { margin: 0; overflow: hidden; background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: 14px; }
.gallery-tile img { width: 100%; height: 210px; object-fit: cover; background: #d9d2c8; }
.gallery-tile figcaption { padding: 11px 13px; color: var(--bu-muted); font-size: .82rem; line-height: 1.35; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-card { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); padding: 14px; }
.feature-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.feature-card h3 { margin: 3px 0 5px; }
.feature-card p { color: var(--bu-muted); margin: 0; }
.video-section .section-heading p { color: #b6c2cf; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card { overflow: hidden; background: var(--bu-white); border: 1px solid var(--bu-line); border-radius: var(--bu-radius); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1016; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 20px 22px 23px; }
.video-card__body h3 { margin: 3px 0 7px; }
.video-card__body p { color: var(--bu-muted); margin: 0; }
@media (max-width: 900px) {
  .history-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-entry, .cd-entry--best { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 28px, 680px); }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: 16px; gap: 10px; }
  .cards, .footer-grid, .news-grid, .feature-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top-strip .container { display: block; padding: 7px 0; }
  .top-strip .container span:last-child { display: none; }
  .site-branding { padding: 14px 0; }
  .brand-link img { width: 46px; height: 54px; }
  .hero { padding: 64px 0 76px; }
  .section { padding: 58px 0; }
  .history-media { grid-template-columns: 1fr; }
  .gallery-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-tile img { height: 150px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { height: 190px; }
}
