/* Written and designed by Yves Daetwyler */

/********** Reset **********/

/*CSS Reset*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

/********** Font and Typograpy **********/

/* Font smoothing */
body {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Font Size for small devices */
@media only screen and (max-width: 321px) {
    html {
        font-size: 10px;
    }
}

/* Font Import */

/* latin */
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensanscondensed/v15/z7NFdQDnbTkabZAIOl9il_O6KJj73e7Ff0GmDuXMRw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Typography */
h1 {
    color: rgb(31, 30, 30); 
    font-family: 'Open Sans Condensed', sans-serif; 
    font-size: 2.25rem; 
    font-weight: 700; 
    line-height: .85rem;
    letter-spacing: 3px;
    margin: 0 0 0; 
    padding: 20px 30px; 
    text-align: center; 
    text-transform: uppercase;
}

.title h2 {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
}

blockquote {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    line-height: 120%;
    opacity: .7;
}

.qfigure figcaption {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: .95rem;
    font-style: italic;
    text-align: center;
    line-height: 120%;
    opacity: .6;
}

.white-title {
    max-width: 100%;
    margin-top: 15px;
}

.close-button {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 500;
    font-size: .65rem;
    text-align: center;
    margin: 0 auto;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-left: -2px;
}

h3 {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin: 30px auto 0 auto;
    max-width: 95%;
    text-align: center;
}

p {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    padding-top: 15px;
    text-align: center;
    max-width: 90%;
    line-height: 140%;
    opacity: .9;
}

.white-welcome p {
    width: 100%;
    max-width: 600px;
    text-align: block;
}

strong {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    opacity: .8;
}

.main-nav ul li a {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
    line-height: 1.4rem;
    max-width: 99%;
    margin: 17px auto;
    letter-spacing: 4px;
    color: rgba(0, 0, 0, .6);
}
@media only screen and (min-width: 770px) {
    .main-nav ul li a {
        cursor: pointer;
    }
}

.li-main b {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

.curriculum-ul li {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: .95rem;
    text-align: left;
}

.curriculum-ul li small {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-align: left;
    margin-right: 10px;
}

.curriculum-ul span {
    font-weight: 400;
    font-size: .9rem;
    text-align: left;
    padding-bottom: 5px;
}

.curriculum-ul em {
    font-style: italic;
    font-size: .8rem;
    margin-left: 5px;
}

.curriculum-ul p {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 300;
    font-size: .95rem;
    text-align: block;
    padding-left: 35px;
    opacity: .8;
    width: 80%;
    max-width: 800px;
    margin-top: -30px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.referenzen-ul li a p {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    text-align: center;
}

.referenzen-ul b {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
}

.referenzen-ul li figure figcaption {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 300;
    font-size: .9rem;
    text-align: center;
    max-width: 100%;
    line-height: 120%;
    opacity: .7;
}

.figure-freizeit figcaption {
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
    line-height: 120%;
    opacity: .8;
}

.figure-freizeit figcaption em {
    font-style: italic;
    font-size: .8rem;
}

.contact-icons span {
    font-family: Arial;
    font-weight: 300;
    font-size: .8rem;
    white-space: nowrap;
    width: 99%;
    margin: 5px auto 0 auto;
    text-align: center;
}

/********** Header, Nav, share Header and Popup **********/
header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0 auto 0 auto;
    background-color: rgb(255, 255, 255);
    height: 55px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10000;
}

#logo {
    margin: 3px 0 0 15px;
    padding: 3px 0;
    width: 45px;
    z-index: 2000;
}

.main-nav ul {
    margin: 15px 0;
}

.main-nav ul li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Nav Button and Animation */
.main-nav {
    margin-top: 48px;
    margin-right: -4px;
    max-width: 225px;
    width: 65%;
    height: 250px;
    opacity: 0;
    z-index: -1;
    visibility: hidden;
    background-color: white;
}

.main-nav.is-open {
    opacity: 1;
    z-index: 100;
    visibility: visible;
}

/* Apparition effect on links */
.main-nav a {
    opacity: 0;
    transform: translateY(-10px);
}

.main-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
}
.main-nav li:nth-child(1) a {
	transition: all 275ms 175ms
}
.main-nav li:nth-child(2) a {
	transition: all 275ms 225ms
}
.main-nav li:nth-child(3) a {
	transition: all 275ms 275ms
}
.main-nav li:nth-child(4) a {
	transition: all 275ms 325ms
}
.main-nav li:nth-child(5) a {
	transition: all 275ms 375ms
}
.main-nav li:nth-child(6) a {
	transition: all 275ms 425ms
}

