/*
Theme Name: Burschenverein Mitterdorf
Theme URI: https://example.com/bv-theme
Author: Sebastian
Description: Traditionelles WordPress-Theme für den Burschenverein Mitterdorf mit warmem Vereinsdesign, Fest-Homepage und verwaltbaren Inhalten.
Version: 0.1.0
Text Domain: bv-theme
*/

/* Schriften lokal eingebunden (Quelle: Google Fonts, SIL Open Font License).
   Nur die Zeichensätze latin und latin-ext; Dateien in assets/fonts/. */
/* Cinzel 700 – latin-ext */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cinzel-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cinzel 700 – latin */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cinzel-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat 600 – latin-ext */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat 600 – latin */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 400 italic – latin-ext */
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Sans 3 400 italic – latin */
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 400–700 (variabel) – latin-ext */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Sans 3 400–700 (variabel) – latin */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bv-blue: #0335ad;
  --bv-blue-dark: #022780;
  --bv-gold: #be912d;
  --bv-bg: #f8f5ee;
  --bv-raute: #cee9f6;
  --bv-raute-soft: #eaf5fb;
  --bv-ivory: var(--bv-bg);
  --bv-rauten: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='40'%3E%3Crect width='24' height='40' fill='%23ffffff'/%3E%3Cpolygon points='12,0 24,20 12,40 0,20' fill='%23cee9f6'/%3E%3C/svg%3E");
  --font-title: "Cinzel", Georgia, "Times New Roman", serif;
  --font-subtitle: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --bv-ink: #1e2330;
  --bv-muted: #5d6474;
  --bv-border: rgba(30, 35, 48, 0.12);
  --bv-shadow: 0 20px 45px rgba(3, 53, 173, 0.12);
  --content-width: 1200px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bv-bg);
  color: var(--bv-ink);
  line-height: 1.6;
}

a {
  color: var(--bv-blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure { margin: 0; }

h1,
h2,
.brand-name,
.footer-title,
.history-year,
.car-stat-strip strong {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h3,
h4,
h5,
h6,
.main-nav a,
.button,
.kicker,
.brand-sub,
.role,
.meta-pill,
.time-tag,
.album-label,
.calendar-event-date,
.cycle-kicker,
.cycle-label,
.history-milestone-date,
.history-photo-placeholder-label,
.car-work-number,
.cycle-event summary small,
.cycle-event summary strong {
  font-family: var(--font-subtitle);
  font-weight: 600;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--bv-bg);
  border-bottom: 2px solid var(--bv-gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--bv-blue-dark);
  font-weight: 700;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bv-blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--bv-shadow);
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--bv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-nav ul ul {
  display: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bv-blue-dark);
  margin: 5px 0;
  border-radius: 999px;
}

.main-nav a {
  color: var(--bv-ink);
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
}

.brand-name {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .main-nav > ul {
    gap: 0.9rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--bv-blue);
}

.main-nav li {
  position: relative;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.75rem;
  margin: 0;
  list-style: none;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--bv-border);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  z-index: 20;
}

/* Unsichtbare Brücke über die Lücke, damit das Untermenü beim Hinfahren offen bleibt */
.main-nav .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(0.6rem + 2px);
}

.main-nav .menu-item-has-children.is-open > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu,
.main-nav .menu-item-has-children:hover > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: var(--bv-ink);
}

.main-nav .sub-menu a:hover {
  background: rgba(3, 53, 173, 0.06);
  color: var(--bv-blue);
  text-decoration: none;
}

.site-main {
  padding: 2rem 0 4rem;
}

.hero {
  padding: 3rem 0 0;
}

.hero-card {
  background: linear-gradient(135deg, rgba(3, 53, 173,0.96), rgba(2, 39, 128, 0.94));
  color: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--bv-shadow);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 470px;
}

.hero-copy {
  padding: 4rem 3rem 3rem;
}

.kicker {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--bv-gold);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.92;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.button:hover { text-decoration: none; }

.button.primary {
  background: white;
  color: var(--bv-blue);
}

.button.secondary {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.06);
}

.hero-art {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  padding: 1.6rem;
  backdrop-filter: blur(4px);
}

.hero-badge .crest {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.section {
  padding-top: 4.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.9rem);
  color: var(--bv-blue);
}

.section-header h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--bv-gold);
  border-radius: 999px;
}

.section-header p {
  margin: 0;
  color: var(--bv-muted);
}

.instagram-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.instagram-kicker {
  background: rgba(3, 53, 173,0.08);
  border-color: rgba(3, 53, 173,0.12);
  color: var(--bv-blue);
}

