/*
 * Talsounds – eigene Anpassungen
 * Wird als LETZTE Stylesheet-Datei geladen und überschreibt das Template.
 * Eigene Änderungen am besten hier eintragen statt in main_styles.css.
 */

/* Sprungmarken (Termine, Kontakt …) nicht mehr unter der festen Kopfzeile verstecken */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Bilder nie breiter als der Bildschirm */
img {
  max-width: 100%;
  height: auto;
}

/* Links im Fließtext erkennbar machen (z. B. die E-Mail-Adresse) */
.contact a.mail-link {
  color: #c27be0;
  text-decoration: underline;
  word-break: break-all;
}

/* Social-Icons im Footer: umbrechen statt aus dem Bild laufen */
.social {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
}
.social .item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Tastaturbedienung: sichtbarer Fokus */
a:focus-visible,
button:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid #c27be0;
  outline-offset: 3px;
}
.hamburger {
  cursor: pointer;
}

/* Menüleiste beim Scrollen: transparenter, Logo kleiner, damit es in die Leiste passt */
.header.scrolled {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.logo img {
  transition: height 400ms ease;
}
.header.scrolled .logo img {
  height: 52px;
  width: auto;
}

/* Video auf Desktop/Tablet immer über die volle Breite
   (unabhängig von der Pixelgröße der Videodatei) */
@media (min-width: 768px) {
  /* Höhe richtet sich nach dem Video – keine Lücke, keine Überlappung */
  .video,
  .video .video_container,
  .video .home_container_inner {
    height: auto;
  }
  /* Video direkt unter die Menüleiste (101 px hoch) statt 172 px Abstand */
  .video .video_container {
    padding-top: 101px;
  }
  /* Kein schwarzer Rand unter dem Video */
  .video {
    padding-bottom: 0;
  }
  .video .bg-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
}

/* Grauer Balken zwischen Video und Logo-Bereich weg,
   und keine graue Umrandung um das Video */
.video .video_container {
  border: 0;
}
#verein.box {
  padding-top: 0;
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  /* Weniger Leerraum zwischen Überschrift und Inhalt */
  .blog {
    padding-top: 24px;
  }
  .gap {
    margin-bottom: 40px;
  }
  .box {
    padding-top: 30px;
  }

  /* Zierlinien neben den Überschriften kürzer, damit nichts übersteht */
  .fancy span:before,
  .fancy span:after {
    width: 40px;
  }

  /* Social-Icons kompakter */
  .social .item {
    padding: 8px 10px;
    width: 30%;
    text-align: center;
  }
  .social .item img {
    width: 52px;
    height: 52px;
  }

  /* Footer-Navigation etwas kleiner */
  .navi {
    font-size: 17px;
  }

  /* Copyright-Zeile darf umbrechen */
  .copyright_bar {
    height: auto;
    padding: 10px 15px;
  }
  .copyright_bar span {
    line-height: 1.6;
    font-size: 13px;
  }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   Logo-Block (schwarz, unter dem Laufband)
   ========================================================= */
/* Das Template schob den Logo-Block nach links – jetzt exakt mittig */
#verein .single_info {
  width: 100%;
  left: 0;
}
/* Das Logo ist zugleich die Hauptüberschrift der Seite (für Google & Screenreader) */
.ts-logo-titel {
  margin: 0;
  padding: 0;
  line-height: 0;
  text-align: center;
}
.ts-logo-titel img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
/* Höhe des schwarzen Logo-Blocks – hier anpassen:
   padding = schwarzer Rand über und unter dem Logo,
   max-width = Breite des Logos */
#verein .single {
  padding-top: 50px;      /* vorher 102px */
  padding-bottom: 50px;   /* vorher 122px */
}
#verein .ts-logo-titel img {
  max-width: 260px;       /* vorher 359px */
}
@media (max-width: 767px) {
  #verein .single {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* Bild und Text rücken direkt an den Logo-Block heran */
#verein .ts-verein-inhalt {
  padding-top: 70px;
}
@media (max-width: 767px) {
  #verein .ts-verein-inhalt {
    padding-top: 40px;
  }
}

