:root {
  --bs-body-font-size: 1.125rem;
  --bs-body-color: #222;
  --bs-headings-font-weight: 300 !important;
}
/* Eckige statt runde Ecken: Dropdown-Menüs und Modalfenster (Buttons, Navbar-Toggler etc. bleiben rund) */
.dropdown-menu {
  --bs-dropdown-border-radius: 0;
}
.modal {
  --bs-modal-border-radius: 0;
}
/* Abstand vor/nach (Erscheinungsbild-Tab "space_before_class"/"space_after_class") - bisher ohne CSS-Wirkung, gilt für alle Content-Elemente */
.frame-space-before-extra-small {
  margin-top: 1rem;
}
.frame-space-before-small {
  margin-top: 2rem;
}
.frame-space-before-medium {
  margin-top: 3rem;
}
.frame-space-before-large {
  margin-top: 4.5rem;
}
.frame-space-before-extra-large {
  margin-top: 6rem;
}
.frame-space-after-extra-small {
  margin-bottom: 1rem;
}
.frame-space-after-small {
  margin-bottom: 2rem;
}
.frame-space-after-medium {
  margin-bottom: 3rem;
}
.frame-space-after-large {
  margin-bottom: 4.5rem;
}
.frame-space-after-extra-large {
  margin-bottom: 6rem;
}
/* Störer Breaking News (Mask-CE "stoerer_breaking_news") */
.breaking-news {
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--bs-primary, #c10303);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}
.breaking-news__inner {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1.5rem;
  padding: 1.25rem 1.5rem;
}
.breaking-news__logo {
  flex: 0 0 auto;
  height: auto;
}
.breaking-news__body {
  flex: 1 1 auto;
  min-width: 0;
}
.breaking-news__title {
  font-family: "barlow", sans-serif;
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--bs-primary, #c10303);
  margin: 0 0 0.35rem;
}
.breaking-news__text {
  color: #333;
  line-height: 1.5;
}
.breaking-news__text p:last-child {
  margin-bottom: 0;
}
.breaking-news__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "barlow", sans-serif;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .breaking-news__inner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .breaking-news__cta {
    margin-top: 0.25rem;
  }
}
/* News (Auswahl) - Mask-CE "news_auswahl" */
.ty-newsteaser-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--bs-primary, #c10303);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ty-newsteaser-card:hover,
.ty-newsteaser-card:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
}
.ty-newsteaser-card__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.ty-newsteaser-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ty-newsteaser-card__body {
  padding: 1.25rem 1.5rem;
}
.ty-newsteaser-card__date {
  font-family: "barlow", sans-serif;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.35rem;
}
.ty-newsteaser-card__title {
  font-family: "barlow", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #181716;
}
.ty-newsteaser-card__text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
/* Buttons (Seiten) - Mask-CE "buttons_seiten" */
.ty-round-buttons {
  padding: 1rem 0;
}
.ty-round-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 210px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.ty-round-button:hover,
.ty-round-button:focus-visible {
  color: inherit;
  text-decoration: none;
}
.ty-round-button__image {
  display: block;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-round-button__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ty-round-button:hover .ty-round-button__image,
.ty-round-button:focus-visible .ty-round-button__image {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}
.ty-round-button__caption {
  display: block;
  margin-top: 0.75rem;
  font-family: "barlow", sans-serif;
  font-size: 0.95rem;
  color: #181716;
}
/* Bootstrap setzt font-weight: bolder, was bei einer Basis von 300 (Light) nur auf 400 aufloest - kaum sichtbar fett. Feste Staerke erzwingen. */
b,
strong {
  font-weight: 500;
}
h1,
.h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 300;
}
h2,
.h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 300;
}
h3,
.h3 {
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 300;
}
h4,
.h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  font-family: "barlow", sans-serif;
  margin-bottom: 0;
  color: var(--bs-primary);
}
h5,
.h5 {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
  font-family: "barlow", sans-serif;
  margin-bottom: 0;
}
.lead.text-muted {
  color: #666 !important;
}
.display-1 {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 300;
}
.display-2 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 300;
}
.display-3 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 300;
}
.display-4 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 300;
}
.display-5 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 300;
}
.display-6 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 300;
}
@media (max-width: 767.98px) {
  h1,
  .h1,
  .display-4 {
    font-size: 2.25rem;
  }
  h2,
  .h2,
  .display-5 {
    font-size: 1.875rem;
  }
  h3,
  .h3,
  .display-6 {
    font-size: 1.5rem;
  }
  .display-1 {
    font-size: 3rem;
  }
  .display-2 {
    font-size: 2.75rem;
  }
  .display-3 {
    font-size: 2.5rem;
  }
}
.ty-table > :first-child > tr:first-child > th,
.ty-table > :first-child > tr:first-child > td {
  border-top: 1px solid var(--bs-table-border-color);
}
.ty-table th {
  font-weight: 500;
}
.ty-content a {
  color: #222;
  text-decoration-color: var(--bs-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.ty-content a:hover {
  color: var(--bs-primary);
}
.ty-content a.btn {
  color: var(--bs-btn-color);
  text-decoration: none;
}
.ty-content a.btn:hover {
  color: var(--bs-btn-hover-color, var(--bs-btn-color));
  text-decoration: none;
}
ul.ty-ullist {
  padding-left: 1.25em;
}
p.ty-no-margin-bottom {
  margin-bottom: 0;
}
ul.ty-ullist li::marker {
  color: var(--bs-primary);
}
figcaption {
  font-family: "barlow", sans-serif;
  font-weight: 500;
  line-height: 1.2;
}
.navbar-autohide {
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}
.navbar-autohide.navbar-hidden {
  transform: translateY(-100%);
}
.navbar-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Hauptmenuepunkte: rot bei Hover und wenn aktiv */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--bs-primary, #c10303);
}

/* Hauptmenue einzeilig halten: die Buttons (Bewerbung, Spenden) sitzen auf dem Desktop in der grauen Leiste (siehe Sprachschalter),
   damit das Menue auch bei laengeren Titeln in FR/IT/EN genug Platz hat */
@media (min-width: 1200px) {
  .navbar .navbar-nav,
  .navbar .navbar-nav > .nav-item {
    flex-shrink: 0;
  }
  .navbar .btn {
    white-space: nowrap;
  }
  .navbar .navbar-collapse > .ty-menu-buttons {
    display: none !important;
  }
  /* Menü rechtsbündig: der Text des letzten Punkts endet bündig mit der Sprachwahl darüber */
  .navbar .navbar-nav {
    margin-right: -1rem;
  }
}

/* Optik an Mega-Menue angleichen (Akzentstrich, Schrift, Hover), Struktur/Breite bleibt kompakt */
.navbar-nav .dropdown-menu {
  border-top: 3px solid var(--bs-primary, #c10303);
}
.navbar-nav .dropdown-item {
  font-family: "barlow", sans-serif;
  transition: color 0.15s ease;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
  color: var(--bs-primary, #c10303);
  background: transparent;
}
@media (max-width: 1199.98px) {
  .nav-item.dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-item.dropdown > .nav-link {
    flex: 1;
  }
  .nav-item.dropdown.open > .dropdown-menu,
  .nav-item.dropdown.show > .dropdown-menu {
    display: block;
  }
  .nav-item.dropdown.closed > .dropdown-menu {
    display: none !important;
  }
  .dropdown-toggle-btn {
    background: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: inherit;
    line-height: 1;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
  }
  .dropdown-toggle-btn[aria-expanded="true"] {
    transform: rotate(0deg);
  }
  .dropdown-menu {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .dropdown-toggle-btn {
    display: none !important;
  }
  .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  /* Normales Dropdown unter dem Hauptmenuepunkt zentrieren */
  .navbar-nav .dropdown-menu:not(.ty-mega-menu) {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  /* Die letzten Menüpunkte (rechts am Rand): Dropdown rechtsbündig unter dem Punkt statt zentriert,
     damit es nicht über den Bildschirmrand hinausragt */
  .navbar-nav > .nav-item.dropdown:nth-last-child(-n+3) > .dropdown-menu:not(.ty-mega-menu) {
    left: auto;
    right: 0;
    transform: none;
  }
  /* Mega-Menü hängt sich an die (bereits fixierte) Navbar statt an den einzelnen
     Menüpunkt, damit es unabhängig von dessen Position nie über den Rand hinausragt */
  .nav-item.dropdown.ty-mega {
    position: static;
  }
  .ty-mega-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 800px;
    padding: 2rem;
    border-top: 3px solid var(--bs-primary, #c10303);
  }
  /* Pfeil, der per JS (custom.js) auf den ausloesenden Menuepunkt ausgerichtet wird
     (gilt fuer normale Dropdowns und das Mega-Menue gleichermassen) */
  .navbar-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--caret-x, 1.5rem);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--bs-primary, #c10303);
  }
  .ty-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem 2rem;
  }
}
/* Gleiche effektive Breite wie "Titel mit Text" (col-lg-10 col-xl-8) je Breakpoint */
@media (min-width: 1200px) {
  .ty-mega-menu {
    max-width: 760px;
  }
}
@media (min-width: 1400px) {
  .ty-mega-menu {
    max-width: 880px;
  }
}
.ty-mega-menu__colTitle {
  display: block;
  font-family: "barlow", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #222;
  text-decoration: none;
  margin-bottom: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e9ecef;
}
.ty-mega-menu__colTitle:hover,
.ty-mega-menu__colTitle.active {
  color: var(--bs-primary, #c10303);
}
.ty-mega-menu__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ty-mega-menu__sublink {
  display: block;
  padding: 0.35rem 0;
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.ty-mega-menu__sublink:hover,
.ty-mega-menu__sublink.active {
  color: var(--bs-primary, #c10303);
}
@media (max-width: 1199.98px) {
  .ty-mega-menu__grid {
    display: block;
  }
  .ty-mega-menu__col {
    margin-bottom: 1rem;
  }
}
.splide__pagination__page {
  background: #000;
}
.splide__pagination__page.is-active {
  background: #0d6efd;
  transform: scale(1.3);
}
#testimonial-slider .splide__arrow {
  background: transparent;
  opacity: 0.4;
}
#testimonial-slider .splide__arrow--prev {
  left: 0;
}
#testimonial-slider .splide__arrow--next {
  right: 0;
}
#testimonial-slider .splide__arrow:hover {
  opacity: 1;
}
#testimonial-slider .splide__arrow:disabled {
  display: none;
}
#testimonial-slider .splide__pagination {
  bottom: -2rem;
}
.section-subtitle {
  color: var(--bs-primary);
  font-family: "barlow", sans-serif;
  letter-spacing: 0.05em;
}
.auftrag-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--bs-primary);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.auftrag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}
.auftrag-card .bi {
  color: var(--bs-primary);
  font-size: 2rem;
}
.auftrag-card h3 {
  font-size: 1.05rem;
  font-weight: 300;
}
.aufgabe-row + .aufgabe-row {
  margin-top: 4rem;
}
.aufgabe-row h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-top: 0.5rem;
}
.aufgabe-row p {
  font-weight: 400;
  line-height: 1.7;
}
.aufgabe-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}
.aufgabe-number {
  font-family: "barlow", sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--bs-primary);
  line-height: 1;
  opacity: 0.55;
}
.ty-kacheln {
  --req-icon-size: 2rem;
}
.ty-kacheln .req-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: 3px solid var(--bs-primary);
  border-radius: 0.25rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-kacheln .req-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}
