/* CSS Document */
.main-img{height:50vh;background-size:cover;background-position:center;}

h2 img{display:none}

@font-face{
  font-family: 'julius-sans-one';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/JuliusSansOne-Regular.ttf');
  font-display:swap;
}

/* Leerraum in Androidbrowsern auf der rechten Seite entfernen https://stackoverflow.com/questions/22694447/white-space-on-the-right-side-from-mobile */
body, html { padding:0; margin: 0; overflow-x:hidden; min-height:100vh;/*position:relative;*/scroll-behavior:smooth;}

body{
  background-color: var(--body-background);
  color:var(--color);

}
#page {background-color: var(--site-background); width: 100%;padding: 0;margin:0 auto;max-width: 1600px;box-shadow: 0 0 10px 5px #ccc;}
/*body{min-height: 101vh;}*/

/*Styling für Navigation*/
#nav-container{
	/*z-index:10000;
	position: fixed; top: 0; height: 0;*/ overflow-y: visible;
	/*width: 100vw; transition: 0.1s;
	background-color: rgba(0,0,0,0.05);*/
}
#nav-container.open{
	height: 95vh; height: calc(100vh - 1rem); overflow: auto; 
	/* TODO: https://stackoverflow.com/questions/9333379/check-if-an-elements-content-is-overflowing */
}
#nav{
	position: relative; top:0; transition: 0.2s;
	border-bottom: 1px solid #ddd;
	background-color: #fff !important;
	padding:0 5rem; 
}
#nav.hidden{top:-150px; transition: 0.2s}

/*Styling für Nav-Elemente (Listen, Links, ...)*/
#nav a{color: var(--nav-links);}
#nav ul{border: none;}
#nav ul ul{background-image: linear-gradient(0deg, rgba(100,100,100,0.3) 0%, rgba(100,100,100,0) 65%); background-position: bottom; background-size: 100% 20px; background-repeat: no-repeat;box-shadow: 0 2px 4px 1px #ccc;min-width:100%;}
#nav ul ul ul{
	border: none; background-color: rgba(54,54,54,0.10);background-color: rgba(168, 222, 224,0.25);background-color: rgba(50, 157, 156,0.1);position:static;
}
#nav .deeper.show{position:relative;}
#nav .deeper.show > a {box-shadow: 0 2px 4px 1px #ccc;}
.dropdown-menu .nav-item {position: relative;display: inline-block;width: 100%;}

/*#nav-container > nav > div > ul > li> ul {
    max-height: 80vh;
    overflow-y: scroll;
    scrollbar-width: none;
}
*/

/* Mobiles Styling Navbar*/
@media(max-width:768px){
  #nav li{width:100%}
  #nav li ul{width:100%}
  #nav ul ul{
      border: none; background-color: rgba(54,54,54,0.10);background-color: rgba(50, 157, 156,0.1);
  }
  .dropdown-menu{position: relative; top:0;}
}
#navbarCollapse>ul{
  width:100%;
}
#nav ul li:last-of-type{
  margin-left:auto;
}


#nav .nav-item.divider{height:1px; border-top: 1px solid #ccc; overflow:hidden}

/* Farbschema fuer verschiedene Kategorien*/
.tag-tuer #nav{border-bottom:1px solid var(--tuerkis); background-color:rgb(216, 243, 243)!important}
.tag-tuer #nav ul li:last-of-type{
  margin-left:initial;
}
#nav .nav-item.active>a{
  font-weight:bold;
}
#nav .dropdown-toggle::after{
  transform:rotate(-90deg);
  transition:transform 0.25s;
}
#nav .show>.dropdown-toggle::after{
  transform:rotate(0deg);
}
#nav .nav>.nav-item>.dropdown-toggle::after{
  display:none;
}

/* Inhalt um die Nav-Höhe nach unten schieben. Nav-spacer erhält seine Höhe via script*/
#nav-spacer{width: 100%; height: 50px;display:none;}

/* Main ist der Gesamtinhalt ab der Navbar */
#main{margin-bottom: 4rem}


/* Bildgroessen */
#main img{max-width:100%; height:auto}
#main img.full-screen{
  max-width:none;
  width:calc(100% + 10rem);
  position:relative;
  left:-5rem;
  height: auto;
}
#main img.full-width{
  width: 100%;
  height: auto;
}
#main img.small-img{
  width:50%;
  height:auto;
  margin-bottom:1rem;
}
#main img.tiny-img{
  width:25%;
  height:auto;
  margin-bottom:0.5rem;
}
#main img.right{
  float: right;
  margin-left:1.5%;
}
#main img.left{
  float: left;
  margin-right: 1.5%;
}