.secondary-button {
  border-color: var(--bv-blue);
  color: var(--bv-blue);
  background: transparent;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.instagram-card {
  display: block;
  overflow: hidden;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.instagram-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.instagram-card-caption {
  display: block;
  padding: 1rem;
  color: var(--bv-muted);
  line-height: 1.45;
}

.instagram-empty {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
  color: var(--bv-muted);
}

.feature-grid,
.card-grid,
.gallery-grid,
.board-grid,
.member-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.card,
.member-card,
.board-card,
.gallery-item {
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.feature-card {
  padding: 1.6rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(3, 53, 173,0.08);
  color: var(--bv-blue);
  font-size: 1.5rem;
}

.feature-card h3,
.card h3,
.board-card h3,
.member-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.feature-card p,
.card p,
.board-card p,
.member-card p {
  margin: 0;
  color: var(--bv-muted);
}

.fest-panel {
  background: linear-gradient(135deg, var(--bv-raute-soft) 0%, var(--bv-bg) 100%);
  border: 1px solid rgba(3, 53, 173,0.12);
  border-radius: 30px;
  padding: clamp(1.4rem, 3vw, 3rem);
}

.fest-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.fest-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.meta-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.meta-pill {
  background: var(--bv-blue);
  color: white;
  min-width: 90px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.program-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(3, 53, 173,0.08);
  border-radius: 14px;
}

.time-tag {
  min-width: 62px;
  display: inline-block;
  text-align: center;
  background: var(--bv-raute-soft);
  color: var(--bv-blue);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.board-grid,
.member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-card,
.member-card {
  overflow: hidden;
}

.board-card .image,
.member-card .image {
  height: 260px;
  background: linear-gradient(135deg, var(--bv-raute-soft), var(--bv-bg));
}

.board-card .image img,
.member-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.board-card .content,
.member-card .content {
  padding: 1.4rem;
}

.role {
  display: inline-block;
  color: var(--bv-blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
}

.gallery-item a {
  display: block;
  height: 100%;
  cursor: pointer;
}

.gallery-item .image {
  height: 220px;
  background: linear-gradient(135deg, var(--bv-raute-soft), var(--bv-bg));
}

.gallery-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item a:hover .image img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.album-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.album-cover {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--bv-rauten);
  color: var(--bv-blue);
  font-weight: 700;
  text-align: center;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.album-cover:hover img {
  transform: scale(1.03);
}

.album-card-content {
  padding: 1.25rem;
}

.album-label {
  color: var(--bv-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-card h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.35rem;
}

.album-card h2 a {
  color: var(--bv-blue-dark);
}

.album-excerpt {
  margin-bottom: 1rem;
  color: var(--bv-muted);
}

.album-excerpt p {
  margin: 0;
}

.album-link {
  min-height: 40px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--bv-blue);
  color: var(--bv-blue);
}

.gallery-empty {
  padding: 2rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
}

.gallery-empty h2 {
  margin-top: 0;
  color: var(--bv-blue-dark);
}

.album-entry-header h1 {
  margin-bottom: 1.25rem;
}

.album-entry-content .wp-block-gallery {
  margin: 2rem 0;
}

/* Galerie: gleichmäßiges Raster */
.entry-content .wp-block-gallery.has-nested-images {
  --galerie-spalten: 4;
  --galerie-format: 1 / 1;          /* Kachelformat, z. B. 4 / 3 */
  --galerie-abstand: 0.75rem;
  display: grid;
  grid-template-columns: repeat(var(--galerie-spalten), minmax(0, 1fr));
  gap: var(--galerie-abstand);
}

.entry-content .wp-block-gallery.columns-1 { --galerie-spalten: 1; }
.entry-content .wp-block-gallery.columns-2 { --galerie-spalten: 2; }
.entry-content .wp-block-gallery.columns-3 { --galerie-spalten: 3; }
.entry-content .wp-block-gallery.columns-5 { --galerie-spalten: 5; }
.entry-content .wp-block-gallery.columns-6 { --galerie-spalten: 6; }

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: auto !important;
  margin: 0;
  aspect-ratio: var(--galerie-format);
  overflow: hidden;
  border-radius: 12px;
  background: var(--bv-raute-soft);
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) > a,
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
  width: 100%;
  height: 100%;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.04);
}

.entry-content .wp-block-gallery .lightbox-trigger:focus-visible {
  outline: 3px solid var(--bv-gold);
  outline-offset: -3px;
}

@media (max-width: 900px) {
  .entry-content .wp-block-gallery.has-nested-images {
    --galerie-spalten: 3;
  }
}

@media (max-width: 600px) {
  .entry-content .wp-block-gallery.has-nested-images {
    --galerie-spalten: 2;
  }
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  background: rgba(2, 20, 64, 0.94);
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay [hidden] {
  display: none;
}

.lightbox-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--bv-gold);
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: fixed;
  top: 1.6rem;
  left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  max-width: min(90vw, 60ch);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  font-size: 0.95rem;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .lightbox-overlay {
    padding: 4rem 0.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-caption {
    bottom: 5rem;
  }
}

.calendar-section {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: 24px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
  align-items: start; /* Monate nicht auf die Höhe des Nachbarmonats strecken */
}

.calendar-month {
  overflow: hidden;
  background: var(--bv-bg);
  border: 1px solid var(--bv-border);
  border-radius: 18px;
}

.calendar-month h3 {
  margin: 0 0 1rem;
  color: var(--bv-blue-dark);
}

.calendar-section .calendar-month h2 {
  margin: 0;
  padding: 1rem 1.1rem 0.75rem;
  background: var(--bv-blue);
  color: white;
  font-size: 1.2rem;
}

.calendar-month-events {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.calendar-event {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(3, 53, 173,0.08);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.03);
}

.calendar-event-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2; /* gleiches Format wie beim Zuschneiden */
  overflow: hidden;
  background: var(--bv-raute-soft);
}

.calendar-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-event-content {
  padding: 0.9rem;
}

.calendar-event-date {
  color: var(--bv-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-event h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.1rem;
}

.calendar-event h3 a {
  color: var(--bv-blue-dark);
}

.calendar-event-meta {
  margin: 0.25rem 0;
  color: var(--bv-muted);
  font-size: 0.85rem;
}

.calendar-event-excerpt {
  margin-top: 0.7rem;
  color: var(--bv-muted);
  font-size: 0.9rem;
}

.calendar-event-excerpt p {
  margin: 0;
}

/* Vorschautext auf 4 Zeilen kürzen */
.calendar-event-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* Termin-Einzelansicht: kompakte Infobox mit Vorschaubild */
.event-summary {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  align-items: start;
  gap: 1.5rem;
  margin: 1.25rem 0 2rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-top: 4px solid var(--bv-gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Terminbild vollständig zeigen, ohne Beschnitt */
.event-summary-image {
  margin: 0;
}

.event-summary-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 12px;
}

.event-summary-details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.event-summary-details dt {
  color: var(--bv-blue);
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-summary-details dd {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-recurrence {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--bv-gold);
  border-radius: 999px;
  color: var(--bv-gold);
  font-family: var(--font-subtitle);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.event-summary-body {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.event-summary-details dt,
.event-summary-text .event-summary-label {
  color: var(--bv-blue);
  font-family: var(--font-subtitle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-summary-text {
  padding-top: 1.25rem;
  border-top: 1px solid var(--bv-border);
}

.event-summary-text .event-summary-label {
  margin: 0 0 0.4rem;
}

.event-summary-text .event-summary-label::after {
  content: none;
}

.event-summary-text > :last-child {
  margin-bottom: 0;
}

.event-summary-text > .event-summary-label + * {
  margin-top: 0;
}

.event-summary-text h2:not(.event-summary-label) {
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .event-summary {
    grid-template-columns: 1fr;
  }
}

.entry-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 0 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--bv-blue-dark);
}

/* Leer gelassene Vorlagen-Blöcke (z. B. bei Terminen) nicht anzeigen */
.entry-content p:empty,
.entry-content h2:empty,
.entry-content h3:empty,
.entry-content li:empty,
.entry-content ul:not(:has(li:not(:empty))) {
  display: none;
}

.page-template .entry-content,
.single .entry-content {
  padding-top: 0;
}

.entry-content .page-lead {
  max-width: 66ch;
  margin: 0 0 2.5rem;
  font-size: 1.2rem;
  color: var(--bv-muted);
}

.history-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bv-raute-soft), var(--bv-bg));
  border: 1px solid rgba(3, 53, 173, 0.12);
  border-radius: var(--radius);
}

.history-year {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bv-blue);
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.history-intro h2,
.history-intro p {
  margin-top: 0;
}

.history-intro p {
  margin-bottom: 0;
  color: var(--bv-muted);
}

.history-photo-placeholder {
  margin: 2rem 0 3rem;
}

.history-photo-placeholder-inner {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem;
  text-align: center;
  color: var(--bv-blue-dark);
  background: var(--bv-rauten);
  border: 2px dashed rgba(3, 53, 173, 0.28);
  border-radius: var(--radius);
}

.history-photo-placeholder-inner strong {
  font-size: 1.35rem;
}

.history-photo-placeholder-inner > span:not(.history-photo-placeholder-label) {
  max-width: 48ch;
  color: var(--bv-muted);
}

.history-photo-placeholder-label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(3, 53, 173, 0.1);
  color: var(--bv-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-photo-placeholder figcaption {
  margin-top: 0.6rem;
  color: var(--bv-muted);
  font-size: 0.9rem;
  text-align: center;
}

.history-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.history-milestone {
  padding: 1.35rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-top: 4px solid var(--bv-gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.history-milestone h3 {
  margin: 0.45rem 0 0.5rem;
  color: var(--bv-blue-dark);
}

.history-milestone p {
  margin: 0;
  color: var(--bv-muted);
}

.history-milestone-date {
  color: var(--bv-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-highlight {
  margin: 2rem 0 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bv-blue);
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--bv-shadow);
}

.history-highlight strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.history-highlight p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.founding-board {
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  background: var(--bv-bg);
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
}

.founding-board h3 {
  margin-top: 0;
  color: var(--bv-blue-dark);
}

.founding-board dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.founding-board dl > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--bv-border);
}

.founding-board dt {
  color: var(--bv-muted);
  font-weight: 700;
}

.founding-board dd {
  margin: 0;
}

.burschenjahr-cycle {
  margin: 2rem 0 3rem;
  padding: clamp(1.2rem, 3vw, 3rem);
  background: linear-gradient(145deg, var(--bv-raute-soft), var(--bv-bg));
  border: 1px solid rgba(3, 53, 173, 0.12);
  border-radius: 28px;
}

.burschenjahr-editor-content {
  max-width: 72ch;
  margin: 0 auto 2.5rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(3, 53, 173, 0.1);
  border-radius: 18px;
}

.burschenjahr-editor-content > :first-child {
  margin-top: 0;
}

.burschenjahr-editor-content > :last-child {
  margin-bottom: 0;
}

.year-editor-lead {
  font-size: 1.1rem;
  color: var(--bv-blue-dark);
}

.year-photo-placeholder {
  margin: 1.75rem 0;
}

.year-photo-placeholder > div {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  background: var(--bv-rauten);
  border: 2px dashed rgba(3, 53, 173, 0.24);
  border-radius: 15px;
  text-align: center;
}

.year-photo-placeholder span {
  color: var(--bv-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-photo-placeholder strong {
  color: var(--bv-blue-dark);
  font-size: 1.15rem;
}

.year-photo-placeholder small {
  max-width: 48ch;
  color: var(--bv-muted);
}

.year-photo-placeholder figcaption {
  margin-top: 0.5rem;
  color: var(--bv-muted);
  font-size: 0.85rem;
  text-align: center;
}

.year-photo-placeholder-wide > div {
  min-height: 150px;
}

.cycle-intro {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.cycle-kicker,
.cycle-label {
  color: var(--bv-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cycle-intro h2 {
  margin: 0.4rem 0 0.6rem;
  color: var(--bv-blue-dark);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cycle-intro p,
.cycle-start p,
.cycle-event-content p {
  color: var(--bv-muted);
}

.cycle-start,
.cycle-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bv-blue);
  border-radius: 18px;
  color: white;
}

.cycle-start h2 {
  margin: 0.15rem 0 0.25rem;
  color: white;
}

.cycle-start p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cycle-start .cycle-label {
  color: rgba(255, 255, 255, 0.72);
}

.cycle-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.65rem;
}

.cycle-line {
  width: 2px;
  height: 2rem;
  margin: 0 auto;
  background: var(--bv-blue);
}

.cycle-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.cycle-event {
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cycle-event-featured {
  border-color: rgba(190, 145, 45, 0.75);
}

.cycle-event summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 84px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.cycle-event summary::-webkit-details-marker {
  display: none;
}

.cycle-event summary > span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
  flex: 1;
}

.cycle-event summary small {
  color: var(--bv-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cycle-event summary strong {
  color: var(--bv-blue-dark);
  font-size: 1.05rem;
}

.cycle-plus {
  color: var(--bv-blue);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cycle-event[open] .cycle-plus {
  transform: rotate(45deg);
}

.cycle-event-content {
  padding: 0 1rem 1rem 4.65rem;
}

.cycle-event-detail {
  display: flow-root;
}

.cycle-event-image-placeholder {
  display: grid;
  float: left;
  width: 108px;
  min-height: 84px;
  margin: 0.15rem 0.9rem 0.5rem 0;
  place-items: center;
  padding: 0.5rem;
  background: var(--bv-rauten);
  border: 1px dashed rgba(3, 53, 173, 0.25);
  border-radius: 10px;
  color: var(--bv-blue);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.cycle-event-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cycle-end {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  background: var(--bv-blue-dark);
  text-align: center;
}

.cycle-end > span:last-child {
  width: 100%;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.burschenjahr-note {
  max-width: 68ch;
  margin: 0 auto;
}

.car-hero {
  position: relative;
  min-height: 480px;
  margin: -2rem calc((880px - 100vw) / 2) 2.5rem;
  overflow: hidden;
  background: var(--bv-blue-dark);
  color: white;
}

.car-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: 0.72;
}

.car-hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(2, 39, 128, 0.92), rgba(2, 39, 128, 0.18));
}

.car-hero-overlay {
  position: absolute;
  z-index: 1;
  left: max(2rem, calc((100vw - 880px) / 2 + 2rem));
  bottom: 3rem;
  max-width: 34rem;
}

.car-hero-overlay h2 {
  margin: 0 0 0.7rem;
  color: white;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.car-hero-overlay p {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.car-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 3rem;
  overflow: hidden;
  background: var(--bv-border);
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
}

.car-stat-strip > div {
  padding: 1.15rem;
  background: var(--bv-bg);
  text-align: center;
}

.car-stat-strip strong,
.car-stat-strip span {
  display: block;
}

.car-stat-strip strong {
  color: var(--bv-blue);
  font-size: 1.45rem;
}

.car-stat-strip span {
  color: var(--bv-muted);
  font-size: 0.85rem;
}

.car-story-split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0 3rem;
}

.car-story-copy h3 {
  margin: 0.35rem 0 0.8rem;
  color: var(--bv-blue-dark);
  font-size: 1.8rem;
}

.car-story-copy p:last-child {
  margin-bottom: 0;
}

.car-story-image {
  margin: 0;
}

.car-story-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--bv-shadow);
}

.car-story-image figcaption {
  margin-top: 0.6rem;
  color: var(--bv-muted);
  font-size: 0.85rem;
}

.car-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.car-work-grid article {
  padding: 1.35rem;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.car-work-grid h3 {
  margin: 0.55rem 0 0.45rem;
  color: var(--bv-blue-dark);
}

.car-work-grid p {
  margin: 0;
  color: var(--bv-muted);
  font-size: 0.95rem;
}

.car-work-number {
  color: var(--bv-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.car-quote {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0 3rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, var(--bv-raute-soft), var(--bv-bg));
  border-left: 5px solid var(--bv-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.car-quote-mark {
  color: var(--bv-blue);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.car-quote strong {
  color: var(--bv-blue-dark);
}

.car-quote p {
  margin: 0.2rem 0 0;
  color: var(--bv-muted);
}

.car-final-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 0.8rem;
  margin: 2rem 0 2.5rem;
}

.car-final-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bv-raute-soft);
}

.car-final-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.car-final-gallery a:first-child img {
  height: 300px;
}

.car-closing {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  color: var(--bv-blue-dark);
  background: rgba(3, 53, 173, 0.06);
  border-radius: 12px;
  text-align: center;
}

/* Startseite aus dem Block-Editor (Vorlage "Startseite (volle Breite)") */
.bv-startseite .wp-block-group__inner-container {
  display: contents;
}

.bv-startseite .hero p.kicker {
  font-size: 0.76rem;
  opacity: 1;
  max-width: none;
  margin-top: 0;
}

.bv-startseite .fest-panel .kicker {
  margin: 0;
  background: rgba(3, 53, 173, 0.08);
  border-color: rgba(3, 53, 173, 0.1);
  color: var(--bv-blue);
}

.bv-startseite .hero-actions .wp-block-button__link {
  min-height: 48px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: white;
  color: var(--bv-blue);
  font-family: var(--font-subtitle);
  font-size: 1rem;
  font-weight: 600;
}

.bv-startseite .hero-actions .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.bv-startseite .hero-badge .crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.bv-startseite .hero-badge h3,
.bv-startseite .hero-badge p {
  margin: 0 0 0.5rem;
  text-align: center;
}

.bv-startseite .hero-badge p {
  margin: 0;
  opacity: 0.9;
}

.bv-startseite .fest-title {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.bv-startseite .fest-text {
  max-width: 58ch;
  margin: 0;
  color: var(--bv-muted);
}

.bv-startseite .meta-item p {
  margin: 0;
  color: var(--bv-muted);
}

.bv-startseite .meta-item p.meta-pill {
  color: white;
}

.bv-startseite .meta-item strong {
  color: var(--bv-ink);
}

.bv-startseite .program-list strong {
  display: inline-block;
  min-width: 62px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--bv-raute-soft);
  color: var(--bv-blue);
  font-family: var(--font-subtitle);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.bv-startseite .feature-card .feature-icon {
  margin: 0 0 1rem;
  color: var(--bv-blue);
}

/* Seite "Mitglied werden": Karten, Beitrittsformular (Contact Form 7), PDF-Download */
.bv-join-card {
  margin: 0 0 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: white;
  border: 1px solid var(--bv-border);
  border-top: 4px solid var(--bv-gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.bv-join-card > .wp-block-group__inner-container > :first-child,
.bv-join-card > :first-child {
  margin-top: 0;
}

.bv-join-card h2 {
  margin-bottom: 0.4rem;
}

.bv-form-section {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bv-border);
  color: var(--bv-blue);
  font-size: 1.05rem;
}

.wpcf7 form .bv-form-section:first-of-type {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
}

.bv-form-hint {
  margin: 0.35rem 0 0;
  color: var(--bv-muted);
  font-size: 0.95rem;
}

.wpcf7 input[name="iban"],
.wpcf7 input[name="bic"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1rem;
}

.bv-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--bv-ink);
  font-family: var(--font-subtitle);
  font-size: 0.85rem;
  font-weight: 600;
}

.bv-form-grid .bv-form-wide {
  grid-column: 1 / -1;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30, 35, 48, 0.22);
  border-radius: 10px;
  background: white;
  color: var(--bv-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 textarea {
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--bv-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 53, 173, 0.15);
}

.wpcf7 .wpcf7-not-valid {
  border-color: #b3261e;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.25rem;
  color: #b3261e;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
}

.bv-form-consent {
  margin-top: 1.5rem;
  color: var(--bv-muted);
  font-size: 0.95rem;
}

.bv-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.bv-form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--bv-blue);
}

.bv-form-consent .wpcf7-list-item {
  margin: 0;
}

.bv-form-submit {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.wpcf7 .wpcf7-submit,
.bv-join-pdf .wp-block-file .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--bv-blue);
  border-radius: 999px;
  background: var(--bv-blue);
  color: white;
  font-family: var(--font-subtitle);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wpcf7 .wpcf7-submit:hover,
.bv-join-pdf .wp-block-file .wp-block-file__button:hover {
  background: var(--bv-blue-dark);
  text-decoration: none;
}

.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bv-border);
  border-left-width: 4px;
  border-radius: 10px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #1e7b34;
  background: #edf7ef;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #b3261e;
  background: #fbeeed;
}

.bv-join-pdf .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(3, 53, 173, 0.3);
  border-radius: 12px;
  background: var(--bv-raute-soft);
}

.bv-join-pdf .wp-block-file > a:not(.wp-block-file__button) {
  color: var(--bv-blue-dark);
  font-weight: 600;
}

.bv-join-pdf .wp-block-file .wp-block-file__button {
  margin-left: auto;
  min-height: 40px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .bv-form-grid {
    grid-template-columns: 1fr;
  }

  .bv-join-pdf .wp-block-file .wp-block-file__button {
    margin-left: 0;
  }
}

/* Instagram-Feed (Plugin "Smash Balloon", Shortcode [instagram-feed]) */
.bv-insta {
  --insta-breite: 100%;          /* max. Breite des Feeds, z. B. 900px */
  --insta-spalten: 3;            /* Spalten auf dem Desktop */
  --insta-spalten-tablet: 2;     /* unter 900px */
  --insta-spalten-mobil: 1;      /* unter 600px */
  --insta-abstand: 1.5rem;       /* Abstand zwischen den Bildern */
  --insta-radius: var(--radius); /* Eckenrundung der Bilder */
}

.bv-insta.section #sb_instagram {
  width: 100% !important;
  max-width: var(--insta-breite);
  margin: 0 auto;
  padding: 0 !important;
}

.bv-insta.section #sb_instagram #sbi_images {
  grid-template-columns: repeat(var(--insta-spalten), minmax(0, 1fr));
  gap: var(--insta-abstand) !important;
  padding: 0;
}

.bv-insta.section #sb_instagram .sbi_item {
  overflow: hidden;
  background: white;
  border: 1px solid var(--bv-border);
  border-radius: var(--insta-radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bv-insta.section #sb_instagram .sbi_photo {
  transition: transform 0.25s ease;
}

.bv-insta.section #sb_instagram .sbi_item:hover .sbi_photo {
  transform: scale(1.03);
}

.bv-insta.section #sb_instagram #sbi_load {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.bv-insta.section #sb_instagram #sbi_load .sbi_load_btn,
.bv-insta.section #sb_instagram .sbi_follow_btn a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  margin: 0;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-subtitle);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}

.bv-insta.section #sb_instagram #sbi_load .sbi_load_btn {
  border: 1px solid var(--bv-blue);
  background: transparent !important;
  color: var(--bv-blue) !important;
}

