* {
    box-sizing: border-box;
}

/* Add a gray background color with some padding */
body {
    margin: 0 auto;
    margin-bottom: 2ex;
    max-width: 1700px;
    background: #96a2af;
    /* background-image: url("bg-muster-7.png"); */
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #222222;
    padding: 5px;
}

/*========================================
* default styles
*/

img {
    border-style: none;
    border-width: 0px;
    vertical-align: middle;
    border-radius: 4px;
}

main img {
    max-width: 100%;
}

a:link {
    color: #0000a0;
}
a:visited {
    color: #000040;
    text-decoration: underline;
}
a:hover {
    background-color: rgba(255, 186, 3, 0.4);
    transition: 0.2s;
}

/* add extlink- or lock-icon before external links */
a[href^="https:"], a[href^="http:"], a[href^="www"] {
    background: transparent url('../extlink.png') 0% 50% no-repeat;
    padding-left: 12px;
}

/*========================================
* header
*/

.header {
    display: block;
    position: relative;
    min-height: 17ex;
    background: #009900;
    border-radius: 4px 4px 0px 0px;
}

.header a:link, .header a:visited {
    color: black;
    text-decoration: none;
}

.header a:link:hover {
    background-color: inherit;
}

#banner {
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 14ex;
    padding: 1.5ex 2ex 0.5ex 1ex;
    background-color: rgba(255,255,255,1);
    border-radius: 0px 4px 0px 0px;
}

#banner-logo {
    height: 12ex;
}

#banner-name {
    display: inline-block;
    margin-left: 1ex;
    vertical-align: middle;
    white-space: normal;
    font-size: 120%;
}


/*========================================
* navigation / menu */

/*----------------------------------------
 * navigation-bar: contains hamburger-icon for small screens */

#nav-bar {
    padding: 1ex;
    background-color: #333;
}
#nav-bar::after {
    content: "";
    Display: block; /*table;*/
    clear: both;
}

/* hide navigation-bar by default; it's only used on small screens */
#nav-bar, #menu-checkbox {
    display: none;
    border-radius: 0px 0px 4px 4px;
}

/* menu-button */
.menu-button {
    float: left;
    /* display: inline-block; */
    padding-right: 1ex;
    width: 30px;
    vertical-align: middle;
    margin: auto;
}

/* draw hamburger-icon with 3 spans and pure CSS */
.menu-button span {
    display: block;
    height: 5px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 2.5px;
    transition: transform .3s, opacity .3s;
}

.menu-button span:nth-child(3) {
    margin-bottom: 0;
}

/* animate hamburger-icon on click */
#menu-checkbox:checked ~ #nav-bar .menu-button span:nth-child(1) { transform: translate(0, 10px) rotate(45deg); }
#menu-checkbox:checked ~ #nav-bar .menu-button span:nth-child(2) { opacity: 0;}
#menu-checkbox:checked ~ #nav-bar .menu-button span:nth-child(3) { transform: translate(0,-10px) rotate(-45deg); }
#menu-checkbox:checked ~ #nav-bar .menu-button span { background-color: white; }

/*----------------------------------------
* menu */
#menu {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    overflow: hidden;
    background-color: #333;
    border-radius: 0px 0px 4px 4px;
}

#menu li {
    /* white-space: nowrap; */
    float:left;
}

#menu li.rechts { /*meine änderung*/
    float: right;
}

#menu a {
    display: block;
    text-decoration: none;
    text-align: center; /*meine änderung*/
    color: white;
    padding: 14px 16px; /*meine änderung*/
}

#menu a:hover {
    background-color: #009900; /* green */
}


/*===============================================
* blog (two columns)
*/


/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {   
    float: left;
    width: 35%;
}

/* Right column */
.rightcolumn {
    float: left;
    width: 65%;
    padding-left: 10px;
}

/* Add a card effect for articles */
.card {
    background-color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}


/*===============================================
* Footer
*/

.footer {
    padding: 10px;
    text-align: center;
    background-color: rgba(255,255,255,0.6);
    /* background: #ddd; */
    margin-top: 10px;
    border-radius: 4px;
}


/*================================================
* Slideshow
*/

.slideshow-card {
    background-color: white;
    padding: 10px;
    /* padding: 0px; */ /* Als eine Alternative zum anderen Padding, falls kein weißer Rand erwünscht ist */
    margin-top: 10px;
    border-radius: 4px;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    max-height: 582px;
    overflow:hidden;
    position: relative;
    margin: auto;
}

.active {
    background-color: #717171;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
    height: 34vw;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Ende Slideshow */



/*========================================
 * @media / responsive design
 */


/*  navigation-bar */

/* <= 1150 px: hide menu + show hamburger-icon ***/
@media (max-width: 1150px) {
    /* reduce header size */
    /* header { */
    /*     min-height: 47px; */
    /* } */

    #nav-bar {
        display: block;
    }

    /* - menu: full-width, hide by default */
    #menu {
        visibility: hidden; position: absolute; left: -9999px;
        float: none;
        width: 100%;
    }

    /* new colors */
    #menu a {
	background-color: #f1f1f1;
	color: black;
    }

    /* new colors */
    #menu a:hover {
	color: white;
    }

    /* vertical instead of horizontal orientation */
    #menu li, #menu li.rechts {
	float: none;
    }
    
    /* - menu: show when hamburger-icon is clicked */
    input#menu-checkbox:checked ~ #menu {
        visibility: visible; position: static;
    }

    /* Don't show slideshow on small screens */
    .slideshow-card {
	display: none;
    }
}


/* blog - when the screen is less than 800px wide,
*  make the two columns stack on top of each other
*  instead of next to each other
*
*  And reduce header so that it fits better on small screens
*/

@media screen and (max-width: 800px) {
    .leftcolumn, .rightcolumn {   
	width: 100%;
	padding: 0;
    }

    /* reduce header even more */
    .header {
        min-height: 0;
    }
    #header-wrapper {
        padding: 0;
    }
    #header-bg {
        display: none;
    }
    .header a {
        display: block;
        /* background-image: url(bannerbg-medium.jpg); */
        background-repeat: no-repeat;
        background-size: cover;
    }
    #banner {
        position: relative;
        padding-top: 1ex;
        height: inherit;
	border-radius: 4px 4px 0px 0px;
    }
    #banner-name {
	font-size: 100%;
    }

    /* slideshow: adjust height since there is only one column left */
    .fade {
	height:92vw;
    }
}