/* Button */
#nav-button-container {
    top: 26px;
    right: 15px;
    width: 33px;
	height: 24px;
    z-index: 1500;
}
@media only screen and (min-width: 770px) {
    #nav-button-container {
        cursor: pointer;
    }
}

.open-main-nav {
	position: absolute;
	top: 15px;
	padding-top: 20px;
	right: 15px;
	z-index: 1000;
	background: none;
	border: 0;
}
.open-main-nav:focus {
	outline: none;
}
.nav-button {
    top: 45px;
    right: 15px;
	display: block;
	width: 32px;
	height: 4px;
	margin: 0 auto;
	background: rgb(83, 83, 83);
	transform: skew(5deg);
    transition: all .275s;
}
@media only screen and (min-width: 770px) {
    .nav-button {
        cursor: pointer;
    }
}

.nav-button:after,
.nav-button:before {
	content: '';
	display: block;
	height: 100%;
	background: rgb(128, 128, 128);
	transition: all .275s;
}

.nav-button:after {
	transform: translateY(-12px) translateX(3px) skew(-20deg);
}

.nav-button:before {
	transform: translateY(-16px) translateX(6px) skew(-10deg);
}

/* Toggle State part */
.is-open .nav-button {
	transform: skew(5deg) translateY(-8px) rotate(-45deg);
}

.is-open .nav-button:before {
	transform: translateY(0px) skew(-10deg) rotate(75deg);
}

.is-open .nav-button:after {
	transform: translateY(-12px) translateX(10px) skew(-20deg);
    opacity: 0;
}

/* Share */
.share-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    left: 25%;
    width: 125px;
    z-index: 10000;
}

.share-header p {
    font-family: 'Trebouchet MS', sans-serif;
    font-size: .85rem;
    text-align: center;
    max-width: 100%;
    font-weight: 300;
    opacity: .8;
    margin: 3px auto 1px auto;
    padding: 0;
}

.share-header-inner-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.share-header a img {
    height: 30px;
}

#whatsapp-icon {
    height: 27px;
}

.share-header a {
    opacity: .8;
}

@media only screen and (min-width: 770px) {
    .share-header a:hover {
        opacity: 1;
    }
}

/* Popup */
@keyframes slidein {
    from {
        right: 100%;
    }
    to {
        right: 5px;
      }
}

/* Popup Animation*/
@keyframes blink {
    from {
        filter: none;
    }
    to {
        filter: drop-shadow(4px 4px 3px #004e96);
      }
}

#popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 5px;
    background-color: rgba(255, 255, 255);
    color: #FFFFFF;
    font-family: Arial;
    font-size: 20px;
    line-height: 120px;
    filter: none;
    text-align: center;
    width: 100px;
    height: 140px;
    border-radius: 38px;
    padding: 0px;
    z-index: 10000;
    animation: slidein .5s linear both, blink 1s linear .6s 3 forwards;
}

#popupimg {
    width: 100px;
    border-radius: 35px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10002;
}

/* Popup Animation 2 */
@keyframes opacmail {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
      }
}

@keyframes opaccross {
    from {
        opacity: 0;
    }
    to {
        opacity: .4;
      }
}

/* Popup Close Cross and Envelope */
#cross {
    position: absolute;
    right: 5px;
    top: -25px;
    width: 24px;
    height: 24px;
    opacity: 0;
    z-index: 10004;
    animation: opaccross 1s linear 2.5s forwards;
}

@media only screen and (min-width: 770px) {
    #cross {
        cursor: pointer;
    }
    #cross:hover {
        opacity: 1;
    }
}

#cross:before, #cross:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 25px;
    width: 3px;
    background-color: black;
}
#cross:before {
    transform: rotate(45deg);
}
#cross:after {
    transform: rotate(-45deg);
}
  
#envelope {
    opacity: 0;
    z-index: 10003;
    position: absolute;
    bottom: -10px;
    left: 45px;
    animation: opacmail 1s linear 1s forwards;
    width: 60px;
}

