/* fuer Test 
html { filter: grayscale(100%) !important; }
*/



/* ================================
   Weicher Übergang – Startseite only
   itemid-101
   ================================ */

/* Übergang sitzt AM ANFANG des nächsten site-grid */
body.itemid-101 .site-grid + .site-grid .container-banner {
  position: relative;
}

/* Farblich abgestimmter Verlaufs-Übergang */
body.itemid-101 .site-grid + .site-grid .container-banner::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: 140px;

  /* Farbverlauf passend zum Headerbild */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1) 0%,
    rgba(250,248,244,0.9) 40%,
    rgba(250,248,244,0.6) 70%,
    rgba(250,248,244,0) 100%
  );

  pointer-events: none;
  z-index: 1;
}

/* eventuell benötigt für Platz dazwischen 
.container-component::after {
  content: "";
  display: block;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1),
    rgba(245,245,245,1)
    );
}
*/

@media (max-width: 991px) {
  body.site {
    background-attachment: scroll;
  }
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Desktop-Layout: Brand + Menü in einer Zeile */
@media (min-width: 992px) {

  .container-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
    align-items: center;
  }

  /* Brand (Logo / Titel) */
  .container-header .grid-child:has(.navbar-brand) {
    grid-area: brand;
  }

  /* Hauptnavigation */
  .container-header .container-nav {
    grid-area: nav;
    justify-self: end;
  }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Menue Grossschrift */
.container-header nav {
  text-transform: uppercase;
}
.container-header .mod-menu .mod-menu_heading {
  text-transform: uppercase;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Copyright kleiner */
.copyright {
  font-size: 0.75em;
  padding: 2em 2em 2em 2.7em;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Schrift im DPCalendar kleiner */
a.dp-event__link {
    color: #22262a !important;
    font-size: 1.2rem;
}

/* DPCalendar Eventliste – ganzes Thumbnail anzeigen */
.dp-figure .dp-image {
    object-fit: contain !important;
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Back-to-top: Text anzeigen */
.back-to-top-link::after {
  content: "Top";
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Back-to-top: Icon + Text nebeneinander */
.back-to-top-link {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* Abstand zwischen Icon und Text */
  padding-inline: 0.75rem;
}

/* Text neben dem Icon */
.back-to-top-link::after {
  content: "Top";
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .back-to-top-link::after {
    content: "";
  }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Phoca Gallery 6.1 – Powered by Phoca Gallery ausblenden */
.ph-cb + div {
  display: none !important;
}
