:root {
  --cassiopeia-color-primary: #b80909;
  --cassiopeia-color-link: #b80909;
  --cassiopeia-color-hover: #7b2525;
}

body.site {
  color: #444;
  background-color: #f3e7e7;
  font-family: Arial, sans-serif;
}

.container-header,
.site-grid,
.container-footer {
  width: calc(100% - 96px);
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0 0 28px rgba(35, 0, 5, 0.34);
}

@media (max-width: 750px) {
  .container-header,
  .site-grid,
  .container-footer {
    width: 100%;
    box-shadow: none;
  }
}

.container-header {
  color: #7b2525;
  background-color: #ffff66;
  background-image: none;
}

.site-grid {
  background-color: #ffff66;
}

.container-footer {
  color: #444;
  background-color: #ffff66;
  background-image: none;
}

a {
  color: #b80909;
}

a:hover,
a:focus {
  color: #7b2525;
}

body.site {
  background-image:
    linear-gradient(rgba(55, 0, 8, 0.12), rgba(55, 0, 8, 0.12)),
    url("/images/design/seitenhintergrund.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.container-header .navbar-brand {
  display: none;
}

.container-header .container-topbar {
  width: 100%;
  max-width: none;
  padding: 0;
}

.container-header .container-topbar .mod-custom {
  width: 100%;
}

.shg-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 132px;
  padding: 16px 30px;
}

.shg-head-logo {
  display: block;
  line-height: 0;
}

.shg-head-logo img {
  display: block;
  width: 100px;
  height: auto;
}

.shg-head-name {
  max-width: 650px;
  color: #7b2525;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.22;
}

.shg-head-contact {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid #b80909;
  border-radius: 4px;
  color: #b80909;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shg-head-contact:hover,
.shg-head-contact:focus {
  color: #fff;
  background-color: #b80909;
}

@media (max-width: 750px) {
  .shg-head {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    min-height: auto;
    padding: 14px 18px;
  }

  .shg-head-logo img {
    width: 70px;
  }

  .shg-head-name {
    font-size: 1rem;
  }

  .shg-head-contact {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.shg-slide {
  position: absolute;
  inset: 0;
  display: block;
  height: 245px;
  margin: 0;
  opacity: 0;
  animation: shg-bilderwechsel 60s infinite;
}

.shg-slide:nth-child(1)  { animation-delay: 0s; }
.shg-slide:nth-child(2)  { animation-delay: 6s; }
.shg-slide:nth-child(3)  { animation-delay: 12s; }
.shg-slide:nth-child(4)  { animation-delay: 18s; }
.shg-slide:nth-child(5)  { animation-delay: 24s; }
.shg-slide:nth-child(6)  { animation-delay: 30s; }
.shg-slide:nth-child(7)  { animation-delay: 36s; }
.shg-slide:nth-child(8)  { animation-delay: 42s; }
.shg-slide:nth-child(9)  { animation-delay: 48s; }
.shg-slide:nth-child(10) { animation-delay: 54s; }

@keyframes shg-bilderwechsel {
  0%,
  8.33% {
    opacity: 1;
  }

  9.17%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 750px) {
  .container-banner {
    width: 100%;
    box-shadow: none;
  }

  .shg-slider {
    height: clamp(120px, 23vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shg-slide {
    display: none;
    animation: none;
  }

  .shg-slide:first-child {
    display: block;
    opacity: 1;
  }
}
/* Slider – feste Höhe und sichtbarer Seitenhintergrund beim Wechsel */
.container-banner {
  display: block;
  width: calc(100% - 96px);
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  background: transparent;
  box-shadow: 0 0 28px rgba(35, 0, 5, 0.34);
}

.container-banner .mod-custom {
  width: 100%;
}

.shg-slider {
  position: relative;
  width: 100%;
  height: 245px;
  overflow: hidden;

  background-image:
    linear-gradient(rgba(55, 0, 8, 0.12), rgba(55, 0, 8, 0.12)),
    url("/images/design/seitenhintergrund.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.shg-slide {
  position: absolute;
  inset: 0;
  display: block;
  height: 245px;
  margin: 0;
  opacity: 0;
  animation: shg-bilderwechsel 54s infinite;
}

.shg-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shg-slide:nth-child(1) { animation-delay: 0s; }
.shg-slide:nth-child(2) { animation-delay: 6s; }
.shg-slide:nth-child(3) { animation-delay: 12s; }
.shg-slide:nth-child(4) { animation-delay: 18s; }
.shg-slide:nth-child(5) { animation-delay: 24s; }
.shg-slide:nth-child(6) { animation-delay: 30s; }
.shg-slide:nth-child(7) { animation-delay: 36s; }
.shg-slide:nth-child(8) { animation-delay: 42s; }
.shg-slide:nth-child(9) { animation-delay: 48s; }

.shg-slider:hover .shg-slide {
  animation-play-state: paused;
}

@keyframes shg-bilderwechsel {
  0%,
  9.26% {
    opacity: 1;
  }

  10.19%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 750px) {
  .container-banner {
    width: 100%;
    box-shadow: none;
  }

  .shg-slider,
  .shg-slide {
    height: clamp(120px, 23vw, 190px);
  }
}
.container-header .shg-head-contact,
.container-header .shg-head-contact:link,
.container-header .shg-head-contact:visited {
  color: #b80909 !important;
}

.container-header .shg-head-contact:hover,
.container-header .shg-head-contact:focus {
  color: #ffffff !important;
  background-color: #b80909;
}

/* Linke Menüleiste auf PC und Tablet neben dem Inhalt anzeigen */
@media (min-width: 751px) {
  .site-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "banner banner"
      "side-l comp"
      "side-l side-r"
      "side-l top-a"
      "side-l top-b"
      "side-l bot-a"
      "side-l bot-b";
    column-gap: 24px;
    align-items: start;
  }

  .container-banner {
    grid-area: banner !important;
  }

  .container-sidebar-left {
    grid-area: side-l !important;
  }

  .container-component {
    grid-area: comp !important;
  }

  .container-sidebar-right {
    grid-area: side-r !important;
  }

  .container-top-a {
    grid-area: top-a !important;
  }

  .container-top-b {
    grid-area: top-b !important;
  }

  .container-bottom-a {
    grid-area: bot-a !important;
  }

  .container-bottom-b {
    grid-area: bot-b !important;
  }
}

/* Broschüre „Ich hab’s im Blut“ */
.shg-brochure {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 18px;
}

.shg-brochure-cover {
  display: block;
  line-height: 0;
}

.shg-brochure-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 148 / 210;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(184, 9, 9, 0.45);
  box-shadow: 0 12px 26px rgba(50, 0, 7, 0.2);
}

.shg-brochure-text {
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
}

.shg-brochure-text > :first-child {
  margin-top: 0;
}

.shg-brochure-text ul {
  margin: 22px 0;
  padding-left: 24px;
  text-align: left;
}

.shg-brochure-text li {
  margin: 8px 0;
}

.shg-download-button {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid #b80909;
  border-radius: 4px;
  color: #ffffff !important;
  background-color: #b80909;
  font-weight: 700;
  text-decoration: none;
}

.shg-download-button:hover,
.shg-download-button:focus {
  color: #b80909 !important;
  background-color: transparent;
}

/* Broschüre „Ich hab’s im Blut“ */
.shg-brochure {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 18px;
}

.shg-brochure-cover {
  display: block;
  line-height: 0;
}

.shg-brochure-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 148 / 210;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(184, 9, 9, 0.45);
  box-shadow: 0 12px 26px rgba(50, 0, 7, 0.2);
}

.shg-brochure-text {
  min-width: 0;
  padding-right: 24px;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
}

.shg-brochure-text > :first-child {
  margin-top: 0;
}

.shg-brochure-text ul {
  margin: 22px 0;
  padding-left: 24px;
  text-align: left;
}

.shg-brochure-text li {
  margin: 8px 0;
}

@media (max-width: 650px) {
  .shg-brochure {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shg-brochure-cover {
    width: min(220px, 75%);
    margin: 0 auto;
  }

  .shg-brochure-text {
    padding-right: 0;
  }
}

/* Journal „Ich hab’s im Blut“ */
.shg-journal {
  padding-right: 24px;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
}

.shg-journal > p:first-child {
  margin-top: 0;
  text-align: justify;
}

.shg-journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 34px;
}

.shg-journal-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  padding: 22px;
  border-top: 2px solid #b80909;
  background-color: rgba(255, 255, 255, 0.34);
}

.shg-journal-card > a:first-child {
  display: block;
  line-height: 0;
}

.shg-journal-card img {
  display: block;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 148 / 210;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(184, 9, 9, 0.4);
  box-shadow: 0 8px 18px rgba(50, 0, 7, 0.16);
}

.shg-journal-card h2 {
  margin: 0 0 8px;
  color: #7b2525;
  font-size: 1.45rem;
}

.shg-journal-card h3 {
  margin: 14px 0 6px;
  color: #7b2525;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
}

.shg-journal-card p {
  margin: 0 0 14px;
}

.shg-journal-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.shg-journal-card li {
  margin: 4px 0;
}

@media (max-width: 650px) {
  .shg-journal {
    padding-right: 0;
  }

  .shg-journal-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .shg-journal-card > a:first-child {
    width: min(220px, 75%);
    margin: 0 auto;
  }

  .shg-journal-card img {
    width: 100%;
  }
}

/* Projekt „Meine WEGA“ */
.shg-wega {
  padding-right: 24px;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
}

.shg-wega > p {
  text-align: justify;
}

.shg-wega h2 {
  margin: 42px 0 24px;
  color: #7b2525;
  font-size: 1.65rem;
}

.shg-wega-note {
  display: block;
  margin: 30px 0 46px;
  padding: 20px 24px;
  border-left: 4px solid #b80909;
  background-color: rgba(255, 255, 255, 0.38);
}

/* Roter Zeitstrahl */
.shg-wega-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 34px;
}

.shg-wega-timeline::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 23px;
  left: 56px;
  width: 4px;
  background-color: #b80909;
}

