*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    font-family: tahoma, Verdana, Segoe, "Open Sans", helvetica, arial, roboto ,sans-serif;
    font-size: 62.5%;
    line-height: 1.5;
    height: 100%;
}

body {
    font-size: 1.8rem;
    margin: 0 auto;
    background-color: #DDD;
    color: #000;
    margin: 0rem;
}

/* ÜBERSCHRIFTEN */

h1, h2, h3, h4, h5 {
    font-weight: bold;
    color: #000;
}

h1 {
    font-size: 3.5rem;
    font-weight: 200;
    line-height: 3.8rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    line-height: 3rem;
}

h3 {
    font-size: 2rem;
    line-height: 2.4rem;
    letter-spacing: 0rem;
}

/* ALLGEMEINES */

a {
    color: #000;
    text-decoration: underline;
    padding: 0.6rem;
}

a:hover {color: #800;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* FORM  */

form label {
    display: block;
    font-weight: 800;
    margin: 5px 0px 5px 0px;
    font-size: 0.8em;
    color: #000;
}
form input[type="text"], form input[type="email"], form input[type="password"],	form select, form textarea {
    display: block;
    width: 60%;
    background: #FFF;
    border-radius: 8px;
    border: solid 1px #DDD;
}
    form textarea {
        min-height: 25em;
        width: 100%;
    }
    form input[type="text"]:focus, form input[type="email"]:focus, form input[type="password"]:focus, form select:focus, form textarea:focus {
        border-color: #800;
    }

form input[type="text"], form input[type="email"], form input[type="password"], form select {
    padding: 5px;
}
form select {
    width: 25%;
}

a.button, input.button {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 2.0rem;
    margin: 10px 10px 10px 0px;
    padding: 10px;
    background: #EDEDED;
    border: 1px solid #DDD;
    border-radius: 8px;
}
a.button:hover, input.button:hover {
    color: #800;
    border: 1px solid #800;
}

/* FOTOS */

.photowrapper {
    text-align: center;
    display: inline-block;
    width: 100%;
}

.photowrapper img {
    display: inline;
	height: auto;
    width: auto;
    max-height: 260px;
	max-width: 260px;
    margin: 5px auto;
    border: solid 5px white;
}

/* CONTENT */

#content {
    text-align: center;
    vertical-align: middle;
    padding: 1rem;
}

.flexbox
{
    width: 90%;
    margin: 0px auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flexelement
{
    text-align: center;
    margin: 10px auto;
}
	.flexelement img {
		height: auto;
		width: auto;
		max-height: 480px;
		max-width: 90%;
		border: solid 5px white;
	}

/* STARTSEITE */

#indexpage {
    background-color: #FFF;
    background-attachment: fixed;
    position: fixed;
    height: 100%;
    width: 100%;
    overflow: auto;
    top: 0rem;
    left: 0rem;
    padding: 4rem 1rem;
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

#indexpage .icons .fas, #indexpage .icons .fab, #indexpage .far {
    display: inline-block;
    color: #2d2d2d;
    background: rgba(255,255,255,0.6);
    font-size: 2.5rem;
    border-radius: 36rem;
    border: solid 0.1rem #DDD;
    height: 5rem;
    line-height: 5rem;
    width: 5rem;
    margin: 0 -.4rem;
}

#home {
    display: inline-block;
    min-width: 30rem;
    min-height: 20rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1rem;
}
    #logo {
        border-radius: 36rem;
        border: solid 0.1rem #DDD;
        margin-top: -5.8rem;
        width: 150px;
        height: 150px;
    }

/*  UNTERSEITEN */

#subpage {
    background-color: white;
    background-attachment: fixed;
    position: fixed;
    height: 100%;
    width: 100%;
    overflow: auto;
    top: 0rem;
    left: 0rem;
    padding: 4rem 1rem;
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

#subpage #content {
    display: block;
    margin: 0rem auto;
    width: 90vw;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    vertical-align: middle;
    border-radius: 1rem;
}

article {
    text-align: left;
    padding: 1rem 1rem 6rem 1rem;
	display: flow-root;
}
    header {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
        header .pagetitle {
            font-size: 3.5rem;
            line-height: 3.7rem;
            text-align: center;
        }

.icons .fas, .icons .fab, .icons .far {
    display: inline-block;
    color: #000;
    background: rgba(255,255,255,0.6);
    font-size: 4rem;
    border-radius: 36rem;
    border: solid 0.1rem #DDD;
    height: 6rem;
    line-height: 6rem;
    width: 6rem;
    text-align: center;
    margin: 0 -.6rem;
    padding: 0;
}

/* FOOTER  */

.footer {
    width: 100%;
    text-align: center;
    margin: 0;
}

.footer ul {
    padding: 0rem;
    margin: 0;
}

.footer li {
    display: inline;
}

.footer a {
    display: inline-block;
    font-size: 1.5rem;
    background: transparent;
    color: #000;
    margin: 0.5rem 0.2rem 0.5rem 0.2rem;
    text-decoration: underline;
}

.footer a:hover {
    text-decoration: none;
    color: #DDD;
}

/* MEDIA QUERIES */

/* ab 600 pixel */
@media (min-width: 600px) {
    
    #home {
        display: inline-block;
        width: 40rem;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 1rem;
        padding: 2rem;
    }

    #subpage #content {
        width: 70vw;
    }
	
	.photos img {
		width: 380px;
	}
	
	.photowrapper img {
		max-height: 340px;
		max-width: 340px;
	}

}