@media(max-width:768px){
  #main img{max-width: 100%;height:auto;}
  #main img.small-img{
    width:100%;
  }
   #main img.tiny-img{
    width:50%;
  }
  #main img.full-width{width:calc(100% + 2rem);position:relative;left:-1rem;}
  #main table img{width:100%;left:inherit;}
}
.img-show img{width:48%; margin:1%; height: auto}
@media(max-width:640px){
	.img-show img{width:96%; margin:1%; height: auto}
}

/* plugin: content page navigation: elegantere Links */
.pager.pagenav a{padding: 0.5rem 1rem; color:#888; border: 1px solid #888; border-radius:0.2rem;}
.pager.pagenav a:hover{background-color: #EAEDEF;}
.pager.pagenav li{display: inline-block; }

.com-content-article, .com-content-category-blog{
/*.item-page{*/
  padding:0 5rem;
  /*margin-top:3.6rem;*/
}
h1, h2, h3 {overflow-wrap: break-word; clear:both}
h1{
  margin:3rem 0rem 2rem 0rem;
  position:relative;
  color:var(--tuerkis);
  font-family:'julius-sans-one',sans-serif;
  font-size:3rem;
}
h2,h3{
  color:var(--dunkelblau);
}
/*h1::before{
  content:'';
  width:calc(100% + 10rem);
  height:calc(100% + 1.5rem);
  position:absolute;
  top:-1rem;
  left:-5rem;
  background-color:rgba(56,62,74,0.7);
  background: linear-gradient(90deg, rgba(17,15,43,0.7) 10%, rgba(52,52,117,0.7) 35%, rgba(45,121,136,0.7) 90%);
  z-index:-1;
}*/
h3{
  margin:2rem 0; 
  margin-bottom:0.5rem;
}
a{
	color:var(--link-color);
}
a:hover{
	color:var(--link-color-hover);
}
/*Mobiles Styling H*/
@media(max-width: 768px){
  h1{
    font-size: 2rem;
  }
}
#main table{
  display:block;
  width:fit-content;
  overflow-x:auto;
}
#main div.full-screen{width:calc(100% + 10rem);position:relative;left:-5rem;padding: 0 5rem;}
@media (max-width:768px){
  #main div.full-screen{width:calc(100% + 2rem);position:relative;left:-1rem;padding: 0 1rem;}
}
#main #myCarousel.full-screen{padding: 0;}
#main div.dark{background-color: var(--div-dark-bg)}
#main div.dark h1, #main div.dark h2, #main div.dark h3, #main div.dark h4, #main div.dark h5, #main div.dark h6{
  color: var(--div-dark-color);
}

#main .spalten{
  column-width:350px;
}

.logo{
  height:3rem;
}
.featurette-divider{
  margin:20px 0;
}
@media(max-width:768px){
  	.com-content-article, .com-content-category-blog{
	/*.item-page{*/
  		padding:0 1rem;
	}
  #nav{padding:0 1rem;}
  .full-width{width:calc(100% + 2rem);position:relative;left:-1rem;}
}

#main .container.marketing img{border-radius:50%;width:55%;margin-bottom:0.5rem;}
@media(max-width:768px){
  #main .container.marketing img{left:inherit;}
  #main .container.marketing .row > div{border-bottom:thin solid #ccc}
}
.btn-primary{
  background-color:var(--button-primary);
  border-color:var(--button-primary-border);
}
.btn-primary:hover{
  background-color:var(--button-primary-hover);
  border-color:var(--button-primary-hover-border);
}
.btn-secondary{
  background-color:var(--button-secondary);
  color:#555;
  border-color:var(--button-secondary-border);
  border-width:2px;
  padding:0.5rem 1rem;
  font-size:1.2rem;
}
.btn-secondary:hover{
  background-color:var(--button-secondary-hover);
  border-color:var(--button-secondary-hover-border);
}

/*.carousel-inner::before{
  content:'';
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background-color:rgba(78,98,135,0.3);
  z-index:1;
}*/
/*.carousel-caption{
  background-color:rgba(56,62,74,0.3);
  background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(2,0,36,0.3) 10%, rgba(52,52,117,0.3) 35%, rgba(14,128,152,0.3) 90%, rgba(14,128,152,0) 100%);
}*/
.carousel-caption::before{
  content:'';
  width:150%;
  height:85%;
  position:absolute;
  top:5%;
  left:-25%;
  background-color:rgba(56,62,74,0.3);
  background: var(--carousel-gradient);
  z-index:-1;
}
/*.carousel-caption h1::before{
  display:none;
}*/
.carousel-caption h1{
  color:white;
  margin:0;
  margin-bottom: 0.5rem;
}
.carousel-control-next, .carousel-control-prev{z-index:10;}


