:root{
    --main-bg-color:#ffffff;
    --td-color:rgb(79, 153, 171) ;
    --td-o-color:rgba(79, 153, 171, 0.75) ;
    --tl-color:#83bdcb;
    --tsl-color:#e5f0f2;
    --bd-color:rgb(130, 125, 115);
    --bl-color:#E0DCD8;
    --bsl-color:#948E87;
    --main-text-color:black;
    --bb-o-color:rgba(105, 105, 105, 0.75);
    --w-text-color:#ffffff;
}

*{
    margin: 0;
    padding: 0;  
}

html{
    height: 100%;
    font-size: 62.5%; 
    font-family:'Poppins', Arial, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-size: 1.5em; 
    line-height: 2;  
}

p {
    margin-bottom: 3rem;
}


h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 2rem;
}


h1{
    font-size: 5rem;
    line-height: 1.2;  
    letter-spacing: -.1rem;
    font-weight: 300;
    color: var(--w-text-color);
    display: none; /* display im container */
}

h2{
    font-size: 3.7rem; 
    line-height: 1.3;  
    letter-spacing: .01rem;
    font-weight: 100;
    color: var(--bd-color);
}

h2::after{
    content: '';
    min-width: 50px;
    max-width: 10%;
    height: 3px; 
    background: var(--td-color);
    display: block;
    margin-top: 0.2em;
}

h3 { 
    font-size: 2.7rem; 
    line-height: 1.35;
    font-weight: 500;
    color: var(--bsl-color) }

h4 { 
    font-size: 2.2rem; 
    line-height: 1.5;  
    letter-spacing: -.05rem;
    font-weight: 500; 
    color: var(--td-color)}

h5 { 
    font-size: 1.7rem; 
    line-height: 1.6;  
    letter-spacing: 0;
    font-weight: 500;}

@media screen and (max-width: 600px){
    h1 { font-size: 3.2rem;  }
    h2 { font-size: 2.7rem;  }
    h3 { font-size: 2.3rem;  }
    h4 { font-size: 1.9rem; }
    h5 { font-size: 1.5rem;  }
    blockquote p:first-child, .download, .news { font-size: 1.9rem; }
}
    
a {
    color: var(--td-color);
    text-decoration: none;
}

ul {
	list-style:square;
	padding-left: 20px;
    padding-bottom: 3rem;
}


header ul, footer ul{
    list-style: none;
    padding-left: 0;
    padding-bottom: 0;
}


li::marker{
	color: var(--td-color);
}


blockquote > p{
    color:var(--bd-color);
    font-weight: 100;
    line-height: 1.5;
}


blockquote > p:first-child{
    font-size: 2.5rem;
    font-weight: 100;
    line-height: 1.5;
    margin-bottom: 10px;
}


.download {
    color:var(--bd-color);
    font-size: 2.5rem;
    font-weight: 300;
    display: block;
} 

.download:hover{
    color:var(--td-color);
}

.download::before{
    content: url('data:image/svg+xml,<svg style=" fill: rgb(130, 125, 115)" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4,20H20a1,1,0,0,1,0,2H4a1,1,0,0,1,0-2ZM12,2a1,1,0,0,0-1,1V14.586L8.707,12.293a1,1,0,1,0-1.414,1.414l4,4a1,1,0,0,0,.325.216.986.986,0,0,0,.764,0,1,1,0,0,0,.325-.216l4-4a1,1,0,0,0-1.414-1.414L13,14.586V3A1,1,0,0,0,12,2Z"/></svg>');
    display: inline-block;
    width:1em;
    padding-right:5px;
}