.shg-wega-timeline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 43px;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 24px solid #b80909;
}

.shg-wega-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 34px;
}

.shg-wega-timeline time {
  position: relative;
  z-index: 1;
  align-self: start;
  box-sizing: border-box;
  width: 112px;
  padding: 10px 5px 15px;
  border: 3px solid #b80909;
  color: #b80909;
  background-color: #ffff66;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.shg-wega-timeline time::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-right: 56px solid transparent;
  border-left: 56px solid transparent;
  border-top: 18px solid #b80909;
}

.shg-wega-timeline time::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-right: 51px solid transparent;
  border-left: 51px solid transparent;
  border-top: 16px solid #ffff66;
}

.shg-wega-timeline h3 {
  margin: 0 0 6px;
  color: #444444;
  font-size: 1.08rem;
}

.shg-wega-timeline p {
  margin: 0;
  text-align: justify;
}

.shg-wega-link {
  padding: 18px 20px;
  border-left: 4px solid #b80909;
  background-color: rgba(255, 255, 255, 0.38);
}

.shg-wega-link a {
  color: #b80909;
  font-weight: 700;
  text-decoration: underline;
}

/* Dokumente zum Projekt */
.shg-wega-documents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.shg-wega-documents article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  padding: 22px;
  border-top: 2px solid #b80909;
  background-color: rgba(255, 255, 255, 0.34);
}

.shg-wega-documents article > a:first-child {
  display: block;
  line-height: 0;
}

.shg-wega-documents img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(184, 9, 9, 0.4);
  box-shadow: 0 8px 18px rgba(50, 0, 7, 0.16);
}

.shg-wega-documents h3 {
  margin: 4px 0 8px;
  color: #7b2525;
  font-size: 1.2rem;
}

.shg-wega-documents p {
  margin: 0 0 16px;
}

@media (max-width: 650px) {
  .shg-wega {
    padding-right: 0;
  }

  .shg-wega-timeline li {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
  }

  .shg-wega-documents article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .shg-wega-documents article > a:first-child {
    width: min(260px, 100%);
    margin: 0 auto;
  }
}

/* Linke Menüleiste wie im lokalen Entwurf */
.container-sidebar-left {
  align-self: start;
}

.container-sidebar-left .card {
  border: 0;
  border-radius: 0;
  background-color: #ffff66;
  box-shadow: none;
}

.container-sidebar-left .card-body {
  padding: 34px 20px;
  border-right: 1px solid #b80909;
}

.container-sidebar-left .mod-menu {
  display: block;
  width: 100%;
}

.container-sidebar-left .mod-menu > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  width: 100%;
  border-bottom: 1px solid #b80909;
}

.container-sidebar-left .mod-menu > li:not(.deeper) {
  grid-template-columns: 1fr;
}

