/********************************/
/* Template                     */
/********************************/

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

p, article {
  hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6, blockquote {
  text-wrap: balance;
}

blockquote {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  line-height: var(--headings-line-height);
  font-style: italic;
  color: var(--c4);
  border-left: 4px solid var(--c1);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
}

figcaption.image-caption {
  font-size: 0.8rem;
}

/* Bilder in Content-Elementen */

img.image-embed-item {
  height: auto;
}

@media (min-width: 0px) and (max-width: 991.98px) {
  .ce-right .ce-gallery,
  .ce-left .ce-gallery {
    float: none;
  }

  .ce-intext.ce-right .ce-gallery,
  .ce-intext.ce-left .ce-gallery {
    margin-left: 0;
   }
}

@media (min-width: 769px) {
  .goverlay {
    background: rgba(0,0,0,.72);
  }
}

/* Navigation                     */

.navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: var(--space-1);
}

.navbar-collapse {
  flex-basis: auto;
}

.navbar-nav .dropdown-menu {
  position: absolute;
}

.navbar-toggler {
  padding: 4px;
}

.navbar-dark a,
.navbar-dark .nav-link {
  color: var(--text-inv);
}

.navbar-dark a.active.nav-link {
}

.navbar-dark a:hover,
.navbar-dark a.active.nav-link,
.navbar-dark .nav-link.show {
  color: var(--c2) !important;
}

.navbar-dark .navbar-toggler {
  color: rgb(255, 255, 255);
  border-color: transparent;
}

.dropdown-menu {
  min-width: 13rem;
  background: #ffffffdd;
  margin: 0 !important;
}

.dropdown-menu a {
  color: #424242 !important;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
}

/* Link + Toggle in einer Zeile */
.dropdown-item-row{
  display:flex;
  align-items:center;
}

.dropdown-item-row .dropdown-item-link{
  flex:1 1 auto;
  min-width:0; 
}

/* Toggle rechts, ohne neue Zeile */
.dropdown-item-row .dropdown-subtoggle{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .25rem .5rem;
  margin-left:.25rem;
  background:transparent;
  border:0;
  line-height:1;
}

.dropdown-item-row .dropdown-subtoggle:hover,
.dropdown-item-row .dropdown-subtoggle:focus{
  background: rgba(0,0,0,.05);
  border-radius: .25rem;
}

#mainnav .dropdown-menu {
  display: none;         /* Basis: zu */
  visibility: hidden;
  opacity: 0;
}

#mainnav .dropdown-menu.show {
  display: block;        /* bei .show auf */
  visibility: visible;
  opacity: 1;
}

#mainnav .dropdown-submenu { position: relative; }
#mainnav .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
}

#mainnav .navbar-nav {
  flex-direction: row;
}


#offcanvasNav .nav-link {
  padding: 0.4rem 1rem 0.4rem 0;
}

#navi-top a.nav-link {
  padding: 0.2rem 0.4rem;
}

#navi-top button.nav-link {
  margin-left: 2px;
  margin-right: 10px;
  padding-top: 5px;
}

#navi-top a.active.nav-link {
  color: #fff;
}

.nav ul.deep3,
.nav ul.deep2 {
  list-style: none;
}

#navi-supp li a.nav-link {
  color: #fff;
}


@media (max-width: 991.98px) {
  .navbar-toggler {
      height: 45px;
  }

  .navbar-header.navifloat {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-content: flex-end
  }
}

@media (max-width: 575.98px) {

}

@media (min-width: 0px) and (max-width: 575.98px) {
  .navbar-toggler {
      margin-top: 2px;
  }
}


/* Container                     */

.sticky-top {
  position: fixed !important;
}

#slideshow {
  position: relative;
}

#container-main {
  position: relative;
}

#container-bottom {

}

#container-bottom .nav-link {
  padding: 0.5rem 1rem 0.5rem 0;
}


.multicol > .row {
  align-items: stretch;
}

.multicol > .row > [class*="col-"] {
  display: block;
}

.multicol > .row > [class*="col-"] > div,
.multicol .news-latest-container,
.multicol .news-latest-container > .row,
.multicol .news-latest-container > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.multicol .news-latest-item.card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.equal-height > .row > [class*="col-"] {
  display: flex;
}



/********************************/
/* Plugins                      */
/********************************/

/* FE-Login                     */

.tx-felogin-pi1 input[type="submit"] {
  color: #fff;
  margin-top: 8px;
}

.tx-felogin-pi1 label {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.tx-felogin-pi1 legend {
  display: none;
}

/* CE-Menüs                    */
.menu-abstract {
  list-style: none;
  padding: 0;
}

.menu-abstract li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap
}

