:root {


    --sand: #FFFDFD;
    --red: #b9242a;
    /* --red_neu: #CD0F0F; */
    --schrift: #000000;


}

html,
body {
    border: none;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: sans-serif;
    font-size: 1em;
    line-height: 125%;
    background-color: var(--sand);
    height: 100.1%;
}

#menu a.mark {
    color: var(--sand);
    background: var(--red);
    border-radius: 6px;
}

h2,
h3,
h4 {
    padding-top: 12px;
    text-align: left;
    line-height: 100%;
}

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background: #f3c48e; */
    background: var(--sand);
}



.logo {
    text-align: center;
    /* background: #f3c48e; */
}

.logo p {
    padding: 20px 0 0 0;
    margin: 30px 0 0 0;
    line-height: 1.5em;
}

#logo1 {
    font-size: 6.7em;
    font-weight: bold;
    color: var(--red);
}

#logo2 {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--red);
}

.logo h4 {
    padding: 0px;
    margin: 10px;
    text-align: center;
}



.home {
    width: 900px;
    margin: auto;
    text-align: justify;
    hyphens: none;
    color: #000000;
    background-color: #ffffff;
}


/* Slideshow für Monitore > 1000px home.html */


#slideshow {
    text-align: center;
    overflow: hidden;
    height: 600px;
    width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.slide-wrapper {
    width: 12600px;
    -webkit-animation: slide 40s ease infinite;
}

.slide {
    float: left;
    height: 600px;
    width: 900px;
}

.slide img {
    width: 100%;
    margin: auto;
    border-radius: 15px;
}

@-webkit-keyframes slide {
    5% {
        margin-left: 0px;
    }

    11% {
        margin-left: -900px;
    }

    17% {
        margin-left: -900px;
    }

    22% {
        margin-left: -1800px;
    }

    28% {
        margin-left: -1800px;
    }

    33% {
        margin-left: -2700px;
    }

    39% {
        margin-left: -2700px;
    }

    44% {
        margin-left: -3600px;
    }

    49% {
        margin-left: -3600px;
    }

    55% {
        margin-left: -4500px;
    }

    60% {
        margin-left: -4500px;
    }

    66% {
        margin-left: -5400px;
    }

    71% {
        margin-left: -5400px;
    }

    77% {
        margin-left: -6300px;
    }
    83% {
        margin-left: -6300px;
    }
    89% {
        margin-left: -7200px;
    }
    95% {
        margin-left: -7200px;
    }
    100% {
        margin-left: -8100px;
    }


    /* 95% {
        margin-left: -8100px;
    }
    76% {
        margin-left: -9000px;
    }
    80% {
        margin-left: -9000px;
    }

    84% {
        margin-left: -9900px;
    }
    87% {
        margin-left: -9900px;
    }
    90% {
        margin-left: -10800px;
    }
    95% {
        margin-left: -10800px;
    }
    100% {
        margin-left: -11700px;
    } */




}

/* Slideshow für Handy 800-1000px home.html */



@media screen and (max-width: 1000px) and (min-width: 701px) {

    .home {
        width: 600px;
        padding: 10px;
        margin: auto;

    }

    #slideshow {
        text-align: center;
        overflow: hidden;
        height: 400px;
        width: 600px;
        margin: 0 auto;
    }

    .slide-wrapper {
        width: 8400px;
        -webkit-animation: slide 40s ease infinite;
    }

    .slide {
        float: left;
        height: 400px;
        width: 600px;
    }

    .slide img {
        width: 100%;
        margin: auto;
        border-radius: 10px;
    }

    @-webkit-keyframes slide {
        5% {
            margin-left: 0px;
        }

        11% {
            margin-left: -600px;
        }

        17% {
            margin-left: -600px;
        }

        22% {
            margin-left: -1200px;
        }

        28% {
            margin-left: -1200px;
        }

        33% {
            margin-left: -1800px;
        }

        38% {
            margin-left: -1800px;
        }

        44% {
            margin-left: -2400px;
        }

        49% {
            margin-left: -2400px;
        }

        55% {
            margin-left: -3000px;
        }

        60% {
            margin-left: -3000px;
        }

        66% {
            margin-left: -3600px;
        }

        71% {
            margin-left: -3600px;
        }

        77% {
            margin-left: -4200px;
        }
        83% {
            margin-left: -4200px;
        }
        89% {
            margin-left: -4800px;
        }
        95% {
            margin-left: -4800px;
        }
        100% {
            margin-left: -5400px;
        }
        /* 73% {
            margin-left: -5400px;
        }
        76% {
            margin-left: -6000px;
        }
        80% {
            margin-left: -6000px;
        }

        84% {
            margin-left: -6600px;
        }
        87% {
            margin-left: -6600px;
        }
        91% {
            margin-left: -7200px;
        }
        95% {
            margin-left: -7200px;
        }
        100% {
            margin-left: -7800px;
        } */
     }
    }