.bv-insta.section #sb_instagram .sbi_follow_btn a {
  border: 1px solid var(--bv-blue);
  background: var(--bv-blue) !important;
  color: white !important;
}

.bv-insta.section #sb_instagram .sbi_follow_btn a:hover {
  background: var(--bv-blue-dark) !important;
}

@media (max-width: 900px) {
  .bv-insta.section #sb_instagram #sbi_images {
    grid-template-columns: repeat(var(--insta-spalten-tablet), minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bv-insta.section #sb_instagram #sbi_images {
    grid-template-columns: repeat(var(--insta-spalten-mobil), minmax(0, 1fr));
  }
}

.site-footer {
  background: var(--bv-blue-dark);
  color: rgba(255,255,255,0.9);
  margin-top: 4rem;
  border-top: 3px solid var(--bv-gold);
}

.site-footer::before {
  content: '';
  display: block;
  height: 12px;
  background: var(--bv-rauten);
  background-size: 12px 20px;
}

.footer-inner {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a { color: white; }

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .fest-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .board-grid,
  .member-grid,
  .gallery-grid,
  .calendar-grid,
  .instagram-grid,
  .history-milestones,
  .car-work-grid,
  .album-grid {
    grid-template-columns: 1fr 1fr;
  }

  .car-story-split {
    grid-template-columns: 1fr;
  }
}