/* =========================================================
   Laufband mit den kommenden Konzerten (unter dem Video)
   ========================================================= */
.ts-laufband {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  background: #8314a5;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.ts-laufband[hidden] {
  display: none;
}
.ts-laufband:hover,
.ts-laufband:focus {
  color: #fff;
  text-decoration: none;
}
.ts-laufband__spur {
  display: inline-flex;
  animation: ts-laufband var(--ts-dauer, 30s) linear infinite;
}
.ts-laufband__gruppe {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100vw;          /* auch mit nur einem Konzert ein durchgehendes Band */
  justify-content: space-around;
}
.ts-laufband__eintrag {
  padding: 13px 0;
  font-family: 'Futura', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.ts-laufband__label {
  color: #e8c4f5;
}
.ts-laufband__stern {
  margin: 0 28px;
  color: #e2b8f2;
}
/* Anhalten beim Darüberfahren, per Tastatur-Fokus oder Antippen */
.ts-laufband:hover .ts-laufband__spur,
.ts-laufband:focus-visible .ts-laufband__spur,
.ts-laufband.ts-pausiert .ts-laufband__spur {
  animation-play-state: paused;
}
.ts-laufband:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
@keyframes ts-laufband {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .ts-laufband__eintrag {
    font-size: 15px;
    padding: 11px 0;
  }
  .ts-laufband__stern {
    margin: 0 20px;
  }
}
/* „Bewegung reduzieren“ im System: stehender, umbrechender Text statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .ts-laufband {
    white-space: normal;
    text-align: center;
    padding: 4px 16px;
  }
  .ts-laufband__spur {
    animation: none;
    display: block;
  }
  .ts-laufband__gruppe {
    display: inline;
    min-width: 0;
  }
  .ts-laufband__gruppe[aria-hidden="true"] {
    display: none;
  }
  .ts-laufband__eintrag {
    display: block;
    padding: 6px 0;
  }
  .ts-laufband__stern {
    display: none;
  }
}

/* =========================================================
   Konzertkarten
   ========================================================= */
/* Datumskasten gehört zur Bildspalte – dadurch steht die ganze Karte
   (Datum + Bild + Text) mittig unter der Überschrift „Konzerte“ */
@media (min-width: 768px) {
  #konzerte-liste .blog_post {
    margin-left: 78px;
  }
}
/* Text neben dem Bild im Blocksatz (ohne automatische Silbentrennung) */
#konzerte-liste .sidebar_list p {
  text-align: justify;
  -webkit-hyphens: manual;   /* keine automatische Silbentrennung */
  hyphens: manual;
}
/* Überschrift der Band bündig mit der Oberkante des Bildes */
#konzerte-liste .sidebar_section h3 {
  margin-top: 0;
  padding-top: 0;
  line-height: 1;
}
@media (min-width: 992px) {
  #konzerte-liste .col-lg-5 {
    padding-left: 30px;
  }
}
@media (max-width: 991px) {
  #konzerte-liste .sidebar_section h3 {
    padding-top: 18px;
  }
}

/* Etwas weniger Abstand zwischen Abschnittsüberschrift und Inhalt (Desktop) */
@media (min-width: 768px) {
  .blog {
    padding-top: 50px;
  }
}

/* =========================================================
   Abschnitt „Talsounds e.V.“ (Wer wir sind) – wie die Konzertkarten
   ========================================================= */
/* Text im Blocksatz (ohne automatische Silbentrennung) */
#verein .sidebar_list p {
  text-align: justify;
  -webkit-hyphens: manual;   /* keine automatische Silbentrennung */
  hyphens: manual;
}
/* Text beginnt bündig mit der Oberkante des Bildes */
#verein .sidebar,
#verein .sidebar_section,
#verein .sidebar_list,
#verein .sidebar_list > p:first-child {
  margin-top: 0;
  padding-top: 0;
}
#verein .blog_post_image img {
  display: block;
}
@media (min-width: 992px) {
  #verein .blog .col-lg-6 + .col-lg-6 {
    padding-left: 30px;
  }
  /* Zeilenabstand ausgleichen, damit die erste Textzeile optisch bündig mit dem Bild ist */
  #verein .sidebar_list > p:first-child {
    margin-top: -7px;
  }
}
@media (max-width: 991px) {
  #verein .sidebar {
    margin-top: 24px;
  }
}