.ty-kacheln .req-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: "barlow", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--bs-primary);
  opacity: 0.25;
  line-height: 1;
}
.ty-kacheln .req-icon {
  display: inline-block;
  width: var(--req-icon-size);
  height: var(--req-icon-size);
  color: var(--bs-primary);
  margin-bottom: 0.75rem;
  line-height: 0;
}
.ty-kacheln .req-icon > svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  fill: currentColor;
}
.ty-kacheln .req-title {
  font-family: "barlow", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #222;
}
.ty-kacheln .req-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 0;
}
.ty-cards .card {
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}
.ty-cards .card-img-side {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ty-downloads {
  --download-icon-size: 28px;
  --download-action-size: 24px;
}
.ty-downloads .download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-downloads .download-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
}
.ty-downloads .download-card:hover .download-action {
  transform: translateY(2px);
}
.ty-downloads .download-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: rgba(193, 3, 3, 0.08);
  color: var(--bs-primary);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ty-downloads .download-icon > svg {
  width: var(--download-icon-size) !important;
  height: var(--download-icon-size) !important;
  display: block;
  fill: currentColor;
}
.ty-downloads .download-icon-thumbnail {
  width: 130px;
  height: auto;
  background: #f8f9fa;
  border-radius: 0;
  padding: 10px;
  box-sizing: border-box;
}
.ty-downloads .download-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.ty-downloads .download-title {
  font-family: "barlow", sans-serif;
  font-weight: 300;
  font-size: 1.625rem;
  margin-bottom: 0.15rem;
  color: #222;
}
.ty-downloads .download-meta {
  font-family: "barlow", sans-serif;
  font-size: 0.8rem;
  color: #666;
}
.ty-downloads .download-action {
  color: var(--bs-primary);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--download-action-size);
  height: var(--download-action-size);
  transition: transform 0.2s ease;
}
.ty-downloads .download-action > svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  fill: currentColor;
}
.ty-cta .btn {
  font-family: "barlow", sans-serif;
}
.ty-youtube .ratio iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--bs-card-border-radius, 0.375rem);
}
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s;
  pointer-events: none;
  padding: 0;
}
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
}
#scrollTop:hover {
  background: #8f0202;
}
#scrollTop svg.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  border-radius: 50%;
}
#scrollTop .progress-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2.5;
}
#scrollTop .progress-ring-progress {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 138.2;
  will-change: stroke-dashoffset;
}
#scrollTop .scroll-arrow {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ty-menu-card {
  border-radius: 0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-menu-card .card-img-top {
  border-radius: 0;
}
.ty-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}
.ty-menu-card--video {
  background: #000;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}
.ty-menu-card--video:hover {
  transform: none;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}
.ty-menu-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.ty-menu-card__video {
  object-fit: contain;
  display: block;
}
.ty-menu-card--video iframe {
  display: block;
  border: 0;
}
.ty-menu-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bs-primary, #c10303);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ty-menu-card__play:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}
.frame-type-form_formframework form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--bs-card-border-radius, 0.375rem);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  padding: 2rem;
}
form fieldset {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--bs-card-border-radius, 0.375rem);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
}
form button[type="submit"],
form input[type="submit"] {
  font-family: "barlow", sans-serif;
}
form .mb-3,
form .form-group {
  margin-bottom: 1.5rem;
}
form legend {
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: 1rem;
}
form h2 {
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 300;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
form h2:first-child {
  margin-top: 0;
}
/* — Agenda (Einträge sehen aus wie Medienmitteilungen / Medienspiegel) —————————————————— */
.ty-agenda-list {
  display: block;
}
.ty-agenda[hidden] {
  display: none !important;
}
.ty-agenda-filter:empty {
  display: none;
}
.ty-agenda-filter {
  margin-bottom: 2rem;
}
.ty-agenda-filter .form-select {
  border-radius: 0;
}
.ty-agenda__sektion {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin: 0.6rem 0 0;
}
.ty-agenda--more {
  position: relative;
}
.ty-agenda__more {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-primary, #c10303) !important;
  text-decoration: none !important;
}
.ty-agenda__more svg {
  flex: 0 0 auto;
  box-sizing: content-box;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--bs-primary, #c10303);
  color: #fff;
  transition: transform 0.25s ease;
}
.ty-agenda__more:hover,
.ty-agenda__more:focus-visible {
  text-decoration: underline !important;
}
.ty-agenda__more:hover svg,
.ty-agenda__more:focus-visible svg {
  transform: translateX(3px);
}
@media (max-width: 575.98px) {
  .ty-agenda__more {
    position: static;
    margin-top: 0.75rem;
  }
}
.ty-agenda-hidden p.datum {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-primary, #c10303);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.ty-agenda-hidden h2 {
  font-family: "barlow", sans-serif;
  font-weight: 600;
  color: #222;
}
.ty-agenda-hidden p strong {
  font-weight: 500;
  font-size: 0.85rem;
  color: #666;
}
.ty-agenda-hidden {
  display: none;
  max-width: 600px;
  padding: 0.5rem 0;
}
.ty-agenda-hidden h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.ty-agenda-hidden p.datum {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.ty-agenda-hidden__extra {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}
.ty-agenda-hidden__sektion {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}
.ty-geschichte__item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 3rem;
}
.ty-geschichte__item:last-child {
  padding-bottom: 0;
}
.ty-geschichte__item:last-child .ty-geschichte__line {
  display: none;
}
.ty-geschichte__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
}
.ty-geschichte__dot {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--bs-primary);
  margin-top: 0.26rem;
}
.ty-geschichte__line {
  display: block;
  flex: 1;
  width: 2px;
  min-height: 1rem;
  margin-top: 0.375rem;
  background: linear-gradient(to bottom, rgba(193, 3, 3, 0.35) 0%, #e9ecef 100%);
}
.ty-geschichte__content {
  flex: 1;
  min-width: 0;
}
.ty-geschichte__year {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  margin-bottom: 0.1rem;
}
.ty-geschichte__title {
  font-family: "barlow", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--bs-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.ty-geschichte__text {
  color: #222;
}
.ty-geschichte__text p:last-child {
  margin-bottom: 0;
}
.ty-geschichte__text--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.ty-geschichte__modal-wrap {
  max-width: 100%;
  width: 100%;
}
.ty-geschichte__modal-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

/* — 2027 Link-Box 50% —————————————————— */
.ty-linkbox-2027 {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ty-linkbox-2027__image {
  flex: 0 0 150px;
  max-width: 150px;
}
.ty-linkbox-2027__image img {
  display: block;
  width: 100%;
  height: auto;
}
.ty-linkbox-2027__body {
  flex: 1 1 auto;
  min-width: 0;
}
.ty-linkbox-2027__title {
  font-family: "barlow", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 0.35rem;
}
.ty-linkbox-2027__text {
  font-size: 0.95rem;
  color: #222;
}
.ty-linkbox-2027 .btn {
  margin-top: 1rem;
  font-family: "barlow", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 10px !important;
}
.ty-linkbox-2027 a.btn-primary {
  background: #fff;
  border-color: var(--bs-primary, #c10303);
  color: #222;
}
.ty-linkbox-2027 a.btn-primary:hover {
  background: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
  color: #fff;
}
@media (max-width: 767.98px) {
  .ty-linkbox-2027 {
    flex-direction: column;
  }
  .ty-linkbox-2027__image {
    max-width: 100%;
  }
}

/* — 2027 Agenda (Programm) —————————————————— */
.ty-agenda-2027 {
  margin-bottom: 2.5rem;
}
.ty-agenda-2027__title {
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.ty-agenda-2027__row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.ty-agenda-2027__list {
  flex: 1 1 auto;
  min-width: 0;
}
.ty-agenda-2027__month {
  font-family: "barlow", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--bs-primary, #c10303);
  margin-top: 2rem;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}
.ty-agenda-2027__month:first-child {
  margin-top: 0;
}
.ty-agenda-2027__item {
  padding: 0.25rem 0 0.75rem;
  border-top: 1px solid #e9ecef;
}
.ty-agenda-2027__item--first {
  border-top: none;
}
.ty-agenda-2027__day {
  display: block;
  font-family: "barlow", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.1;
  color: #222;
  margin-bottom: 0.25rem;
}
.ty-agenda-2027__anlass {
  font-family: "barlow", sans-serif;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.15rem;
}
.ty-agenda-2027__ort {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}
.ty-agenda-2027__image {
  flex: 0 0 300px;
  max-width: 300px;
}
.ty-agenda-2027__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
@media (max-width: 767.98px) {
  .ty-agenda-2027__row {
    flex-direction: column;
  }
  .ty-agenda-2027__image {
    max-width: 100%;
  }
}

/* — 2027 Text mit Bild (Shadowbox) —————————————————— */
.ty-textmitbild .btn {
  margin-top: 1rem;
  font-family: "barlow", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 10px !important;
}
.ty-textmitbild a.btn-primary {
  background: #fff;
  border-color: var(--bs-primary, #c10303);
  color: #222;
}
.ty-textmitbild a.btn-primary:hover {
  background: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
  color: #fff;
}
.ty-popup-text {
  display: none;
}
/* Bilder in der Lightbox: höchstens 1200 px breit und 80 % der Fensterhöhe */
.glightbox-container .gslide-image img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
}
/* Text-Popups (GLightbox, Typ «inline»): das versteckte Element wird beim Öffnen in die Lightbox verschoben */
.gslide-inline .ginlined-content {
  padding: 2.5rem;
  box-sizing: border-box;
}
.gslide-inline .ginlined-content .ty-popup-text,
.gslide-inline .ginlined-content .ty-agenda-hidden {
  display: block;
  max-width: none;
  padding: 0;
}
.gslide-inline .ginlined-content .ty-agenda-hidden p,
.gslide-inline .ginlined-content .ty-agenda-hidden h2,
.gslide-inline .ginlined-content .ty-agenda-hidden div {
  display: block;
}

/* — Link zum Seitenanfang —————————————————— */
.ty-linktotop {
  text-align: center;
  margin: 2rem 0;
}
.ty-linktotop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bs-primary, #c10303);
  color: #fff;
  transition: background-color 0.2s ease;
}
.ty-linktotop a:hover {
  background: #8f0202;
}
.ty-linktotop-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* — Titel mit Button —————————————————— */
.ty-titelmitbutton {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.ty-titelmitbutton__title {
  margin-bottom: 0;
}
.ty-titelmitbutton .btn {
  font-family: "barlow", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 10px !important;
  white-space: nowrap;
}
.ty-titelmitbutton a.btn-primary {
  background: #fff;
  border-color: var(--bs-primary, #c10303);
  color: #222;
}
.ty-titelmitbutton a.btn-primary:hover {
  background: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
  color: #fff;
}
@media (max-width: 767.98px) {
  .ty-titelmitbutton {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* — Online spenden (Betrags-Kacheln) —————————————————— */
.ty-spende {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.ty-spende .cell {
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 140px;
}
.ty-spende a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--bs-primary, #c10303);
  border-radius: 0.375rem;
  text-decoration: none;
  color: #222;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ty-spende a:hover {
  background: var(--bs-primary, #c10303);
  color: #fff;
}
.ty-spende .currency {
  font-family: "barlow", sans-serif;
  font-size: 0.95rem;
  text-align: center;
}
.ty-spende .value {
  font-family: "barlow", sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--bs-primary, #c10303);
}
.ty-spende a:hover .value {
  color: #fff;
}
@media (max-width: 575.98px) {
  .ty-spende .cell {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* — Text mit Bild (floating) —————————————————— */
.ty-textmitbildfloating {
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.ty-textmitbildfloating::after {
  content: "";
  display: block;
  clear: both;
}
.ty-textmitbildfloating__title {
  font-weight: 300;
  margin-bottom: 1rem;
}
.ty-textmitbildfloating .ty-image {
  float: left;
  width: 40%;
  max-width: 320px;
  margin: 8px 1.5rem 1rem 0;
}
.ty-textmitbildfloating .ty-image--right {
  float: right;
  margin: 8px 0 1rem 1.5rem;
}
.ty-textmitbildfloating .ty-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}
.ty-textmitbildfloating .ty-text {
  color: #222;
}
.ty-textmitbildfloating .ty-text > *:first-child {
  margin-top: 0;
}
.ty-textmitbildfloating__button {
  clear: both;
}
.ty-textmitbildfloating .btn {
  margin-top: 1rem;
  font-family: "barlow", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 10px !important;
}
.ty-textmitbildfloating a.btn-primary {
  background: #fff;
  border-color: var(--bs-primary, #c10303);
  color: #222;
}
.ty-textmitbildfloating a.btn-primary:hover {
  background: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
  color: #fff;
}
@media (max-width: 767.98px) {
  .ty-textmitbildfloating .ty-image,
  .ty-textmitbildfloating .ty-image--right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

/* — Menü: Unterseiten (kleine Kacheln) —————————————————— */
.ty-menu-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
/* Direkt nach einem Visual: dessen mb-5 auf denselben kleinen Abstand einkuerzen */
.ty-visual + .frame-type-menu_subpages_pipes {
  margin-top: -2rem;
}
.ty-menu-tiles__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(0.25rem - 1.2px) 0.75rem calc(0.25rem + 1.2px);
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  color: #222;
  text-decoration: none;
  font-family: "barlow", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ty-menu-tiles__link:hover,
.ty-menu-tiles__link.active {
  background: #fff;
  color: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
}

/* — Text mit Bild —————————————————— */
.ty-textmitbild {
  margin-bottom: 2.5rem;
}
.ty-textmitbild__title {
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.ty-textmitbild__row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.ty-textmitbild__row .ty-image {
  flex: 0 0 260px;
  max-width: 260px;
}
.ty-textmitbild__row .ty-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}
.ty-textmitbild__row .ty-image--no-shadow img {
  box-shadow: none;
}
.ty-textmitbild__caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}
.ty-textmitbild__row .ty-text {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 767.98px) {
  .ty-textmitbild__row {
    flex-direction: column;
  }
  .ty-textmitbild__row .ty-image {
    flex-basis: auto;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* — Videos —————————————————— */
.ty-videos__auto video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
.ty-videos__grid {
  overflow: hidden;
  border-radius: 0.25rem;
}
.ty-videos__grid video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* — Spenden-Links —————————————————— */
.ty-spendenlinks {
  background: var(--bs-primary, #c10303);
  padding: 3.5rem 0;
}
.ty-spendenlinks--boxed {
  background: none;
  padding: 0;
}
.ty-spendenlinks--boxed .row > div {
  background: var(--bs-primary, #c10303);
  padding: 3rem 1.5rem;
}
.ty-spendenlinks .h6.text-primary {
  color: rgba(255, 255, 255, 0.75) !important;
}
.ty-spendenlinks h1,
.ty-spendenlinks h2,
.ty-spendenlinks h3,
.ty-spendenlinks h4,
.ty-spendenlinks h5 {
  color: #fff;
}
.ty-spendenlinks .lead.text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}
.ty-spendenlinks__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.ty-spendenlinks__buttons .btn {
  font-family: "barlow", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 10px !important;
}
.ty-spendenlinks__buttons a.btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--bs-primary, #c10303);
}
.ty-spendenlinks__buttons a.btn-primary:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* — Porträts —————————————————— */
.ty-portraits {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border-left: 4px solid var(--bs-primary, #c10303);
  padding: 0.5rem 0 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ty-portraits > hr {
  display: none;
}
.ty-portraits .ty-image {
  flex: 0 0 150px;
  max-width: 150px;
}
.ty-portraits .ty-image img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}
.ty-portraits .ty-text {
  flex: 1 1 auto;
  min-width: 0;
}
.ty-portraits .ty-text h2 {
  font-family: "barlow", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.15rem;
}
.ty-portraits .ty-text h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.ty-portraits .ty-text p {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .ty-portraits {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--bs-primary, #c10303);
    padding: 1.5rem 0 0;
  }
  .ty-portraits .ty-image {
    flex-basis: auto;
  }
}

/* — Medienmitteilung / Medienspiegel —————————————————— */
.ty-medienmitteilung {
  display: flex;
  flex-direction: row-reverse;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.1rem;
}
.ty-medienmitteilung--link {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-medienmitteilung--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
  color: inherit;
  text-decoration: none;
}
.ty-medienmitteilung__image {
  flex: 0 0 280px;
  max-width: 280px;
}
.ty-medienmitteilung__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.ty-medienmitteilung__credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #666;
}
.ty-medienmitteilung__body {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 767.98px) {
  .ty-medienmitteilung {
    flex-direction: column;
  }
  .ty-medienmitteilung__image {
    flex-basis: auto;
    max-width: 100%;
  }
}
.ty-medienmitteilung__date {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ty-medienmitteilung__title {
  font-family: "barlow", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.ty-medienmitteilung__sub {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.ty-medienmitteilung__text {
  font-size: var(--bs-body-font-size);
  color: #222;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ty-medienmitteilung__text p:last-child {
  margin-bottom: 0;
}
.ty-medienmitteilung--full .ty-medienmitteilung__text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* — Medienspiegel: Blätterleiste (EXT:news-Paginierung) —————————————————— */
.news-list-view .pagination,
.ty-news-toolbar .pagination {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
.news-list-view .pagination {
  justify-content: center;
}
.news-list-view .pagination .page-link,
.ty-news-toolbar .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-width: 2.5rem;
  box-sizing: border-box;
}
.news-list-view .pagination .page-link svg,
.ty-news-toolbar .pagination .page-link svg {
  display: block;
}

/* — Medienspiegel: Sprachauswahl + obere Blätterleiste in einer Zeile —— */
.ty-news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ty-news-toolbar .pagination {
  margin-top: 16px;
}
.ty-news-toolbar .form-select {
  width: auto;
  flex: 0 0 auto;
  height: 2.5rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 2.5rem;
  box-sizing: border-box;
}
@media (max-width: 767.98px) {
  .ty-news-toolbar {
    flex-direction: column;
    justify-content: center;
  }
}

/* — Termine —————————————————— */
.ty-termine__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}
.ty-termine__item:first-child {
  padding-top: 0;
}
.ty-termine__item:last-child {
  border-bottom: 0;
}
.ty-termine__date {
  flex: 0 0 16rem;
  white-space: nowrap;
  font-family: "barlow", sans-serif;
  font-weight: 500;
  color: var(--bs-primary);
}
.ty-termine__body {
  flex: 1 1 260px;
  min-width: 0;
}
.ty-termine__title {
  font-family: "barlow", sans-serif;
  font-weight: 600;
  color: #222;
}
.ty-termine__ort {
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 575.98px) {
  .ty-termine__item {
    flex-direction: column;
    gap: 0.15rem;
  }
  .ty-termine__date {
    flex-basis: auto;
  }
  .ty-termine__body {
    flex-basis: auto;
  }
}

/* — Footer —————————————————— */
.ty-footer p:first-child {
  margin-bottom: 0.35rem;
}
.ty-footer__copyright-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}
.ty-footer a {
  text-decoration: none;
}

/* — Sprungmarken (Anker-Navigation) —————————————————— */
.ty-anker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
}
.ty-anker__logo {
  flex: 0 0 auto;
  width: 160px;
}
.ty-anker__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.ty-anker__links {
  flex: 1 1 260px;
  max-width: 440px;
  margin-left: auto;
}
.ty-anker__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #dee2e6;
}
.ty-anker__links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}
.ty-anker__links :is(h1, h2, h3, h4, h5, h6, p) {
  display: inline;
  margin: 0;
  font: inherit;
}
.ty-content .ty-anker__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "barlow", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.15s ease, padding 0.15s ease;
}
.ty-content .ty-anker__links a::after {
  content: "";
  flex: 0 0 auto;
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid var(--bs-primary, #c10303);
  border-bottom: 2px solid var(--bs-primary, #c10303);
  transform: rotate(45deg) translateY(-0.1em);
}
.ty-content .ty-anker__links a:hover,
.ty-content .ty-anker__links a:focus-visible {
  color: var(--bs-primary, #c10303);
  padding-left: 0.35rem;
}
@media (max-width: 575.98px) {
  .ty-anker__logo {
    width: 130px;
  }
  .ty-anker__links {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
}

/* Karten-Text (Anforderungen, Rekrutierungsprozess): 17px */
.card-text.lead.fs-6 {
  font-size: 17px !important;
}

/* Bildunterschriften (Bilder/Videos): Schrift wie .ty-menu-tiles__link */
figcaption.small.fw-light {
  font-family: "barlow", sans-serif;
  font-weight: 400 !important;
  font-size: 0.9rem;
  color: #222;
}

/* — Sprachschalter (schmale zweite Ebene ueber dem Hauptmenue) —————————————————— */
.navbar-autohide.py-xl-1 {
  padding-top: 0 !important;
}
.navbar-autohide {
  flex-wrap: wrap !important;
}
@media (min-width: 1200px) {
  .navbar-autohide > .container {
    flex-wrap: nowrap !important;
  }
}
.ty-topbar {
  flex: 0 0 100%;
  background: #f4f5f6;
  margin-bottom: 0.25rem;
}
.ty-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}
.ty-topbar__buttons {
  display: none;
}
@media (min-width: 1200px) {
  .ty-topbar__inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .ty-topbar__buttons {
    display: block;
  }
  .ty-topbar .ty-menu-buttons {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    padding: 0 !important;
  }
  .ty-topbar .ty-menu-buttons .btn {
    padding: 0.28rem 1.15rem !important;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
  }
  /* feine Trennlinie zwischen Buttons und Sprachwahl */
  .ty-topbar__buttons + .ty-lang {
    padding-left: 1.25rem;
    border-left: 1px solid #d3d7db;
  }
}
.ty-lang {
  font-family: "barlow", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.6rem 0;
}
.ty-lang__link {
  display: inline-block;
  color: #6c757d;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
a.ty-lang__link:hover {
  color: var(--bs-primary, #c10303);
}
.ty-lang__link.is-active {
  color: #222;
  border-bottom-color: var(--bs-primary, #c10303);
}
.ty-lang__link.is-disabled {
  color: #b5bac0;
  cursor: default;
}

/* Nicht aktive Buttons (Ziel nicht verfuegbar, z.B. Seite in dieser Sprache nicht uebersetzt): abgeblendet, nicht klickbar */
.ty-btn-inactive {
  opacity: 0.45;
  cursor: not-allowed;
  user-select: none;
}
.btn.ty-btn-inactive:hover,
.btn.ty-btn-inactive:focus {
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
  color: var(--bs-btn-color);
  box-shadow: none;
}
.ty-spendenlinks__buttons .ty-btn-inactive,
.ty-spendenlinks__buttons .ty-btn-inactive:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bs-primary, #c10303);
}
.ty-round-button.ty-btn-inactive {
  filter: grayscale(1);
}

/* Bilder: Option «Auf hellgrauer Fläche» (weisse Bildhintergründe nehmen den Grauton an) */
.ty-bilder__surface--grey {
  background: var(--bs-light); /* gleicher Grauton wie der Footer (bg-light) */
  border-radius: 0.375rem;
  padding: 1.5rem;
}
.ty-bilder__surface--grey img {
  mix-blend-mode: multiply;
}

/* Medienspiegel: Jahres-Zwischentitel zwischen den Artikeln */
.ty-medienspiegel__year {
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #dee2e6;
  color: var(--bs-secondary-color, #6c757d);
}
.ty-medienspiegel__year:first-child {
  margin-top: 1.5rem;
}

/* Medienspiegel: zwei Auswahlfelder nebeneinander, Ladezustand beim Nachladen */
.ty-medienspiegel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.ty-medienspiegel__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ty-medienspiegel__filters .pagination {
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ty-medienspiegel .pagination {
  margin-top: 1.5rem;
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .ty-medienspiegel__filters .pagination {
    justify-content: center;
  }
}
.ty-medienspiegel__filters .form-select {
  width: auto;
  min-width: 12rem;
}
.ty-medienspiegel-app {
  transition: opacity 0.15s ease;
}
.ty-medienspiegel-app.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Medienspiegel: Vorhängeschloss bei gesperrten Artikeln – grauer runder Kreis rechts oben in der Karte */
.ty-medienmitteilung--spiegel {
  position: relative;
}
.ty-medienmitteilung--locked {
  padding-right: 4.75rem;
}
.ty-news-lock {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #8a9097;
  color: #fff;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.12);
}
.ty-news-lock svg {
  width: 1rem;
  height: 1rem;
}

/* Abstand von Eintrag zu Eintrag ist bei Medienspiegel, Medienmitteilungen und Agenda gleich (1.1rem, siehe .ty-medienmitteilung) */
.ty-medienspiegel__year {
  margin-top: 1.9rem;
}

/* — Mobile-Menue (bis 1199.98px): Hamburger -> X, Vollbreite-Panel unter der Kopfzeile, grosse Touch-Ziele ——— */
.ty-toggler {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  box-shadow: none !important;
  background: transparent;
}
.ty-burger {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 1.3rem;
  transform: translate(-50%, -50%);
}
.ty-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #222;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.ty-burger span:nth-child(1) { top: 0; }
.ty-burger span:nth-child(2) { top: calc(50% - 1px); }
.ty-burger span:nth-child(3) { bottom: 0; }
.ty-toggler[aria-expanded="true"] .ty-burger span { background: var(--bs-primary, #c10303); }
.ty-toggler[aria-expanded="true"] .ty-burger span:nth-child(1) { transform: translateY(calc(0.65rem - 1px)) rotate(45deg); }
.ty-toggler[aria-expanded="true"] .ty-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ty-toggler[aria-expanded="true"] .ty-burger span:nth-child(3) { transform: translateY(calc(-0.65rem + 1px)) rotate(-45deg); }

@keyframes tyMenuIn {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: none; }
}
body.ty-menu-open { overflow: hidden; }

@media (max-width: 1199.98px) {
  .navbar .navbar-collapse {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ty-nav-bottom, 6rem);
    bottom: 0;
    z-index: 1;
    padding: 0.25rem 1.25rem 2.5rem;
    background: #fff;
    border-top: 3px solid var(--bs-primary, #c10303);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .navbar .navbar-collapse.collapsing {
    height: auto !important;
    transition: opacity 0.2s ease;
    opacity: 0;
  }
  body.ty-menu-open .navbar .navbar-collapse {
    opacity: 1;
    animation: tyMenuIn 0.28s ease both;
  }

  .navbar .navbar-nav {
    margin: 0;
    padding: 0;
  }
  .navbar .navbar-nav > .nav-item {
    position: relative;
    border-bottom: 1px solid #e9ecef;
  }
  .navbar .navbar-nav .nav-link {
    padding: 1rem 0 !important;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: #222;
  }
  .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary, #c10303);
  }
  .navbar .navbar-nav > .nav-item.active::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 3px;
    background: var(--bs-primary, #c10303);
    border-radius: 0 3px 3px 0;
  }

  /* Aufklapp-Pfeil: grosse Touch-Flaeche ohne Rahmen */
  .navbar .dropdown-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-right: -0.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6c757d;
    transform: rotate(-90deg);
    transition: transform 0.25s ease, color 0.2s ease, background-color 0.2s ease;
  }
  .navbar .dropdown-toggle-btn svg {
    width: 20px;
    height: 20px;
  }
  .navbar .dropdown-toggle-btn:active {
    background: #f1f2f3;
  }
  .navbar .dropdown-toggle-btn[aria-expanded="true"] {
    transform: rotate(0deg);
    color: var(--bs-primary, #c10303);
  }

  /* Untermenue: hellgraue, randlose Flaeche ueber die volle Panelbreite */
  .navbar .navbar-nav .dropdown-menu {
    position: static;
    flex: 0 0 calc(100% + 2.5rem);
    width: calc(100% + 2.5rem);
    margin: 0 -1.25rem;
    padding: 0.35rem 1.25rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: #f4f5f6;
    box-shadow: none;
  }
  .navbar .nav-item.dropdown.show > .dropdown-menu,
  .navbar .nav-item.dropdown.open:not(.closed) > .dropdown-menu {
    animation: tyMenuIn 0.22s ease both;
  }
  .navbar .navbar-nav .dropdown-item {
    padding: 0.7rem 0 0.7rem 0.9rem;
    border-left: 2px solid transparent;
    font-size: 1.05rem;
    line-height: 1.3;
    white-space: normal;
    color: #333;
  }
  .navbar .navbar-nav .dropdown-item.active,
  .navbar .navbar-nav .dropdown-item:active {
    border-left-color: var(--bs-primary, #c10303);
    color: var(--bs-primary, #c10303);
    background: transparent;
  }
  .navbar .ty-mega-menu__col {
    margin-bottom: 0.35rem;
  }
  .navbar .ty-mega-menu__colTitle {
    padding: 0.8rem 0 0.25rem;
    border-bottom: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #6c757d;
  }
  .navbar .ty-mega-menu__colTitle.active {
    color: var(--bs-primary, #c10303);
  }
  .navbar .ty-mega-menu__sublink {
    padding: 0.6rem 0 0.6rem 0.9rem;
    border-left: 2px solid transparent;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #333;
  }
  .navbar .ty-mega-menu__sublink.active {
    border-left-color: var(--bs-primary, #c10303);
    color: var(--bs-primary, #c10303);
  }

  /* Buttons (Bewerbung, Spenden): untereinander, volle Breite */
  .navbar .navbar-collapse > .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding-top: 1.5rem;
  }
  .navbar .navbar-collapse > .d-flex .btn {
    width: 100%;
    margin: 0 !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1.05rem;
    text-align: center;
  }
}

/* — Pillen-Buttons: Schrift optisch mittig ———————————————————————————————————————————————
   Barlow sitzt im Zeilenkasten etwas tief; deshalb unten etwas mehr Innenabstand als oben (Höhe der Buttons bleibt gleich) */
.btn.rounded-5 {
  padding-top: calc(0.5rem - 1.4px) !important;
  padding-bottom: calc(0.5rem + 1.4px) !important;
}
/* eckige Buttons (z.B. Formular «abschicken») bekommen denselben Ausgleich */
.btn:not(.rounded-5) {
  padding-top: calc(0.375rem - 1.4px);
  padding-bottom: calc(0.375rem + 1.4px);
}
.ty-linkbox-2027 .btn,
.ty-textmitbild .btn,
.ty-titelmitbutton .btn,
.ty-textmitbildfloating .btn,
.ty-spendenlinks__buttons .btn {
  padding-top: 0.475rem !important;
  padding-bottom: 0.65rem !important;
}
@media (min-width: 1200px) {
  .ty-topbar .ty-menu-buttons .btn {
    padding-top: 0.23rem !important;
    padding-bottom: 0.33rem !important;
  }
}
@media (max-width: 1199.98px) {
  .navbar .navbar-collapse > .d-flex .btn {
    padding-top: 0.8rem !important;
    padding-bottom: 0.9rem !important;
  }
}

/* Zwei Störer Breaking News direkt nacheinander: nebeneinander, bündig zur Container-Breite */
@media (min-width: 992px) {
  .ty-content:has(.frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews) {
    --sgc-cw: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, calc(var(--sgc-cw) / 2)) minmax(0, 1fr);
  }
  .ty-content:has(.frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews) > * {
    grid-column: 1 / -1;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) {
    grid-column: 2;
    padding-left: 15px;
    padding-right: 15px;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews {
    grid-column: 3;
    padding-left: 15px;
    padding-right: 15px;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) > .container,
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews > .container {
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) .breaking-news,
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews .breaking-news {
    height: 100%;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) .breaking-news__inner,
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews .breaking-news__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    row-gap: 1rem;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) .breaking-news__logo,
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews .breaking-news__logo {
    width: auto !important;
    height: 80px;
    max-width: 100%;
  }
  .ty-content .frame-type-sgc_stoererbreakingnews:has(+ .frame-type-sgc_stoererbreakingnews) .breaking-news__cta,
  .ty-content .frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews .breaking-news__cta {
    margin-top: auto;
  }
}
@media (min-width: 1200px) {
  .ty-content:has(.frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews) { --sgc-cw: 1140px; }
}
@media (min-width: 1400px) {
  .ty-content:has(.frame-type-sgc_stoererbreakingnews + .frame-type-sgc_stoererbreakingnews) { --sgc-cw: 1320px; }
}

/* Rote Oberkante der Boxen: so breit wie der Inhalt (Bild), gerade Enden; graue Haarlinie als Outline ausserhalb */
.breaking-news,
.ty-newsteaser-card,
.auftrag-card,
.ty-kacheln .req-card {
  border-width: 3px 0 0 0;
  border-style: solid;
  border-color: var(--bs-primary, #c10303);
  border-image: none;
  outline: 1px solid #e9ecef;
  outline-offset: 0;
}

/* Desktop-Dropdowns/Mega-Menü: gleiche Kontur wie die Kacheln (rote 3px-Kante, hellgraue Haarlinie als Outline, Schatten) */
@media (min-width: 1200px) {
  .navbar-nav .dropdown-menu {
    border-width: 3px 0 0 0;
    border-style: solid;
    border-color: var(--bs-primary, #c10303);
    border-image: none;
    outline: 1px solid #e9ecef;
    outline-offset: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  }
}

/* Auswahlfelder (Medienspiegel, Medienmitteilungen-Archiv: Sprache/Jahr): Schrift optisch mittig.
   Barlow sitzt tief; Zeilenhöhe 36px + unten 7.2px Innenabstand
   (gemessen im Headless-Chrome: Schriftmitte ±0.1px auf Feldmitte, vorher 2.1px zu tief) */
.ty-news-toolbar .form-select {
  line-height: 36px;
  padding-top: 0;
  padding-bottom: 7.2px;
}

/* Menü-Buttons in der grauen Leiste als dezente Textlinks (Site-Einstellung sgc.topbarButtonStyle: text = alle als Textlinks, mixed = erster Button rote Pille und Rest Textlinks, pill = rote Pillen wie vorher) */
@media (min-width: 1200px) {
  .ty-topbar.ty-topbar--text .ty-menu-buttons,
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons {
    gap: 1.25rem !important;
  }
  .ty-topbar.ty-topbar--text .ty-menu-buttons .btn,
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons .btn:not(:first-child) {
    padding: 0.09rem 0 0.21rem !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #495057 !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .ty-topbar.ty-topbar--text .ty-menu-buttons a.btn:hover,
  .ty-topbar.ty-topbar--text .ty-menu-buttons a.btn:focus-visible,
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons a.btn:not(:first-child):hover,
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons a.btn:not(:first-child):focus-visible {
    color: var(--bs-primary, #c10303) !important;
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
  .ty-topbar.ty-topbar--text .ty-menu-buttons .ty-btn-inactive,
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons .ty-btn-inactive:not(:first-child) {
    opacity: 0.5;
  }
  .ty-topbar.ty-topbar--mixed .ty-menu-buttons {
    align-items: center;
  }
}