/* Burger-Menü, sobald die Hauptnavigation nicht mehr in eine Zeile passt */
@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bv-bg);
    box-shadow: 0 18px 30px rgba(3, 53, 173, 0.1);
    border-bottom: 1px solid var(--bv-border);
    z-index: 40;
    padding: 1rem 1rem 1.25rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(3, 53, 173, 0.03);
    box-shadow: none;
  }

  .main-nav .sub-menu::before {
    display: none;
  }

  .main-nav .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 0.8rem;
    white-space: normal;
  }

  .brand-sub {
    display: none;
  }

  .feature-grid,
  .board-grid,
  .member-grid,
  .gallery-grid,
  .calendar-grid,
  .instagram-grid,
  .history-milestones,
  .car-work-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .burschenjahr-cycle {
    border-radius: 20px;
  }

  .cycle-events {
    grid-template-columns: 1fr;
  }

  .cycle-start,
  .cycle-end {
    align-items: flex-start;
  }

  .cycle-event summary {
    min-height: 78px;
    padding: 0.75rem;
  }

  .cycle-event-content {
    padding: 0 0.85rem 1rem 4.15rem;
  }

  .cycle-event-detail {
    display: flow-root;
  }

  .cycle-event-image-placeholder {
    width: 82px;
    min-height: 70px;
    margin-right: 0.7rem;
    font-size: 0.62rem;
  }

  .car-hero {
    min-height: 390px;
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .car-hero img {
    height: 390px;
  }

  .car-hero-overlay {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2rem;
  }

  .car-hero-overlay h2 {
    font-size: 2.35rem;
  }

  .car-stat-strip {
    grid-template-columns: 1fr;
  }

  .car-final-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .car-final-gallery a:first-child {
    grid-column: 1 / -1;
  }

  .history-intro {
    grid-template-columns: 1fr;
  }

  .history-year {
    width: 68px;
    height: 68px;
  }

  .founding-board dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .instagram-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    padding: 2.2rem 1.25rem 1.8rem;
  }

  .header-inner {
    min-height: 72px;
  }
}

