/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:    #8b1a1a;
  --color-primary-rgb: 139, 26, 26;
  --color-primary-dk: #6b1414;
  --color-secondary:  #c8cdd1;
  --color-bg:         #ffffff;
  --color-bg-light:   #f5f0eb;
  --color-text:       #1a1a1a;
  --color-text-light: #555555;
  --font-main:        'Segoe UI', Arial, sans-serif;
  --max-width:        1100px;
  --header-height:    64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: background .3s, box-shadow .3s;
}

.site-header.hero-visible {
  background: transparent;
  box-shadow: none;
}

/* Keep nav text readable over the image */
.site-header.hero-visible .site-nav > ul > li > a,
.site-header.hero-visible .site-nav > ul > li > a:hover {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.site-header.hero-visible .site-nav > ul > li > a:hover,
.site-header.hero-visible .site-nav > ul > li.active > a {
  border-bottom-color: #fff;
}

/* Mobile open panel: restore dark text regardless of hero-visible */
@media (max-width: 860px) {
  .site-header.hero-visible .site-nav.open > ul > li > a,
  .site-header.hero-visible .site-nav.open > ul > li > a:hover {
    color: var(--color-text);
    text-shadow: none;
  }
  .site-header.hero-visible .site-nav.open > ul > li > a:hover,
  .site-header.hero-visible .site-nav.open > ul > li.active > a {
    border-bottom-color: var(--color-primary);
  }
}

.site-logo { order: 1; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; }

.site-nav { order: 2; }

.header-icons { order: 3; display: flex; gap: .75rem; margin-left: auto; }
.header-icons img { width: 24px; height: 24px; }

.nav-toggle {
  order: 4;
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Navigation — desktop (inline) ── */
.site-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  height: 100%;
}

.site-nav > ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  gap: 0;
}

.site-nav > ul > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--color-text);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-primary);
}

/* Dropdown */
.site-nav > ul > li .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  list-style: none;
  z-index: 200;
  border-top: 2px solid var(--color-primary);
}

.site-nav > ul > li:hover .subnav { display: block; }

.site-nav > ul > li .subnav li a {
  display: block;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--color-text);
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}

.site-nav > ul > li .subnav li a:hover,
.site-nav > ul > li .subnav li.active a {
  color: var(--color-primary);
  background: var(--color-bg-light);
  text-decoration: none;
}

/* ── Navigation — mobile (hamburger) ── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-logo { margin: 0 auto; }
  .header-icons { display: none; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - var(--header-height));
    background: var(--color-bg);
    box-shadow: -4px 0 12px rgba(0,0,0,.15);
    overflow-y: auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open { display: flex; }

  .site-nav > ul {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .site-nav > ul > li { flex-direction: column; align-items: stretch; }

  .site-nav > ul > li > a {
    padding: .75rem 1.5rem;
    border-bottom: 1px solid #eee;
    border-left: none;
    font-size: 1rem;
  }

  .site-nav > ul > li .subnav {
    display: block;
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--color-bg-light);
  }

  .site-nav > ul > li .subnav li a {
    padding: .5rem 2.5rem;
    font-size: .95rem;
  }
}

/* ── Main content ── */
main { min-height: calc(100vh - var(--header-height) - 80px); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container--home {
  max-width: 100%;
  padding: 0;
}

/* ── Hero banner ── */
.hero {
  width: 100%;
  height: 60vh;
  margin-top: calc(-1 * var(--header-height));
  background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
                    url('../images/uploads/stadtkapelle-gesamt-4.jpeg');
  background-size: cover;
  background-position: center 80%;
  background-attachment: scroll;
  position: relative;
  will-change: background-position;
}
.hero--page {
  background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
                    url('../images/uploads/stadtkapelle-gesamt-4.jpeg');
  background-position: center 80%;
  height: 40vh;
}

.hero-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 6px var(--color-primary), 0 0 15px var(--color-primary), 0 0 30px var(--color-primary), 0 0 60px var(--color-primary), 0 0 90px rgba(139,26,26,.8);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.6rem;
    white-space: normal;
    width: 80%;
  }
}