.container-sidebar-left .mod-menu > li > a {
  display: block;
  grid-column: 1;
  padding: 13px 12px;
  color: #b80909 !important;
  background: transparent;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.container-sidebar-left .mod-menu > li > a:hover,
.container-sidebar-left .mod-menu > li.active > a {
  color: #b80909 !important;
  background-color: rgba(255, 255, 255, 0.38);
}

/* Pfeil zum Öffnen und Schließen */
.container-sidebar-left .mod-menu__toggle-sub {
  grid-column: 2;
  width: 38px;
  padding: 0;
  border: 0;
  color: #b80909;
  background: transparent;
  cursor: pointer;
}

.container-sidebar-left .mod-menu__toggle-sub:hover,
.container-sidebar-left .mod-menu__toggle-sub:focus {
  background-color: rgba(255, 255, 255, 0.38);
}

.container-sidebar-left
.mod-menu__toggle-sub[aria-expanded="false"]
.icon-chevron-down {
  display: inline-block;
  transform: rotate(-90deg);
}

.container-sidebar-left .icon-chevron-down {
  transition: transform 0.2s ease;
}

/* Ausklappbare Untermenüs */
.container-sidebar-left .mod-menu__sub {
  display: block !important;
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 14px;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.container-sidebar-left .mod-menu__sub.show-menu {
  max-height: 700px;
  padding-top: 4px;
  padding-bottom: 8px;
  opacity: 1;
}

.container-sidebar-left .mod-menu__sub li {
  border: 0;
}

.container-sidebar-left .mod-menu__sub a {
  display: block;
  padding: 8px 10px;
  color: #b80909 !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.container-sidebar-left .mod-menu__sub a::before {
  content: "›";
  margin-right: 7px;
}

.container-sidebar-left .mod-menu__sub a:hover,
.container-sidebar-left .mod-menu__sub li.active > a {
  background-color: rgba(255, 255, 255, 0.38);
}

/* Lange Jahresliste begrenzen */
.container-sidebar-left .item-138 > .mod-menu__sub.show-menu {
  max-height: 330px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Beitrag Über uns */
.shg-about {
  padding-right: 24px;
}

.shg-about p {
  text-align: justify;
}

.shg-about .shg-divider {
  width: 100%;
  height: 1px;
  margin: 30px 0;
  border: 0;
  background-color: #b80909;
}

.shg-about .shg-about-logo {
  margin: 25px 0;
  text-align: center;
}

.shg-about .shg-about-logo img {
  display: inline-block;
  width: 210px;
  max-width: 70%;
  height: auto;
}

/* Weiter-Schaltfläche im Beitrag Über uns ausblenden */
.com-content-article:has(.shg-about) .pagenavigation {
  display: none;
}

/* Interviewbeiträge */
.shg-interview {
  max-width: 780px;
  padding-right: 24px;
}

.shg-interview p {
  margin: 0 0 1.2em;
  text-align: justify;
  hyphens: auto;
}

.shg-interview .interview-question {
  font-weight: 400;
}

.shg-interview .interview-question strong {
  color: #7b2525;
}

.shg-interview .interview-question span {
  margin-left: 1.5em;
}

.shg-interview .interview-list {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
  list-style: none;
}

.shg-interview .interview-list li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 1.15em;
}

.shg-interview .interview-list li::before {
  position: absolute;
  left: 0;
  content: "- ";
}

/* Beitragsnavigation bei Interviews ausblenden */
.com-content-article:has(.shg-interview) .pagenavigation {
  display: none;
}

/* Einheitliche Informationszeile für Beiträge */
.article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 8px 0 24px;
  color: #555;
  font-size: 0.92rem;
}

.article-info dt,
.article-info dd {
  margin: 0;
}

.article-info-term::before {
  color: #b80909;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f08d";
}

.article-info [class^="icon-"],
.article-info [class*=" icon-"] {
  color: #b80909;
}

/* Bezeichnungen ausblenden, Werte und Piktogramme behalten */
.article-info .createdby,
.article-info .category-name {
  font-size: 0;
}

.article-info .createdby .icon-user,
.article-info .category-name .icon-folder-open,
.article-info .createdby > span:not(.icon-user),
.article-info .category-name > a {
  font-size: 0.92rem;
}

/* Leeres Kategorie-Piktogramm ausblenden */
.article-info .category-name {
  display: none;
}

/* Seitennavigation oberhalb des Inhalts kleiner darstellen */
.breadcrumb,
.breadcrumb-item {
  font-size: 0.78rem;
}

/* Übersichtsseite Interviews */
.shg-interviews-overview {
  max-width: 780px;
  padding-right: 24px;
}

.shg-interviews-overview > p {
  text-align: justify;
}

.shg-interviews-overview .shg-kicker {
  margin-bottom: 0.25rem;
  color: #7b2525;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.interview-overview-card {
  margin-top: 1.6rem;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid #b80909;
  background: rgba(255, 255, 255, 0.48);
}

.interview-overview-card time {
  color: #7b2525;
  font-size: 0.88rem;
}

.interview-overview-card h3 {
  margin: 0.3rem 0 0.6rem;
}

.interview-overview-card p {
  margin: 0 0 0.8rem;
}

.interview-overview-card p:last-child {
  margin-bottom: 0;
}

.interview-read-link {
  font-weight: 700;
}

@media (max-width: 750px) {
  .shg-interviews-overview {
    max-width: none;
    padding-right: 0;
  }
}


/* Abstand zwischen „Frage:“ und dem Fragetext */
.shg-interview .interview-question strong {
  display: inline-block;
  margin-right: 1.2em;
}


/* Wort „Details“ ausblenden, Pin beibehalten */
.article-info-term {
  font-size: 0;
}

.article-info-term::before {
  display: inline-block;
  font-size: 0.92rem;
}


/* Hämatologen und Onkologen */
.shg-oncologists {
  max-width: 780px;
  padding-right: 24px;
}

.shg-oncologists .shg-kicker {
  margin-bottom: 0.25rem;
  color: #7b2525;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shg-oncologists .oncologists-intro {
  margin-bottom: 1.8rem;
  text-align: justify;
}

.shg-oncologists > h3 {
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #b80909;
  color: #7b2525;
}

.shg-oncologists .oncologists-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shg-oncologists .oncologists-list article {
  padding: 1rem 1.15rem;
  border-left: 4px solid #b80909;
  background: rgba(255, 255, 255, 0.48);
}

.shg-oncologists .oncologists-list h4 {
  margin: 0 0 0.45rem;
  color: #7b2525;
  font-size: 1.05rem;
}

.shg-oncologists .oncologists-list p {
  margin: 0 0 0.35rem;
  text-align: left;
}

.shg-oncologists .oncologists-list span {
  color: #666;
  font-size: 0.92rem;
}

.com-content-article:has(.shg-oncologists) .pagenavigation {
  display: none;
}

@media (max-width: 750px) {
  .shg-oncologists {
    max-width: none;
    padding-right: 0;
  }

  .shg-oncologists .oncologists-list {
    grid-template-columns: 1fr;
  }
}

/* Onkologen immer einspaltig anzeigen */
.shg-oncologists .oncologists-list {
  grid-template-columns: 1fr;
}

/* Trennlinien zwischen den Einträgen unter „Weitere SHG“ */
.shg-other-groups-list .shg-other-group {
  padding: 0 0 1.35rem;
  margin: 0 0 1.35rem;
  border-bottom: 2px solid #7b2525;
}

.shg-other-groups-list .shg-other-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}


/* Verlinkte Überschriften in Inhaltsbereichen */
.com-content-article .shg-other-group h2,
.com-content-article .shg-other-group h2 a {
  font-size: 1.08rem;
  line-height: 1.45;
}


/* Hauptüberschriften der Inhaltsseiten etwa 30 Prozent kleiner */
.com-content-article .page-header h1,
.com-content-article > h1,
.item-page .page-header h1 {
  font-size: 1.75rem;
  line-height: 1.25;
}

@media (max-width: 750px) {
  .com-content-article .page-header h1,
  .com-content-article > h1,
  .item-page .page-header h1 {
    font-size: 1.5rem;
  }
}

/* Übersicht „Patienten schreiben“ */
.patient-stories-overview > p:first-child {
  margin-bottom: 1.6rem;
  text-align: justify;
  hyphens: auto;
}

.patient-story-list {
  border-top: 1px solid #7b2525;
}

.patient-story-list > p {
  margin: 0;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid #7b2525;
  line-height: 1.5;
}