/* ==========================================================================
   Banner-Look (Fest 50 Jahre, 19.–22.05.2028)
   Übernimmt das Design des Bauzaunbanners: Cremeweiß mit bayerischen Rauten,
   Goldrahmen mit eingezogenen Ecken und Eckrauten, Tageskarten mit blauem
   Reiter, Cinzel/Montserrat/Source Sans 3.
   ========================================================================== */

:root {
  --bv-raute: #cedff6;
  --bv-raute-soft: #eef3fb;
  --bv-card: #fffdf8;
  --bv-gold-line: rgba(190, 145, 45, 0.55);
  /* Rauten wie im Bauzaunbanner: hellblaue und cremeweiße Rauten im Wechsel (Verhältnis 75 : 180) */
  --bv-rauten-muster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='65' viewBox='0 0 54 65'%3E%3Cg fill='%23e9edf1'%3E%3Cpolygon points='27,0 40.5,32.5 27,65 13.5,32.5'/%3E%3Cpolygon points='0,-32.5 13.5,0 0,32.5 -13.5,0'/%3E%3Cpolygon points='54,-32.5 67.5,0 54,32.5 40.5,0'/%3E%3Cpolygon points='0,32.5 13.5,65 0,97.5 -13.5,65'/%3E%3Cpolygon points='54,32.5 67.5,65 54,97.5 40.5,65'/%3E%3C/g%3E%3C/svg%3E");
  --bv-trenner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12'%3E%3Cpath d='M0 6H66M94 6H160' stroke='%23be912d' stroke-width='1.5'/%3E%3Crect x='75.5' y='1.5' width='9' height='9' transform='rotate(45 80 6)' fill='%23be912d'/%3E%3C/svg%3E");
  --bv-ecke-ol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M6 28A22 22 0 0 0 28 6' fill='none' stroke='%23be912d' stroke-width='2'/%3E%3Crect x='2.5' y='2.5' width='7' height='7' transform='rotate(45 6 6)' fill='%23be912d'/%3E%3C/svg%3E");
  --bv-ecke-or: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M24 28A22 22 0 0 1 2 6' fill='none' stroke='%23be912d' stroke-width='2'/%3E%3Crect x='20.5' y='2.5' width='7' height='7' transform='rotate(45 24 6)' fill='%23be912d'/%3E%3C/svg%3E");
  --bv-ecke-ul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M6 2A22 22 0 0 1 28 24' fill='none' stroke='%23be912d' stroke-width='2'/%3E%3Crect x='2.5' y='20.5' width='7' height='7' transform='rotate(45 6 24)' fill='%23be912d'/%3E%3C/svg%3E");
  --bv-ecke-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M24 2A22 22 0 0 0 2 24' fill='none' stroke='%23be912d' stroke-width='2'/%3E%3Crect x='20.5' y='20.5' width='7' height='7' transform='rotate(45 24 24)' fill='%23be912d'/%3E%3C/svg%3E");
  /* Goldrahmen des Banners: eingezogene Ecken mit Eckrauten + vier Linien */
  --bv-rahmen:
    var(--bv-ecke-ol) left top / 30px 30px no-repeat,
    var(--bv-ecke-or) right top / 30px 30px no-repeat,
    var(--bv-ecke-ul) left bottom / 30px 30px no-repeat,
    var(--bv-ecke-ur) right bottom / 30px 30px no-repeat,
    linear-gradient(var(--bv-gold), var(--bv-gold)) left 28px top 5px / calc(100% - 56px) 2px no-repeat,
    linear-gradient(var(--bv-gold), var(--bv-gold)) left 28px bottom 5px / calc(100% - 56px) 2px no-repeat,
    linear-gradient(var(--bv-gold), var(--bv-gold)) left 5px top 28px / 2px calc(100% - 56px) no-repeat,
    linear-gradient(var(--bv-gold), var(--bv-gold)) right 5px top 28px / 2px calc(100% - 56px) no-repeat;
}