.download:hover::before{
    content: url('data:image/svg+xml,<svg style=" fill: rgb(79, 153, 171)" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4,20H20a1,1,0,0,1,0,2H4a1,1,0,0,1,0-2ZM12,2a1,1,0,0,0-1,1V14.586L8.707,12.293a1,1,0,1,0-1.414,1.414l4,4a1,1,0,0,0,.325.216.986.986,0,0,0,.764,0,1,1,0,0,0,.325-.216l4-4a1,1,0,0,0-1.414-1.414L13,14.586V3A1,1,0,0,0,12,2Z"/></svg>');
}

.news-ul{
    padding-left: 40px;
}
.news-ul {
    list-style-image: url('data:image/svg+xml,<svg viewBox="0 0 32 32" style=" fill: rgb(130, 125, 115)" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;}</style></defs><title/><g data-name="Layer 2" id="Layer_2"><path d="M19,26a1,1,0,0,1-.71-.29,1,1,0,0,1,0-1.42L26.59,16l-8.3-8.29a1,1,0,0,1,1.42-1.42l9,9a1,1,0,0,1,0,1.42l-9,9A1,1,0,0,1,19,26Z"/><path d="M28,17H1a1,1,0,0,1,0-2H28a1,1,0,0,1,0,2Z"/></g><g id="frame"><rect class="cls-1" height="32" width="32"/></g></svg>');
}

.news{
    color:var(--bd-color);
    font-size: 2.5rem;
    font-weight: 300;
    display: block;
} 

.news-ul > li::marker {
    font-size: 2.5em;
} 

.news-ul > li:hover .news{
    color:var(--td-color);
    list-style-image: url('data:image/svg+xml,<svg viewBox="0 0 32 32" style=" fill: rgb(79, 153, 171)" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;}</style></defs><title/><g data-name="Layer 2" id="Layer_2"><path d="M19,26a1,1,0,0,1-.71-.29,1,1,0,0,1,0-1.42L26.59,16l-8.3-8.29a1,1,0,0,1,1.42-1.42l9,9a1,1,0,0,1,0,1.42l-9,9A1,1,0,0,1,19,26Z"/><path d="M28,17H1a1,1,0,0,1,0-2H28a1,1,0,0,1,0,2Z"/></g><g id="frame"><rect class="cls-1" height="32" width="32"/></g></svg>');
}

.news-ul > li:hover {
    list-style-image: url('data:image/svg+xml,<svg viewBox="0 0 32 32" style=" fill: rgb(79, 153, 171)" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;}</style></defs><title/><g data-name="Layer 2" id="Layer_2"><path d="M19,26a1,1,0,0,1-.71-.29,1,1,0,0,1,0-1.42L26.59,16l-8.3-8.29a1,1,0,0,1,1.42-1.42l9,9a1,1,0,0,1,0,1.42l-9,9A1,1,0,0,1,19,26Z"/><path d="M28,17H1a1,1,0,0,1,0-2H28a1,1,0,0,1,0,2Z"/></g><g id="frame"><rect class="cls-1" height="32" width="32"/></g></svg>');
}

@media screen and (max-width: 600px){
    blockquote p:first-child, .download, .news { font-size: 2rem}
    .news-ul > li::marker {font-size: 2em}
    .news-ul {padding-left: 32px}
}

input.searchbox{
    height:46px;
    box-sizing: border-box;
    margin-bottom: 20px;
    max-width: 100%;
}

img{
    max-width: 100%;
    height: auto !important
}

table{
    border:none;
    padding: 10px;
    hyphens: auto;
    border-collapse: collapse;
    width: auto !important;
    max-width: 500px;
}

td{
    width: auto !important;
    padding-right: 10px;

}

.table td, table tr{
    border:none;
    border-bottom: 1px solid var(--bsl-color);
}

@media screen and (max-width: 600px){
    .table {font-size: 1.3rem}
}



/* Header allgemein */

header{
    width: 100%;
    background-color:var(--main-bg-color);
    position: sticky;
	top: 0;
    z-index: 5;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
}


header .flex{
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
}

.logo {
    max-width: 170px;
    padding: 20px;
    padding-left:33px;
    padding-right: 33px;
}
    