.patient-story-list > p strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #7b2525;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.patient-story-list > p br {
  display: none;
}

/* Titel der einzelnen Patientengeschichten */
.patient-story-list h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 700;
}

/* Einleitungstext bei „Patienten schreiben“ */
.patient-stories-overview > p:first-child {
  width: 100%;
  box-sizing: border-box;
  padding-right: clamp(1rem, 4vw, 3rem);
  text-align: justify;
  hyphens: auto;
}

/* Einheitliche Formatierung aller Patientenberichte */
.patient-story-body {
  width: 100%;
  box-sizing: border-box;
  padding-right: clamp(1rem, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.7;
}

.patient-story-body p {
  margin: 0 0 1.25rem;
  text-align: justify;
  hyphens: auto;
}

.patient-story-body h3 {
  margin: 1.8rem 0 0.75rem;
  color: #7b2525;
  font-size: 1.15rem;
  line-height: 1.4;
}

.patient-story-body .story-emphasis {
  font-weight: 700;
}

/* Übersicht „Patienten schreiben“ wie im lokalen Entwurf */
.patient-story-list {
  border-top: 1px solid #7b2525;
}

.patient-story-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid #7b2525;
}

.patient-story-list article > div {
  flex: 1 1 auto;
  min-width: 0;
}

.patient-story-list article span {
  display: block;
  margin-bottom: 0.2rem;
  color: #7b2525;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.patient-story-list article h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 700;
}

.patient-story-list article > a {
  flex: 0 0 auto;
  color: #b80909;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.patient-story-list article > a:hover,
.patient-story-list article > a:focus {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .patient-story-list article {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Abstand der Links vom rechten Rand */
.patient-story-list article > a {
  margin-right: clamp(1rem, 3vw, 2rem);
}

/* „Zurück“ und „Weiter“ unter den Patientenberichten ausblenden */
.com-content-article:has(.patient-story-body) .pagenavigation,
.item-page:has(.patient-story-body) .pagenavigation {
  display: none !important;
}

/* Einheitlicher Innenabstand für einzelne Beiträge */
.com-content-article__body {
  box-sizing: border-box;
  width: 100%;
  padding-right: clamp(1rem, 4vw, 3rem);
}

.com-content-article__body p {
  text-align: justify;
  hyphens: auto;
}

/* José Carreras Gala – Textabstand und zentrierte Bilder */
body.itemid-172 .com-content-article__body {
  box-sizing: border-box;
  width: 100%;
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

body.itemid-172 .com-content-article__body p {
  text-align: justify;
  hyphens: auto;
}

body.itemid-172 .com-content-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

/* JEvents – übersichtliche Terminliste */
.jevbootstrap table.eventlist {
  display: block;
  width: 100%;
  border: 0 !important;
}

.jevbootstrap table.eventlist thead {
  display: none;
}

.jevbootstrap table.eventlist tbody {
  display: block;
  width: 100%;
}

.jevbootstrap table.eventlist tbody tr {
  display: grid;
  grid-template-columns: 50px max-content max-content minmax(150px, 1fr);
  grid-template-areas:
    "logo titel titel titel"
    "logo datum zeit ort";
  column-gap: 14px;
  row-gap: 5px;
  width: 100%;
  padding: 14px 10px;
  margin-bottom: 8px;
  border: 0 !important;
  border-bottom: 2px solid #a71930 !important;
}

/* Die bisherige leere erste Spalte ausblenden */
.jevbootstrap table.eventlist tbody td:first-child {
  display: none !important;
}

.jevbootstrap table.eventlist td {
  display: block;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.jevbootstrap table.eventlist td[data-label="Kategoriebild"] {
  grid-area: logo;
  align-self: center;
  text-align: center;
}

.jevbootstrap table.eventlist img.catimage {
  display: block !important;
  width: 30px !important;
  height: 43px !important;
  max-width: 30px !important;
  max-height: 43px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.jevbootstrap table.eventlist td[data-label="Titel-Link"] {
  grid-area: titel;
}

.jevbootstrap table.eventlist td[data-label="Titel-Link"] a {
  font-weight: 700 !important;
  font-size: 1.05rem;
}

.jevbootstrap table.eventlist td[data-label="Startdatum"] {
  grid-area: datum;
}

.jevbootstrap table.eventlist td[data-label="Startzeit"] {
  grid-area: zeit;
}

.jevbootstrap table.eventlist td[data-label="Startzeit"]::before {
  content: "Beginn: ";
  font-weight: 600;
}

.jevbootstrap table.eventlist td[data-label="Ort"] {
  grid-area: ort;
}

.jevbootstrap table.eventlist td[data-label="Ort"]::before {
  content: "Ort: ";
  font-weight: 600;
}

/* Darstellung auf schmalen Bildschirmen */
@media (max-width: 700px) {
  .jevbootstrap table.eventlist tbody tr {
    grid-template-columns: 45px 1fr;
    grid-template-areas:
      "logo titel"
      "logo datum"
      "logo zeit"
      "logo ort";
  }
}

/* Beiträge im Menü Aktuelles */
body.itemid-138 .com-content-category-blog__item {
  box-sizing: border-box;
  padding: 20px 48px 20px 4px;
}

/* Fließtext wie auf den übrigen Beitragsseiten */
body.itemid-138 .com-content-category-blog__item p {
  box-sizing: border-box;
  padding-right: 0;
  margin-bottom: 1.6rem;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: justify;
  hyphens: auto;
}

/* Auf kleinen Bildschirmen etwas weniger Abstand */
@media (max-width: 700px) {
  body.itemid-138 .com-content-category-blog__item {
    padding-right: 16px;
  }

  body.itemid-138 .com-content-category-blog__item p {
    padding-right: 0;
  }
}

/* Großes Fenster über die gesamte Seite */
.shg-image-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
}

/* Fenster beim ersten Anklicken öffnen */
.shg-image-viewer:target {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Anklickbare große Bildfläche */
.shg-image-viewer__image {
  display: block;
  width: calc(100vw - 40px);
  max-width: 1252px;
  margin: 0 auto;
  cursor: zoom-out;
  text-decoration: none !important;
}

/* Bild über die verfügbare Seitenbreite */
.shg-image-viewer__image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  margin: 0;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.65);
}

/* Patientenakte – gesamter Inhaltsbereich */
.patient-record-overview {
  box-sizing: border-box;
  padding: 20px 48px 20px 4px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.patient-record-intro {
  margin: 0 0 26px;
  text-align: justify;
  hyphens: auto;
}

/* Aufklappbare Jahresbereiche */
.patient-record-archive > details {
  border-top: 1px solid #b80909;
}

.patient-record-archive > details:last-child {
  border-bottom: 1px solid #b80909;
}

.patient-record-archive > details > summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 17px 16px;
  color: #b80909;
  cursor: pointer;
  list-style: none;
}

.patient-record-archive > details > summary::-webkit-details-marker {
  display: none;
}

/* Pfeil vor der Jahreszahl */
.patient-record-archive > details > summary::before {
  content: "›";
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.patient-record-archive > details[open] > summary::before {
  transform: rotate(90deg);
}

.patient-record-archive summary span {
  min-width: 72px;
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.patient-record-archive summary small {
  color: #504c50;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

/* Einzelne Projektberichte */
.patient-record-list {
  display: grid;
  gap: 18px;
  padding: 5px 16px 28px;
}

.patient-record-list article {
  box-sizing: border-box;
  padding: 20px;
  background: rgba(255, 255, 255, 0.34);
}

.patient-record-list time {
  color: #b80909;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.patient-record-list h3 {
  margin: 4px 0 7px;
  color: #444444;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

.patient-record-list p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: justify;
  hyphens: auto;
}

/* Kleinere Bildschirme */
@media (max-width: 700px) {
  .patient-record-overview {
    padding-right: 16px;
  }

  .patient-record-archive > details > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .patient-record-archive > details > summary::before {
    position: absolute;
  }

  .patient-record-archive summary span,
  .patient-record-archive summary small {
    margin-left: 28px;
  }

  .patient-record-list {
    padding-right: 4px;
    padding-left: 4px;
  }
}

/* Patientenakte – Projektberichte mit Foto */
.patient-record-list article.with-photo {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 26px;
  align-items: start;
}

/* Bild links über die drei Textzeilen */
.patient-record-list article.with-photo > img {
  grid-column: 1;
  grid-row: 1 / 4;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(184, 9, 9, 0.35);
}

/* Datum, Überschrift und Text rechts */
.patient-record-list article.with-photo > time,
.patient-record-list article.with-photo > h3,
.patient-record-list article.with-photo > p {
  grid-column: 2;
}

.patient-record-list article.with-photo > time {
  grid-row: 1;
}

.patient-record-list article.with-photo > h3 {
  grid-row: 2;
}

.patient-record-list article.with-photo > p {
  grid-row: 3;
}

/* Darstellung auf kleineren Bildschirmen */
@media (max-width: 700px) {
  .patient-record-list article.with-photo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 8px;
  }

  .patient-record-list article.with-photo > img,
  .patient-record-list article.with-photo > time,
  .patient-record-list article.with-photo > h3,
  .patient-record-list article.with-photo > p {
    grid-column: 1;
    grid-row: auto;
  }

  .patient-record-list article.with-photo > img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }
}

.patient-record-archive summary strong {
  min-width: 72px;
  color: #b80909;
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .patient-record-archive summary strong {
    margin-left: 28px;
  }
}

.meeting-places.shg-about .shg-divider {
  width: 100%;
  height: 0;
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #b80909;
  background: transparent;
  opacity: 1;
}

/* Kräftige rote Trennlinie bei Anfahrt/Treffpunkt */
.meeting-places hr.shg-divider {
  display: block !important;
  width: 100% !important;
  height: 2px !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #b80909 !important;
  opacity: 1 !important;
}

/* Kleine Überschrift über der unteren Menüleiste */
#mod-menu119::before {
  content: "Schnell gefunden";
  display: block;
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  color: inherit;
}

/* Footer wie im lokalen Entwurf aufteilen */
#mod-menu119 {
  display: grid !important;
  grid-template-columns: minmax(150px, 0.7fr) minmax(300px, 1.5fr);
  column-gap: 48px;
  row-gap: 7px;
  width: 100%;
  align-items: start;
}

/* Überschrift Schnell gefunden */
#mod-menu119::before {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 5px;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
}

/* Kontakt links als eigener Bereich */
#mod-menu119 > li:first-of-type {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}

#mod-menu119 > li:first-of-type a {
  font-size: 1rem;
  font-weight: 600;
}

/* Die vier Links unter Schnell gefunden */
#mod-menu119 > li:not(:first-of-type) {
  grid-column: 2;
  margin: 0;
  padding: 0;
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 700px) {
  #mod-menu119 {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  #mod-menu119 > li:first-of-type {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 14px;
  }

  #mod-menu119::before {
    grid-column: 1;
    grid-row: 2;
    margin-top: 4px;
  }

  #mod-menu119 > li:not(:first-of-type) {
    grid-column: 1;
  }
}