/* Überschriften mit goldenem Trenner (Linie – Raute – Linie) wie im Banner */
.section-header h2::after {
  width: 160px;
  height: 12px;
  margin-top: 0.75rem;
  background: var(--bv-trenner) left center / contain no-repeat;
  border-radius: 0;
}

.section-header-mitte {
  text-align: center;
}

.section-header-mitte h2::after {
  margin-inline: auto;
  background-position: center;
}

/* Karten: Cremeweiß mit feiner Goldkontur statt weißer Schattenkarten */
.feature-card,
.card,
.member-card,
.board-card,
.instagram-card,
.instagram-empty,
.album-card {
  background: var(--bv-card);
  border: 1px solid var(--bv-gold-line);
  border-radius: 14px;
  box-shadow: none;
}

.feature-icon,
.bv-startseite .feature-card .feature-icon {
  border-radius: 50%;
  background: var(--bv-bg);
  border: 1px solid var(--bv-gold-line);
}

.secondary-button {
  border-color: var(--bv-blue);
  color: var(--bv-blue);
}

.secondary-button:hover {
  background: var(--bv-blue);
  color: var(--bv-bg);
}

/* Blauer Reiter (Tagesschild) */
.bv-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 62%;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  background: var(--bv-blue);
  color: var(--bv-bg);
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Festbereich (Banner) ---------- */
.bv-startseite .bv-fest {
  padding-top: 1rem;
}