/* Slideshow für Handy bis 700px home.html */

@media screen and (max-width: 700px) {

    .home {
        width: 300px;
        padding: 10px;
        margin: auto;

    }

    #slideshow {
        text-align: center;
        overflow: hidden;
        height: 200px;
        width: 300px;
        margin: 0 auto;
    }

    .slide-wrapper {
        width: 4200px;
        -webkit-animation: slide 40s ease infinite;
    }

    .slide {
        float: left;
        height: 200px;
        width: 300px;
    }

    .slide img {
        width: 100%;
        margin: auto;
        border-radius: 10px;
    }

    @-webkit-keyframes slide {
        5% {
            margin-left: 0px;
        }

        11% {
            margin-left: -300px;
        }

        17% {
            margin-left: -300px;
        }

        22% {
            margin-left: -600px;
        }

        28% {
            margin-left: -600px;
        }

        33% {
            margin-left: -900px;
        }

        38% {
            margin-left: -900px;
        }

        44% {
            margin-left: -1200px;
        }

        49% {
            margin-left: -1200px;
        }

        55% {
            margin-left: -1500px;
        }

        60% {
            margin-left: -1500px;
        }

        66% {
            margin-left: -1800px;
        }

        71% {
            margin-left: -1800px;
        }

        77% {
            margin-left: -2100px;
        }
        83% {
            margin-left: -2100px;
        }
        89% {
            margin-left: -2400px;
        }
        95% {
            margin-left: -2400px;
        }
        100% {
            margin-left: -2700px;
        }
        /* 73% {
            margin-left: -2700px;
        }
        76% {
            margin-left: -3000px;
        }
        80% {
            margin-left: -3000px;
        }

        84% {
            margin-left: -3300px;
        }
        87% {
            margin-left: -3300px;
        }
        90% {
            margin-left: -3600px;
        }
        95% {
            margin-left: -3600px;
        }
        100% {
            margin-left: -3900px;
        } */
     }
}

/* Ende Slideshow für Handy home.html */

.textcontainer,
.medienseite {
    padding-top: 220px;
    width: 75%;
    /* war 85% */
    margin: auto;
    min-height: calc(100vh - 300px);


    /* Seitenübergang Einblendung */
    animation: einblenden 1s;
    animation-delay: 0s;
    -moz-animation: einblenden 1s;
    /* Für Firefox */
    -webkit-animation: einblenden 1s;
    /* Für Safari und Chrome */
    -o-animation: einblenden 1s;
    /* Für Opera */
}

.textcontainer2{
padding-top: 190px;
width: 75%;
 margin: auto;
 font-size: 1.2em;
    line-height: 1.2em;
 }

@media only screen and (max-width: 900px) {
    .textcontainer2 {

      width: 100%;
    }
  }

.textcontainer2 td{
 padding: 7px;
    vertical-align: top;
}

.textcontainer2 td.zeit{
white-space: nowrap;
 }
 .textcontainer2 td.topic {
 hyphens: auto;
  white-space: wrap;
 }

.medienseite .kontaktseite {
    width: 90%;
}



.media-container {
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: baseline;
    /* border: 1px var(--red) solid;
    box-shadow: 4px 6px var(--red);
    border-radius: 10px; */

}

.media,
.media-admin {
    width: 45%;
    text-align: center;
    margin: 15px 0;
    background-color: var(--sand);
    border: 1px var(--red) solid;
    box-shadow: 4px 6px var(--red);
    border-radius: 10px;
}

.aktuelles {

    margin: 15px auto;
    border: var(--red) 6px double;
    padding: 0 10px 10px 10px;
    border-radius: 10px;
    width: 60%;
    text-align: center;
}

.aktuelles h2 {
    display: inline-block;
    border-bottom: 6px solid;
    border-bottom-style: double;
    margin: 0;
}


.media .news1 p {
    text-align: center;
    /* padding: 0 5% 0 5%; */
    margin: 10px;
    padding: 5%;
    border-bottom: var(--red) 1px dashed;
}