/* Überschrift und Mailadresse im Kontaktbereich */
#mod-menu119 > li:first-of-type::before {
  content: "Kontakt";
  display: block;
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  color: inherit;
}

#mod-menu119 > li:first-of-type a {
  font-size: 0.95rem;
  font-weight: 400;
}

/* Footer-Überschriften wie im lokalen Entwurf */
#mod-menu119::before,
#mod-menu119 > li:first-of-type::before {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.17rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Linke Footer-Spalte für das Logo freihalten */
@media (min-width: 901px) {
  #mod-menu119 {
    grid-template-columns:
      minmax(180px, 0.8fr)
      minmax(180px, 0.8fr)
      minmax(280px, 1.4fr) !important;
    column-gap: 42px;
  }

  /* Kontakt in die mittlere Spalte */
  #mod-menu119 > li:first-of-type {
    grid-column: 2 !important;
    grid-row: 1 / span 6;
  }

  /* Schnell gefunden in die rechte Spalte */
  #mod-menu119::before {
    grid-column: 3 !important;
    grid-row: 1;
  }

  #mod-menu119 > li:not(:first-of-type) {
    grid-column: 3 !important;
  }
}

/* Auf mittleren Bildschirmen wieder zweispaltig */
@media (min-width: 701px) and (max-width: 900px) {
  #mod-menu119 {
    grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 1.4fr) !important;
  }

  #mod-menu119 > li:first-of-type {
    grid-column: 1 !important;
  }

  #mod-menu119::before,
  #mod-menu119 > li:not(:first-of-type) {
    grid-column: 2 !important;
  }
}

/* Schwarzer Footer mit dem Gelb der Homepage */
.container-footer {
  background: #000000 !important;
  color: #ffff66 !important;
}

/* Texte, Überschriften und Links im Footer */
.container-footer #mod-menu119,
.container-footer #mod-menu119::before,
.container-footer #mod-menu119 > li::before,
.container-footer #mod-menu119 a {
  color: #ffff66 !important;
}

/* Links beim Berühren mit Maus oder Tastatur */
.container-footer #mod-menu119 a:hover,
.container-footer #mod-menu119 a:focus {
  color: #ffff66 !important;
  text-decoration: underline;
}

/* Logo-Modul in die freie linke Footer-Spalte setzen */
.container-footer .grid-child {
  position: relative;
  min-height: 190px;
}

#mod-custom120 {
  position: absolute;
  top: 50%;
  left: 0;
  width: 180px;
  transform: translateY(-50%);
  text-align: center;
  color: #ffff66;
}

/* Überflüssige Leerzeilen aus dem Editor ausblenden */
#mod-custom120 p:nth-child(1),
#mod-custom120 p:nth-child(2),
#mod-custom120 p:nth-child(4) {
  display: none;
}

/* Logo verkleinern und mittig ausrichten */
#mod-custom120 img {
  display: block;
  width: 80px !important;
  height: auto !important;
  margin: 0 auto 10px;
}

/* Text unter dem Logo */
#mod-custom120 p {
  margin: 0;
  text-align: center !important;
  color: #ffff66;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Auf kleinen Bildschirmen unter das Menü setzen */
