:root {
  --red: #c31313;
  --red-dark: #940b0b;
  --bg: #f5f5f3;
  --text: #1a1a1a;
  --muted: #666;
  --card: #fff;
  --border: #e8e3de;
  --shadow: 0 12px 34px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1380px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,8,8,.84); backdrop-filter: blur(8px);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar.light { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); }
.header-wrap { display:grid; grid-template-columns: 540px minmax(0, 1fr) 110px; align-items:center; column-gap: 34px; padding: 12px 0; }
.brand { display:flex; align-items:center; gap: 14px; min-width: 0; }
.brand img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.brand-text h1 { margin: 0; font-size: 1.55rem; line-height: 1.05; font-weight: 800; white-space: nowrap; }
.brand-text p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: .95rem; }
.topbar.light .brand-text p { color: var(--muted); }
nav { flex: 1 1 auto; min-width: 0; }
nav ul { display:flex; list-style:none; gap: 20px; padding:0; margin:0; align-items:center; flex-wrap: nowrap; white-space: nowrap; }
nav a { font-weight: 700; font-size: .90rem; opacity: .95; }
nav a:hover, nav a.active { color: var(--red); }
.social-mini { display:flex; gap: 10px; align-items:center; justify-content:flex-end; padding-left: 0; }
.social-mini a { width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); transition: transform .18s ease, background .18s ease; }
.social-mini a:hover { transform: translateY(-1px); background: rgba(255,255,255,.10); }
.social-brand-svg { width: 27px; height: 27px; display:block; }
.topbar.light .social-mini a { border-color: var(--border); }
.icon { width: 18px; height: 18px; fill: currentColor; }
/* Hero V6: exactly one image element, no CSS background image */
.hero {
  position: relative;
  color: #fff;
  background: #111;
  overflow: hidden;
}
.hero-image {
  position: relative;
  z-index: 0;
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
  object-fit: initial;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.58) 30%, rgba(0,0,0,.20) 52%, rgba(0,0,0,0) 76%);
  pointer-events: none;
}
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 520px; }
.hero h2 { font-size: clamp(3rem, 5.2vw, 5.3rem); line-height: .95; margin: 0 0 22px; font-weight: 900; letter-spacing: -.03em; }
.hero p { font-size: 1.28rem; color: rgba(255,255,255,.94); margin: 0 0 30px; }
.buttons { display:flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 800;
  border: 1px solid transparent; transition: .2s ease; cursor:pointer;
}
.btn-primary { background: var(--red); color:#fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.1); color:#fff; border-color: rgba(255,255,255,.3); }
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-outline { border-color: var(--red); color: var(--red); background:#fff; }
.btn-outline:hover { background: #fff4f4; }

.btn-instagram {
  min-height: 64px;
  min-width: 210px;
  padding: 0 30px;
  font-size: 1.08rem;
  color: #fff;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #833ab4, #c13584 42%, #e1306c 68%, #f77737);
  box-shadow: 0 10px 24px rgba(193,53,132,.24);
}
.btn-instagram:hover {
  color: #fff;
  filter: brightness(.96);
  transform: translateY(-1px);
}
.instagram-glyph {
  width: 30px;
  height: 30px;
  fill: currentColor;
  flex: none;
}
.section { padding: 72px 0; }
.section.soft { background: var(--bg); }
.grid-2 { display:grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: stretch; }
.story-card {
  background: #faf8f6; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow); display:flex; flex-direction:column; justify-content:center;
}
.kicker { color: var(--red); font-weight: 800; font-size: .95rem; letter-spacing: .01em; text-transform: uppercase; }
.section h3 { margin: 0 0 12px; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height:1.05; }
.text-large { font-size: 1.15rem; color: #343434; }
.story-card .row { display:flex; align-items:flex-start; gap: 18px; }
.story-icon {
  width: 78px; height: 78px; border-radius: 50%; background: #fff0f0; display:grid; place-items:center; flex:none; color: var(--red);
}
.story-card h4 { margin: 2px 0 8px; font-size: 1.6rem; }
.muted { color: var(--muted); }
.insta-header, .split-header { display:flex; align-items:center; justify-content:space-between; gap: 18px; margin-bottom: 24px; }
.insta-grid {
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.photo-tile { position:relative; overflow:hidden; border-radius: 18px; aspect-ratio: 1 / 1; background:#eee; }
.photo-tile img { width:100%; height:100%; object-fit: cover; }
.photo-tile:hover img { transform: scale(1.03); }
.photo-tile img { transition: .35s ease; }
.photo-tile::after {
  content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0) 45%); opacity: .75;
}
.split-layout { display:grid; grid-template-columns: 340px 1fr; gap: 30px; align-items:stretch; }
.feature-card, .youtube-card, .term-card, .cta-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-card { padding: 30px; }
.youtube-card {
  overflow:hidden; display:grid; grid-template-columns: 1.15fr .85fr; min-height: 270px;
}
.youtube-thumb { position:relative; }
.youtube-thumb img { width:100%; height:100%; object-fit:cover; }
.play {
  position:absolute; inset:0; margin:auto; width:92px; height:92px; border-radius:50%; background: rgba(255,255,255,.92);
  display:grid; place-items:center; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.play::before {
  content:''; border-left: 24px solid var(--red); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 7px;
}
.youtube-info { padding: 30px; background: linear-gradient(135deg, #262626, #111); color:#fff; }
.youtube-info h4 { margin: 0 0 10px; font-size: 1.8rem; }
.section-title { font-size: clamp(2rem, 3.2vw, 2.6rem); margin: 0 0 10px; }
.term-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.term-card { padding: 18px; display:grid; grid-template-columns: 86px 1fr; gap: 16px; align-items:center; }
.date-box { background: var(--red); color:#fff; border-radius: 16px; padding: 14px 10px; text-align:center; }
.date-box .day { font-size: 2rem; font-weight: 900; line-height: 1; }
.date-box .month { font-size: .95rem; font-weight: 800; text-transform: uppercase; }
.date-box .year { font-size: .85rem; opacity:.92; }
.term-card h5 { margin: 0 0 6px; font-size: 1.3rem; }
.term-meta { color: var(--muted); display:grid; gap: 4px; }
.link-row { display:flex; justify-content:center; margin-top: 18px; }
.cta-band { display:grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow:hidden; border-radius: 24px; border:1px solid var(--border); box-shadow: var(--shadow); }
.cta-band img { width:100%; height:100%; min-height: 320px; object-fit:cover; }
.cta-card { border:none; box-shadow:none; padding: 42px; display:flex; align-items:center; }
.gallery-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .photo-tile { aspect-ratio: 1.2 / 0.78; }
.low-zunft {
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background:#fcfbfa;
}
.low-zunft .container { display:flex; justify-content:space-between; align-items:center; gap: 16px; flex-wrap: wrap; }
.footer { background: linear-gradient(135deg, #c40f0f, #7a0b0b); color:#fff; }
.footer .container { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding: 36px 0; }
.footer h5 { margin: 0 0 14px; font-size: 1.25rem; }
.footer p, .footer li, .footer a { color: rgba(255,255,255,.92); }
.footer ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0 26px; color: rgba(255,255,255,.88); font-size: .95rem; }
.center { display:flex; align-items:center; justify-content:center; }
.page-hero { background: linear-gradient(135deg, #151515, #252525); color:#fff; padding: 90px 0 56px; }
.article { padding: 54px 0 80px; background:#fff; }
.article-card {
  background:#fff; border-radius: 24px; border:1px solid var(--border); box-shadow: var(--shadow); padding: 40px;
}
.article-card h2 { margin-top:0; font-size: clamp(2rem, 3vw, 2.6rem); }
.article-card h3 { font-size: 1.5rem; margin-top: 34px; }
.people-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.person { background: #faf8f6; border:1px solid var(--border); border-radius: 16px; padding: 18px; }
.person strong { display:block; font-size: 1.1rem; }
.note { background: #fff7e7; color:#694600; border:1px solid #f1d28b; border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.82); display:none; place-items:center; z-index:2000; padding: 24px; }
.lightbox.active { display:grid; }
.lightbox img { max-width:min(100%, 1200px); max-height:88vh; border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.34); }
.lightbox-close { position: absolute; top:18px; right:18px; width:44px; height:44px; border-radius:50%; border:none; background:#fff; font-size:28px; cursor:pointer; }
.mobile-toggle { display:none; background:none; border:none; color:inherit; }
@media (max-width: 1180px) {
  .header-wrap { grid-template-columns: 430px minmax(0, 1fr) 90px; column-gap: 20px; }
  .brand-text h1 { font-size: 1.3rem; }
  nav ul { gap: 12px; }
  nav a { font-size: .80rem; }
  .social-mini a { width: 40px; height: 40px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .split-layout, .youtube-card, .cta-band, .footer .container { grid-template-columns: 1fr; }
  .term-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .brand img { width: 62px; height: 62px; }
  .mobile-toggle { display:block; }
  .header-wrap { display:flex; flex-wrap:wrap; align-items:flex-start; }
  nav { display:none; width:100%; }
  nav.open { display:block; }
  nav ul { flex-direction:column; align-items:flex-start; padding-top: 16px; }
  .social-mini { display:none; }
  .hero { min-height: 620px; }
  .hero-image { width: 100vw; height: 620px; object-fit: cover; object-position: 58% center; }
  .hero-inner { align-items: flex-end; padding-bottom: 58px; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 48%, rgba(0,0,0,.08) 100%); }
  .hero h2 { font-size: 3.2rem; }
  .hero p { font-size: 1.1rem; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .term-grid, .gallery-grid, .people-grid { grid-template-columns: 1fr; }
  .topbar .brand-text h1 { font-size: 1.2rem; }
}

/* Kalenderdarstellung */
.calendar-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .98rem;
}
.calendar-status.error {
  background: #fff7e7;
  color: #694600;
  border: 1px solid #f1d28b;
  border-radius: 14px;
  padding: 12px 14px;
}
.calendar-status.ok { display: none; }
.calendar-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.term-card .all-day { color: var(--red); font-weight: 700; }
.calendar-frame-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.calendar-frame-wrap iframe { width: 100%; min-height: 720px; border: 0; display:block; }
@media (max-width: 780px) {
  .brand img { width: 62px; height: 62px; }
  .calendar-frame-wrap iframe { min-height: 620px; }
}

/* Historisches Bild auf der Geschichtsseite */
.history-photo {
  margin: 34px 0 42px;
}
.history-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.history-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}


/* V14: mehr Luft im Desktop-Header + YouTube-Markenbutton */
@media (min-width: 1201px) {
  .header-wrap {
    grid-template-columns: 570px minmax(0, 1fr) 110px;
    column-gap: 48px;
  }
  nav ul { gap: 24px; }
}

.btn-youtube {
  background: #fff;
  color: #111;
  border: 1px solid #e4e4e4;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  padding: 0 22px 0 16px;
}
.btn-youtube:hover {
  background: #fafafa;
  transform: translateY(-1px);
}
.youtube-logo-mark {
  display: inline-flex;
  width: 38px;
  color: #ff0000;
  flex: none;
}
.youtube-logo-mark svg { width: 100%; height: auto; display: block; }

/* V15: robuster Header bei wechselnden Fensterbreiten */
.header-wrap {
  display: grid;
  grid-template-columns: minmax(390px, auto) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 34px;
}
.brand { min-width: 390px; }
#mainNav { min-width: 0; }
#mainNav ul { flex-wrap: nowrap; justify-content: flex-end; gap: clamp(12px, 1.35vw, 24px); }
#mainNav a { white-space: nowrap; }
.social-mini { flex: 0 0 auto; margin-left: 6px; }

@media (max-width: 1320px) {
  .header-wrap { grid-template-columns: minmax(350px, auto) minmax(0, 1fr); column-gap: 24px; }
  .brand { min-width: 350px; }
  .social-mini { display: none; }
  #mainNav ul { gap: 13px; }
}

@media (max-width: 1050px) {
  .header-wrap { display: flex; flex-wrap: wrap; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .mobile-toggle { display: block; }
  #mainNav { display: none; width: 100%; }
  #mainNav.open { display: block; }
  #mainNav ul { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; }
}

/* V17: automatische PHP-Galerie */
.gallery-page-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: .98;
}
.gallery-page-hero .text-large { color: rgba(255,255,255,.9); max-width: 860px; }
.gallery-back-link { color: #fff; font-weight: 800; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.album-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.album-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0,0,0,.12); }
.album-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-card:hover .album-cover img { transform: scale(1.03); }
.album-info { padding: 20px 22px 22px; }
.album-info h3 { margin: 0 0 4px; font-size: 1.35rem; }
.album-info span { color: var(--muted); }
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.photo-gallery-grid .gallery-photo { aspect-ratio: 4 / 3; }
.gallery-empty {
  padding: 42px;
  border: 1px dashed #d7d0ca;
  border-radius: 20px;
  background: #faf8f6;
  text-align: center;
}
.gallery-empty h3 { margin-top: 0; }
.gallery-empty code { background:#eee9e5; padding:2px 7px; border-radius:6px; }
@media (max-width: 1000px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .album-grid { grid-template-columns: 1fr; }
  .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V18 – Instrumente */
.instruments-intro { max-width: 880px; }
.natural-note {
  margin: 28px 0 38px;
  padding: 26px 28px;
  border-radius: 18px;
  background: #fff3f1;
  border: 1px solid #f0cbc6;
}
.natural-note h3 { margin: 0 0 10px; font-size: 1.35rem; color: var(--red); }
.natural-note p { margin: 0; }
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.instrument-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.instrument-image {
  height: 280px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #faf9f7;
  border-bottom: 1px solid var(--border);
}
.instrument-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.instrument-copy { padding: 24px 24px 28px; }
.instrument-copy h3 { margin: 0 0 10px; font-size: 1.55rem; }
.instrument-copy p { margin: 0; color: #3e3e3e; }
.instrument-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff0ee;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
@media (max-width: 1000px) {
  .instrument-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .instrument-grid { grid-template-columns: 1fr; }
  .instrument-image { height: 250px; }
}

/* V19 – Leitung und Tambour-Historie */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.leader-card {
  overflow: hidden;
  background: #faf8f6;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  min-height: 100%;
}
.leader-photo {
  height: 360px;
  background: linear-gradient(145deg, #f7f3f0, #eee8e3);
  overflow: hidden;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.leader-card.leo .leader-photo img { object-position: center 30%; }
.leader-card.no-photo {
  display: flex;
  align-items: flex-end;
  min-height: 470px;
  background: linear-gradient(145deg, #fbf8f5, #f0ebe7);
}
.leader-info { padding: 22px 24px 25px; }
.leader-info strong { display: block; font-size: 1.28rem; line-height: 1.25; }
.leader-info span { display: block; margin-top: 5px; color: var(--muted); font-size: 1.05rem; }
.tambour-history { margin-top: 56px; }
.tambour-history > p { max-width: 760px; color: var(--muted); }
.tambour-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.tambour-column {
  background: #faf8f6;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.tambour-column h4 {
  margin: 0;
  padding: 18px 22px;
  font-size: 1.25rem;
  background: #f2ece7;
  border-bottom: 1px solid var(--border);
}
.tambour-list { list-style: none; padding: 0; margin: 0; }
.tambour-list li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
}
.tambour-list li:last-child { border-bottom: 0; }
.tambour-year { color: var(--red); font-weight: 800; }
.tambour-name { font-weight: 650; }
.tambour-year.unknown { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .leadership-grid { grid-template-columns: 1fr 1fr; }
  .leader-card.no-photo { min-height: auto; }
  .leader-card.no-photo .leader-info { min-height: 180px; display:flex; flex-direction:column; justify-content:flex-end; }
}
@media (max-width: 680px) {
  .leadership-grid, .tambour-columns { grid-template-columns: 1fr; }
  .leader-photo { height: 420px; }
  .leader-card.no-photo { min-height: auto; }
  .tambour-list li { grid-template-columns: 68px 1fr; padding: 12px 16px; }
}

/* V20 – aufgeräumter Header: Social Media nur als Logos */
.header-wrap {
  grid-template-columns: minmax(460px, 1.2fr) minmax(620px, 1.7fr) 104px;
  column-gap: 26px;
}
.brand { min-width: 0; }
#mainNav ul {
  justify-content: flex-end;
  gap: clamp(14px, 1.2vw, 24px);
}
.social-mini {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 0;
}
.social-mini a {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 12px;
}
.social-brand-svg { width: 100%; height: 100%; display: block; }

@media (max-width: 1420px) {
  .header-wrap { grid-template-columns: minmax(420px, 1.15fr) minmax(570px, 1.65fr) 96px; column-gap: 18px; }
  #mainNav ul { gap: 12px; }
  #mainNav a { font-size: .9rem; }
}
@media (max-width: 1240px) {
  .header-wrap { grid-template-columns: minmax(390px, 1fr) minmax(0, 1.6fr); }
  .social-mini { display: none; }
  #mainNav ul { gap: 12px; }
}
@media (max-width: 1050px) {
  .header-wrap { display:flex; flex-wrap:wrap; align-items:flex-start; }
  .brand { flex:1 1 auto; min-width:0; }
  .mobile-toggle { display:block; }
  #mainNav { display:none; width:100%; }
  #mainNav.open { display:block; }
  #mainNav ul { flex-direction:column; align-items:flex-start; gap:12px; padding-top:14px; }
  .social-mini { display:flex; width:100%; justify-content:flex-start; padding-top:12px; }
}

/* V20 – Instrumentenkarten: Bild und Text strikt getrennt */
.instrument-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.instrument-image {
  flex: 0 0 280px;
  height: 280px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  background: #faf9f7;
  padding: 22px;
}
.instrument-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.instrument-copy {
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 24px 24px 28px;
  color: #1a1a1a;
}
.instrument-copy h3,
.instrument-copy p { color: #1a1a1a; }
.instrument-copy p { line-height: 1.65; }
@media (max-width:650px) {
  .instrument-image { flex-basis:250px; height:250px; }
}


/* V23 – Mobile Header Fix: Vereinsname darf nie aus dem Viewport laufen */
@media (max-width: 780px) {
  .header-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 0;
  }

  .brand {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .topbar .brand-text h1,
  .topbar.light .brand-text h1 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
  }

  .brand-text p {
    margin-top: 4px;
    font-size: .82rem;
    line-height: 1.2;
    white-space: normal;
  }

  .mobile-toggle {
    order: 2;
    flex: 0 0 auto;
    margin-left: 0;
  }

  #mainNav {
    order: 4;
    width: 100%;
  }

  .social-mini {
    order: 3;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-top: 0;
  }

  .social-mini a {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .brand {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }
  .brand img {
    width: 54px;
    height: 54px;
  }
  .topbar .brand-text h1,
  .topbar.light .brand-text h1 {
    font-size: 1rem;
  }
  .brand-text p {
    font-size: .78rem;
  }
}