/********** Main Flex Container, BG Color, Title and white (open Divs) **********/

/* Animations Text and Image Fade In */
@keyframes imagefade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes textcolor {
    from {color: white;}
    to {color: black;}
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 65px auto 0 auto;
}

.bg-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgb(2, 34, 53);
}

#welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95%;
}

.white-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    animation-name: textcolor;
    animation-duration: 3s;
    margin-top: 10px;
}

.white {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    background-color: white;
    color: black;
    animation-name: textcolor;
    animation-duration: 3s;
    padding-top: 70px;
}

.link {
    color: black;
    animation-name: textcolor;
    animation-duration: 3s;
}

.white-title {
    border-bottom: 2px solid;
    border-image-source: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    border-image-slice: 1;
}

/* Portrait */
#picture-portrait {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#portrait {
    width: 75%;
    max-width: 280px;
    border-radius: 180px;
    height: auto;
    margin: 0 auto;
}

/* Scroll Button */
#scroll {
    position: relative;
    text-align: center;
    animation-name: imagefade;
    animation-duration: 6s;
    margin-top: 5px;
}
#scroll div {
    padding-top: 60px;
    z-index: 2;
    display: inline-block;
}

@media only screen and (min-width: 770px) {
    #scroll {
        cursor: pointer;
    }
    #scroll div:hover {
        opacity: .5;
    }
}

#scroll div span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    border: 2px solid black;
    border-radius: 100%;
    box-sizing: border-box;
}
#scroll div span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    width: 16px;
    height: 16px;
    margin: -12px 0 0 -8px;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    box-sizing: border-box;
}

/* Sections and Articles */
#pagestart {
    padding-top: 60px;
    margin-top: 60px;
    margin-bottom: 130px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 45px auto 0 auto;
    padding: 8px 0;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Drop Down */
.section-closed {
    border: 2px solid white;
    color: white;
    border-radius: 7px;
}

.close-button {
    display: block;
    margin: 65px auto 20px auto;
    border: 2px solid black;
    border-radius: 0;
    text-align: center;
    padding: 10px 11px;
}

@media only screen and (min-width: 770px) {
    .close-button {
        cursor: pointer;
    }
    .close-button:hover {
        background-color: rgba(0, 0, 0, 0.116);
    }
    .section-closed:hover {
        background-color: rgba(255, 255, 255, .1);
    }
}

/* Arrow */
.arrow-right,
.arrow-left,
.arrow-right-nav,
.arrow-left-nav {
  display: block;
  margin: 0 0 0 20px;
  width: 10px;
  height: 10px;
  transition: all 375ms;
}
.arrow-right{
 transform: rotate(135deg);
 border-top: 2px solid white;
 border-left: 2px solid white;
}
.arrow-right-nav{
    transform: rotate(135deg);
    border-top: 2px solid rgb(216, 216, 216);
    border-left: 2px solid rgb(216, 216, 216);
}
.arrow-left{
    transform: rotate(-45deg);
    border-top: 2px solid black;
    border-left: 2px solid black;
}
/* Right too but after it's already clicked */
.arrow-left-nav{
    transform: rotate(135deg);
    border-top: 2px solid rgba(0, 0, 0, .6);
    border-left: 2px solid rgba(0, 0, 0, .6);
}

.arrow-left::after {
  content: "";
  display: block;
  width: 2px;
  height: 25px;
  background-color: black;
  transform: rotate(-45deg) translate(8px, 2px);
  left: 0;
  top: 0;
}
.arrow-left-nav::after {
    content: "";
    display: block;
    width: 2px;
    height: 25px;
    background-color: rgba(0, 0, 0, .6);
    transform: rotate(-45deg) translate(8px, 2px);
    left: 0;
    top: 0;
}
.arrow-right::after{
    content: "";
    display: block;
    width: 2px;
    height: 25px;
    background-color: white;
    transform: rotate(-45deg) translate(8px, 2px);
    left: 0;
    top: 0;
}
.arrow-right-nav::after{
    content: "";
    display: block;
    width: 2px;
    height: 25px;
    background-color: rgb(216, 216, 216);
    transform: rotate(-45deg) translate(8px, 2px);
    left: 0;
    top: 0;
}