.hero-welcome,
.hero--page .hero-title {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 1.4rem;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  animation: hero-welcome-glow 2.8s ease-in-out 0.6s 1 forwards;
}
.hero--page .hero-title {
  top: auto;
  left: auto;
  transform: none;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: normal;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  white-space: nowrap;
  bottom: 1.8rem;
}
@keyframes hero-welcome-glow {
  0%   { text-shadow: 0 2px 6px rgba(0,0,0,.6); }
  20%  { text-shadow: 0 2px 6px rgba(0,0,0,.6), 0 0 10px rgba(255,255,255,.6), 0 0 25px rgba(255,255,255,.7), 0 0 50px rgba(255,255,255,.4); }
  80%  { text-shadow: 0 2px 6px rgba(0,0,0,.6), 0 0 10px rgba(255,255,255,.6), 0 0 25px rgba(255,255,255,.7), 0 0 50px rgba(255,255,255,.4); }
  100% { text-shadow: 0 2px 6px rgba(0,0,0,.6); }
}
.hero-underline {
  position: absolute;
  bottom: 1.3rem;
  right: 2rem;
  left: auto;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(139,26,26,.8), 0 0 14px rgba(139,26,26,.5);
  animation: hero-underline 1.8s ease-in-out 0.6s 1 forwards;
}
@keyframes hero-underline {
  0%   { width: 0;                        right: 2rem; }
  40%  { width: calc(100% - 2rem);        right: 2rem; }
  100% { width: var(--underline-w, 8rem); right: 2rem; }
}