#aktuelles hr{display:block; clear:both;}
#aktuelles img{
  width:25%;
  max-width:250px;
  margin-left:1rem;
  float:right;
  height: auto;
}
#aktuelles img.full-w{
  width:100%;
  max-width:inherit;
  float:inherit;
  margin-left:0;
}
#aktuelles img.aktuelles-v{
  width:auto;
  max-height:300px;
}
#aktuelles img.trauer{
  float:none;
  display:block;
  border:3px solid #333;
  padding:3px;
}
@media(max-width:768px){
  #aktuelles img{
    width:50%;
    max-width:inherit;
  }
  #aktuelles img.full-w{
    width:100%;
    max-width:inherit;
    float:inherit;
    margin-left:0;
  }
}
@media(max-width:576px){
  #aktuelles img{
    width:100%;
    float:inherit;
    margin-left:0;
  }
}
#aktuelles img.unstyled{
  width:auto; height:auto; float:none; margin:0; max-width:initial;
}

#aktuelles div.nachruf{
  border: 2px solid black !important; 
}
@media (min-width: 768px) {
  #aktuelles div.nachruf{
  padding-right: 50px; 
  }
}

@media (min-width: 768px) {
    #aktuelles {
        position: relative;
        border-left: solid 4px var(--tuerkis);
    }

    #aktuelles h1 {
        position: relative;
        left: -5px;
        background-color: white;
    }

    #aktuelles p, #aktuelles h6, #aktuelles h3 {
        padding-left: 50px;
    }

    #aktuelles h4 {
        position: absolute;
        border-radius: 50%;
        height: 68px;
        width: 68px;
        background-color: var(--tuerkis);
        color: white;
        font-size: 18px;
        left: -36.5px;
        text-align: center;
        line-height: 60px;
        border: solid white 4px;
        transform: translateY(-50%);
    }
}


#main .card .img-fluid{
  position:static;
  
}
/*Footer Styling */
footer{
  text-align:center;
  background-color:var(--footer-background);
  padding:1rem 0.5rem;
  padding-bottom:4rem;
  border-top:thin solid #ddd;
  clear:both;
  /*font-size:0.9rem;
  position: absolute;
 bottom: 0;
 width: 100%;*/
}
footer .nav{
  display:inline-block;
}
footer .nav .nav-item{
  display:inline-block;
}
footer .nav .nav-item .nav-link{
  padding:0;
}
footer .nav .nav-item .nav-link:hover{
  text-decoration:underline;
}
footer .nav .nav-item:not(:last-of-type) .nav-link::after{
  content:'|';
  margin:0 0.25rem;
}
footer a{
  color:#5a5a5a !important;
}
#ticker{
  padding:0.5rem;
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background-color:rgba(255,255,255,0.90);
  border-top:thin solid #eee;
  z-index:1000;
}
#ticker marquee{
  margin:0 !important;
  font-size:1rem !important;
}


/*    eingebettete PDFs     */
.pdf_90vh{height:90vh;}





.slideshow
{
    width: 100%;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:#444;
  
}
.slideshow.slideshow_fullscreen{
  position:fixed !important;
  top:0;
  left:0 !important;
  z-index:1001;
  width:100% !important;
  height:100%;
  
}
.slideshow img
{
    max-width: 100%;
    max-height: 100%;
    width:initial;
    height:initial;
    position: absolute;
    transition: transform 0.5s;
}
.slideshow_btn
{
    user-select: none;
    position: absolute;
    top: calc(50% - 1.5rem);
    background-color: rgba(0, 173, 239, 0.1);
    font-size: 2rem;
    border-radius: 1rem;
    padding: 0 0.5rem;
    border:thin solid rgba(0,0,0,0.5);
    z-index: 2;
}
.slideshow_btn:hover
{
    background-color: rgba(0, 173, 239, 0.3);
    border-color: rgba(0,0,0,1);
    visibility: visible;
    opacity: 1;
}
.slideshow_btn.slideshow_btn_left{left:2%;}
.slideshow_btn.slideshow_btn_right{right:2%;}
.slideshow_index{
    position: absolute;
    width: 100%;
    align-items: center;
    display: flex;
    top: 100%;
    justify-content: center;
    background-color: #444;
    z-index: 1;
    height:3rem;
}
.slideshow.slideshow_fullscreen .slideshow_index{
  top:initial;
  bottom:1rem;
  background-color: rgba(0, 0, 0, 0.1);
}
.slideshow_index .slideshow_index_item{
    width: 1.5rem;
    height: 1.1rem;
    border: black solid 0.15rem;
    background-color: rgba(0, 173, 239, 0.2);
    display: inline-block;
    margin: 0.2rem;
    border-radius: 20%;
    cursor: pointer;
}
.slideshow_index .slideshow_index_item:hover{
    background-color: rgba(0, 173, 239, 0.7);
}
.slideshow_index .slideshow_index_item.index_active{
    background-color: rgb(0, 173, 255);
}
.slideshow_left
{
    transform: translateX(-100vw);
}
.slideshow_center{
    transform: translateX(0);
}
.slideshow_right
{
    transform: translateX(100vw);
}
.slideshow_button_removed{
    display: none;
}