@media (max-width: 700px) {
  .container-footer .grid-child {
    min-height: 0;
  }

  #mod-custom120 {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 28px;
  }
}

/* Logo-Bereich verbreitern und Footer-Menü weiter nach rechts setzen */
@media (min-width: 901px) {
  #mod-menu119 {
    grid-template-columns:
      minmax(260px, 1fr)
      minmax(180px, 0.75fr)
      minmax(280px, 1.3fr) !important;
  }

  #mod-custom120 {
    width: 260px !important;
  }

  #mod-custom120 p {
    font-size: 0.72rem !important;
    line-height: 1.35;
    white-space: nowrap;
  }
}

/* Auf schmaleren Bildschirmen Überlagerungen vermeiden */
@media (max-width: 900px) {
  .container-footer .grid-child {
    min-height: 0;
  }

  #mod-custom120 {
    position: static;
    width: 100% !important;
    transform: none;
    margin-top: 28px;
  }

  #mod-custom120 p {
    font-size: 0.72rem !important;
    white-space: normal;
  }
}

/* Logo auf dem Handy sicher über das Footer-Menü setzen */
@media (max-width: 700px) {
  #mod-custom120 {
    order: -1 !important;
    margin: 0 0 28px !important;
  }

  #mod-menu119 {
    order: 1 !important;
  }
}

/* Videos auf allen Seiten responsiv darstellen */
.com-content-article video,
.com-content-article object,
.com-content-article embed {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto;
}

/* Eingebundene Videoplattformen */
.com-content-article iframe[src*="youtube"],
.com-content-article iframe[src*="youtu.be"],
.com-content-article iframe[src*="vimeo"] {
  display: block;
  width: 100% !important;
  max-width: 900px !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 18px auto;
  border: 0;
}

/* Sicherheit für sehr schmale Bildschirme */
@media (max-width: 700px) {
  .com-content-article iframe[src*="youtube"],
  .com-content-article iframe[src*="youtu.be"],
  .com-content-article iframe[src*="vimeo"],
  .com-content-article video,
  .com-content-article object,
  .com-content-article embed {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Rechter Abstand in den Jahresübersichten „Aktuelles“ */
.com-content-category-blog .blog-item {
  box-sizing: border-box;
  padding-right: clamp(1rem, 4vw, 3rem);
}

@media (max-width: 768px) {
  .com-content-category-blog .blog-item {
    padding-right: 1rem;
  }
}

/* Weiterlesen-Schaltfläche in Beitragsübersichten mittig */
.com-content-category-blog p.readmore {
  text-align: center;
}


/* Mobile Seitennavigation ohne weissen Rand */
@media (max-width: 768px) {
  body.view-category.layout-blog .pagination {
    flex-wrap: wrap !important;
    justify-content: center;
    row-gap: 0.35rem;
  }
}


/* Untere Beitragslinks an die Inhaltsbreite angleichen */
.com-content-category-blog .com-content-blog__links {
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  box-sizing: border-box;
}


/* Suchfeld im Kopfbereich */
.container-topbar {
  position: relative;
}

.container-topbar > search {
  position: absolute;
  right: 30px;
  bottom: 14px;
  width: 310px;
  z-index: 5;
}

.container-topbar > search .mod-finder__search {
  flex-wrap: nowrap;
}

.container-topbar > search .form-control,
.container-topbar > search .btn {
  min-height: 34px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.82rem;
}

.container-topbar > search .btn {
  color: #ffff66;
  background-color: #7b2525;
  border-color: #7b2525;
}

.container-topbar > search .btn:hover,
.container-topbar > search .btn:focus {
  color: #fff;
  background-color: #b80909;
  border-color: #b80909;
}

@media (max-width: 750px) {
  .container-topbar > search {
    position: static;
    width: calc(100% - 32px);
    margin: 0 16px 14px;
  }

  .container-topbar > search .form-control,
  .container-topbar > search .btn {
    font-size: 0.78rem;
  }
}


/* Rechte Kante von Kontakt und Suche angleichen */
.container-topbar > search .awesomplete {
  flex: 1 1 auto;
  min-width: 0;
}

/* Beschriftete Kopfsuche mit reinem Lupenknopf */
.container-topbar > search {
  width: 520px;
}
.container-topbar > search form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.container-topbar > search form > label {
  flex: 0 0 auto;
  margin: 0;
  color: #7b2525;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.container-topbar > search .mod-finder__search {
  flex: 1 1 auto;
  min-width: 0;
}
.container-topbar > search .btn {
  flex: 0 0 36px;
  width: 36px;
  padding-right: 0;
  padding-left: 0;
  font-size: 0;
}
.container-topbar > search .btn .icon-search {
  margin: 0;
  font-size: 0.88rem;
}
@media (max-width: 750px) {
  .container-topbar > search {
    width: calc(100% - 32px);
  }
  .container-topbar > search form {
    flex-wrap: wrap;
  }
  .container-topbar > search form > label {
    width: 100%;
    font-size: 0.75rem;
  }
}

/* Ruhige Kopfsuche: Beschriftung oberhalb */
.container-topbar > search {
  width: 310px;
  bottom: 2px;
}
.container-topbar > search form {
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}
.container-topbar > search form > label {
  width: auto;
  color: #7b2525;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.container-topbar > search .mod-finder__search {
  width: 100%;
}
@media (max-width: 750px) {
  .container-topbar > search {
    width: calc(100% - 32px);
    margin-bottom: 14px;
  }
  .container-topbar > search form {
    flex-wrap: nowrap;
  }
  .container-topbar > search form > label {
    width: auto;
  }
}

/* Suchfeld im Fussbereich */
.container-footer search {
  width: 280px;
  margin-left: auto;
  align-self: center;
}
.container-footer search form {
  display: block;
}
.container-footer search form > label {
  display: block;
  margin: 0 0 0.35rem;
  color: #ffff66;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}
.container-footer search .mod-finder__search {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}
.container-footer search .awesomplete {
  flex: 1 1 auto;
  min-width: 0;
}
.container-footer search .form-control,
.container-footer search .btn {
  min-height: 34px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.82rem;
}
.container-footer search .btn {
  flex: 0 0 36px;
  width: 36px;
  padding-right: 0;
  padding-left: 0;
  color: #ffff66;
  background-color: #7b2525;
  border-color: #7b2525;
  font-size: 0;
}
.container-footer search .btn .icon-search {
  margin: 0;
  font-size: 0.88rem;
}
.container-footer search .btn:hover,
.container-footer search .btn:focus {
  color: #fff;
  background-color: #b80909;
  border-color: #b80909;
}
@media (max-width: 750px) {
  .container-footer search {
    width: 100%;
    margin: 1rem 0 0;
    padding: 0 1rem;
  }
  .container-footer search form > label {
    text-align: center;
  }
}

/* Schriftabstufung im Fussbereich */
#mod-menu119 a {
  font-size: 13px;
  line-height: 1.5;
}
.container-footer search form > label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18.72px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
.container-footer search .form-control {
  font-size: 13px;
}

/* Erste Kontaktzeile ebenfalls kleiner */
#mod-menu119 > li:first-of-type a {
  font-size: 13px;
}

/* Fussueberschriften auf gleicher Hoehe */
@media (min-width: 751px) {
  .container-footer search {
    align-self: flex-start;
    margin-top: 40px;
  }
}

/* Korrektur: Fussueberschriften exakt buendig */
@media (min-width: 751px) {
  .container-footer search {
    margin-top: 0;
  }
}

/* Fussleiste seitlich symmetrisch */
@media (min-width: 751px) {
  #mod-custom120,
  .container-footer search {
    transform: translateX(-40px);
  }
}

/* Logo wieder mittig im Fussbereich */
@media (min-width: 751px) {
  #mod-custom120 {
    transform: none;
  }
}

