/* Hauptformate */
html {

  --distance: 170px;
  --hoehe: calc(100vH - 330px);
  --artbreite: calc(100vw - 365px);

	background-color: #8AB48A;
    background-image: url("../images/Logofeld-transparent-beige-klein.png");
    background-repeat: repeat;
    margin: 0px;
    padding: 0px;
    width: 100vw;
    }

body {
    font: normal 0.8em arial, sans-serif;
    color: white;
    margin: 0px;
    padding: 0px;
    height: 100vh;    
}

header {
    position: fixed;
    top: 0px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    }


header div {
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.hadr {
    width: 45%;
    max-height: 200px;
    float: right;
}

h1 {
    font-size: 2.3em;
    } 

.hadr h1 {
    font-size: 1.5em;
}

.trenner-top {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    clear: both;
    margin-top: 0px;
}
.trenner-bottom {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
        margin-top: 10px;
}

header picture img {
    float: left;
    width: 98%; 
    max-height: 200px;
}
   

section {
    position: fixed;
    margin-left: 0px;
    display: grid;
    top: 270px;
    grid-template-columns: 235px auto 50px;
    grid-template-rows: auto 50px;
    justify-items: center;
    justify-content: center;
    
}

nav {
    grid-row: 2 / 3;
    grid-column: 1 /2;
    margin-left: 0px;
}

nav ul {
    list-style: none;
	position: relative;
    }
	
nav li {
    display: block;
	position: relative;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    }

nav a {
	color: white;
    font-size: 1.2em;
    font-weight: bold;
	text-decoration: none;
    display:block;
    width: 135px;
    height: 25px;
    padding: 5px 10px;
 
    background-color: #a5d3a5;
    border-left: 1px solid darkgreen;
    border-top: 1px solid darkgreen;
    border-right: 1px solid darkgreen;
    box-shadow: 10px 10px 20px #185221;
    border-radius: 5px;  
    margin-bottom: 15px;
    }
	
nav a:hover {
    color: darkgreen;
	background-color: #a5d3a5;
    }

nav li.active a {
    color: #ff6600;
	background-color: #a5d3a5;
    border-left: 3px solid #ff6600;
    border-top: 3px solid #ff6600;
    }

nav input {
    display: none;
    }      
  
main {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
    margin-left: 0px;
    padding: 25px;
    text-align: center;
    justify-items: center;
    justify-content: center;
    height: 100%;
    }

article {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    width: var(--artbreite);
    height: var(--hoehe);
    margin-left: auto;
    margin-right: auto;
    display: none;
    overflow-y: auto;
            text-align: justify;
	}
article img {
    max-height: 100%;
    max-width: 85%;
}    

article:target {
    display: block;
}    

article.captureH2, article.captureH2p {
    margin-top: -70px;
}

#praxiszeiten {
    text-align: center;
}

footer {
    width: 100%;
    position: fixed;
    bottom: 0px;
	padding: 5px;
	text-align: center;
    color: white;
    border-top: 0px solid #f6f6f6;
    z-index: 1;    
    grid-row: 2/3;
    grid-column: 1/4;

	}

footer ul {
    list-style: none;
    }

footer li {
    display: inline-block;
    }

footer a {
    text-decoration: none;
    /*color: white;*/
    color: green;
    margin-left: 10px;
    margin-right: 10px;
    }

footer li:hover a {
    color: green;
    background-color: black;
    }

@media screen and (min-width: 821px) and (max-width: 1000px){
    nav {
    grid-row: 2 / 2;
    grid-column: 1 /3;
    margin-left: 0px;
}
    nav label ul {
        display: none;
    }
    nav label::before { 
        display: block;
        width: 30px;
        height: 30px;
        background-image: url("../images/menu-button4-30.png");
        background-repeat: no-repeat;
    content: "";
    }
    nav input:checked+label::before {
    background-image: url("../images/close3-30px.png"); 
    }

    nav input:checked+label ul {
    display: block;
    }
    main {
        grid-row: 3 / 3;
        grid-column: 1 /3;
    }
    
    article {
        width: 100%;
    }

    section {
        top: 270px;
    }

}
header picture img {
    text-align: center;
    width: 98%; 
    max-height: 150px;
}

@media screen and (max-width: 820px)
{
header {
    text-align: center;
}

.hadr {
    padding-right: 5px;
    width: 45%;
    max-height: 200px;
    text-align: center;
    clear: both;
    float: none;
}

.hadr h1 {
    font-size: 1.0em;
    clear: both;
}

section {
    top: 390px;
}

    nav {
    grid-row: 2 / 2;
    grid-column: 1 /3;
    margin-left: 0px;
}
    nav label ul {
        display: none;
    }
    nav label::before { 
        display: block;
        width: 30px;
        height: 30px;
        background-image: url("../images/menu-button4-30.png");
        background-repeat: no-repeat;
    content: "";
    }
    nav input:checked+label::before {
    background-image: url("../images/close3-30px.png"); 
    }

    nav input:checked+label ul {
    display: block;
    }
    main {
        grid-row: 3 / 3;
        grid-column: 1 /3;
    }
    article {
        width: 100%;
    }
}