/* Clicked and active */
#forceBlack {
  display: block;
  margin: 0 0 0 20px;
  width: 10px;
  height: 10px;
  transition: all 375ms;
  transform: rotate(-45deg);
  border-top: 2px solid black;
  border-left: 2px solid black;
}
#forceBlack::after {
    content: "";
    display: block;
    width: 2px;
    height: 25px;
    background-color: black;
    transform: rotate(-45deg) translate(8px, 2px);
    left: 0;
    top: 0;
}


/* hidden divs */
#aboutme {
    width: 100%;
    max-width: 250px;
}

#lebenslauf {
    width: 100%;
    max-width: 250px;
}

#referenzen {
    width: 100%;
    max-width: 250px;
}

#freizeit {
    width: 100%;
    max-width: 250px;
}

#galerie {
    width: 100%;
    max-width: 250px;
}

#kontakt {
    width: 100%;
    max-width: 250px;
    margin-bottom: 80px;
}

@media only screen and (min-width: 770px) {
    #aboutme-click, #lebenslauf-click, #referenzen-click, #freizeit-click, #galerie-click, #kontakt-click {
        cursor: pointer;
    }
}

#aboutme-hidden {
    display: none;
    flex-direction: column;
}

#lebenslauf-hidden {
    display: none;
    flex-direction: column;
}

#referenzen-hidden {
    display: none;
    flex-direction: column;
}

#freizeit-hidden {
    display: none;
    flex-direction: column;
}

#galerie-hidden {
    display: none;
    flex-direction: column;
}

#kontakt-hidden {
    display: none;
    flex-direction: column;
}

/*** About Me ***/
.qfigure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 60%;
    margin-top: 10px;
}

.qfigure figcaption {
    padding-top: 5px;
}

/*** Lebenslauf ***/
#lebenslauf-p {
    margin-top: 20px;
}

/* CV Request */
#cv-request-btn {
    display: block;
    margin: 20px auto 0 auto;
    border: 2px solid black;
    border-radius: 0;
    padding: 10px 11px;
    background-color: white;
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 500;
    font-size: .65rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-left: -2px;
    animation-name: imagefade;
    animation-duration: 2s;
}
@media only screen and (min-width: 770px) {
    #cv-request-btn {
        cursor: pointer;
    }
    #cv-request-btn:hover {
        background-color: rgba(0, 0, 0, 0.116);
    }
}

#cv-request {
    display: none;
    width: 90%;
    max-width: 500px;
    height: 280px;
    border: 3px solid black;
    position: fixed;
    top: 10%;
    background-color: whitesmoke;
    z-index: 150000;
    font-family: 'Trebouchet MS', sans-serif;
    font-weight: 400;
    font-size: .85rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-left: -2px;
}

#cv-request-form {
    margin: 25px auto 40px auto;
}

#cv-request-form input {
    margin: 30px auto 0 auto;
}

#cv-request-send {
    border: 2px solid black;
    border-radius: 0;
    text-align: center;
    padding: 10px 11px;
    background-color: white;
    margin: 0 auto 0 auto;
    color: black;
}
@media only screen and (min-width: 770px) {
    #cv-request-send {
        cursor: pointer;
    }
    #cv-request-send:hover {
        background-color: rgba(0, 0, 0, 0.116);
    }
}

#cv-request-close {
    position: absolute;
    right: 10px;
    top: 5px;
    width: 24px;
    height: 24px;
    opacity: .7;
    z-index: 20000;
}

@media only screen and (min-width: 770px) {
    #cv-request-close {
        cursor: pointer;
    }
    #cv-request-close:hover {
        opacity: 1;
    }
}

#cv-request-close:before, #cv-request-close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 25px;
    width: 3px;
    background-color: black;
}
#cv-request-close:before {
    transform: rotate(45deg);
}
#cv-request-close:after {
    transform: rotate(-45deg);
}

/* Curriculum */
#print-button {
    height: 25px;
    margin-left: 10px;
    animation-name: imagefade;
    animation-duration: 2s;
}
@media only screen and (min-width: 770px) {
    #print-button {
        cursor: pointer;
    }
    #print-button:hover {
        opacity: .7;
    }
}

.curriculum-ul {
    list-style-position: outside;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10px;
    margin-top: 20px;
}

