/* ===========================================================
   Musikkapelle Eichberg — Redesign
   Tokens
   =========================================================== */

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--brass);
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}
:root{
  --ink:        #2b211c;   /* warmes umberbraun-schwarz, haupt-textfarbe (Palette „Vinyl — Creme & Bordeaux") */
  --ink-soft:   #5c4d45;   /* gedämpftes warmes braun für sekundärtext */
  --paper:      #faf6ef;   /* warmes schallplatten-creme statt reinweiß */
  --paper-dim:  #f2e8d8;   /* champagnerfarben für wechselnde sektionen */
  --paper-blue: #ecdcc8;   /* warme taupe für Kennzahlen-Leiste & Footer im Light Mode */
  --brass:      #8c2f39;   /* tiefes Bordeauxrot, kräftige akzentfarbe */
  --brass-soft: #c1636c;   /* helleres weinrosa für leichte akzente auf dunklem grund */
  --red:        #8c2f39;   /* identisch mit brass, semantischer alias */
  --green:      #2b211c;   /* identisch mit ink, semantischer alias für kontrastpunkte */

  --font-display: "Fraunces", "Source Serif 4", serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-mono:    "JetBrains Mono", monospace;

  --max-w: 1140px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

*{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}

a{ color: inherit; }

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

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  z-index: 200;
}
.skip-link:focus{ left: .5rem; top: .5rem; }

:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ===========================================================
   Decorative staff line (top of page, signature motif)
   =========================================================== */