.bv-rahmen {
  position: relative;
  padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.25rem, 3.2vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  background:
    var(--bv-rahmen),
    linear-gradient(90deg, transparent 8%, var(--bv-bg) 30%, var(--bv-bg) 70%, transparent 92%),
    var(--bv-rauten-muster) center top / 54px 65px,
    var(--bv-bg);
}

.bv-fest-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-areas: "links mitte rechts";
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: stretch;
}

.bv-fest-mitte {
  grid-area: mitte;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bv-fest-tage-links { grid-area: links; }
.bv-fest-tage-rechts { grid-area: rechts; }

.bv-fest-tage {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 2rem;
  padding-top: 0.9rem;
}

.bv-fest-wappen {
  width: min(100%, 250px);
  height: auto;
  margin-bottom: 1.25rem;
}

.bv-fest-titel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--bv-blue);
  line-height: 1;
}

.bv-fest-jahre {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: 0.06em;
}

.bv-fest-verein {
  margin-top: 0.7rem;
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.45vw, 1.3rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em;
}

.bv-fest-ort {
  margin-top: 0.3rem;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  letter-spacing: 0.01em;
}

.bv-fest-zeitraum {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0.5rem 0 0;
  color: var(--bv-gold);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.bv-fest-zeitraum::before,
.bv-fest-zeitraum::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--bv-gold);
}

/* Tageskarte */
.bv-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.1rem 0.9rem 1.4rem;
  background: var(--bv-bg);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
  color: var(--bv-blue);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bv-tag:hover,
.bv-tag:focus-visible {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(3, 53, 173, 0.12);
}

.bv-tag:focus-visible {
  outline: 3px solid var(--bv-blue);
  outline-offset: 3px;
}

.bv-tag-datum {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.bv-tag-logo {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 110px;
}

.bv-tag-logo img {
  width: auto;
  max-width: 94%;
  max-height: 130px;
  object-fit: contain;
}

/* Fußzeile im Rahmen */
.bv-fest-fuss {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: center;
  margin-top: 2.25rem;
}

.bv-fest-sponsoren {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.bv-fest-sponsoren img {
  width: auto;
  height: 74px;
}

.bv-fest-datum {
  text-align: center;
}

.bv-fest-datum-gross {
  margin: 0 0 0.9rem;
  color: var(--bv-blue);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
}

.bv-fest .button.primary {
  background: var(--bv-blue);
  color: var(--bv-bg);
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bv-fest .button.primary:hover {
  background: var(--bv-blue-dark);
}

.bv-fest-insta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--bv-blue);
}

.bv-fest-insta:hover {
  text-decoration: none;
}

.bv-fest-insta-label {
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bv-gold);
}

.bv-fest-insta-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1rem;
}

.bv-fest-insta:hover .bv-fest-insta-name {
  text-decoration: underline;
}

/* ---------- Festprogramm ---------- */
.bv-programm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-top: 0.9rem;
}

.bv-programm-tag {
  position: relative;
  padding: 2.2rem 1.4rem 1.5rem;
  background: var(--bv-card);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
  scroll-margin-top: 110px;
}

.bv-programm-tag:target {
  box-shadow: 0 0 0 4px rgba(3, 53, 173, 0.18);
}

.bv-programm-datum {
  margin: 0;
  text-align: center;
  color: var(--bv-blue);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.45rem;
}

.bv-programm-motto {
  margin: 0.35rem 0 1.1rem;
  text-align: center;
  color: var(--bv-gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.bv-programm-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bv-programm-liste li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--bv-gold-line);
  line-height: 1.35;
}

.bv-programm-liste time {
  color: var(--bv-blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .bv-programm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bv-fest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "mitte mitte"
      "links rechts";
  }

  .bv-fest-mitte {
    margin-bottom: 1rem;
  }

  .bv-rahmen {
    background:
      var(--bv-rahmen),
      radial-gradient(ellipse at 50% 22%, var(--bv-bg) 30%, transparent 70%),
      var(--bv-rauten-muster) center top / 54px 65px,
      var(--bv-bg);
  }

  .bv-fest-fuss {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "datum datum"
      "sponsoren insta";
  }

  .bv-fest-datum { grid-area: datum; }
  .bv-fest-sponsoren { grid-area: sponsoren; }
  .bv-fest-insta { grid-area: insta; }
}