.media .news2 p,h5{
    text-align: left;
    margin: 0 0 10px 0;
    padding: 0 5%;
    line-height: 1.3em;

}
.media .news2 h5{
    margin-top: 15px;
    font-size: 1em;
    /* color: var(--red); */
    /* text-decoration: underline; */

   }

.media p {
    padding: 0;
    margin: 0 0 10px 0;
}

.media h2,
.media-admin h2,
.news1 h2,
.news2 h2,
.news2 h4 {
    margin: auto;
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 5px;
    color: var(--sand);
    background-color: var(--red);
    width: fit-content;
    text-align: center;
    border-radius: 5px;
    font-weight: 400;

}


@media screen and (max-width: 900px) {

    .media {
        width: 600px;
        padding: 10px;
        border: var(--red) 2px solid;
    }

    .media-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

}

@media screen and (max-width: 1450px) {
    .media-admin {
        width: 500px;
        padding: 10px;
        border: var(--red) 2px solid;
    }

    .media-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}


.text_autor {

    width: 75%;
    margin: 30px auto;
    padding: 15px;
    border: 2px solid var(--red);
    box-shadow: 4px 6px var(--red);
    border-radius: 10px;


}

.text_autor h1,
h2,
h3,
h4 {
    text-align: center;

}

.text_autor p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;

}

.text_autor .titel {
    width: fit-content;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 150%;
    margin: auto;
    text-align: center;
    padding: 10px;
    color: var(--sand);
    background-color: var(--red);
}

.textcontainer a,
.textcontainer2 a,
.text_autor a,
.medienseite a,
.home a {
    color: var(--red);
    font-weight: bold;
    padding: 4px;
    border-radius: 4px;

}

.textcontainer a:hover,
.textcontainer2 a:hover,
.text_autor a:hover,
.medienseite a:hover,
.home a:hover {
    color: var(--sand);
    background-color: var(--red);
    font-weight: bold;
    transition: all .2s ease-in-out;

}

dialog a {
    color: var(--red);
    text-decoration: none;
}

dialog .kompakt {
    display: inline-block;
}


.reha5 {

    margin: 0;
    padding-left: 3rem;

}

.reha5 h5 {
    display: list-item;
    /* This has to be "list-item" */
    list-style-type: square;
    list-style-position: outside;
    /* margin-left : 1em;   */
    font-size: 1rem;
    margin: 0;
    padding: 0;
}


.slidecontainer {
    width: 90%;
    padding-top: 220px;

    margin: auto;
    text-align: justify;
}

.gruppenfoto{
 width: 70%;
    margin: auto;
 }

.gruppenfoto p{
    /* padding: 8px 0px 0px 0px; */

}
.gruppenfoto img {
    margin-top: 8px;
  border-radius: 10px;


}

.persontable {
    width: 70%;
    margin: auto;
    /* border: 4px solid #B9222B; */
    display: table;
    border: solid 1px var(--red);
    border-radius: 10px;
    box-shadow: 4px 6px var(--red);
}

.person {
    padding: 0;
    margin: 0;
    display: table-row;
}

.person_foto {
    display: table-cell;
}

.person_foto img {
    float: left;
    width: 220px;
    padding: 20px;
    height: auto;
    border-radius: 40px;
}

.person_beschreibung {
    width: 80%;
    padding: 0 15px 15px 15x;
    display: table-cell;
    vertical-align: top;
    text-align: left;
}

