﻿@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333333;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #ebebeb;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

p {
    margin: 0 0 0.625rem;
}


h1 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

h2 {
    font-size: 1.187rem;
    margin-bottom: .625rem;
    color: #ef7d00;
}

h3 {
    margin-bottom: 1.25rem;
    font-size: 1.187rem;
}

h4 {
    font-size: 1.812rem;
    margin: 2rem 0 1rem;
}

ul {
    list-style: none;
    margin: 0 0 0.625rem;
    padding: 0;
}

ul li {
    padding-left: 1.375rem
}

ul li:before {
    content: "\25a0";
    float: left;
    margin-left: -1.375rem;
    font-size: 0.635em;
    line-height: 2;
    color: #ef7d00
}

header {
    padding: 2rem 2rem 1rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row-reverse
}

section,
footer {
    margin: 0 0 0.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
}

.flex {
    display: flex;
    column-gap: 1.25rem;
    align-items: flex-start;
    column-gap: 1.562rem;
}

.position {
    position: absolute;
    right: 8%;
    top: 54%
}

a.apply {
    background: #50AF31;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
    border: solid 0.125rem #50AF31;
    padding: 0.7rem 2rem;
    display: block;
    width: 14.375rem;
    margin: 2rem auto 1rem;
}

a.apply:hover {
    background: #fff;
    color: #50AF31;
    border: solid 0.125rem #50AF31;
}

.kontakt {
    display: flex;
    align-items: flex-start;
    column-gap: 10.937rem;
}

.kontakt h3 {
    margin-bottom: .625rem
}

aside {
    display: flex;
    column-gap: 1.562rem;
    align-items: flex-start;
}

footer {
    text-align: center;
    margin-top: .5rem
}

footer p {
    margin: 0
}

section i {
    font-size: 3rem;
}

.social-media i {
    font-size: 1.25rem;
    margin: 0 .312rem
}

.social-media {
    display: flex;
    align-items: flex-end;
    flex-direction: column
}

.iframe-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 1.875rem;
    height: 0;
    overflow: hidden;
}

.iframe-wrapper iframe,
.iframe-wrapper object,
.iframe-wrapper embed {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
}

.slider > img {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageAnimation 18s linear infinite 0s;
}

.slider > img:nth-of-type(1) {
    position: static;
    opacity: 1;
}

.slider > img:nth-of-type(2) {
    animation-delay: 6s;
}

.slider > img:nth-of-type(3) {
    animation-delay: 12s;
}


@keyframes imageAnimation {
    4% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }
}

@media only screen and (max-width: 49.937rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 1rem;
    }

    h1 {
        margin: .625rem 0
    }

    h4 br {
        display: none;
    }

    aside,
    header {
        display: block;
    }

    header {
        text-align: center;
        padding: 1.25rem 0;
    }

    .head {
        width: 100%
    }

    .logo {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .position {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media only screen and (max-width: 40rem) {

    :is(.kontakt, .flex) {
        flex-direction: column;
        align-items: center;
        margin: auto;
        text-align: center
    }

    .flex i {
        margin: 0 0 .625rem;
    }

    section:nth-of-type(5) h2 {
        display: block;
        text-align: center
    }

    .flex i {
        margin: 0 0 .625rem;
    }

    .social-media {
        align-items: center;
        margin-top: .625rem
    }
}

@media only screen and (max-width: 37.5rem) {
    h4 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 30rem) {
    h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1rem;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.2;
        margin: .937rem 0
    }

    aside:last-of-type {
        margin-top: .937rem
    }

    .padding_left {
        padding-left: 0;
        text-align: center
    }
}

@media only screen and (max-width: 23.437rem) {
    header {
        padding: .625rem;
        text-align: center;
    }

    section {
        padding: .625rem;
    }

    ul li {
        padding-left: 1.25rem;
    }

    ul li:before {
        margin-left: -1.25rem;
    }
}