/* =========================================================
   Newsletter (Brevo-Formular) im Talsounds-Design
   Die ids/Klassen kommen von Brevo – nur das Aussehen wird hier angepasst.
   ========================================================= */
/* Spam-Schutzfeld immer unsichtbar */
.ts-newsletter .input--hidden {
  display: none !important;
}

.sib-form.ts-newsletter {
  padding: 0;
  background: transparent;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
}
.ts-newsletter #sib-container {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;   /* gleiche Farbe wie die Seite */
  border: 0;
  border-radius: 0;
  text-align: left;
  direction: ltr;
}
.ts-newsletter #sib-container .sib-form-block {
  padding: 0 0 18px;
}
.ts-newsletter #sib-container .form__label-row,
.ts-newsletter #sib-container .entry__choice {
  margin: 0;
  padding: 0;
}

/* Überschrift & Einleitung */
.ts-newsletter .ts-newsletter__titel {
  margin: 0 0 8px;
  font-family: 'Futura', sans-serif;
  font-size: 24px;           /* wie „Unterstützer gesucht“ */
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}
.ts-newsletter .ts-newsletter__text {
  margin: 0 0 16px;
  font-family: 'Futura', sans-serif;
  font-size: 15px;           /* wie der Text links */
  line-height: 28px;
  font-weight: 700;
  color: #fff;
}
.ts-newsletter .ts-newsletter__klein {
  margin: 8px 0 0;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #9a9aa0;
}
.ts-newsletter a {
  color: #c27be0;
  text-decoration: underline;
}
.ts-newsletter a:hover {
  color: #fff;
}

/* Beschriftungen */
.ts-newsletter .ts-label {
  display: block;
  margin: 0 0 6px;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
}

/* Eingabefelder */
.ts-newsletter #sib-container .entry__field {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ts-newsletter #sib-container input.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 16px;          /* 16 px verhindert das automatische Zoomen auf dem iPhone */
  color: #fff;
  background: #2a2a2d;
  border: 1px solid #3d3d42;
  border-radius: 3px;
  box-shadow: none;
  outline: none;
  transition: border-color 200ms ease;
}
.ts-newsletter #sib-container input.input::placeholder {
  color: #8a8a90;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  text-align: left;
}
.ts-newsletter #sib-container input.input:focus {
  border-color: #c27be0;
}
.ts-newsletter #sib-container .entry_errored input.input {
  border-color: #ff6b6b;
}

/* Fehlermeldungen unter den Feldern */
.ts-newsletter #sib-container .entry__error {
  margin-top: 6px;
  padding: 0;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #ff8a8a;
  background: transparent;
  border: 0;
}

/* Checkbox: die echte Checkbox in Lila statt der Brevo-Grafik */
.ts-newsletter .ts-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-family: 'Futura', sans-serif;
  font-size: 15px;
  line-height: 28px;
  color: #fff;
  cursor: pointer;
}
.ts-newsletter #sib-container .ts-checkbox input.input_replaced {
  position: static;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  opacity: 1;
  accent-color: #8314a5;
  cursor: pointer;
}
.ts-newsletter #sib-container .ts-checkbox .checkbox {
  display: none;
}

/* Absende-Button wie die übrigen Buttons der Seite */
.ts-newsletter #sib-container .ts-newsletter__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 161px;
  height: 46px;
  padding: 0 24px;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background: #8314a5;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease;
}
.ts-newsletter #sib-container .ts-newsletter__button:hover {
  background: #9b2bc0;
}
.ts-newsletter #sib-container .ts-newsletter__button svg.sib-hide-loader-icon {
  display: none;
}
.ts-newsletter #sib-container .ts-newsletter__button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Erfolgs- und Fehlermeldung nach dem Absenden */
.ts-newsletter .ts-meldung {
  max-width: 540px;
  margin: 0 0 16px;
  padding: 14px 18px;
  font-family: 'Futura', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  border: 0;
  border-left: 4px solid;
  border-radius: 3px;
}
.ts-newsletter .ts-meldung--erfolg {
  color: #fff;
  background: #2b1d33;
  border-left-color: #8314a5;
}
.ts-newsletter .ts-meldung--fehler {
  color: #fff;
  background: #3a1f22;
  border-left-color: #ff6b6b;
}
.ts-newsletter .sib-form-message-panel__text {
  justify-content: flex-start;
}