/*Für Textbox*/
.slideshow .slideshow_text{
    position:absolute;
    overflow-y: auto;
    bottom:1rem;
    align-self: center;
    padding:2rem;
    /*background-color:rgba(56,62,74,0.3);*/
  background-color:rgba(255, 255, 255, 0.8);
    border-radius:0;
    border:thin solid rgba(255,255,255,0.5);
    opacity:0;
    visibility:hidden;
    transition:opacity 0.5s,visibility 0.5s;
    width:calc(100% - 2rem);
  	left:1rem;
    max-height: 40%;
    color:rgb(32, 80, 114);
    z-index: 1;
    size: portrait;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 62, 74, 0.5) transparent;
    word-break:break-word;
}
.slideshow.slideshow_fullscreen .slideshow_text{
  bottom:5.25rem;
}
.slideshow_text::-webkit-scrollbar {
    width: 10px;
}
.slideshow_text::-webkit-scrollbar-track {
    background-color: transparent;
}
.slideshow_text::-webkit-scrollbar-thumb {
    background-color: rgba(56,62,74,0.5);
    border-radius: 10px;
    border: 3px solid transparent;
}

/*Für Textbox*/
.slideshow .slideshow_text.show{
    opacity:1;
    visibility: visible;
}

.slideshow .slideshow_text.empty{
    display: none;
}

.slideshow_start{}
.slideshow_end{}

/*Fullscreen Button*/

.slideshow_text_hidden {}

.slideshow_text_hidden div.slideshow_text{
    display: none;
}


.slideshow_index .slideshow_fullscreen_button {
    height: 2rem;
    width: 2rem;
    margin: 0.5rem;
    background-image: url('../images/vergroessern.png');
    background-size: contain;
    background-position: center;
    background-repeat:no-repeat;
    border: none;
    user-select: none;
    cursor:pointer;
}
.slideshow_fullscreen_button:hover{
    /*User should see some reaction*/
}
.slideshow_index .slideshow_index_items{
  width:100%;
  display:flex;
  justify-content:center;
  overflow: hidden;
}
.slideshow_index .slideshow_index_placeholder{
  margin-left:1rem;
  width:6rem;
  height:100%;
  flex-shrink:0;
}
.slideshow_index .slideshow_button_container{
  display:flex;
  flex-shrink:0;
  width:6rem;
  margin-right:1rem;
  flex:0;
}
.slideshow_index .slideshow_fullscreen_button.kleiner {
    background-image: url('../images/verkleinern.png');
}

.slideshow_index .slideshow_text_button {
    height: 2rem;
    width: 2rem;
    margin: 0.5rem;
    background-image: url("../images/text-image.png");
    background-size: contain;
    background-position: center;
    background-repeat:no-repeat;
    border: none;
    user-select: none;
    cursor:pointer;
}
@media(max-width:768px){
  .slideshow_index .slideshow_index_placeholder{
    display:none;
  }
}

/* iframes */
/* Joomla gibt iFrame-wrappern immer die ID #blockrandom
Damit die Hoehe nicht für jede PDF manuell festeglegt werden muss und weil die Autoheight-Funktion im Advanced Tab des Menu-Eintrags nicht richtig funktioniert, wird fue Iframes mit ID#blockrandom die Hohe hier festgelegt.
Das Menu am oberen Rand ist mindesten 100px hoch. Ist es höher muss man nur etwas scrollen. */
iframe#blockrandom{
  height:calc(100vh - 100px);
}

/* iFrames do not scroll natively on iOS devices (iPhone and iPad) by default. */
.com-wrapper {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
}