:root {
  --bs-body-font-size: 1.125rem;
  --bs-body-color: #444;
  --bs-headings-font-weight: 300 !important;
}
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: "minion-pro", "PT Serif", Georgia, 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: "minion-pro", "PT Serif", Georgia, serif;
  margin-bottom: 0;
}
.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: #444;
  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,
.ty-content a.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);
}

/* 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: 991.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: 992px) {
  .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%);
  }
  /* 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: #181716;
  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: #444;
  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: 991.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: #181716;
}
.ty-kacheln .req-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}
.ty-cards .card {
  overflow: hidden;
}
.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: var(--bs-card-border-radius, 0.375rem);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  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-title {
  font-family: "barlow", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: #181716;
}
.ty-downloads .download-meta {
  font-family: "barlow", sans-serif;
  font-size: 0.8rem;
  color: #6c757d;
}
.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 {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ty-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.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.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
}
form fieldset {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--bs-card-border-radius, 0.375rem);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  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 —————————————————— */
.ty-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ty-agenda {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ty-agenda--link {
  padding-right: 3.5rem;
}
.ty-agenda--link:hover {
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.ty-agenda a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ty-agenda-arrow {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--bs-primary, #c10303);
  transition: transform 0.25s ease;
}
.ty-agenda--link:hover .ty-agenda-arrow {
  transform: translateY(-50%) translateX(4px);
}
.ty-agenda p.datum,
.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 h2,
.ty-agenda-hidden h2 {
  font-family: "barlow", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #181716;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}
.ty-agenda a:hover h2 {
  color: var(--bs-primary, #c10303);
}
.ty-agenda p strong,
.ty-agenda-hidden p strong {
  font-weight: 500;
  font-size: 0.85rem;
  color: #6c757d;
}
.ty-agenda-hidden {
  display: none;
  max-width: 600px;
  padding: 0.5rem 0;
}
.ty-agenda-hidden.f-html {
  display: block !important;
  height: auto !important;
  width: 100% !important;
  max-width: 600px !important;
  padding: 2.5rem !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border-radius: 0.375rem;
}
.ty-agenda-hidden.f-html p,
.ty-agenda-hidden.f-html h2,
.ty-agenda-hidden.f-html div {
  display: block;
}
.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: 700;
  color: #181716;
  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: #444;
}
.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: 680px;
  width: 90vw;
}
.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: 1px solid #e9ecef;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  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: #444;
  margin-bottom: 0.35rem;
}
.ty-linkbox-2027__text {
  font-size: 0.95rem;
  color: #444;
}
.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: #444;
}
.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: #444;
  margin-bottom: 0.25rem;
}
.ty-agenda-2027__anlass {
  font-family: "barlow", sans-serif;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.15rem;
}
.ty-agenda-2027__ort {
  font-size: 0.9rem;
  color: #6c757d;
  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: #444;
}
.ty-textmitbild a.btn-primary:hover {
  background: var(--bs-primary, #c10303);
  border-color: var(--bs-primary, #c10303);
  color: #fff;
}
.ty-fancybox-text {
  display: none;
}
.ty-fancybox-text.f-html {
  display: block !important;
  height: auto !important;
  width: 100% !important;
  max-width: 600px !important;
  padding: 2.5rem !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border-radius: 0.375rem;
}

/* — 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: #444;
}
.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: #444;
  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: #444;
}
.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: #444;
}
.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: 0.25rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  color: #181716;
  text-decoration: none;
  font-family: "barlow", sans-serif;
  font-weight: 300;
  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: #6c757d;
}
.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 .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: #181716;
  margin-bottom: 0.15rem;
}
.ty-portraits .ty-text h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.ty-portraits .ty-text p {
  font-size: 0.95rem;
  color: #444;
  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: 1px solid #e9ecef;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 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.25rem;
}
.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: 0.8rem;
  font-weight: 400;
  color: #6c757d;
  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: #181716;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.ty-medienmitteilung__sub {
  font-size: 1rem;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.ty-medienmitteilung__text {
  font-size: 0.95rem;
  color: #444;
  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;
}
