*,
*::before,
*::after {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Josefin Sans", serif;
}

html {
    scroll-snap-type: y mandatory;
}

#wrapper {
    margin: 0 auto;
}


main {
    width: 100%;
    display: flex;
    padding: 0 2em;

}

.textdiv-first {
    max-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
}

.textdiv-second {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.text {
    display: flex;
    align-items: center;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.list {
    margin: 10px auto;
    font-size: 20px;
    line-height: 1.7;

    padding-left: 1em;
}

h2.head2 {
    font-size: 35px;
    display: flex;
    justify-content: center;
    margin: 40px auto;
    text-transform: uppercase;
}


#second-section {
    background: #31658d;
}

.text-color {
    color: white;
}

#container-table {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 200px;
    margin: 20px 0;

    /* Pod mobile */
    flex-direction: column;

}

#container-table div {
    display: flex;
    color: white;
    font-weight: 300;
    margin: 10px 20px;
    font-size: 1.2rem;
    border: 2px solid white;
    border-radius: 10%;
}

.points {
    display: flex;
    flex-direction: column;
    justify-items: start;
    padding: 1em;
    max-width: 280px;
}

.points h5 {
    align-self: center;
    margin-top: 0.4em;
    margin-bottom: 0.8em;
    text-transform: uppercase;
    text-align: center;
}

.points span {
    margin: 0.7em 0;
    text-align: center;
}

.points span:first-of-type {
    margin-bottom: 1.2em;
}

.points span:last-of-type {
    margin-top: auto;
    letter-spacing: 0.8px;
}

#map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80%;
    padding: 0 2em;
}

.headline {
    border-bottom: 3px solid #bac3c6;
}

.mapka {
    max-width: 40%;
    max-height: 60%;
    margin: 10px auto 5% auto;
}

.footer {
    background: #31658d;
    display: flex;
    justify-content: center;

    color: white;
    padding: 2em;
}

.footercontent {
    display: grid;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 25px;
    grid-template-columns: 70% 30%;
}

.number {
    margin: 15px;
    font-size: 0.8em;
    text-decoration: none;
    color: white;

}

.footertext {
    font-size: 20px;
    width: 100%;
    display: flex;
    justify-content: center;

}

#contact {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
}

#contact a:hover {
    color: #0c303d;
}

.footertext:first-of-type {
    grid-column: 1 / -1;
}


/* Hero section */
header {
    display: flex;
    justify-content: space-between;
    width: 100vw;
    padding: 1em 2em;
    align-items: center;
}

.logo {
    max-height: 150px;
    max-width: 60vw;
}

.main-nav {
    display: none;
    justify-content: end;
    align-items: center;
    width: 50%;
}

.main-nav li {
    list-style: none;
    padding: 10px 20px;
    cursor: pointer;
}

.main-nav li a:hover {
    color: #31658d;
}

.main-nav li a {
    text-decoration: none;
    color: #000;
}

.ig-icon {
    width: 2.5em;
}

.hero {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 32px;
    font-size: 20px;
}

.hero-img {
    max-height: 80vh;
    align-self: flex-end;

    display: none;
}

.hero p {
    font-size: 0.9em;
}

.btn {
    font-size: 1.2rem;
    padding: 0.5em 1em;
    background-color: #31658d;
    color: white;
    appearance: none;
    border: 0;
    border-radius: 0.5em;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3em;
    align-items: baseline;
    align-content: space-between;
}

.hero h1 {
    font-size: 2.1em;
    font-weight: 400;
}

.hero .btn {
    font-size: 1.1em;
    margin-top: 1em;
    margin-left: auto;
    text-decoration: none;
}

#home {
    background: #f3f3f3;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1500px;
}

.logo-vector {
    width: 100%;
    max-width: 200px;
}


@media (min-width: 768px) {
    .sections {
        max-height: 100%;
    }

    .hero {
        flex-direction: column;
        flex: 1;
    }

    .hero-content {
        margin: auto 0;
    }

    .hero-img {
        display: block;
        max-height: 40vh;
        margin-top: auto;
    }

    .hero .btn {
        font-size: 1.4em;
    }

    header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 30px;
    }

    .logo {
        max-height: 150px;
    }

    .main-nav {
        display: flex;
    }

    .ig-url {
        padding: 10px;
    }

    .ig-icon {
        width: 1.3em;
    }

    .half-section {
        min-height: auto;
    }

    #container-table {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .logo-vector {
        grid-column: 2;
        grid-row: 1 / 4
    }


    #contact,
    .footertext,
    .footertext:first-of-type {
        grid-column: 1;
    }

}

@media (min-width: 1024px) {
    .hero {
        flex: auto;
        flex-direction: unset;
        font-size: 24px;
    }

    .hero-content {
        max-width: 40%;
        gap: 1.5em;
    }

    .hero-img {
        max-height: 80vh;
        margin-top: 0;
    }

    .main-nav {
        margin-left: auto;
    }

    main {
        height: 50vh;
        justify-content: center;
    }

    section {
        height: 100vh; 
        scroll-snap-align: start;
    }

    .logo-vector {
        max-width: 160px;
    }

    #contact {
        margin: 0;
    }

    .text, .list {
        max-width: 60%;
    }

    .footer {
        min-height: 20%;
    }
}