.person_beschreibung p {
    text-align: justify;
    padding-right: 15px;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.person_beschreibung a {
    display: inline-block;
    hyphens: none;
    -webkit-hyphens: none;
}


@media screen and (max-width: 810px) {
    .persontable {
        width: 70%;
        margin: auto;
        border: solid 1px var(--red);
        border-radius: 10px;
        box-shadow: 4px 6px var(--red);
    }

    .person {
        text-align: center;
        display: block;
    }

    .person_foto {
        clear: both;
        display: block;
        width: 240px;
        margin: auto;
    }

    .person_foto img {
        clear: both;
        width: 200px;
        padding-top: 10px;
        height: auto;
        border-radius: 40px;
    }

    .person_beschreibung {
        display: block;
        margin: auto;
        height: auto;
        /* vertical-align: top; */
        text-align: center;
    }

    .person_beschreibung p {
        text-align: justify;
        padding: 0;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .person_beschreibung h4 {
        text-align: center;
        display: inline-block;
        margin: 0;
        padding: 0;
    }
}

.team {
    margin: auto;

    width: 100%;
}

.team table {
    margin: auto;
    border-collapse: collapse;
}

.team tr {
    border: 5px solid var(--sand);
}

.team table td {
    padding-left: 10px;
    vertical-align: top;
}

.team img {
    margin: 15px;
    width: 200px;
}

.td_right {
    padding: 10px 30px 10px 20px;
}

.teamcontainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /*======== auskommentiert - war nur eine Alternative ========
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
======== auskommentiert - war nur eine Alternative ========*/
}

.teamcard {
    /*======== auskommentiert - war nur eine Alternative ========
    float: left;
    ======== auskommentiert - war nur eine Alternative ========*/
    width: 280px;
    padding: 7px;
    margin: 15px;
    text-align: center;
    border: solid 1px var(--red);
    background: var(--sand);
    box-sizing: border-box;

    border-radius: 10px;
    box-shadow: 4px 6px var(--red);
    /*======== auskommentiert - war nur eine Alternative ========
    margin-right: 2%;
======== auskommentiert - war nur eine Alternative ========*/
}

.teamcard h4 {
    text-align: center;
}

.teamcard img {
    height: 230px;
    border-radius: 40px;
}

.clear {
    clear: both;
    margin: 0;
    padding: 0;
}




.kontakt li,
ul li {
    padding-bottom: 7px;
}

.medien {
    width: 100%;
    margin: auto;
    text-align: center;
}

.medien h2,
.medien h3,
.medien h4 {
    text-align: center;
}

.abstand {
    height: 30px;
}

.abstand1 {
    height: 15px;
}

.wrapper1 {
    display: table;
    width: 80%;
    margin: auto;
    /*     height: 350px;*/
    border: 2px solid var(--red);
    background-color: var(--sand);
    text-align: left;
}

.links {
    float: left;
    width: 240px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.links img {
    width: 220px;
}

.rechts {
    padding: 15px;
    margin-left: 250px;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}

.n_oben {
    width: 100%;
    height: 18px;
    padding: 10px 0 10px 0;
    color: var(--red);
    background-color: var(--sand);
    /*margin-top: 15px 0 15px 0;*/
    text-align: center;
    font: 0.7em sans-serif;

}

.n_oben a {
    color: var(--red);
    text-decoration: none;
    /* font-style: italic; */
    padding: 2px;
    border: var(--red) 1px solid;
    background-color: rgba(252, 181, 181, 0.421);

}

/*
.n_oben a::before {
    content: ' ▲ ';
    color: var(--red)
} */
/*
.n_oben::after {
    content: ' ▲ ';
    color: var(--red)
} */


/* ------------------- Navigation  ------------------- */

#menu {
    margin-top: 10px;
    /* background: #f3c48e; */
    height: 35px;
    /*60*/
    /*border-radius: 5px;*/
    border-top: 4px double var(--red);
    border-bottom: 4px double var(--red);
}


#menuleiste {
    margin-top: 10px;
    /* background: #f3c48e; */
    height: 10px;
    /*60*/
    /*border-radius: 5px;*/
    /* border-top: 4px double var(--red); */
    border-bottom: 4px double var(--red);
}


#menu ul,
#menu li {
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

#menu ul {
    width: 100%;
    text-align: center;
}

#menu li {
    display: inline-block;
    position: relative;
}

#menu a {
    display: block;
    line-height: 30px;
    /*55*/
    padding: 0 12px;
    text-decoration: none;
    color: var(--red);
    font-size: 1em;
    font-weight: 700;
}

#menu a.dropdown-arrow:after {
    content: "\23F7";
    margin-left: 5px;
}

/*#menu a.dropdown-arrow:after {
    content: "\25BE";
    margin-left: 5px;
}
*/

#menu li a:hover {
    color: var(--sand);
    background: var(--red);
    border-radius: 6px;
    /* font-weight: 500; */
    transition: all .2s ease-in-out;
}

#menu input {
    display: none;
    margin: 0;
    padding: 0;
    height: 35px;
    /*55*/
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

#menu label {
    display: none;
    line-height: 35px;
    /*55*/
    text-align: center;
    position: absolute;
    left: 35px;
}

#menu label:before {
    font-size: 1.6em;
    color: var(--schrift);
    content: "\2261";
    margin-left: 20px;
}

#menu ul.sub-menus {
    height: auto;
    overflow: hidden;
    width: 170px;
    background: var(--sand);
    position: absolute;
    z-index: 99;
    display: none;
}