@media (max-width: 991px) {
  /* untereinander: etwas Abstand zum Text darüber */
  .ts-newsletter #sib-container {
    margin-top: 40px;
  }
}
@media (max-width: 767px) {
  .ts-newsletter #sib-container .ts-newsletter__button {
    width: 100%;
  }
}

/* =========================================================
   Impressum & Datenschutz
   ========================================================= */
.ts-pflichtseite .single_info {
  width: 100%;
  left: 0;
}
.ts-pflichtseite .single_image img {
  width: 70%;
  max-width: 260px;
  height: auto;
}
.ts-pflichtseite .single_text a {
  color: #c27be0;
}

/* =========================================================
   Fotogalerie (galerie.html)
   ========================================================= */
.ts-galerie {
  padding: 140px 0 80px;    /* Platz für die feste Menüleiste */
  background: #202021;
}
.ts-galerie__hinweis {
  margin: 40px 0;
  font-size: 16px;
  text-align: center;
  color: #d0d0d4;
}

/* Übersicht: ein Album pro Konzert */
.ts-alben {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ts-album__link {
  display: block;
  color: #fff;
  text-decoration: none;
}
.ts-album__link:hover,
.ts-album__link:focus {
  color: #fff;
  text-decoration: none;
}
.ts-album__bild {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2a2a2d;
}
.ts-album__bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 400ms ease;
}
.ts-album__link:hover .ts-album__bild img,
.ts-album__link:focus-visible .ts-album__bild img {
  transform: scale(1.04);
}
/* Datumskasten wie bei den Konzertkarten */
.ts-album__datum {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 84px;
  background: #8314a5;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}
.ts-album__datum span:nth-child(2) {
  font-size: 24px;
}
.ts-album__titel {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.3;
}
.ts-album__info {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #a8a8ae;
}

/* Ein Album */
.ts-albumkopf {
  margin: -10px 0 30px;
  text-align: center;
}
.ts-albumkopf__zurueck {
  display: inline-block;
  margin-bottom: 10px;
  color: #c27be0;
  font-size: 15px;
}
.ts-albumkopf__zurueck:hover {
  color: #fff;
}
.ts-albumkopf__info {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #d0d0d4;
}
.ts-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ts-foto {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #2a2a2d;
  cursor: zoom-in;
}
.ts-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 200ms ease;
}
.ts-foto:hover img {
  opacity: 0.85;
}
.ts-foto:focus-visible {
  outline: 2px solid #c27be0;
  outline-offset: 2px;
}

/* Großansicht */
.ts-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.97);
}
.ts-lightbox[hidden] {
  display: none;
}
.ts-lightbox__bild {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 60px 70px;
}
.ts-lightbox__bild img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ts-lightbox__zaehler {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #a8a8ae;
}
.ts-lightbox__knopf {
  position: absolute;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.ts-lightbox__knopf:hover,
.ts-lightbox__knopf:focus-visible {
  opacity: 1;
  color: #c27be0;
}
.ts-lightbox__zu {
  top: 8px;
  right: 10px;
}
.ts-lightbox__zurueck,
.ts-lightbox__weiter {
  top: 50%;
  transform: translateY(-50%);
}
.ts-lightbox__zurueck { left: 8px; }
.ts-lightbox__weiter { right: 8px; }
body.ts-lightbox-offen {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ts-galerie {
    padding-top: 110px;
  }
  .ts-alben {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ts-fotos {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .ts-lightbox__bild {
    padding: 50px 0;
  }
  .ts-lightbox__zurueck,
  .ts-lightbox__weiter {
    top: auto;
    bottom: 4px;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts-album__bild img { transition: none; }
}