/* Vertikale Logozentrierung wiederherstellen */
@media (min-width: 751px) {
  #mod-custom120 {
    transform: translateY(-50%);
  }
}

/* Lupe im Suchknopf exakt zentrieren */
.container-footer search .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider zehn Prozent flacher und Bilder vollstaendig */
.shg-slider {
  height: clamp(150px, 20vw, 220px);
  background-color: #111;
}
.shg-slider figure,
.shg-slider img {
  height: 100%;
}
.shg-slider img {
  object-fit: contain;
  object-position: center center;
}


/* Phoca Gallery: Zurueck-Feld kompakt darstellen */
#phocagallery.pg-category-view .pg-item-box:has(.ph-si-back-medium) {
  width: 96px;
  min-width: 96px;
  align-self: flex-start !important;
}

#phocagallery.pg-category-view .pg-item-box-image.pg-svg-box:has(.ph-si-back-medium) {
  width: 96px;
  max-width: 96px !important;
  aspect-ratio: auto !important;
  height: 100px !important;
}

#phocagallery.pg-category-view .ph-si-back-medium {
  width: 96px !important;
  height: 100px !important;
}


/* Phoca Gallery: sichtbare Beschriftung im kompakten Zurueck-Feld */
#phocagallery.pg-category-view .pg-item-box-image.pg-svg-box:has(.ph-si-back-medium) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3e3a1;
}

#phocagallery.pg-category-view .pg-item-box-image.pg-svg-box:has(.ph-si-back-medium) .ph-si-back-medium {
  display: none;
}

#phocagallery.pg-category-view .pg-item-box-image.pg-svg-box:has(.ph-si-back-medium)::before {
  content: "\2190  Zurück";
  color: #8f1528;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}


/* Phoca Gallery: RSS-Symbol ausblenden */
#phocagallery .pg-top-icons a[title="RSS"] {
  display: none !important;
}


/* Phoca Gallery: kleine Bildunterschriften und Quellenhinweis */
#phocagallery.pg-category-view figcaption {
  font-size: 8px !important;
  line-height: 1.3 !important;
}

#phocagallery.pg-category-view > div[style*="text-align:right"],
#phocagallery.pg-category-view > div[style*="text-align: right"] {
  font-size: 8px !important;
  line-height: 1.3 !important;
}

#phocagallery.pg-category-view > div[style*="text-align:right"] a,
#phocagallery.pg-category-view > div[style*="text-align: right"] a {
  font-size: inherit !important;
}


/* Phoca Gallery: Bildunterschriften 12 Pixel */
#phocagallery.pg-category-view figcaption {
  font-size: 12px !important;
}


/* Phoca Gallery: Quellenhinweis mit rechtem Inhaltsabstand */
#phocagallery.pg-category-view > div[style*="text-align:right"],
#phocagallery.pg-category-view > div[style*="text-align: right"] {
  padding-right: 24px !important;
  box-sizing: border-box;
}


/* Phoca Gallery: Sortier- und Anzeigeauswahl auf 12 Pixel */
#phocagallery .pagination.pagination-centered {
  font-size: 12px !important;
}
#phocagallery .pagination.pagination-centered select,
#phocagallery .pagination.pagination-centered option {
  font-size: 12px !important;
}


/* Phoca Gallery: einheitliche Bildflaeche ohne Beschnitt */
#phocagallery.pg-category-view figure > a:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100px !important;
}
#phocagallery.pg-category-view figure > a:first-child img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100px !important;
  object-fit: contain !important;
}


/* Phoca Gallery: Bildunterschriften in der Vorschau */
#phocagallery.pg-category-view figure figcaption {
  display: block !important;
  margin-top: 4px !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-align: center !important;
}


/* Phoca Gallery: feiner roter Rahmen um Vorschaubilder */
#phocagallery.pg-category-view .pg-item-box:has(figure) {
  border-color: #b80909 !important;
}


/* Phoca Gallery: Sortier- und Mengenfelder ausblenden, Seitennavigation behalten */
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) {
  font-size: 0 !important;
}
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) > #imgordering,
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) > #limit {
  display: none !important;
}
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) > .counter,
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) > .pagination {
  font-size: 12px !important;
}


/* Phoca Gallery: Text Seite x von y ausblenden */
#phocagallery.pg-category-view .pagination.pagination-centered:has(> #imgordering) > .counter {
  display: none !important;
}


/* Phoca Gallery: Seitennavigation in Homepage-Rot und Gelb */
#phocagallery.pg-category-view .pagination__wrapper .page-link {
  color: #b80909 !important;
  background-color: #ffffa0 !important;
  border-color: #b80909 !important;
}
#phocagallery.pg-category-view .pagination__wrapper .page-item.active .page-link,
#phocagallery.pg-category-view .pagination__wrapper .page-link[aria-current] {
  color: #b80909 !important;
  background-color: #ffff66 !important;
  border-color: #b80909 !important;
}
#phocagallery.pg-category-view .pagination__wrapper .page-link:hover,
#phocagallery.pg-category-view .pagination__wrapper .page-link:focus {
  color: #b80909 !important;
  background-color: #ffff66 !important;
}
#phocagallery.pg-category-view .pagination__wrapper .page-item.disabled .page-link {
  color: rgba(184, 9, 9, 0.55) !important;
  background-color: #ffffa0 !important;
  border-color: #b80909 !important;
  opacity: 1 !important;
}


/* Phoca Gallery: aktive Seitenzahl rot mit gelber Schrift */
#phocagallery.pg-category-view .pagination__wrapper .page-item.active .page-link,
#phocagallery.pg-category-view .pagination__wrapper .page-link[aria-current] {
  color: #ffff66 !important;
  background-color: #b80909 !important;
  border-color: #b80909 !important;
}


/* Phoca Gallery: dezenter Diarahmen fuer Vorschaubilder */
#phocagallery.pg-category-view .pg-item-box:has(figure) {
  border-color: transparent !important;
}
#phocagallery.pg-category-view figure > a:first-child {
  height: 100px !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  background-color: #262626 !important;
  border: 1px solid #d8c87a !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28) !important;
}
#phocagallery.pg-category-view figure > a:first-child img {
  max-height: 88px !important;
  box-shadow: none !important;
}