.menu-abstract li  div {
  flex-basis: 50%;
}

.menu-abstract li > a {
  flex-basis: 50%;
}

/* Shariff                    */

.shariff ul.orientation-horizontal {
  flex-direction: row-reverse;
}

.shariff .button-style-icon li.shariff-button,
.shariff-box li {
  background: none;
  width: 35px !important;
  max-width: 35px !important;
  min-width: 35px !important;
  height: 35px !important;
  margin: 5px;
  text-align: center;
  font-size: 24px !important; }

.shariff .button-style-icon li a,
.shariff-box li a {
  height: 35px !important;
  line-height: 30px !important;
  padding: 4px; }

.shariff-round li {
  background: none;
  width: 35px !important;
  max-width: 35px !important;
  min-width: 35px !important;
  height: 35px !important;
  border-radius: 50%;
  margin: 5px;
  text-align: center; }

.shariff-round li a {
  height: 35px !important;
  line-height: 30px !important; }

.shariff li.shariff-button.telegram {
  background: #28A8E9; }

.shariff li.shariff-button.xing a,
.shariff li.shariff-button.mail a {
  padding: 2px 4px; }

.shariff .whatsapp .fa-whatsapp,
.shariff .twitter .fa-twitter {
  font-size: 24px !important; }

/* ==========================================================================
   Content-Carousel 
   ========================================================================== */

.smartpage-carousel article.carousel-card {
  background: --var(c3);
  padding: 12px;

}
/* ==========================================================================
   NEWS (EXT:news) 
   ========================================================================== */

/* --- Latest container / items ------------------------------------------------ */

.news-latest-container {
  padding: 0;
}

.news-list-view .page-navigation p {
	float: left;
}

.news-list-view ul.f3-widget-paginator {
	float: right;
}

.news-list-view ul.f3-widget-paginator li {
	float: left;
	display: block;
	padding: 0 2px;
	background: none;
}

.news .page-navigation ul li a {
	display: block;
}

.news-latest-item {
  background-color: var(--white);
  padding: 0 0 10px 0;
  border-bottom: none;
  min-height: 380px; 
}

.newsbox {
  cursor: pointer;
}

.newsbox.text-decoration-none,
.newsbox.text-reset {
  text-decoration: none;
  color: inherit;
}

.news-latest-item:hover {
  filter: brightness(0.98);
}

.news-latest-item h3 {
  color: var(--c5);
  margin: 0;
  line-height: 1.4rem;
  font-weight: bold;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-latest-item article {
  padding: 4px 0;
  line-height: 1.3;
}

.news-latest-pic {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; 
}

.news-latest-item img,
.news-latest-img img {
  width: 100%;
  height: auto;
  margin: 0 0 5px 0;
  display: block;
}

.news-latest-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Kategorien */
.news-latest-category,
.news-list-category {
  font-size: 12px;
}

.newsbox code,
.news-single-category-item,
.news-single-category .news-category-item,
.newsbox .news-category-item {
  margin: 4px 4px 4px 0;
  padding: 2px 4px;
  display: inline-block;
  color: #fff;
  background-color: var(--gray-500);
  border-radius: 5px;
}

/* Datum */
.news-list-date,
.news-latest-date,
.news-latest-morelink,
.news-list-author,
.news-list-imgcaption,
.news-list-browse,
.news-amenu-container,
.news-catmenu,
.news-single-rightbox,
.news-single-imgcaption {
  font-size: 14px;
}

.newsbox .news-list-date {
  padding-top: 10px;
  padding-right: 10px;
}


.newscontainer .news-latest-more,
.newscontainer .news-latest-morelink,
.carousel .news-latest-more,
.carousel .news-latest-morelink {
  display: none !important;
  visibility: hidden !important;
}

.newsbox .news-latest-more {
  color: var(--text-inv);
  background: var(--c5);
  border-radius: 3px;
  padding: 3px;
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 106px;
  text-align: center;
  transform: translateX(-50%);
}

.newsbox .news-latest-more a {
  color: var(--text-inv);
}


.hybrid > div > div > div.frame,
.branding-news > div > div > div.frame,
.newscontainer > div > div > div.frame,
.newscontainer div.carousel-item > div.frame {
  width: 100%;
  min-height: 380px;
  box-shadow: 0 0 15px -3px rgba(0, 0, 0, 0.75);
  position: relative;
  margin-bottom: 15px;
  background-color: var(--white);
}

.newscontainer .row {
  display: flex;
}

.newscontainer h2 {
  width: 100%;
  background-color: var(--c5);
  padding: 15px;
  color: #var(--white);
  text-align: center;
  margin-bottom: 0;
}

.news-single-item {
  padding: 0;
}

/* Bildblöcke */
.news-single-img {
  margin: 0 0 10px 30px;
}

.news-single-img-big {
  display: flex;
  width: 100%;
  gap: 10px;
}

.news-single-img-big img {
  width: auto;
  object-fit: cover;
}

.news-single-img-right,
.news-single-img-left {
  float: none;
  padding-bottom: 5px;
}

@media (min-width: 992px) {
  .news-single-img-right {
    float: right;
    padding-left: 8px;
    max-width: 500px !important;
  }

  .news-single-img-left {
    float: left;
    padding-right: 8px;
  }

  .news-single-timedata {
    padding-top: 12px;
  }
}

.news-single-imgcaption {
  line-height: 1.2em;
  padding: 4px 0;
}

.news-single-item h2 {
  font-size: 1.4rem;
}

.news-single-timedata {
  text-align: right;
  margin: 0;
}

.news-single-item p.news-quelle {
  font-weight: bold;
  margin: 3rem 0 1rem 0;
}

.news-single-item img {
  max-width: 100%;
  height: auto;
}


@media (max-width: 575.98px) {
  .news-latest-item { min-height: 480px; }
  .news-latest-pic img { object-fit: cover; }
  .hybrid > div > div > div.frame,
  .branding-news > div > div > div.frame,
  .newscontainer > div > div > div.frame,
  .newscontainer div.carousel-item > div.frame { min-height: 480px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .news-latest-item { min-height: 450px; }
  .news-latest-pic img { object-fit: cover; }
  .hybrid > div > div > div.frame,
  .branding-news > div > div > div.frame,
  .newscontainer > div > div > div.frame,
  .newscontainer div.carousel-item > div.frame { min-height: 450px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .news-latest-item { min-height: 650px; }
  .news-latest-pic img { object-fit: cover; }
  .hybrid > div > div > div.frame,
  .branding-news > div > div > div.frame,
  .newscontainer > div > div > div.frame,
  .newscontainer div.carousel-item > div.frame { min-height: 650px; }

  .news-latest-item h3 { font-size: 20px; line-height: 1.4rem; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .news-latest-item { min-height: 505px; }
  .news-latest-pic img { object-fit: cover; }
}

@media (min-width: 1200px) {
  .news-latest-item { min-height: 505px; }
  .news-latest-pic img { object-fit: cover; }
}

.news-latest-gotoarchive {
  padding: 3px;
  margin: 3px;
  background-color: #f3f3f3;
}


/* 3col Container: kleine Spalten 1:1 über feste Breakpoint-Höhen (aus Spaltenbreite abgeleitet) */
@media (min-width: 992px) {
  .multicol.grid_3col .spalte2 .news-latest-pic,
  .multicol.grid_3col .spalte3 .news-latest-pic,
  .multicol.grid_3col .spalte1 .news-latest-pic {
    height: 216px;     
    overflow: hidden;
    aspect-ratio: auto !important;
  }

  .multicol.grid_3col .news-latest-pic img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
}

@media (min-width: 1200px) {
  .multicol.grid_3col .spalte2 .news-latest-pic,
  .multicol.grid_3col .spalte3 .news-latest-pic,
  .multicol.grid_3col .spalte1 .news-latest-pic {
    height: 261px;                
  }
}

@media (min-width: 1400px) {
  .multicol.grid_3col .spalte2 .news-latest-pic,
  .multicol.grid_3col .spalte3 .news-latest-pic,
  .multicol.grid_3col .spalte1 .news-latest-pic {
    height: 306px;              
  }
}


/* PRIME layout: md 50/50 + square media, lg media height like cards */
  .news-prime .news-latest-item {
    min-height: auto;
  }

@media (min-width: 768px) {
  .news-prime .news-prime-inner {
    align-items: stretch;
  }
  
  .news-prime .news-prime-media,
  .news-prime .news-prime-body {
    width: 50%;
  }

  .news-prime .news-prime-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .news-prime .news-prime-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* lg+: override square -> fixed card-like heights */
@media (min-width: 768px) {
  .news-prime .news-prime-media { 
    max-height: 306px !important; 
  }
}
@media (min-width: 992px) {
  .news-prime .news-prime-media {
    aspect-ratio: auto;
    max-height: 216px !important; 
  }
}
@media (min-width: 1200px) {
  .news-prime .news-prime-media { 
    max-height: 261px !important; 
  }
}


@media (min-width: 768px) {
  .news-prime .news-prime-media {
    padding-right: 27px;
  }

  .news-prime .news-prime-body {
    padding-left: 27px;
  }
}