@media (max-width: 600px) {
  .bv-fest-grid {
    gap: 0.75rem;
  }

  .bv-fest-tage {
    gap: 1.6rem;
  }

  .bv-fest-wappen {
    width: 170px;
  }

  .bv-tag {
    gap: 0.35rem;
    padding: 1.5rem 0.4rem 0.9rem;
    border-radius: 12px;
  }

  .bv-tag .bv-badge {
    min-width: 80%;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .bv-tag-datum {
    font-size: 1.05rem;
  }

  .bv-tag-logo {
    min-height: 70px;
  }

  .bv-tag-logo img {
    max-height: 72px;
  }

  .bv-fest-fuss {
    grid-template-columns: 1fr;
    grid-template-areas:
      "datum"
      "insta"
      "sponsoren";
    gap: 1.5rem;
  }

  .bv-fest-datum-gross {
    font-size: 2.1rem;
  }

  .bv-fest-sponsoren img {
    height: 60px;
  }

  .bv-programm-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bv-tag {
    transition: none;
  }

  .bv-tag:hover,
  .bv-tag:focus-visible {
    transform: none;
  }
}

/* ---------- Termine im Banner-Look ---------- */
.entry-content > .section-header h1 {
  margin: 0 0 0.5rem;
  color: var(--bv-blue);
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.entry-content > .section-header h1::after {
  content: '';
  display: block;
  width: 160px;
  height: 12px;
  margin-top: 0.75rem;
  background: var(--bv-trenner) left center / contain no-repeat;
}

/* Rahmen mit Goldecken und Rauten um den ganzen Kalender */
.calendar-section {
  padding: clamp(2.25rem, 4vw, 3rem) clamp(1rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 0;
  border-radius: 0;
  background:
    var(--bv-rahmen),
    var(--bv-rauten-muster) center top / 54px 65px,
    var(--bv-bg);
}

.calendar-grid {
  gap: 2.25rem 1.5rem;
}

/* Monat = Karte mit blauem Reiter wie die Tageskarten */
.calendar-month {
  position: relative;
  overflow: visible;
  margin-top: 0.9rem;
  background: var(--bv-bg);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
}

.calendar-section .calendar-month h2 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 55%;
  margin: 0;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  background: var(--bv-blue);
  color: var(--bv-bg);
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.calendar-month-events {
  gap: 1rem;
  padding: 2rem 1rem 1rem;
}

.calendar-event {
  background: var(--bv-card);
  border: 1px solid var(--bv-gold-line);
  border-radius: 12px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 53, 173, 0.1);
}

.calendar-event-image {
  border-bottom: 1px solid var(--bv-gold-line);
}

.calendar-event-date {
  display: block;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.calendar-event h3 {
  font-size: 1.05rem;
}

.calendar-event h3 a {
  color: var(--bv-blue);
}

/* Einzeltermin: Infobox wie eine Tageskarte */
.event-summary {
  background: var(--bv-card);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
  box-shadow: none;
}

.event-summary-text {
  border-top: 1px dashed var(--bv-gold-line);
}

@media (max-width: 600px) {
  .calendar-section {
    padding-inline: 0.85rem;
  }

  .calendar-month-events {
    padding: 1.8rem 0.6rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-event {
    transition: none;
  }

  .calendar-event:hover {
    transform: none;
  }
}

/* ---------- Galerie im Banner-Look ---------- */

/* Albenübersicht im Goldrahmen auf Rauten */
.gallery-page .album-grid {
  gap: 2rem 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.25rem);
  background:
    var(--bv-rahmen),
    var(--bv-rauten-muster) center top / 54px 65px,
    var(--bv-bg);
}

/* Albumkarte: gerahmtes Foto wie ein Abzug, Text mittig */
.album-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: var(--bv-card);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(3, 53, 173, 0.12);
}

.album-cover {
  border-radius: 8px;
  border: 1px solid var(--bv-gold-line);
  background: var(--bv-rauten-muster) center / 54px 65px, var(--bv-bg);
  font-family: var(--font-subtitle);
}

.album-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
}

.album-label {
  color: var(--bv-gold);
  font-family: var(--font-subtitle);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.album-card h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.4rem;
}

.album-card h2 a {
  color: var(--bv-blue);
}

.album-card h2::after {
  content: '';
  display: block;
  width: 110px;
  height: 10px;
  margin: 0.55rem auto 0;
  background: var(--bv-trenner) center / contain no-repeat;
}

.album-excerpt {
  font-size: 0.95rem;
}

/* Knopf wie im Festbereich: blaue Pille */
.album-link {
  margin-top: auto;
  min-height: 42px;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--bv-blue);
  background: var(--bv-blue);
  color: var(--bv-bg);
  font-family: var(--font-subtitle);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.album-link:hover {
  background: var(--bv-blue-dark);
  border-color: var(--bv-blue-dark);
  color: var(--bv-bg);
}

.gallery-empty {
  background: var(--bv-card);
  border: 1.5px solid var(--bv-gold);
  border-radius: 14px;
}

/* Einzelnes Album */
.album-entry-header {
  margin-bottom: 1.5rem;
}

.album-entry-header .album-label {
  display: block;
}

.album-entry-header h1 {
  margin: 0.3rem 0 0;
  color: var(--bv-blue);
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.album-entry-header h1::after {
  content: '';
  display: block;
  width: 160px;
  height: 12px;
  margin-top: 0.75rem;
  background: var(--bv-trenner) left center / contain no-repeat;
}

.album-entry-content .wp-block-gallery.has-nested-images {
  margin: 1.5rem 0 2rem;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2.25rem);
  background:
    var(--bv-rahmen),
    var(--bv-rauten-muster) center top / 54px 65px,
    var(--bv-bg);
}

.entry-content .album-entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  border: 1.5px solid var(--bv-gold);
  border-radius: 10px;
  background: var(--bv-card);
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .album-card {
    transition: none;
  }

  .album-card:hover {
    transform: none;
  }
}

/* ---------- Hinweis „Testseite“ (Startseite, im Customizer abschaltbar) ---------- */
.bv-testhinweis {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.9rem 1.25rem;
  background: #fff4d6;
  border: 1.5px solid var(--bv-gold);
  border-left-width: 6px;
  border-radius: 12px;
  color: var(--bv-ink);
}

.bv-testhinweis p {
  margin: 0;
  line-height: 1.45;
}

.bv-testhinweis strong {
  color: var(--bv-blue);
}

.bv-testhinweis-marke {
  flex-shrink: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--bv-gold);
  color: #fff;
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .bv-testhinweis {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
