﻿/* konform zu CSS3 - copyright 2018 Gerrit Hecht, Gerrit@Squap.de, Squap.de - alle Rechte vorbehalten - erstellt am: 31. Januar 2018 */

/* Normalisierung */
* {
    margin: 0 auto;
    padding: 0;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

table {
    border-collapse: collapse;
}

main { /* IE9-11 Unterstützung */
    display: block;
}

/* Schrift und Schriftgrößen */
body {
    font-size: 100%; /* = 1em = 16px; skalierbar von 70 bis 200 */
    line-height: 1.4;
    font-family: Times, serif;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

h1, h2, h3, h4 {
    font-weight: normal;
}

h1 {
    font-size: 2.1em;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.3em;
}

h1::first-letter, h1 span,
h2::first-letter, h2 span,
h3::first-letter, h3 span {
    font-size: 1.25em;
}

h4 {
    font-size: 1.28em;
    margin: 3rem auto 2rem auto;
    font-weight: bold;
}

span.verticalCenteredText {
    position: relative;
    top: 2px;
}

p,
td,
ul {
    font-size: 1.2em;
}

ul {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding-left: 1.2rem;
}

p.zitat {
    font-style: italic;
}

footer p,
p.urheb {
    font-size: 1em;
}

#authors p {
    font-weight: bold;
}

/* Farben und Hintergründe */
body {
    color: #000000;
    background-image: url(bilder/marmor.jpg);
    background-position: center top;
    background-attachment: fixed;
}

a:hover,
main > div::before,
main > div::after {
    color: #ffb07c;
}

.gesicht,
aside,
article,
#nachOben {
    background: white;
}

#nachOben:hover {
    background: #ffb07c;
    color: white;
}

/* Animationen */
section,
aside,
article,
.boxExpandEffect p,
#nachOben {
    -webkit-transition: all 0.5s; /* Safari 3.1 to 6.0 */
    transition: all 0.5s;
}

/* Formatierung */
body {
    max-width: 70em;
    text-align: center;
}

main > div::after,
main > div:first-child::before {
    display: block;
    content: "";
    width: 100%;
    margin: 2.5em 0 2em;
    border-top: 1px solid;
}

/* Kopf */
#logo {
    display: inline-block;
    width: 25em;
    margin-top: 1.5em;
}

#logo h1::after {
    display: block;
    content: "";
    margin: 0.35em auto -0.1em;
    border-top: 1px solid;
}

#logo h3 {
    margin-top: -0.3em;
}

div#logo .titleAnimation {
    position: relative;
    animation-name: titleAnimation;
    animation-duration: 1s;
}

div#logo .titleAnimation.delay1 {
    animation-duration: 1.3s;
}

div#logo .titleAnimation.delay2 {
    animation-duration: 2s;
}

div#logo .titleAnimation.delay3 {
    animation-duration: 2.3s;
}

@keyframes titleAnimation {
    from {
        transform: scale(0);
        opacity: 0;
    }
}

/* Inhalt */
section {
    margin: auto 1em;
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: space-between; /* Safari 6.1+ */
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

section.single aside {
    width: 100%;
}

section.multiple aside {
    width: 43%;
}

@media (max-width: 60em) {
    section.multiple aside {
        width: 100%;
    }
}

section img {
    width: 100%;
    border-radius: 0.375em;
}

#oben {
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.gesicht {
    margin: 1em;
    padding: 1em;
    width: 12em;
    box-shadow: 20px 20px 20px 0 rgba(46, 61, 73, 0.2);
    border-radius: 0.375em;
}

p.zitat {
    text-align: left;
}

p.urheb {
    text-align: right;
}

aside {
    min-width: 22%;
    margin: 1em 1em 1.5em;
    padding: 1.5em 1em 2em;
    vertical-align: top;
    box-shadow: 20px 20px 20px 0 rgba(46, 61, 73, 0.2); /*, 1px 1px 2px 0 rgba(46, 61, 73, 0.1) inset*/
    border-radius: 0.375em;
}

td {
    text-align: left;
    vertical-align: top;
    padding-right: 1em;
}

td:last-of-type {
    padding-right: 0;
}

.toggleContent {
    margin-bottom: 1em;
}

.toggleContent.hidden img, .toggleContent.hidden embed {
    display: none;
}

.toggleBox .toggleContent {
    font-size: 1.2em;
    line-height: 1.4;
    transition: all 0.5s;
}

.toggleBox .toggleContent.hidden {
    font-size: 0;
    line-height: 0;
}

.toggleBox button.toggleButton {
    padding: .5rem 4rem;
    font-family: Times, serif;
    font-size: 1rem;
}

article {
    margin: 2.5em 3em 3em;
    padding: 2em 6em;
    vertical-align: top;
    text-align: left;
    box-shadow: 20px 20px 20px 0 rgba(46, 61, 73, 0.2); /*, 1px 1px 2px 0 rgba(46, 61, 73, 0.1) inset*/
    border-radius: 0.375em;
}

.centeredText {
    text-align: center;
}

article p, aside p {
    padding-bottom: 0.5em;
}

article h3 {
    margin-bottom: 1em;
}

article#authors h3 {
    margin: .5em auto .3em auto;
}