/* Phoca Gallery: heller abgerundeter Diarahmen mit integriertem Titel */
#phocagallery.pg-category-view .pg-item-box:has(figure) figure {
  margin: 0 !important;
  padding: 5px 5px 0 !important;
  background-color: #f0f0f0 !important;
  border: 1px solid #d8c87a !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
}
#phocagallery.pg-category-view figure > a:first-child {
  height: 100px !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  background-color: #262626 !important;
  border: 0 !important;
  border-radius: 4px 4px 0 0 !important;
  box-shadow: none !important;
}
#phocagallery.pg-category-view figure figcaption {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 5px 3px !important;
  box-sizing: border-box !important;
  color: #b80909 !important;
  background-color: #f0f0f0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

/* Phoca Gallery: Uebersicht als chronologische Veranstaltungsliste */
#phocagallery.pg-categories-view .pg-categories-items-box {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  max-width: 780px;
  padding-right: 24px;
}

#phocagallery.pg-categories-view .pg-category-box {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  width: 100% !important;
  min-height: 126px;
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  border: 0 !important;
  border-left: 4px solid #b80909 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

#phocagallery.pg-categories-view .pg-category-box-image {
  width: 150px !important;
  height: 96px !important;
  margin: 0 !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

#phocagallery.pg-categories-view .pg-category-box-image a {
  display: block;
  width: 100%;
  height: 100%;
}

#phocagallery.pg-categories-view .pg-category-box-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

#phocagallery.pg-categories-view .pg-category-box-info {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 !important;
}

#phocagallery.pg-categories-view .pg-category-box-title {
  color: #7b2525;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

#phocagallery.pg-categories-view .pg-category-box-title a {
  color: #7b2525;
  text-decoration: none;
}

#phocagallery.pg-categories-view .pg-category-box-title a:hover,
#phocagallery.pg-categories-view .pg-category-box-title a:focus {
  color: #b80909;
  text-decoration: underline;
}

#phocagallery.pg-categories-view .pg-category-box-count {
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

#phocagallery.pg-categories-view .ph-si-category {
  display: none;
}

@media (max-width: 750px) {
  #phocagallery.pg-categories-view .pg-categories-items-box {
    max-width: none;
    padding-right: 0;
  }

  #phocagallery.pg-categories-view .pg-category-box {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 92px;
    padding: 0.7rem 0.8rem !important;
  }

  #phocagallery.pg-categories-view .pg-category-box-image {
    width: 92px !important;
    height: 68px !important;
  }

  #phocagallery.pg-categories-view .pg-category-box-title {
    font-size: 1rem;
  }
}

/* Phoca Gallery: Titel in der Listenansicht neben dem Bild */
#phocagallery.pg-categories-view .pg-category-box-info {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

#phocagallery.pg-categories-view .pg-category-box-title {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Phoca Gallery: Autor und Bildrechte in der Uebersicht */
#phocagallery.pg-categories-view .pg-category-box-info {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#phocagallery.pg-categories-view .pg-category-rights {
  margin-top: 0.35rem;
  color: #555;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

/* Phoca Gallery: Quellenhinweis auch in der Kategorieuebersicht */
#phocagallery.pg-categories-view > div[style*="text-align:right"],
#phocagallery.pg-categories-view > div[style*="text-align: right"] {
  padding-right: 24px !important;
  box-sizing: border-box;
  font-size: 8px !important;
  line-height: 1.3 !important;
}

#phocagallery.pg-categories-view > div[style*="text-align:right"] a,
#phocagallery.pg-categories-view > div[style*="text-align: right"] a {
  font-size: inherit !important;
}



/* Phoca Gallery: Auswahl und Seitennavigation der Uebersicht */
#phocagallery.pg-categories-view .pg-category-box[hidden] {
  display: none !important;
}

#phocagallery.pg-categories-view .pg-gallery-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.25rem 24px 0.6rem 0;
}

#phocagallery.pg-categories-view .pg-gallery-page-buttons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#phocagallery.pg-categories-view .pg-gallery-page-buttons button,
#phocagallery.pg-categories-view .pg-gallery-limit-label select {
  min-width: 2.1rem;
  min-height: 2.1rem;
  border: 1px solid #b80909;
  border-radius: 0.35rem;
  background: #ffffa0;
  color: #7b2525;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

#phocagallery.pg-categories-view .pg-gallery-page-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

#phocagallery.pg-categories-view .pg-gallery-page-buttons button:hover,
#phocagallery.pg-categories-view .pg-gallery-page-buttons button:focus-visible,
#phocagallery.pg-categories-view .pg-gallery-page-buttons button.is-active {
  background: #b80909;
  color: #ffff66;
}

#phocagallery.pg-categories-view .pg-gallery-page-buttons button:disabled {
  cursor: default;
  opacity: 0.45;
}

#phocagallery.pg-categories-view .pg-gallery-limit-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #444;
  font-size: 0.82rem;
}

#phocagallery.pg-categories-view .pg-gallery-limit-label select {
  padding: 0.25rem 1.8rem 0.25rem 0.55rem;
}

@media (max-width: 750px) {
  #phocagallery.pg-categories-view .pg-gallery-pagination-controls {
    margin-right: 0;
  }
}


/* ==================================================
   VCNT Besucherzähler
   ================================================== */

.visitorcounter {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Überschrift */
.visitorcounter::before {
    content: "Besucher";
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* einzelne Zeilen */
.visitorcounter p {
    margin: 0;
    padding: 1px 0;
}

/* Zahlen rechts */
.visitorcounter .floatright {
    float: right;
    font-weight: 600;
}

.visitorcounter {
    background-color: rgba(255, 255, 255, 0.38) !important;
}

/* Besucherzähler – linke Menüleiste */
.sidebar-left.card:has(.visitorcounter) {
  margin-top: .9rem;
  background: #ffff66 !important;
  border: 2px solid #b80909;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(123, 37, 37, .18);
}
.sidebar-left.card:has(.visitorcounter) .card-body {
  padding: .7rem .85rem;
}
.visitorcounter p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(184, 9, 9, .3);
  font-size: .86rem;
  line-height: 1.3;
}
.visitorcounter p:last-child {
  border-bottom: 0;
  font-size: 0;
}
.visitorcounter p:last-child::before {
  content: "Gesamtzahl seit 2007";
  color: #7b2525;
  font-size: .86rem;
  font-weight: 700;
}
.visitorcounter .floatright {
  float: none !important;
  margin-left: auto;
  color: #7b2525;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.visitorcounter p:last-child .floatright {
  color: #b80909;
  font-size: .95rem;
}


/* Besucherzähler – Feinabstimmung */
.sidebar-left.card:has(.visitorcounter) {
  margin-left: .6rem;
  width: calc(100% - .75rem);
  box-sizing: border-box;
  background-color: #ffff66 !important;
}
.visitorcounter,
.visitorcounter p {
  color: #7b2525;
  font-size: .78rem;
}
.visitorcounter p:last-child::before {
  color: #7b2525;
  font-size: .78rem;
}
.visitorcounter p:last-child .floatright {
  color: #b80909;
  font-size: .82rem;
}


/* Besucherzähler – Gesamtzahl unterhalb */
.visitorcounter p:last-child {
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
}
.visitorcounter p:last-child .floatright {
  margin-left: 0;
  font-size: 1rem;
  letter-spacing: .03em;
}