/* Titelfoto */

.allover{
    position: relative;
    margin-bottom: 40px;
    max-height: 65vh;
    
}
.allover  img {
    max-height: 65vh;
    width:100%;
    object-fit: cover;
    overflow: hidden;
}

.title-absolute{
    position: absolute;
    bottom: -15px;
    width: 100%;
    height: 50%;
    min-height: 90px;
}
.title-relative{
    position: relative;
    background-color: var(--td-o-color);
    height: 100%;
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 900px;
}
.title-relative.title-home::before{
    width: 0; 
    content: ''; 
    position: absolute; 
    top: -25px; 
    right: 0; 
    border-top: 25px solid transparent; 
    border-left: 100vw solid var(--td-o-color);
}
.title-relative::after{
    width: 0; 
    content: ''; 
    position: absolute; 
    bottom: -25px; 
    right: 0; 
    border-bottom: 25px solid transparent; 
    border-left: 100vw solid var(--td-o-color);
}

.title-relative.bg-bo {
    background-color: var(--bb-o-color);
}

.title-relative.bg-bo::before, .title-relative.bg-bo::after {    
    border-left: 100vw solid var(--bb-o-color);
}

.title-relative h1{
    margin-left: 5vw;
    margin-bottom: 0px;
    display: block;
}

.title-content{
    padding-top:40px;
    padding-bottom: 30px;
    margin-bottom: 40px;
    hyphens: auto;

}
#title-home{
    font-weight:bold;
    font-size:8rem;   
    max-width: 1000px;
}

#title-home::first-line{
    font-weight:normal;
}

@media screen and (max-width:1260px) {
    .title-content > h1, #title-home{
        margin-left: 30px;
    }
    #title-home{
        font-size: 7rem;
    }
}

@media screen and (max-width:900px) {
    #title-home{
        font-size: 4.8rem;
        margin-left: 30px;
        max-width:400px
    }

    .title-content > h1 {
        font-size: 4rem;
        margin-left: 30px;
    }
}

@media screen and (max-width:600px) {
    .title-content > h1 {
        font-size: 3.1rem;
        hyphens: auto;
    }
    
    #title-home{
        font-size: 3.2rem;
        hyphens: none;
    }

    .title-relative::after{
        bottom: -15px; 
        border-bottom: 15px solid transparent; 
    }
    .title-relative::before{
        top: -15px; 
        border-top: 15px solid transparent; 
    }
}

@media screen and (max-width:380px) {
    .title-content > h1 {
       font-size: 3rem;
       hyphens: auto;
   }
   
   #title-home{
       font-size: 3rem;
       hyphens: none;
   }
}

/* Container*/

.container-m{
    max-width:1000px;
    margin:auto;
    padding-left: 30px;
    padding-right: 30px;
}

.container-l{
    max-width:1700px;
    margin:auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* Button*/

.button {
    line-height: 2;
    padding:12px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0px;
    border: none;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;  
    display: inline-block;
    min-width:150px;
}

.button::after{
    content:"\2794";
    padding-left: 7px;
}

#news .button::after{
    content:"";
    padding-left: 0px;
}

.twintbutton{
    padding-bottom: 40px;
    display: none;
}

.qrcode{
    padding-bottom: 40px;
    max-width: 500px;
}

@media screen and (max-width:900px){
    .twintbutton{
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    #rnw-paylink-button{
        display: flex;
    }
    
}

@media screen and (max-width:700px){
    .qrcode{
        display: none;
    }
}

/* Background*/

.bg-t {
    background-color: var(--tl-color); 
    color: var(--w-text-color);
}

.bg-td {
    background-color: var(--td-color); 
    color: var(--w-text-color);
}

a.bg-td:hover {
    color: var(--w-text-color);
}

.bg-t h2 {
    color: var(--w-text-color);
}

.bg-t h2::after {
    background-color: var(--w-text-color);
}