p.openingHoursText {
    max-width: 15rem;
}

/* Animierte Skizze */
#skizze {
    margin: 2em auto 3em;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#skizze.fotosZeigen {
    max-width: 36em; /* img 887 x 580 px */
}

#skizze figcaption {
    position: absolute;
    left: 2em;
    bottom: -1em;
}

#skizze img.backgroundImg {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-delay: 2.5s;
}

.backgroundImg.img1 {
    animation-name: fadeImage1;
}

.backgroundImg.img2 {
    animation-name: fadeImage2;
}

.backgroundImg.img3 {
    animation-name: fadeImage3;
}

.backgroundImg.img4 {
    animation-name: fadeImage4;
}

.backgroundImg.img5 {
    animation-name: fadeImage5;
}

.backgroundImg.img6 {
    animation-name: fadeImage6;
}

.backgroundImg.img7 {
    animation-name: fadeImage7;
}

.backgroundImg.img8 {
    animation-name: fadeImage8;
}

@keyframes fadeImage1 {
    from, to {
        opacity: 0;
    }
    1%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage2 {
    from, to, 6% {
        opacity: 0;
    }
    7%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage3 {
    from, to, 12% {
        opacity: 0;
    }
    13%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage4 {
    from, to, 18% {
        opacity: 0;
    }
    19%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage5 {
    from, to, 24% {
        opacity: 0;
    }
    25%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage6 {
    from, to, 30% {
        opacity: 0;
    }
    31%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage7 {
    from, to, 36% {
        opacity: 0;
    }
    37%, 80% {
        opacity: 1;
    }
}

@keyframes fadeImage8 {
    from, to, 42% {
        opacity: 0;
    }
    43%, 80% {
        opacity: 1;
    }
}

/* Formulare */
textarea {
    border: 1px solid #999999;
    width: 98%;
    height: 10rem;
    margin: 5px 0;
    padding: 1%;
}

input[type=submit], button {
    padding: .5rem .5rem;
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    border-radius: 5px;
}

input[type=submit]:hover, button:hover {
    background-color: #f3f3f3;
}

input[type=text], input[type=password] {
    border: 1px solid #f8f8f8;
    width: 10rem;
    padding: .5rem .5rem;
    border-radius: 5px;
}

fieldset label {
    padding-right: 1rem;
}

input:focus, textarea:focus, button:focus {
    border: 1px solid #000000;
    outline: none;
}

/* Fuß */
footer {
    margin: auto 2em 2em;
}

footer a {
    white-space: nowrap;
}

#nachOben {
    opacity: 0;
    position: fixed;
    bottom: -2.8em;
    right: 1em;
    z-index: 99;
    padding: 0 0.5em 0.2em;
    border-radius: 0.375em;
    box-shadow: 10px 10px 10px 0 rgba(46, 61, 73, 0.2);
}

#nachOben.sichtbar {
    opacity: 1;
    bottom: 1em;
}

#nachOben::after {
    content: " ";
    display: block;
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffb07c transparent;
}

@media (max-width: 71em) {
    section {
        -webkit-justify-content: space-around; /* Safari 6.1+ */
        justify-content: space-around;
    }

    .gesicht {
        margin: 1em 5em;
        order: 2;
    }

    #skizze {
        margin: 2em 5em 3em;
        order: 1;
    }
}

@media (max-width: 52em) {
    .gesicht {
        margin: 1em;
    }

    #skizze {
        margin: 2em auto 3em;
    }

    article {
        margin: 2.5em 1em 3em;
        padding: 2em 2em;
    }
}

@media (max-width: 40em) {
    body {
        font-size: 80%;
        background-attachment: scroll;
    }
}

@media (max-width: 30em) {
    #skizze {
        margin: 2em auto 6em;
    }

    #skizze figcaption {
        bottom: -3em;
    }
}

@media (max-width: 20em) {
    #logo {
        width: 100%;
    }

    #skizze figcaption {
        left: 0;
    }
}