/* ── Multi-column card rows ── */
.content-row {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: #dde6ee;
  overflow: hidden;
}
/* Background image for row and standalone card — subtle overlay via ::before */
.content-row[style*="--bg-img"]::before,
.content-item[style*="--bg-img"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: bottom center;
  filter: blur(2px);
  opacity: 0.35;
  z-index: 0;
  transform: scale(1.04);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.content-row[style*="--bg-img"] > *,
.content-item[style*="--bg-img"] > * {
  position: relative;
  z-index: 1;
}
.content-row .content-item {
  flex: 1;
  position: static;
  border: none;
  border-top: none;
  border-right: none;
  margin: 0;
  background: #fff !important;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  overflow: hidden;
  max-height: none;
}
.content-row--2col .content-item { flex: 0 0 calc(50% - .75rem); }
.content-row--3col .content-item { flex: 0 0 calc(33.333% - 1rem); }
@media (max-width: 860px) {
  .content-row--3col { flex-wrap: wrap; }
  .content-row--3col .content-item { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 540px) {
  .content-row { flex-direction: column; gap: 1rem; }
  .content-row .content-item { flex: 1 1 auto; }
}

/* ── Content item layouts ── */
.content-item {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 3rem 2rem;
  border: none;
  border-top: 1px solid #e8e2db;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow .2s;
}

.content-item img {
  max-height: calc(70vh - 8rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.content-item:nth-child(4n+1) { background: #fdf8f8; }
.content-item:nth-child(4n+2) { background: #f5f0eb; }
.content-item:nth-child(4n+3) { background: #f8f6f0; }
.content-item:nth-child(4n+4) { background: #faf5f5; }

.content-item > * {
  max-width: var(--max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* both parts face the center line */
.layout-img_left .content-image  { text-align: right; }
.layout-img_left .content-image img  { margin-left: auto; margin-right: 0; }
.layout-img_right .content-image { text-align: left; }
.layout-img_right .content-image img { margin-left: 0; margin-right: auto; }

.layout-img_left,
.layout-img_right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
}
.layout-img_right .content-image { order: 2; }
.layout-img_right .content-text  { order: 1; }

/* Red overlapping text box — single cards only, not in multi-col rows */
.container--home > article.layout-img_left,
.container--home > article.layout-img_right {
  overflow: visible;
}
.container--home > article.layout-img_left .content-text,
.container--home > article.layout-img_right .content-text {
  background: var(--color-primary);
  color: #fff;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.25), 0 12px 40px rgba(0,0,0,.35);
  border-radius: 4px;
  position: relative;
  z-index: 2;
  max-width: 340px;
  width: 100%;
}
/* Overlap: pull text box over the image — shadow falls on image for visibility */
.container--home > article.layout-img_left .content-text  { margin-left: -2rem; justify-self: end; }
.container--home > article.layout-img_right .content-text { margin-right: -2rem; justify-self: start; }

.container--home > article.layout-img_left .content-text h2,
.container--home > article.layout-img_right .content-text h2 {
  color: #fff;
  margin-bottom: .75rem;
}
.container--home > article.layout-img_left .content-text p,
.container--home > article.layout-img_right .content-text p {
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
}

/* Links inside text box become white buttons */
.container--home > article.layout-img_left .content-text a,
.container--home > article.layout-img_right .content-text a {
  display: inline-block;
  margin-top: .5rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  padding: .45rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: .95rem;
}
.container--home > article.layout-img_left .content-text a:hover,
.container--home > article.layout-img_right .content-text a:hover {
  background: var(--color-bg-light);
  text-decoration: none;
}

/* When card has a background image, make red box slightly transparent */
.container--home > article[style*="--bg-img"].layout-img_left .content-text,
.container--home > article[style*="--bg-img"].layout-img_right .content-text {
  background: rgba(139, 26, 26, 0.78);
  backdrop-filter: blur(2px);
}

.layout-img_overlay {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.layout-img_overlay .content-image { order: 2; }
.layout-img_overlay .content-image img {
  max-height: calc(70vh - 8rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.layout-img_overlay > .content-text {
  order: 1;
  text-align: center;
}
.layout-img_overlay > .content-text h2 {
  color: var(--color-primary);
}

.layout-img_below .content-text { padding: 1rem 0; }

/* Instagram floating widget */
.social-widgets {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
.social-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-end;
}

/* Hover pill label */
.social-btn-wrap {
  display: flex;
  align-items: center;
  gap: .55rem;
  position: relative;
}
.social-btn-label {
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .3rem .7rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px) scale(.92);
  transition: opacity .18s ease, transform .18s ease;
}
.social-btn-wrap:hover .social-btn-label {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Page-load badge */
.social-hint {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .75rem .35rem .55rem;
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
  align-self: flex-end;
}
.social-hint.social-hint--visible {
  opacity: 1;
  transform: translateX(0);
}
.social-hint.social-hint--hidden {
  opacity: 0;
  transform: translateX(8px);
}
.social-hint__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: social-hint-pulse 1.4s ease-in-out infinite;
}
@keyframes social-hint-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.75); }
}

/* Load-time pulse ring on buttons */
@keyframes social-btn-ring {
  0%   { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 0 rgba(139, 26, 26, .55); }
  70%  { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 12px rgba(139, 26, 26, 0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 0 rgba(139, 26, 26, 0); }
}
.ig-widget__btn.social-btn--pulse {
  animation: social-btn-ring 1s ease-out 2;
}
.ig-widget {
  display: none; /* unused — kept for backwards compat */
}
.ig-widget__btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .15s;
  flex-shrink: 0;
}
.ig-widget__btn:hover { transform: scale(1.08); }
.ig-widget__btn img { width: 1.6rem; height: 1.6rem; filter: brightness(0) invert(1); }
.ig-widget__btn--close {
  display: none;
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 2rem;
  height: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  z-index: 2;
}
.ig-widget__btn--close {
  display: flex;
  position: absolute;
  top: -.6rem;
  right: -.6rem;
  width: 2rem;
  height: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  z-index: 2;
}
.ig-widget__panel {
  display: none;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  width: min(360px, calc(100vw - 3rem));
  max-height: 70vh;
  overflow: visible;
  opacity: 0;
  transition: opacity .25s ease;
}
.ig-widget__panel-inner {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  border-radius: 12px;
}
.ig-widget__panel-inner::-webkit-scrollbar { width: 4px; }
.ig-widget__panel-inner::-webkit-scrollbar-track { background: transparent; }
.ig-widget__panel-inner::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 2px; }
.ig-widget__panel-inner { width: 100%; }
.ig-widget--open .ig-widget__panel { display: block; opacity: 1; }
.ig-widget__tabs {
  display: flex;
  gap: .25rem;
  padding: .5rem .5rem 0;
  border-bottom: 2px solid #eee;
  margin-bottom: .5rem;
}
.ig-widget__tab {
  flex: 1;
  padding: .4rem .5rem;
  font-size: .8rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ig-widget__tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }
.ig-widget__pane { display: none; }
.ig-widget__pane--active { display: block; }

.layout-upcoming_appointments {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.upcoming-appointments h2 {
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
}
.upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: .5rem;
}
.upcoming-item {
  display: flex !important;
  list-style: none;
  align-items: flex-start;
  gap: 1rem;
  padding: .6rem .75rem;
  border-radius: 6px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
}
.upcoming-item--public {
  background: rgba(255,255,255,.8);
  border-color: rgba(139,26,26,.12);
}
.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.6rem;
  line-height: 1.2;
}
.upcoming-dow {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--color-text-light, #888);
  letter-spacing: .05em;
}
.upcoming-day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary, #8b1a1a);
  line-height: 1;
}
.upcoming-mon {
  font-size: .75rem;
  color: var(--color-text-light, #888);
}
.upcoming-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding-top: .1rem;
}
.upcoming-title {
  font-weight: 600;
  font-size: .95rem;
}
.upcoming-location {
  font-size: .8rem;
  color: var(--color-text-light, #888);
}
.upcoming-empty {
  color: var(--color-text-light, #888);
}
.upcoming-more {
  display: inline-block;
  margin-top: 1rem;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary, #8b1a1a);
  border-radius: 4px;
  text-decoration: none;
}
.upcoming-more:hover { background: #6e1515; text-decoration: none; }

@keyframes upcoming-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.upcoming-item--animate {
  opacity: 0;
  animation: upcoming-item-in .7s ease-out forwards;
}

@media (max-width: 640px) {
  .layout-img_left,
  .layout-img_right { grid-template-columns: 1fr; }
  .layout-img_right .content-image { order: 0; }
  .container--home > article.layout-img_left .content-text,
  .container--home > article.layout-img_right .content-text { margin-left: 0; margin-right: 0; border-radius: 0; }
  .layout-img_left .content-image img,
  .layout-img_right .content-image img { margin-left: auto; margin-right: auto; }

  /* Homepage img cards: thumbnail + text side by side on mobile */
  .container--home > article.layout-img_left,
  .container--home > article.layout-img_right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .75rem;
    grid-template-columns: unset;
  }
  .container--home > article.layout-img_left .content-image,
  .container--home > article.layout-img_right .content-image {
    flex: 0 0 90px;
    width: 90px;
    order: 0;
  }
  .container--home > article.layout-img_left .content-image img,
  .container--home > article.layout-img_right .content-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0;
  }
  .container--home > article.layout-img_right .content-image { order: 2; }
  .container--home > article.layout-img_left .content-text,
  .container--home > article.layout-img_right .content-text {
    flex: 1;
    order: 1;
    min-width: 0;
    padding: 1rem;
    max-width: unset;
    font-size: .875rem;
  }
  .container--home > article.layout-img_left .content-text h2,
  .container--home > article.layout-img_right .content-text h2 {
    font-size: 1rem;
    margin-top: 0;
  }
}

/* ── Page typography ── */
.container h1 { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 1rem; }
.container h2 { font-size: 1.3rem; color: var(--color-primary); margin: 1.5rem 0 .5rem; }
.container h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.container p  { margin-bottom: .9rem; }
.page-subtitle { color: var(--color-text-light); margin-bottom: 1.5rem; }

/* ── Stadtkapelle sub-links ── */
.stadtkapelle-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
.section-card {
  display: block;
  position: relative;
  text-decoration: none;
}
.section-card img {
  width: 65%;
  display: block;
  border-radius: 4px;
}
.section-card:nth-child(odd) img  { margin-left: auto; }
.section-card:nth-child(even) img { margin-right: auto; }
.section-card span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: 3px;
  white-space: nowrap;
}
.section-card:nth-child(odd) span  { left: 0; }
.section-card:nth-child(even) span { right: 0; }
.section-card:hover img { filter: brightness(.9); }
.section-card:hover span { background: var(--color-primary-dk); }

/* ── Downloads ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.download-card {
  background: var(--color-bg-light);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.download-card h2 { font-size: 1.1rem; margin: 0; }
.download-card p  { margin: 0; color: var(--color-text-light); font-size: .95rem; }

/* ── Contact section ── */
.contact-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }

/* ── Termine ── */

/* Subscribe box — top-right corner, floated */
.termine-subscribe {
  float: right;
  clear: right;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-bg-light);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .82rem;
  color: var(--color-text-light);
  margin: 0 0 .5rem 1.5rem;
}
.termine-subscribe strong { color: var(--color-text-light); font-weight: 600; }
.termine-subscribe a {
  color: var(--color-primary);
  font-size: .82rem;
  white-space: nowrap;
}
.termine-subscribe a:hover { text-decoration: underline; }
.termine-subscribe a + a::before { content: '·'; margin-right: .4rem; color: #ccc; }

/* Offset scroll target below sticky header + filter bar */
#heute { scroll-margin-top: calc(40vh + 50px); }

/* Sticky filter bar */
.termine-filter-bar {
  position: sticky;
  top: 40vh;
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.termine-filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .5rem 1.5rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.termine-filter-btn {
  background: var(--color-bg-light);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: .3rem .9rem;
  font-size: .9rem;
  cursor: pointer;
  color: var(--color-text);
}
.termine-filter-btn:hover { background: #ece6df; }
.termine-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 540px) {
  .termine-subscribe {
    float: none;
    margin: .75rem 0 .5rem;
    align-self: flex-start;
  }
}

.termine-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 3px;
  margin-right: .4rem;
  vertical-align: middle;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.termine-month { margin-bottom: 2.5rem; }
.termine-month-heading {
  font-size: 1.2rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: .3rem;
  margin-bottom: .75rem;
}

.termine-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.termine-table td { padding: .5rem .6rem; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.termine-table tr:last-child td { border-bottom: none; }
.termine-table tr:hover td { background: #faf8f6; }

.termine-dow   { color: var(--color-text-light); width: 2.5rem; font-size: .85rem; }
.termine-date  { white-space: nowrap; font-weight: 600; width: 7rem; }
.termine-time  { white-space: nowrap; width: 6rem; color: var(--color-text-light); font-size: .9rem; }
.termine-title { font-weight: 500; }
.termine-location { color: var(--color-text-light); font-size: .9rem; }

.termine-past td { opacity: .45; }

@media (max-width: 540px) {
  .termine-location { display: none; }
  .termine-time { display: none; }
}

/* ── Inline button link ── */
a.btn-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 4px;
  font-size: .95rem;
  text-decoration: none;
}
a.btn-link:hover {
  background: var(--color-primary-dk);
  text-decoration: none;
}

/* ── Page sections (strategy pattern) ── */
.page-section { margin: 2rem 0; }

.section-register {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.section-register.img-right .section-image { order: 2; }
.section-register.img-right .section-text  { order: 1; }
.section-image { padding: 0 1.5rem; }
.section-image img { width: 100%; max-width: 320px; max-height: 380px; object-fit: cover; object-position: top; border-radius: 4px; display: block; margin: 0 auto; }
.section-text { padding-top: 0; }
.section-text h2 { margin-top: 0; }

@media (max-width: 640px) {
  .section-register { grid-template-columns: 1fr; }
  .section-register.img-right .section-image { order: 0; }
}

/* ── Instrument cards ── */
.instrument-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.instrument-card:last-child { border-bottom: none; }
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.instrument-grid .instrument-card {
  grid-template-columns: 1fr;
  border-bottom: none;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0 0 1rem;
  overflow: hidden;
  margin: 0;
}
.instrument-grid .instr-image img {
  height: 220px;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}
.instrument-grid .instr-info { padding: .75rem 1rem 0; }
@media (max-width: 860px) { .instrument-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .instrument-grid { grid-template-columns: 1fr; } }
.instr-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}
.instr-info .instr-name { font-size: 1.2rem; color: var(--color-primary); margin: 0 0 .5rem; }
.instr-meta { margin: 0 0 .3rem; font-size: .95rem; }
.instr-desc { margin-top: .5rem; font-size: .95rem; color: var(--color-text-light); line-height: 1.6; }

@media (max-width: 640px) {
  .instrument-card { grid-template-columns: 1fr; }
  .instr-image img { height: 200px; }
}

/* ── Person cards ── */
.person-card-single {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person-card-single .pc-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
  max-height: 380px;
}
.person-card-single .pc-info .pc-name { font-size: 1.3rem; color: var(--color-primary); margin: 0 0 .25rem; }
.person-card-single .pc-role  { color: var(--color-text-light); margin-bottom: .5rem; }
.person-card-single .pc-contact { font-size: .9rem; line-height: 1.9; }
.person-card-single .pc-contact a { color: var(--color-primary); }

.person-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.person-card {
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0 0 .75rem;
  border-radius: 6px;
  overflow: hidden;
}

@media (hover: hover) {
  .person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
  }
}

@keyframes person-card-in {
  from { opacity: 0; transform: translateY(36px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.person-card--animate {
  opacity: 0;
  animation: person-card-in 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.person-card .pc-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  display: block;
}
.person-card .pc-info { padding: .6rem .6rem 0; }
.person-card .pc-name { font-weight: 600; font-size: 1rem; margin-bottom: .15rem; }
.person-card .pc-role { color: var(--color-text-light); font-size: .9rem; margin-bottom: .35rem; }
.person-card .pc-contact { font-size: .85rem; line-height: 1.8; }
.person-card .pc-contact a { color: var(--color-primary); }

@media (max-width: 860px) {
  .person-card-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .person-card-grid     { grid-template-columns: repeat(2, 1fr); }
  .person-card-single   { grid-template-columns: 200px 1fr; }
}
@media (max-width: 480px) {
  .person-card-grid     { grid-template-columns: 1fr; }
  .person-card-single   { grid-template-columns: 1fr; }
  .person-card-single .pc-image img { max-height: 180px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--color-text);
  color: #ccc;
  padding: 1.25rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { color: #ccc; font-size: .9rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

/* ── Menu circles layout ── */
.layout-menu_circles {
  background: #fff !important;
  padding: 1.5rem 2rem;
  justify-content: center;
  max-height: none;
  overflow: visible;
  position: relative;
  z-index: 3;
}
.menu-circles {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.menu-circle {
  flex: 0 0 clamp(70px, 18vw, 140px);
  width: clamp(70px, 18vw, 140px);
  min-width: unset;
  max-width: unset;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,205,209,.75) 20%, rgba(200,205,209,0) 75%);
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.menu-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  border: 1px solid var(--color-primary);
}

@keyframes circle-pop {
  0%   { transform: scale(1);    box-shadow: none; border-color: transparent; }
  40%  { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,.2); border-color: var(--color-primary); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1);    box-shadow: none; border-color: transparent; }
}
.menu-circle--pop {
  border: 1px solid transparent;
  animation: circle-pop .45s ease-out forwards;
}
.menu-circle__label { font-size: clamp(.5rem, 1.05vw, .75rem); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