.bg-t .button {
    color:var(--w-text-color) ;
    background-color: var(--td-color);
}

.bg-tsl{
    background-color: var(--tsl-color);
}

.bg-bl {
    background-color: var(--bl-color); 
}

.bg-bl h2 {
    color: var(--bd-color);
    font-weight: 600;
}

.bg-bl h2::after {
    background-color: var(--w-text-color);
}

.bg-b, .bg-b a {
    background-color: var(--bsl-color); 
    color: var(--main-text-color);
}

.bg-b h2, .bg-b h3 {
    color: var(--w-text-color);
}

.bg-b .button {
    color: var(--bd-color);
    background-color: var(--w-text-color);
}

/* Sections */
section, .section{
    position: relative;
    padding-top: 2em;
    padding-bottom: 4em;
}

.screw::before{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.screw.bg-bl::before {
    transform-origin: top left;
    transform: skewY(-1.5deg);
    background-color: var(--bl-color);
  } 


.screw.bg-tsl::before {
    transform: skewY(1.5deg);
    transform-origin: top right;
    background-color: var(--tsl-color);
  } 

section.s-bg, .section.s-bg {
    z-index:-2;
    padding-top: 4em;
}
/* Spalten*/


.grid-2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.grid-3{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}


.grid-item > img{
    object-fit: contain;
    width: 100% !important;
    height: auto !important;
}

/* Boxen */

.box{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
    
}
@media screen and (max-width:900px) {
    .grid{
        grid-template-columns: 1fr;
        gap: 30px;
        
    } 
}

.item{
    display: flex;
    flex-direction: column;
    hyphens: auto;
}

.item-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.item-img > img{
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

.item-text {
    line-height: 1.5;
    padding: 15px; 
}
.item-text h2{
    font-size: 2.3rem;
    hyphens: auto;
    
}

.item-text h2::after{
    margin-top: 0.6em;
}

.item-text h3{
    font-size: 1.5em;
    font-weight: 600;
    hyphens: auto;
}

.item .button{
    margin-top:auto;
    margin-bottom: 40px; 
}

.img-boxes{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    
}

.img-box{
    border: solid white;
    border-width: 3px 3px 3px 0px;
    overflow:hidden;
    width: 100%;
    height: 25vw;
    max-height: 350px;
}

.img-box:last-child{
    border-width: 3px 0px 3px 0px;
}

.img-box img{
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

/* News */
.item .date{
    color:var(--w-text-color);
    margin: 0px;
}

.news-image img{
    width: 50%;
    max-height:100%;
    float:inline-end;
    padding-left: 20px;
}

#news{
    display:flex;
    flex-direction: column;
    gap: 70px;
    padding-left: 0px;
}

#news .news-details{
    padding-top: 3rem;
}

#news .button{
    margin-right:auto;
    margin-left:0;
    margin-top: 20px;
}

/* Shadowbox */

#shadowbox_info_inner, #shadowbox_info {
    position:initial !important;
}

#shadowbox_nav_close {
    position:absolute;
    top: 0px;
    right: 0px;
    width: 25px !important;
    height: 25px !important;
    background-size: cover;
}

/* Footer */

footer{ 
    background-color: var(--td-color); 
    color: var(--w-text-color);
    padding:30px;
    padding-left:50px;
    padding-right: 50px;
}

footer .container-l{ 
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
}

@media screen and (max-width:900px) {
    footer {
        padding-left:0px;
    }   
    footer .container-l{
        grid-template-columns: 1fr;
    }   
}

footer .item{
    align-self: self-end;
    line-height: initial;
}

footer a{
    color: var(--w-text-color);
}

footer a:hover{
    color: var(--main-text-color);
}

footer h2{
    color: var(--w-text-color);
    font-size: 1.5rem; 
    letter-spacing: 0rem;
    margin-bottom: 0px;
    font-weight: 400;
   
}
