/*!
 * Bootstrap-5 Komponenten-Kompatibilitätsschicht
 * ---------------------------------------------------------------------------
 * Die aktualisierten Extensions (container_elements 7, newsslider 14, …)
 * liefern Bootstrap-5-Markup (data-bs-*, .accordion-*, .card, .form-check …),
 * während das Seiten-Theme noch auf der Bootstrap-3-Basis (bootstrap.css)
 * aufsetzt. Das geladene JS ist bereits Bootstrap 5.
 *
 * Diese Datei stellt NUR die fehlenden Bootstrap-5-Komponenten bereit und
 * überschreibt die bestehende Theme-Basis nicht.
 */

/* --- Collapse (BS5) ------------------------------------------------------- */
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }
.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }
@media (prefers-reduced-motion: reduce) { .collapsing { transition: none; } }

/* --- Accordion (BS5) ------------------------------------------------------ */
.accordion-item { border: 1px solid #ddd; background: #fff; }
.accordion-item + .accordion-item { border-top: 0; }
.accordion-header { margin: 0; }
.accordion-button {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: #f5f5f5;
  border: 0;
  cursor: pointer;
}
.accordion-button:not(.collapsed) { background: #eee; }
.accordion-body { padding: 15px; }

/* --- Card (BS5) ----------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .375rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: .5rem; }
.card-text:last-child { margin-bottom: 0; }
.card-img, .card-img-top { width: 100%; }
.card-group > .card { margin-bottom: .75rem; }
@media (min-width: 576px) {
  .card-group { display: flex; flex-flow: row wrap; }
  .card-group > .card { flex: 1 0 0%; margin-bottom: 0; }
}

/* --- Nav / Tabs (BS5) ----------------------------------------------------- */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: .5rem 1rem; text-decoration: none; background: transparent; border: 0; cursor: pointer; }
.nav-tabs { border-bottom: 1px solid #dee2e6; }
.nav-tabs .nav-link { margin-bottom: -1px; border: 1px solid transparent; border-top-left-radius: .375rem; border-top-right-radius: .375rem; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { border-color: #dee2e6 #dee2e6 #fff; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }

/* --- Formulare: form-check (BS5) ----------------------------------------- */
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: .125rem; }
.form-check-input { width: 1em; height: 1em; margin-top: .25em; vertical-align: top; background-color: #fff; border: 1px solid rgba(0, 0, 0, .25); }
.form-check .form-check-input { float: left; margin-left: -1.5em; }
.form-check-input:checked { background-color: #3276b1; border-color: #3276b1; }
.form-check-label { cursor: pointer; }
.form-label { margin-bottom: .5rem; }

/* --- Badge / Utility-Klassen (BS5) --------------------------------------- */
.badge { display: inline-block; padding: .35em .65em; font-size: .75em; font-weight: 700; line-height: 1; color: #fff; background-color: #6c757d; border-radius: .375rem; }
.img-fluid { max-width: 100%; height: auto; }
.rounded-0 { border-radius: 0 !important; }
.float-end { float: right !important; }
.float-start { float: left !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }

/* --- News-Slider (newsslider 14 / Swiper) --------------------------------
 * Ersetzt die alten .slick-Regeln aus content.css.
 * Kasten #c1150: Überschrift "NEWS & INFORMATIONEN", Titel, Teaser, Button. */
.news-list-view.layout-44 .card { height: 100%; }
.news-list-view.layout-44 .card-body { padding: 1.5rem; }
.news-list-view.layout-44 .card-title { margin: 0 0 .75rem; }
.news-list-view.layout-44 .swiper-slide .card-body h2 { color: #F69F07 !important; font-size: 1.5rem !important; font-weight: 700; margin: 0 0 .75rem; }
.news-list-view.layout-44 .swiper-slide .card-body h3 { text-transform: none !important; color: #006DB1 !important; font-size: 1.25rem !important; line-height: 1.5rem !important; }
.news-list-view.layout-44 .more-btn {
  display: inline-block;
  margin-top: .75rem;
  background: #006DB1;
  border: 1px solid #006DB1;
  color: #fff;
  padding: 10px 1rem;
  border-radius: 1rem;
}
.news-list-view.layout-44 .more-btn:hover { background: #fff; color: #006DB1; text-decoration: none; }
.news-list-view.layout-44 .swiper-button-prev,
.news-list-view.layout-44 .swiper-button-next { color: #006DB1; }