.staff-line{
  width: 100%;
  height: 18px;
  background: var(--ink);
  overflow: hidden;
}
.staff-line svg{
  width: 200%;
  height: 100%;
  animation: scrollStaff 24s linear infinite;
}
.staff-line line{
  stroke: var(--brass-soft);
  stroke-width: 1;
  opacity: .55;
}
@keyframes scrollStaff{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===========================================================
   Header
   =========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,228,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(22,19,18,.12);
}
.header-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand-mark{
  width: 34px; height: 34px;
  color: var(--green);
  flex-shrink: 0;
}
.brand-mark svg{ width: 100%; height: 100%; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-text em{
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

.main-nav ul{
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a{
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .94rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--brass);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{ width: 100%; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

@media (max-width: 720px){
  .nav-toggle{ display: flex; }
  .main-nav ul{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1rem var(--pad) 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(22,19,18,.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .25s var(--ease);
  }
  .main-nav.open ul{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  /* Volle Bildbreite, zentriert, wie im Dark Mode — Kapelle-Foto als Hintergrund statt Grid-Illustration */
  max-width: none; width: 100%; margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative; overflow: hidden;
  z-index: 1;
  background: var(--paper);
}

.hero-bg{
  display: block;
  position: absolute; inset: 0;
  background-image: url('Kapelle-Master.jpg'); /* hochauflösend 2676×1784 (Hero-Video entfernt 28.09.2026) */
  background-size: cover;
  background-position: center 30%;
  /* natürliche Farben, kein Aufhellungs-/Entsättigungsfilter mehr — Lesbarkeit kommt jetzt über den Textschatten */
  transform: scale(1.15);
  will-change: transform;
}
.hero-bg::after{
  content: '';
  position: absolute; inset: 0;
  /* wie im Dark Mode zum Rand hin ins Papier ausgeblendet */
  background: radial-gradient(ellipse at center, transparent 25%, rgba(250,246,239,.95) 100%);
}

.hero-text-col{
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 860px; width: 100%;
}

.hero-title{
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  overflow: visible;
  width: 100%;
  text-align: center;
  color: #fff;
  margin: .5rem 0 1.25rem;
  text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 4px 10px rgba(0,0,0,.9), 0 8px 24px rgba(0,0,0,.8), 0 16px 48px rgba(0,0,0,.6);
}
.hero-title .line-accent{
  font-style: italic;
  font-weight: 500;
}
.hero-title-sub{
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  color: #e8c86a;
  margin-top: .4rem;
  letter-spacing: .04em;
  text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 4px 10px rgba(0,0,0,.9), 0 8px 24px rgba(0,0,0,.8), 0 16px 40px rgba(0,0,0,.6);
}

/* Initialzustand für Motion-gesteuerte fade-up Elemente; JS hebt dies sofort an */
[data-motion="fade-up"]{
  opacity: 0;
  transform: translateY(22px);
}
.no-js [data-motion="fade-up"]{
  opacity: 1;
  transform: none;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .94rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{
  background: var(--brass);
}
.btn-ghost{
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{
  background: var(--ink);
  color: var(--paper);
}

/* hero instrument illustration — Initialzustände; Motion.dev steuert das Zeichnen via JS */
.hero-figure{
  position: relative;
  z-index: 1;
  justify-self: center;
}
.instrument-art{
  width: clamp(220px, 30vw, 340px);
  height: auto;
}
.horn-body{
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}
.horn-bell{
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  opacity: 0;
}
.horn-bell-inner{
  fill: var(--brass-soft);
  opacity: 0;
}
.valve{
  fill: var(--brass);
  opacity: 0;
  transform-origin: center;
}
.valve-stem{
  stroke: var(--brass);
  stroke-width: 3;
  opacity: 0;
}
.no-js .horn-body,
.no-js .horn-bell,
.no-js .horn-bell-inner,
.no-js .valve,
.no-js .valve-stem{
  opacity: 1;
}

/* ===========================================================
   Stats strip
   =========================================================== */
.strip{
  background: var(--paper-blue);
  color: var(--ink);
  /* Scroll-Effekt wie hkcm.com: Sektion schiebt sich mit abgerundeter Oberkante
     leicht über das Hero-Gruppenfoto darüber. */
  position: relative;
  z-index: 2;
  margin-top: -56px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -24px 48px -24px rgba(0,0,0,.28);
}
@media (max-width: 700px){
  .strip{
    margin-top: -32px;
    border-radius: 20px 20px 0 0;
  }
}
.strip-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.4rem var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 700px){
  .strip-inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem .5rem;
    /* Hero ist min-height:100vh — nach dem ersten Scroll-Screen landet diese Sektion
       oft bündig mit der Viewport-Oberkante, unter dem position:sticky-Header (~64px).
       Extra padding-top verhindert, dass die erste Zeile (98/60) darunter verschwindet. */
    padding-top: 4.5rem;
  }
  .strip-stat{
    width: 45%;
    text-align: center;
  }
  .strip-sep{ display: none; }
}
.strip-num{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--brass);
}
.strip-label{
  display: block;
  font-family: var(--font-mono);
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: .3rem;
}

/* ===========================================================
   Generic section
   =========================================================== */
.section{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
}
.section-alt{
  max-width: none;
  background: var(--paper-dim);
}
.section-alt > *{
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-head{ margin: 0 0 2.5rem; max-width: 60ch; }
/* Nur innerhalb .section-alt (volle Breite, max-width:none) braucht section-head
   eine berechnete margin-left, um auf die gleiche Linie wie normale, bereits
   auf --max-w zentrierte .section-Blöcke zu kommen. Auf .section selbst NICHT
   anwenden — die sind schon korrekt zentriert, ein Zusatz-Offset würde sie
   ein zweites Mal verschieben (das war der vorletzte Fehler).
   Bewusst mit % statt 100vw gerechnet: vw schließt bei manchen Browsern die
   Scrollbar-Breite mit ein, % (relativ zur eigenen Content-Box) nicht — das
   war der Grund für den minimalen Restversatz beim letzten Versuch. */
.section-alt > .section-head{
  margin-left: max(0px, calc(50% + var(--pad) - var(--max-w) / 2));
}
.section-eyebrow{
  font-family: var(--font-mono);
  font-size: .87rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .6rem;
}
.section-head h2{
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
}
.section-intro{
  margin-top: .8rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* Hinweis: Reveal-on-scroll für Karten läuft jetzt über Motion.dev (script.js),
   nicht mehr über CSS-Transitions. Im no-js-Fall bleiben Elemente per
   Inline-Style-Fallback in script.js sofort sichtbar. */

/* ===========================================================
   Termine grid
   =========================================================== */
.termine-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  perspective: 1200px;
  /* Wenn weniger Karten da sind, als Spalten hineinpassen würden, den
     Kartenblock als Ganzes horizontal zentrieren statt linksbündig zu
     lassen (Grid unterstützt das bei auto-fill direkt über justify-content). */
  justify-content: center;
}
.termin-card{
  background: var(--paper);
  border: 1px solid rgba(22,19,18,.14);
  border-radius: 4px;
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.termin-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -16px rgba(22,19,18,.35);
  border-color: var(--brass);
}
.termin-date{
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-mono);
  color: var(--green);
}
.termin-date .d{ font-size: 1.6rem; font-weight: 600; line-height: 1; }
.termin-date .m{ font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.termin-card h3{
  font-size: 1.15rem;
  font-weight: 600;
}
.termin-card p{
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.termin-highlight{
  border-color: var(--brass);
  background: linear-gradient(135deg, rgba(237,41,57,.08), transparent);
}
.termin-highlight .termin-date{ color: var(--ink); }

.termine-status{
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding: 1.6rem 0;
  text-align: center;
}

/* Kalender-Hinzufügen Steuerung pro Termin */
.termin-cal{
  position: relative;
  margin-top: auto;
  padding-top: .4rem;
}
.cal-trigger{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 1px solid rgba(22,19,18,.25);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .83rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .45rem .7rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cal-trigger svg{ width: 14px; height: 14px; flex-shrink: 0; }
.cal-trigger:hover, .cal-trigger[aria-expanded="true"]{
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cal-menu{
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: var(--paper);
  border: 1px solid rgba(22,19,18,.2);
  border-radius: 4px;
  box-shadow: 0 12px 28px -10px rgba(22,19,18,.3);
  min-width: 190px;
  padding: .35rem;
  display: none;
  flex-direction: column;
  gap: .15rem;
}
.cal-menu.open{ display: flex; }
.cal-menu a, .cal-menu button{
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .86rem;
  padding: .5rem .6rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.cal-menu a:hover, .cal-menu button:hover{
  background: var(--paper-dim);
}
.cal-menu svg{ width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }

/* ===========================================================
   Timeline (Chronik) — Observer-Animated Vertical
   =========================================================== */
.timeline__items {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 0.75em;
}
.timeline__item {
  padding: 0 0 1.75em 1.5em;
  position: relative;
}
.timeline__item:before,
.timeline__item:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
}
/* Dot */
.timeline__item:before {
  background-color: var(--brass);
  border-radius: 50%;
  top: 0.25em;
  width: 0.75em;
  height: 0.75em;
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
  z-index: 1;
}
/* Connecting line */
.timeline__item:after {
  background-color: var(--brass);
  top: 0.75em;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0.2;
}
.timeline__item:last-child:after { display: none; }

.timeline__item-time,
.timeline__item-link,
.timeline__item-pub {
  display: block;
  opacity: 0;
  transform: translateX(-0.75em);
  transition:
    opacity 0.35s cubic-bezier(0.65,0,0.35,1),
    transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.timeline__item-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brass);
  line-height: 2;
}
.timeline__item-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.25em;
}
.timeline__item-pub {
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.5;
}

/* Animated in */
.timeline__item--in:before {
  transform: translateX(-50%) scale(1);
}
.timeline__item--in .timeline__item-time,
.timeline__item--in .timeline__item-link,
.timeline__item--in .timeline__item-pub {
  opacity: 1;
  transform: translateX(0);
}

/* Desktop: Jahreszahlen links */
@media (min-width: 768px) {
  .timeline__items {
    margin-left: 14em;
    max-width: 38em;
  }
  .timeline__item-time {
    position: absolute;
    top: 0;
    right: calc(100% + 1.5rem);
    text-align: right;
    width: 13em;
    transform: translateX(0.75em);
  }
  .timeline__item--in .timeline__item-time {
    transform: translateX(0);
  }
}

.verein-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  /* jetzt Teil der Kapelle-Section direkt unter .ueber-inner (kein eigener
     .section-head mehr darüber) — eigener Abstand nach oben nötig */
  margin-top: 3rem;
}
.verein-card{
  padding: 1.6rem;
  border-left: 3px solid var(--green);
  background: var(--paper-dim);
}
.verein-card h3{
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.verein-card p{
  margin: 0;
  font-size: .94rem;
  color: var(--ink-soft);
}

/* ===========================================================
   Kontakt
   =========================================================== */
.kontakt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.kontakt-card{
  background: var(--paper);
  padding: 1.8rem;
  border-radius: 4px;
  border: 1px solid rgba(22,19,18,.14);
}
.kontakt-role{
  font-family: var(--font-mono);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brass);
  margin: 0 0 .3rem;
}
.kontakt-card h3{
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.kontakt-address{
  margin: 0 0 .9rem;
  color: var(--ink-soft);
  font-size: .94rem;
}
.kontakt-link{
  display: block;
  text-decoration: none;
  font-size: .92rem;
  margin-bottom: .3rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.kontakt-link:hover{ border-color: var(--ink); }

.social-row{
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.social-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .94rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.social-link:hover{
  background: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   Brand logo (replaces inline SVG mark)
   =========================================================== */
.brand-logo{
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* ===========================================================
   Musiker — Tabs + Carousel
   =========================================================== */
#musiker{ padding-bottom: 4.5rem; }

.musiker-tabs-wrap{
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin-bottom: 2.5rem;
}
.musiker-tabs{
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid rgba(22,19,18,.12);
  /* immer scrollbar statt umzubrechen — bei 10 Registern reicht die Breite
     erst auf sehr breiten Desktops; ohne overflow-x:auto sprengten die Tabs
     davor die ganze Seitenbreite bis hinunter zu ~820px (nicht nur < 480px) */
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  /* Fade-out an den Rändern — zeigt an, dass seitlich mehr Register liegen
     (sonst nicht erkennbar, dass die Leiste überhaupt scrollbar ist) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.musiker-tabs::-webkit-scrollbar { display: none; }

/* Pfeil-Buttons neben der Tab-Leiste — exakt gleiche Optik wie .carousel-arrow
   (kräftiger 2px-Ring in Akzentfarbe statt kaum sichtbarer Beinahe-Seitenfarbe),
   damit alle Navigations-Pfeile auf der Seite einheitlich wirken. */
.mtab-arrow{
  flex-shrink: 0;
  width: 44px; height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--paper-dim);
  color: var(--brass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.mtab-arrow svg{ width: 18px; height: 18px; pointer-events: none; }
.mtab-arrow:hover{
  background: var(--brass);
  border-color: var(--brass);
  color: var(--paper);
}
.mtab-arrow:disabled{
  opacity: .25;
  cursor: default;
  pointer-events: none;
}
.musiker-tab{
  font-family: var(--font-mono);
  font-size: .94rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75rem 1.4rem;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}
.musiker-tab:hover{ color: var(--ink); }
.musiker-tab.active{
  /* Wie im Dark Mode (dort: satter Gold-Block) — hier ein satter
     Bordeauxrot-Block statt der dünnen Unterstreichung, für vergleichbaren
     Kontrast zwischen aktivem und inaktivem Reiter. */
  background: var(--brass);
  color: var(--paper);
  border-bottom-color: var(--brass);
}

.musiker-register{ display: none; }
.musiker-register.active{ display: block; }

/* Neuigkeiten-Reiter (Berichte/Termine/Facebook/Instagram): alle vier Panels
   liegen im selben Grid-Feld übereinander gestapelt statt per display:none
   ein-/auszublenden — dadurch (a) ein echter Opacity-Crossfade beim Wechsel
   und (b) eine feste Bereichshöhe: Termine (meist der Reiter mit dem meisten
   Inhalt, bis zu 40 Live-Termine) definiert die Höhe, die anderen drei passen
   sich unverändert (keine eigene Größenänderung) in dieselbe Fläche ein.
   Höhere Spezifität als die .musiker-register-Basisregel oben (zwei Klassen
   statt einer), gewinnt also unabhängig von der Reihenfolge im Stylesheet. */
.neuigkeiten-panels{
  display: grid;
  align-items: center;
  position: relative;
}
.neuigkeiten-panels > .musiker-register{
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
  /* Ohne das hier würde jedes gestapelte Panel eine implizite Mindestbreite
     nach seinem UNGESCHRUMPFTEN Inhalt bekommen (min-width:auto-Automatik
     bei Grid-Items) — bei Instagram z.B. mehrere nicht-schrumpfende
     Karussell-Karten (flex:0 0 33%, min-width:240px), die dadurch das ganze
     Grid seitlich aufgesprengt haben. min-width:0 + overflow:hidden zwingt
     das Panel, sich an der Grid-Spaltenbreite zu orientieren statt an
     seinem Inhalt — behebt den seitlichen Überlauf. */
  min-width: 0;
  overflow: hidden;
  will-change: opacity;
  transition: opacity .45s var(--ease);
}
.neuigkeiten-panels > .musiker-register.active{
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce){
  .neuigkeiten-panels > .musiker-register{ transition: none; }
}

/* Carousel shell */
.carousel{ position: relative; }

.carousel-viewport{
  overflow: hidden;
  width: 100%;
}
.carousel-track{
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  cursor: grab;
}
.carousel-track.is-dragging{ cursor: grabbing; }

/* Musician cards */
.musician-card{
  flex: 0 0 calc(33.333% - 1rem);   /* 3 visible on wide screens */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
@media (max-width: 820px){
  .musician-card{ flex: 0 0 calc(50% - .75rem); }  /* 2 visible */
}
@media (max-width: 500px){
  .musician-card{ flex: 0 0 min(260px, 80vw); }     /* 1 visible with peek */
}

.musician-img-wrap{
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-dim);
  border: 1px solid rgba(22,19,18,.1);
}
.musician-img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .45s var(--ease);
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Gruppen-/Register-Foto: Querformat, vollständig sichtbar */
.musician-card--group{
  flex: 0 0 calc(66.666% - .5rem);  /* breiter als eine Person-Card */
}
@media (max-width: 820px){
  .musician-card--group{ flex: 0 0 calc(100% - 0px); }
}
.musician-card--group .musician-img-wrap{
  aspect-ratio: 3 / 2;              /* passt zum nativen 618×412 Seitenverhältnis */
}
.musician-card--group .musician-img-wrap img{
  object-fit: contain;
  object-position: center;
  background: var(--paper-dim);
}
.musician-card:hover .musician-img-wrap img{
  transform: scale(1.05);
}

.musician-name{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  margin: 0;
}
.musician-since{
  font-family: var(--font-mono);
  font-size: .83rem;
  letter-spacing: .04em;
  text-align: center;
  color: var(--ink-soft);
  opacity: .7;
  margin: -.4rem 0 0;
}
[data-theme="dark"] .musician-since{
  color: rgba(var(--dark-text-rgb), .7);
}

/* Controls row: arrow · dots · arrow */
.carousel-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.carousel-arrow{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--paper-dim);
  color: var(--brass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease), border-color .2s var(--ease);
  flex-shrink: 0;
}
.carousel-arrow svg{ width: 18px; height: 18px; pointer-events: none; }
.carousel-arrow:hover{
  background: var(--brass);
  color: var(--paper);
}
.carousel-arrow:disabled{
  opacity: .28;
  cursor: default;
  pointer-events: none;
}

.carousel-dots{
  display: flex;
  align-items: center;
  gap: .55rem;
}
.carousel-dot{
  height: 8px;
  width: 8px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), width .3s var(--ease), border-color .25s var(--ease);
}
.carousel-dot.active{
  width: 26px;
  background: var(--brass);
  border-color: var(--brass);
}

/* ===========================================================
   Musiker-Namensliste (Register ohne Fotos)
   =========================================================== */
.musiker-list {
  list-style: none;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.musiker-list li {
  font-size: .95rem;
  color: var(--ink-soft);
  padding: .5rem .75rem;
  border-left: 2px solid var(--brass);
  line-height: 1.4;
}
.musiker-list-meta {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
  opacity: .7;
}
[data-theme="dark"] .musiker-list li {
  color: rgba(232,232,240,.75);
  border-left-color: #c8a96e;
}

/* ===========================================================
   Fotos & Videos — Zeitraum-Navigationsbanner
   =========================================================== */
.gallery-nav-wrap{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Scrollbarer Pill-Streifen */
.gallery-nav{
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: .45rem;
  padding: .3rem .1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  /* Fade-out an den Rändern → zeigt an, dass mehr Inhalt vorhanden ist */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.gallery-nav::-webkit-scrollbar{ display: none; }

/* Zeitraum-Pill */
.gnav-pill{
  flex-shrink: 0;
  padding: .42rem 1.05rem;
  border-radius: 99px;
  border: 1.5px solid rgba(22,19,18,.22);
  background: transparent;
  font-family: var(--font-mono);
  font-size: .87rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.gnav-pill:hover{
  border-color: var(--ink);
  color: var(--ink);
}
.gnav-pill.active{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Pfeil-Buttons */
.gnav-arrow{
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--paper-dim);
  color: var(--brass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
  z-index: 1;
}
.gnav-arrow svg{ width: 18px; height: 18px; pointer-events: none; }
.gnav-arrow:hover{
  background: var(--brass);
  color: var(--paper);
}
.gnav-arrow:disabled{
  opacity: .25;
  cursor: default;
  pointer-events: none;
}

/* ===========================================================
   Fotos & Videos — Ordner-Karten
   =========================================================== */
.gallery-folders{
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

/* Leerer Zustand (kein Inhalt für gewählten Zeitraum) */
.gallery-empty{
  width: 100%;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  text-align: center;
}
.gallery-empty svg{
  width: 52px; height: 52px;
  opacity: .35;
}
.gallery-empty p{
  margin: 0;
  font-size: .95rem;
  font-style: italic;
}

.folder-card{
  display: flex;              /* Safari: button ohne display:flex/block berechnet Höhe falsch */
  flex-direction: column;
  width: clamp(200px, 28vw, 280px);
  border: none;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  box-shadow: 0 4px 20px -8px rgba(22,19,18,.18);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.folder-card:hover{
  box-shadow: 0 12px 32px -10px rgba(22,19,18,.28);
  transform: translateY(-3px) scale(1.01);
}
.folder-card:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* 3-Bild Mosaik oben */
.folder-mosaic{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 160px;
  gap: 2px;
  background: var(--paper-dim);
  overflow: hidden;
}
/* Ordner mit weniger als 3 Fotos: Grid anpassen statt leeres, einfarbiges Feld zu zeigen */
.folder-mosaic--2{
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.folder-mosaic--2 img:first-child{ grid-row: auto; }
.folder-mosaic--1{
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.folder-mosaic--1 img:first-child{ grid-row: auto; }
.folder-mosaic img{
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: cover;
  display: block;
}
.folder-mosaic img:first-child{
  grid-row: 1 / 3;
}

.folder-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem .8rem;
  gap: .5rem;
}
.folder-name-group{
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex: 1;          /* nimmt verfügbaren Platz; verhindert Kollaps auf 0 */
  min-width: 0;
}
.folder-name{
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-year{
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--brass);
  white-space: nowrap;
}
.folder-count{
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
}

/* ===========================================================
   iOS-App-Store-Overlay (Ordner-Detailansicht)
   =========================================================== */
.folder-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 290;
  opacity: 0;
}

.folder-overlay{
  position: fixed;
  z-index: 300;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Initiale Größe/Position wird per JS gesetzt */
}

.folder-overlay-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem .8rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(22,19,18,.1);
  gap: 1rem;
}
.folder-overlay-title{
  display: flex;
  align-items: baseline;
  gap: .6rem;
  min-width: 0;
}
.folder-overlay-header h3{
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}
.folder-overlay-year{
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--brass);
  white-space: nowrap;
}
.folder-close{
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(22,19,18,.1);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.folder-close:hover{ background: rgba(22,19,18,.2); }

.folder-overlay-grid{
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

/* Kachel-Zeile: immer genau 2 Bilder nebeneinander, gleiche Höhe */
.tile-row{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  /* Keine feste Höhe — ergibt sich aus Bildhöhe + Caption */
}

/* Linke Kachel groß (62 %), rechte klein (38 %) */
.tile-row--left-big  .folder-item:first-child { flex: 62; }
.tile-row--left-big  .folder-item:last-child  { flex: 38; }

/* Rechte Kachel groß (62 %), linke klein (38 %) */
.tile-row--right-big .folder-item:first-child { flex: 38; }
.tile-row--right-big .folder-item:last-child  { flex: 62; }

/* Einzelne Foto-Kachel */
.folder-item{
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22,19,18,.1);
  background: var(--paper);
  min-width: 0;
  /* opacity wird per JS gesetzt (Stagger-Animation) */
}
.folder-item-img{
  height: clamp(120px, 16vw, 200px); /* feste Bildhöhe → gleich für beide Kacheln */
  flex-shrink: 0;
  overflow: hidden;
  background: var(--paper-dim);
}
.folder-item-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.folder-item:hover .folder-item-img img{
  transform: scale(1.05);
}

/* Text-Platzhalter — immer sichtbar unter jedem Foto */
.folder-item-caption{
  padding: .55rem .7rem .6rem;
  background: var(--paper);
  border-top: 1px solid rgba(22,19,18,.07);
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.caption-placeholder{
  font-family: var(--font-body);
  font-size: .85rem;
  color: rgba(22,19,18,.6);
  font-style: italic;
  margin: 0;
  user-select: none;
}

/* Lightbox: Bild vergrößert im Vordergrund */
.lightbox{
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(10,8,7,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}
.lightbox img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
}
.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover{ background: rgba(255,255,255,.32); }

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover{ background: rgba(255,255,255,.3); }
.lightbox-prev{ left: 12px; }
.lightbox-next{ right: 12px; }
@media (max-width: 600px){
  .lightbox-nav{ width: 38px; height: 38px; }
  .lightbox-prev{ left: 6px; }
  .lightbox-next{ right: 6px; }
}

/* ===========================================================
   Aktuelles / Instagram Carousel (V1)
   =========================================================== */
.section-alt{ background: var(--paper-dim); }

.ig-carousel-wrap{
  display: flex;
  align-items: center;
  gap: .75rem;
  /* Kein eigenes max-width/padding mehr: früher direktes Kind einer
     .section-alt (volle Breite, brauchte eigene Zentrierung+Innenabstand),
     jetzt Teil eines Neuigkeiten-Reiters innerhalb einer normal gepolsterten
     .section — der Innenabstand kommt jetzt von der Section selbst, wie bei
     den Geschwister-Reitern (.nc-track, .fb-feed, .termine-grid). */
}
.ig-track-outer{
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.ig-track{
  display: flex;
  gap: 1.25rem;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.ig-card{
  flex: 0 0 calc(33.333% - .84rem);
  min-width: 240px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22,19,18,.08);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.ig-card:hover{
  box-shadow: 0 6px 24px rgba(22,19,18,.13);
  transform: translateY(-3px);
}
.ig-card-link{
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.ig-card-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Live-Beiträge (ig-proxy.php) sind oft hochformatig (4:5) → quadratisch zuschneiden */
.ig-card-img img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-card-img svg{ width: 60%; height: 60%; }
.ig-card-img--dark{ background: #e8e0d0; }
.ig-card-img--warm{ background: #fdf0e0; }
.ig-card-body{
  padding: 1rem 1.1rem 1.2rem;
}
.ig-card-handle{
  font-family: var(--font-mono);
  font-size: .83rem;
  letter-spacing: .05em;
  color: var(--brass);
  margin: 0 0 .45rem;
}
.ig-card-text{
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* CTA Card */
.ig-card--cta{ background: var(--ink); }
.ig-card--cta .ig-cta-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
  height: 100%;
  min-height: 260px;
  text-decoration: none;
}
.ig-cta-icon{
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ig-cta-icon svg{ width: 30px; height: 30px; }
.ig-cta-label{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.ig-cta-handle{
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
}

/* Arrows */
.ig-arrow{
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--paper-dim);
  color: var(--brass);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.ig-arrow:hover{
  background: var(--brass);
  color: var(--paper);
}
.ig-arrow:disabled{
  opacity: .28;
  cursor: default;
  pointer-events: none;
}

/* Dots */
.ig-dots{
  display: flex;
  justify-content: center;
  gap: .45rem;
  /* margin-left/right explizit statt Shorthand — sonst überschreibt dies
     das zentrierende margin-left/right:auto von .section-alt > * (gleiche
     Spezifität, diese Regel kommt im Cascade später) und die Punkte kleben links */
  margin: 1.4rem auto 0;
}
.ig-dot{
  width: 7px; height: 7px;
  min-width: 7px; min-height: 7px;
  border-radius: 50%;
  background: rgba(22,19,18,.2);
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.ig-dot.active{
  background: var(--brass);
  transform: scale(1.3);
}

/* Footer CTA link */
.ig-footer{
  text-align: center;
  margin-top: 2rem;
}
.btn-brass{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--brass);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 1.6rem;
  border-radius: 99px;
  transition: background .2s, transform .15s;
}
.btn-brass:hover{
  background: #c0001f;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 680px) {
  .ig-card{
    flex: 0 0 80%;
    min-width: 0;
  }
  .ig-arrow{ display: none; }
}

/* ===========================================================
   Mobile-Optimierungen (≤ 600 px)
   =========================================================== */

/* Hero: Instrument auf kleinen Screens ausblenden */
@media (max-width: 600px) {
  .hero-figure { display: none; }
  .hero-title  { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* Stats-Strip: auf sehr kleinen Screens einzeilig */
@media (max-width: 400px) {
  .strip-stat{ width: 42%; }
}

/* Termine: Kalender-Menü klappt nach UNTEN wenn kein Platz oben */
@media (max-width: 480px) {
  .cal-menu{
    bottom: auto;
    top: calc(100% + 6px);
  }
  .termine-grid{ grid-template-columns: 1fr; }
}

/* Musiker-Tabs scrollen jetzt immer (siehe Basisregel oben) — hier nichts mehr nötig. */

/* Instagram-Karussell: fast Vollbreite auf Phone */
@media (max-width: 480px) {
  .ig-card { flex: 0 0 88%; }
  .ig-card-text { font-size: .82rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Touch-Targets: mind. 44 × 44 px für alle interaktiven Elemente */
@media (hover: none) {
  .btn, .cal-trigger, .nav-toggle, .ig-arrow { min-height: 44px; }
  /* Hover-Effekte auf Karten deaktivieren (kein Hover auf Touch) */
  .termin-card:hover,
  .musician-card:hover{ transform: none; box-shadow: none; }
}

/* Fotos-Ordner-Overlay: volle Breite/Höhe ohne Desktop-Max-Width */
@media (max-width: 600px) {
  .folder-overlay{
    width: 100%;
    height: 90dvh;
    border-radius: 1rem 1rem 0 0;
    bottom: 0;
    top: auto;
    left: 0;
    transform: none;
  }
  .folder-overlay.open{ transform: none; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{
  background: var(--paper-blue);
  color: var(--ink);
  border-top: 1px solid rgba(22,19,18,.12);
}
.footer-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.4rem var(--pad);
  text-align: center;
}
.footer-inner p{ margin: 0 0 .4rem; }
.footer-desc, .footer-copy{ color: var(--ink-soft); }
.footer-meta{
  font-family: var(--font-mono);
  font-size: .87rem;
  opacity: .6;
}
.footer-brand{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: .8rem;
}
.footer-rr-logo{
  height: 22px;
  width: auto;
  opacity: .32;
  transition: opacity .25s var(--ease);
}
.footer-rr-logo:hover{ opacity: .7; }

/* ===========================================================
   Nachrichten — News-Karusell mit Expand-Panel
   =========================================================== */
.nc-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  /* "safe" zentriert nur, wenn alle Karten hineinpassen — überlaufen sie
     (scrollbare Reihe), bleibt es linksbündig, statt den Anfang der Liste
     beim Scrollen unerreichbar zu machen (bekannte Falle von normalem
     justify-content:center bei überlaufendem Flex-Inhalt). */
  justify-content: safe center;
}
.nc-track::-webkit-scrollbar { display: none; }

.nc-card {
  flex: 0 0 220px;
  background: var(--paper);
  border: 1px solid rgba(22,19,18,.14);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  scroll-snap-align: start;
}
.nc-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}
.nc-card.nc-card--active {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px var(--brass);
}
.nc-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-dim);
}
.nc-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.nc-card:hover .nc-card-img img { transform: scale(1.06); }

.nc-card-body { padding: .8rem 1rem 1rem; }
.nc-card-tag {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .3rem;
}
.nc-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-card-date {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-soft);
}

/* Expand-Panel unterhalb der Karten */
.nc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.nc-panel.nc-panel--open { max-height: 900px; }

.nc-panel-inner {
  margin-top: 1.25rem;
  border: 1px solid rgba(22,19,18,.14);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 680px) {
  .nc-panel-inner { grid-template-columns: 1fr; }
  .nc-panel-hero { min-height: 0; aspect-ratio: 16/9; }
}

.nc-panel-hero {
  min-height: 220px;
  overflow: hidden;
  background: var(--paper-dim);
}
.nc-panel-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nc-panel-content {
  padding: 1.5rem 1.75rem 1.5rem;
  position: relative;
}
.nc-panel-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(22,19,18,.2);
  background: var(--paper-dim);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.nc-panel-close:hover { background: var(--ink); color: var(--paper); }

.nc-panel-tag {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .4rem;
}
.nc-panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 2.5rem .5rem 0;
}
.nc-panel-meta {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.nc-panel-text {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.1rem;
}
/* Bericht-Text aus Berichte/…/bericht.md (berichte.php): Absätze,
   Zwischenüberschriften, Aufzählungen, Links */
.nc-panel-text p { margin: 0 0 .8em; }
.nc-panel-text p:last-child { margin-bottom: 0; }
.nc-panel-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.1em 0 .4em;
}
.nc-panel-text ul { margin: 0 0 .8em; padding-left: 1.2em; }
.nc-panel-text a { color: var(--brass); }
.nc-track > .fb-feed-empty { width: 100%; }
.nc-panel-photos {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.nc-panel-photos img {
  width: calc(33.333% - .4rem);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
@media (max-width: 480px) {
  .nc-panel-photos img { width: calc(50% - .3rem); }
}

/* Foto-Lightbox für Berichte-Panel */
#nc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(10,8,7,.93);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
#nc-lightbox.nc-lb--open {
  display: flex;
}
#nc-lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
#nc-lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
#nc-lb-close:hover { background: rgba(255,255,255,.3); }

/* Foto-Thumbnails im Panel — Cursor zeigt Klickbarkeit */
.nc-panel-photos img { cursor: zoom-in; }

/* Berichte — Like + Teilen Action-Bar */
.nc-panel-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22,19,18,.1);
  position: relative;
}
.nc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 20px;
  border: 1px solid rgba(22,19,18,.18);
  background: var(--paper-dim);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.nc-action-btn:hover {
  background: var(--paper);
  border-color: var(--brass);
  color: var(--ink);
}
.nc-action-btn.nc-liked {
  background: rgba(200,169,110,.12);
  border-color: var(--brass);
  color: var(--brass);
}
.nc-action-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.nc-liked-icon  { display: none; }
.nc-action-btn.nc-liked .nc-default-icon { display: none; }
.nc-action-btn.nc-liked .nc-liked-icon  { display: block; }
.nc-share-wrap { position: relative; }
.nc-share-menu {
  position: absolute;
  bottom: calc(100% + .4rem);
  left: 0;
  min-width: 168px;
  background: var(--paper);
  border: 1px solid rgba(22,19,18,.14);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 200;
}
.nc-share-menu[hidden] { display: none; }
.nc-share-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem .95rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s;
}
.nc-share-item:hover { background: var(--paper-dim); }
.nc-share-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-soft); }

/* ===========================================================
   Facebook Neuigkeiten-Feed
   =========================================================== */
.fb-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  justify-content: center;
}
.fb-post {
  background: var(--paper);
  border: 1px solid rgba(22,19,18,.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fb-post:hover {
  border-color: rgba(22,19,18,.22);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.fb-post-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1rem .6rem;
}
.fb-page-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-dim);
  flex-shrink: 0;
}
.fb-page-name {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .1rem;
}
.fb-post-date {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-soft);
}
.fb-post-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-dim);
}
.fb-post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.fb-post:hover .fb-post-img img { transform: scale(1.04); }
.fb-post-multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-dim);
}
.fb-post-multi img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fb-post-body { padding: .85rem 1rem; flex: 1; }
.fb-post-text {
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-post-text.fb-expanded { -webkit-line-clamp: unset; }
.fb-expand-btn {
  background: none; border: none; padding: .3rem 0 0;
  font-family: var(--font-body); font-size: .82rem;
  color: var(--brass); cursor: pointer; font-weight: 500;
}
.fb-expand-btn:hover { text-decoration: underline; }
.fb-post-footer {
  padding: .55rem 1rem .85rem;
  border-top: 1px solid rgba(22,19,18,.08);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.fb-stat {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .83rem;
  color: var(--ink-soft);
}
.fb-stat svg { width: 13px; height: 13px; }
.fb-spacer { flex: 1; }
.fb-post-link {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--brass);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.fb-post-link:hover { text-decoration: underline; }
.fb-post-share-bar {
  padding: .4rem 1rem .7rem;
  display: flex;
  gap: .5rem;
}
.fb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .75rem;
  border-radius: 16px;
  border: 1px solid rgba(22,19,18,.15);
  background: var(--paper-dim);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
  text-decoration: none;
}
.fb-share-btn:hover {
  background: var(--paper);
  border-color: var(--brass);
  color: var(--ink);
}
.fb-share-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.fb-feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
  font-size: .9rem;
}
.fb-more-link {
  text-align: center;
  margin-top: 1.5rem;
}
.fb-more-link a {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: var(--brass);
  text-decoration: none;
}
.fb-more-link a:hover { text-decoration: underline; }