.curriculum-ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.li-main {
    margin-top: 30px;
}

.curriculum-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.curriculum-inner-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    margin-bottom: 10px;
}

.diamond {
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom-color: rgb(102, 153, 153);
    position: relative;
    top: -20px;
    margin-right: 10px;
    animation-name: imagefade;
    animation-duration: 2s;
}
.diamond:after {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: rgb(102, 153, 153);
}

.circle {
    width: 20px;
    height: 20px;
    margin: 15px 20px 15px 10px;
    background: rgb(179, 204, 204);
    border-radius: 50%;
    animation-name: imagefade;
    animation-duration: 2s;
}

.triangle-right-cv {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-left: 18px solid rgb(255, 144, 40);
    border-bottom: 9px solid transparent;
    margin: 15px 18px 15px 15px;
    animation-name: imagefade;
    animation-duration: 2s;
}

#codecademy-icon {
    width: 120px;
    animation-name: imagefade;
    animation-duration: 2s;
}
@media only screen and (min-width: 770px) {
    #codecademy-icon:hover {
        opacity: .7;
    }
}

/*** Referenzen ***/
.referenzen-ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.referenzen-ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}
.banner {
    width: 95%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
}
.banner-link {
    margin: 0 auto;
    text-align: center;
}
.link {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    margin: 0 0 0 -7px;
}

.referenzen-ul li figure {
    width: 75%;
    max-width: 240px;
    margin-top: 10px;
}

.pagespeed-image {
    margin: 0 auto;
    width: 100%;
    max-width: 240px;
}

@media only screen and (min-width: 770px) {
    .link:hover {
        opacity: .7;
    }
}
.link-right {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    margin-right: -3px;
}

/*** Freizeit ***/
.freizeit-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-evenly;
    margin: 0 auto;
}

.figure-freizeit {
    text-align: center;
    margin: 30px 20px 10px 20px;
    animation-name: imagefade;
    animation-duration: 2s;
    min-width: 280px;
}

@media only screen and (min-width: 750px) {
    .figure-freizeit {
        width: calc(100% * (1/3) - 10px - 1px);
    }
}

@media only screen and (min-width: 1100px) {
    .figure-freizeit {
        width: calc(100% * (1/4) - 10px - 1px);
    }
}

.figure-freizeit figcaption {
    margin: 10px auto 0 auto;
}

.freizeit-image {
    width: 280px;
    border-radius: 20px;
}

/*** Galerie ***/
.galerie-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.galerie-flex a figure {
    max-width: 319px;
    max-height: 212px;
    margin: 25px;
    animation-name: imagefade;
    animation-duration: 2s;
}

.img-overlay {
    font-size: 5em;
    display: inline-block;
    width: 0.2em;
    box-sizing: content-box;
    height: 0.2em;
    border: 0.065em solid rgb(209, 30, 60);
    position: relative;
    border-radius: 0.35em;
    bottom: 210px;
    left: 280px;
}
.img-overlay:before {
    content: "";
    display: inline-block;
    position: absolute;
    right: -0.165em;
    bottom: -0.085em;
    border-width: 0;
    background:rgb(209, 30, 60);
    width: 0.2em;
    height: 0.04em;
    transform: rotate(45deg);
}

@media only screen and (min-width: 770px) {
    .img-overlay:hover {
        opacity: .6;
    }
    .galerie-small:hover + .img-overlay {
        opacity: .6;
    }
}

/*** Kontakt ***/
.contact-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    justify-content: center;
    animation-name: imagefade;
    animation-duration: 2s;
    width: calc(100% * (1/2) - 10px - 1px);
    min-width: 160px;
}


@media only screen and (min-width: 770px) {
    .contact-icons a:hover {
        opacity: .7;
    }    
}

#mail-icon {
    width: 60px;
}

#linkedin-icon {
    width: 75px;
}

#phone-icon {
    width: 45px;
}

/*** Footer ***/
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

#logo-gross {
    width: 120px;
}

footer p {
   font-family: Arial;
   font-size: .8rem;
   text-align: center;
   max-width: 65%;
}

#impressum-link {
    color: hsl(221, 38%, 33%);
}

footer a {
    font-family: Arial;
    font-size: .8rem;
    text-align: center;
    max-width: 65%;
    color: hsl(221, 38%, 33%);
}

