/* =========================================================
   weiberXXang – eigene Anpassungen (user.css)
   ========================================================= */

/* Umschaltpunkte (Bootstrap/Cassiopeia):
   sm 576px · md 768px · lg 992px · xl 1200px · xxl 1400px */

/* --- Schrift "Inter" (variable Schrift), lokal vom eigenen Server ---
   Dateien in media/templates/site/cassiopeia_extended/fonts/:
   inter.css, InterVariable.woff2, InterVariable-Italic.woff2
   WICHTIG: @import muss die erste Anweisung der Datei bleiben
   (nur Kommentare dürfen davor stehen).
   Im Template-Stil (Tab "Schriften") die Schriftart auf "Keine" stellen. */
@import url("fonts/inter.css");
 
:root {
  --cassiopeia-font-family-body: "InterVariable", sans-serif;
  --cassiopeia-font-family-headings: "InterVariable", sans-serif;
  --cassiopeia-font-weight-normal: 400;
  --cassiopeia-font-weight-headings: 700;
}
/* --- Gruppenfoto in der Position "banner" (volle Breite) --- */
.container-banner img {
  display: block;
  width: 100%;
  height: 65vh;
  max-height: 720px;
  object-fit: cover;
  object-position: center 30%; /* 2. Wert verschiebt den Ausschnitt nach oben/unten */
}

/* --- Position "main-bottom": Module paarweise nebeneinander ---
   Unter 992px Breite stehen sie wie gewohnt untereinander. */
@media (min-width: 992px) {
  .site-grid > .container-component {
    display: grid;
/*    grid-template-columns: repeat(2, minmax(0, 1fr));*/
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 3rem;
    align-content: start;
  }

  /* alles andere im Inhaltsbereich bleibt in voller Breite */
  .container-component > * {
    grid-column: 1 / -1;
  }

  /* Module in main-bottom: je eine halbe Spalte */
  .container-component > .main-bottom {
    grid-column: auto;
  }

  /* ungerade Anzahl: das letzte Modul wird über die volle Breite gezogen */
  .container-component > :not(.main-bottom) + .main-bottom:nth-last-child(odd) ~ .main-bottom:last-child {
    grid-column: 1 / -1;
  }
}

/* Footer */
footer.footer {
  border-top-color: var(--headerbg);
  border-top-style: solid;
  border-top-width: 1px;
}

.footer .grid-child {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Header */
header > div.grid-child.container-nav {
  padding-top: 0px;
  padding-bottom: 8px;
}

/* Logo Background */
header > div:nth-child(1) {
  background-color: rgb(0, 0, 0)
}

/* --- Seite "Unsere Lieder" (Seitenklasse xxsounds):
   Modul in Position "main-top" rechts, der Blog-Text umfließt es.
   Unter 992px steht das Bild über dem Text. --- */
@media (min-width: 992px) {
  .xxsounds .site-grid > .container-component {
    display: block;
  }
 
  .xxsounds .container-component > .main-top {
    float: right;
    width: 532px;          /* Breite des Bildes samt Bildunterschrift */
    max-width: 532px;    /* höchstens ca. 350 px */
    margin: 0 0 1rem 2rem; /* Abstand: unten 1rem, links zum Text 2rem */
    margin-top: 1.5em;
  }
 
  .xxsounds .blog-items,
  .xxsounds .blog-item {
    display: block;
    overflow: visible;
  }
}
 
.xxsounds .container-component > .main-top img {
  max-width: 100%;
  height: auto;
}

/* Embedded Weiber menu */
div.weiber-menu > nav {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Hide buttons in Archive */
.xxgalerie div.ic-top-buttons > div.ic-buttons {
  display: none;
}

/* Format iCagenda images */
#icagenda .ic-box-date {
  background-size: contain;
  background-color: transparent;
}

/* Format RIE images */
.random_image_extended #slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

/* Kontaktformular: alle Felder einheitlich weiß mit dunkler Schrift */
.com-contact__form .form-control,
.com-contact__form .form-control:focus {
  background-color: #fff;
  color: #212529;
}
.com-contact__form .form-control:-webkit-autofill {
  -webkit-text-fill-color: #212529;
  box-shadow: 0 0 0 1000px #fff inset;
}
.com-contact__form .form-control:autofill {
  box-shadow: 0 0 0 1000px #fff inset;
}

/* Kontaktformular: Checkboxen weiß mit dunklem Haken */
.com-contact__form .form-check-input[type=checkbox] {
  background-color: #fff;
  border-color: #fff;
}
.com-contact__form .form-check-input[type=checkbox]:checked {
  background-color: #fff;
  border-color: #fff;
  --form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* Kontaktformular: "Eine Kopie dieser E-Mail erhalten" rechts neben der Checkbox */
.com-contact__form .control-group:has(#jform_contact_email_copy) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
}
.com-contact__form .control-group:has(#jform_contact_email_copy) > * {
  margin: 0;
  padding: 0;
  width: auto;
}
.com-contact__form .control-group:has(#jform_contact_email_copy) .form-check {
  margin-right: 0;
}

/* iCagenda: Kategorie-Etiketten (Konzert, Auftritt …) lesbar machen
   Ursache: "#icagenda a { color: #878787; }" im Theme xx_rounded färbt
   die Schrift auf den farbigen Etiketten grau. */

/* Liste (Schee war's / Termine): weiße Schrift, Kategoriefarbe 20 % dunkler */
#icagenda a.ic-title-cat-btn,
#icagenda a.ic-title-cat-btn:hover,
#icagenda a.ic-title-cat-btn:focus {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
}
#icagenda a.ic-title-cat-btn:hover,
#icagenda a.ic-title-cat-btn:focus {
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .35);
}

/* Veranstaltungsseite: Kategorie als gleiches Etikett statt farbiger Schrift */
#icagenda .ic-details-cat {
  display: inline-block;
  width: auto;
  margin-top: .25rem;
  padding: .15rem .5rem;
  border-radius: .25rem;
  font-size: .9rem;
  font-weight: 600;
  background-color: currentColor;   /* übernimmt die Kategoriefarbe */
  -webkit-text-fill-color: #fff;    /* Schrift trotzdem weiß */
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
}
@media (min-width: 769px) {
  #icagenda .ic-details-cat {
    float: right;
  }
}