#menu ul.sub-menus li {
    display: block;
    text-align: left;
    width: 100%;
}

#menu ul.sub-menus a {
    color: var(--schrift);
    font-size: 16px;
}

#menu li:hover ul.sub-menus {
    display: block;
}

#menu ul.sub-menus a:hover {
    background: var(--sand);
    color: var(--schrift);
    transition: all .2s ease-in-out;
}


.video-container {
    width: 800px;
    margin: auto;
}

@media only screen and (min-width: 801px) {
    .video1 {
        margin: 0;
        padding: 0;
        border: none;
        width: 800px;
        height: 450px;
        overflow: hidden;
    }
}

/* ====================== Mobile ====================== */

@media screen and (max-width: 800px) {
    #menu {
        position: relative;
    }

    #menu ul {
        background: var(--sand);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: auto;
        display: none;
        text-align: left;
    }

    #menu ul.sub-menus {
        width: 100%;
        position: static;
    }

    #menu ul.sub-menus a {
        padding-left: 30px;
    }

    #menu li {
        display: block;
        float: none;
        width: auto;
    }

    #menu input,
    #menu label {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
    }

    #menu input {
        z-index: 4;
    }

    #menu input:checked+label {
        color: var(--schrift);
    }

    #menu input:checked+label:before {
        content: "\00d7";
    }

    #menu input:checked~ul {
        display: block;
    }


    .video-container {
        width: 250px;
        margin: auto;
    }

    .video1 {
        margin: 0;
        padding: 0;
        border: none;
        width: 250px;
        height: 140px;
        overflow: hidden;
    }

    #grad {
        scroll-margin-top: 350px;
    }
}

.linkbeschreibung {
    font-size: small;
    font-style: italic;
}

.footer {
    width: 100%;
    height: 100px;
    line-height: 1.2em;
    color: var(--sand);
    background-color: var(--red);
    font-size: 0.8em;
    font-style: italic;
    text-align: center;
}

.footer p {
    padding: 0;
    margin: 0;
}

#grad {
    scroll-margin-top: 230px;
}

/* Keyframes für Seitenübergang */

@keyframes einblenden {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes einblenden {

    /* Für Firefox */
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes einblenden {

    /* Für Safari und Chrome */
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes einblenden {

    /* Für Opera */
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

/* Accordion */
.accordion {
    background: var(--red);
    color: var(--sand);
    border: 1px solid #ededed;
    border-radius: 5px;
    font-weight: 700;
    margin: 15px 10px 5px 10px;
    padding: 15px;
    cursor: pointer;
    font-size: 1em;
    text-align: left;
}

.accordionDrop {
    margin: 10px;
    padding: 10px;
    border: 1px var(--red) solid;
    border-radius: 10px;
    box-shadow: 10px 6px 6px silver;
}

.accordionDrop h4 {
    text-align: left;
}

/* Impressum */




.impressum {
    width: 100%;
    font-family: monospace;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50px;
    padding: 0;
    margin-top: 10px;
    /* margin: auto; */
    border-top: 4px double var(--red);
    /* margin-bottom: 50px; */
}



.impressum #toggle {
    visibility: hidden;
    opacity: 0;
    position: relative;
    z-index: -1;
}

.impressum #toggle:checked~dialog {
    display: block;
}

.impressum .open {
    width: fit-content;
    /* width: 200px; */
    text-align: center;
    margin-left: -26px;
    background-color: var(--red);
    color: var(--sand);
    padding: .5em 1em;
    border-radius: 4px;

}

.impressum .close {
    width: fit-content;
    text-align: center;
    margin: auto;
    background-color: var(--red);
    color: var(--sand);
    padding: .5em 1em;
    border-radius: 4px;

}


@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.impressum dialog {
    animation: appear 350ms ease-in 1;
    max-width: 800px;
    margin-bottom: 300px;
    background-color: rgb(235, 178, 161);

}


/* Video Einbettung youtube */

.yt-video {
    padding-top: 20px;
    margin: auto;
}

#yt,
#orf {
    width: 1000px;
    height: 562px;

}

@media screen and (max-width:1250px) {

    #yt,
    #orf {
        width: 600px;
        height: 337px;
    }
}

@media screen and (max-width:800px) {

    #yt,
    #orf {
        width: 300px;
        height: 169px;
    }
}

.events li{
    text-align: left;
    margin:6px 0px;
 }

 .date {font-weight: bold;}