/* josefin-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../font/josefin-sans-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* josefin-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/josefin-sans-v32-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* josefin-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/josefin-sans-v32-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

*,
::before,
::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 62.5%;
}

h1 {
    font-size: 30px;
    color: #BD8D55;
    font-weight: lighter;
}

h3 {
    font-size: 30px;
    color: #BD8D55;
    font-weight: normal;
}

img,
svg,
iframe,
[style*="inline-block"] {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font: 2rem/1.6 Josefin Sans;
}

.background-container {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/*Large*/
.background-container::before {
    content: "";
    position: absolute;
    background-image: url("../img/background-large.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*filter: blur(6px);*/
    animation-name: blur;
    animation-duration: 1.5s;
    animation-fill-mode: both;
    animation-delay: 0.5s;
    inset: -20px;
    transition: filter .8s;
}

/*HD*/
@media (max-width: 1920px) {
    .background-container::before {
        background-image: url("../img/background-hd.jpeg");
    }
}

/*Middle*/
@media (max-width: 1600px) {
    .background-container::before {
        background-image: url("../img/background-middle.jpg");
    }
}

/*Lower*/
@media (max-width: 1400px) {
    .background-container::before {
        background-image: url("../img/background-lower.jpg");
    }
}

/*Mobile*/
@media (max-width: 800px) {
    .background-container::before {
        background-image: url("../img/background-mobile.jpg");
    }
}

/*Small*/
@media (max-width: 500px) {
    .background-container::before {
        background-image: url("../img/background-small.jpg");
    }
}

.lightbox {
    top: 50%;
    left: 50%;
    display: flex;
    background-color: #202020;
    opacity: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 2 * 20px);
    width: 1500px;
    min-height: 269px;
    margin-left: 20px;
    margin-right: 20px;
    animation-name: fade-in;
    animation-duration: 1.5s;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    overflow: hidden;
}

.lightbox--instant {
    animation-delay: 0s;
}

.left-image {
    top: 0;
    left: 0;
    width: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex: 1 1 66%;
    animation-name: background-image;
    animation-delay: 4s;
    animation-duration: 20s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*Large*/
@media (max-width: 1400px) {
    .left-image {
        background-image: url("../img/aside-large.jpg");
    }
}

/*Middle*/
@media (max-width: 800px) {
    .left-image {
        background-image: url("../img/aside-middle.jpg");
    }
}

/*Lower*/
@media (max-width: 500px) {
    .left-image {
        background-image: url("../img/aside-lower.jpg");
    }
}

.left-icon {
    top: 0;
    left: 0;
    background-image: url("../img/signboard.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex: 0 1 30%;
    margin: 10px;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1 1 33%;
    padding: 20px;
}

.headline {
    margin-bottom: 20px;
}

.form {
    width: 100%;
}

.form input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1.6rem;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: #FFFF;
}

.form input:focus {
    outline: none;
}

.float {
    display: flex;
    justify-content: flex-end;
}

button {
    color: #FFFF;
    display: block;
    width: 50%;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 1.6rem;
    background-color: #BD8D55;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    float: right;
}

button:hover {
    background-color: #8C683D;
}

/*Responsiv*/

@media (max-width: 1260px) {
    .background-container {
        background-size: contain;
        overflow: hidden;
        padding: 20px 0;
    }

    .lightbox {
        flex-direction: column;
        align-items: center;
    }

    .text-content {
        text-align: center;
        margin: 0;
    }

    .float {
        display: block;
    }

    button {
        width: 100%;
    }

    .headline {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 25px;
    }

    .left-image {
        order: -1;
        align-self: flex-start;
        height: auto;
        width: 100%;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0px;
    }
}

@media (max-width: 570px) {
    .lightbox {
        flex-direction: column;
        align-items: center;
    }

}

.background-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/*Animation*/
@keyframes blur {
    from {
        filter: blur(0);
    }
    to {
        filter: blur(6px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes background-image {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%
    }
}
