:root {
    --spd_animation: 0.1s;
    --dur_animation: 2s;
}
.font_cormorant-garamond {
    font-family:         "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight:         normal;
    font-style:          normal;
}

html, body, table, tr {
    margin:0;
    padding:0;
    width:100%;
    height:100%;
}
body {
    background-color:    #f8ebe6; /*#C6B8B6;*/
    color:               #6b534e; /*#FEF5F2*/
    text-align:          center;
    font-family:         "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight:         normal;
    font-style:          normal;
    overflow:            hidden;
    overflow-y:          auto;
    padding:             1.4rem 1rem;
    box-sizing:          border-box;
}
img, span {
    display:block;
    margin:0 auto;
}

#logo,
#span1,
#span2,
#span3,
#span4,
#span5,
#span6,
#impressum-toggle {
    -webkit-animation-name: logoshine; /* Chrome, Safari, Opera */
    -webkit-animation-duration: var(--dur_animation); /* Chrome, Safari, Opera */
    -webkit-animation-fill-mode: forwards;
    animation-name: logoshine;
    animation-duration: var(--dur_animation);
    animation-fill-mode:forwards;
    opacity: 0;
    margin: 0 auto;
    display: block;
    text-align: center;
}

#logo {
    width: 59%;
    max-width: 29.5em;
}
#span1 {
    width: 100%;
    max-width: 50em;
    margin-top: 7.7%;
    margin-bottom: 5.1%;
}

#span2 {
    width: 89.7%;
    max-width: 44.85em;
}

#span1 {
    -webkit-animation-delay: var(--spd_animation);
    animation-delay: var(--spd_animation);
}
#span2 {
    -webkit-animation-delay: calc(var(--spd_animation) * 2);
    animation-delay: calc(var(--spd_animation) * 2);
}
#span3 {
    -webkit-animation-delay: calc(var(--spd_animation) * 3);
    animation-delay: calc(var(--spd_animation) * 3);
    margin: 1rem auto 2rem;
}
#span4 {
    -webkit-animation-delay: calc(var(--spd_animation) * 4);
    animation-delay: calc(var(--spd_animation) * 4);
    font-size: 1.5em;
}
#span5 {
    -webkit-animation-delay: calc(var(--spd_animation) * 5);
    animation-delay: calc(var(--spd_animation) * 5);
    /*font-size: 1.3em;*/
    font-size: 1.5em;
    margin-top: 1rem;
}
#span6 {
    -webkit-animation-delay: calc(var(--spd_animation) * 6);
    animation-delay: calc(var(--spd_animation) * 6);
    font-size: 1.5em;
    margin-top: 1rem;
}
#impressum-toggle {
    -webkit-animation-delay: calc(var(--spd_animation) * 6);
    animation-delay: calc(var(--spd_animation) * 6);
    padding: 0.4em 0.6em;
    margin-top: -0.6em;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes logoshine {
    0% {opacity:0}
    100% {opacity:1}
}

/* Standard syntax */
@keyframes logoshine {
    0% {opacity:0}
    100% {opacity:1}
}
#impressum {
    transition: opacity 1s ease-in-out 0.2s;
    width: 100%;
    background-color: #f8ebe6;
    opacity: 0;
    text-align: center;
    margin-top: 1rem;
}
#impressum.open {
    opacity: 1;
}
#impressum p {
    margin: 0.1em;
}
td {
    vertical-align: middle;
    margin:0 auto;
    overflow-y: auto;
}
a {
    color: #6B534E;
    transition: color .3s ease-out;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #6B534E;
}
a.btn {
    padding: 0.4em 0.6em;
    box-shadow: 0 0 6px 0 rgba(0,0,0,.45);
    border-radius: 0.6em;
    transition: box-shadow .15s ease-out;
    background-color: #FFF5F2;
    display: inline-block;
}
a.btn:hover {
    box-shadow: 0 0 8px 0 rgba(0,0,0,.75);
}
@media screen and (min-width: 50em) {
    #span1 {
        margin-top: 3.85em;
        margin-bottom: 2.55em;
    }
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(64, 51, 42, 0.75); /* based on --c-mocha */
}

.lightbox-overlay[hidden] {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--c-porcelain, #fff5f2);
    color: var(--c-mocha, #40332a);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
    background: var(--c-beige, #ead5ce);
}

body.lightbox-open {
    overflow: hidden;
}
