/* Takt-Leiste am unteren Rand (Erweiterung 2026).
   Eigene Datei, damit styles.css / styles.less vom Programmierer unberuehrt bleiben. */
/* Hoehe folgt dem Seitenverhaeltnis der Grafik (ca. 4:1), hoechstens 35 % des Fensters */
:root { --takte-hoehe: min(calc((100vw - 48px) / 4.05 + 24px), 35vh); }

/* Der Bereich fuer die Stimmgruppen endet ueber der Leiste,
   damit die mittige Anordnung nichts verdeckt. */
body { bottom: var(--takte-hoehe); }

.takte {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--takte-hoehe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #fff;
  border-top: 1px solid #d6e2f0;
}
.takte img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Platzhalter, solange assets/img/takte.png fehlt */
.takte .platzhalter {
  display: none;
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  border: 2px dashed #9ebedf;
  border-radius: 8px;
  color: #6089b5;
  font-size: 14px;
}
.takte.ohne-grafik img { display: none; }
.takte.ohne-grafik .platzhalter { display: flex; }

/* Schmale Bildschirme: Seite scrollt, unten Luft lassen */
@media screen and (max-width: 1269px) {
  body { bottom: 0; }
  .voice-groups { padding-bottom: calc(var(--takte-hoehe) + 20px); }
}
