:root {
    --primary-color: #f5f5f5;
    --secondary-color: #e7e7e7;
    --accent-color: #db2524;
    --text-color: #0A0A0A;
    --muted-text: rgb(53, 53, 53);
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.cta {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    width: fit-content;
    border-radius: 5px;
    white-space: nowrap;
}

.cta:hover {
    opacity: 0.8;
}


/*==================== HEADER ====================*/
header {
    background: var(--primary-color);
    position: fixed;
    color: var(--text-color);
    padding: 0px;
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    height: 80px;
    z-index: 3;
    max-width: 100vw;
    right: 0;
    left: 0;
    transition: .2s;
}

header h1 {
    white-space: nowrap;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
}

header .small-heading {
    font-size: 1.4rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    transition: .2s;
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

header nav ul,
header nav ul li {
    margin: 0;
    list-style: none;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

header nav ul li a:hover {
    color: var(--accent-color);
}

.toggle-btn {
    height: 30px;
    width: 30px;
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    transition: .2s;
    gap: 7px;
}

.toggle-btn-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    display: none;
    transition: .2s;
}

#bar-one.active {
    width: 17px;
    margin-left: 0px;
}

#bar-two.active {
    width: 17px;
    margin-left: 13px;
}

#bar-three.active {
    width: 17px;
    margin-left: 23px;
}

@media (max-width: 1080px) {

    header {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    header,
    .header-container {
        height: 60px;
    }

    .toggle-btn,
    .toggle-btn-bar {
        display: flex;
    }

    header nav {
        position: absolute;
        top: 60px;
        left: 100vw;
        background-color: var(--primary-color);
        height: calc(100vh - 60px);
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: .2s;
    }

    .header-menu.active {
        transform: translate(-100vw, 0);
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0;
        transform: translateY(-50px);
    }

    header nav ul li a {
        font-size: 1.4rem;
    }
}

@media (max-width: 550px) {

    header {
        min-height: 60px;
        max-height: 60px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .header-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

@media (max-width: 400px) {

    header {
        padding-left: 10px;
        padding-right: 20px;

    }

    header .small-heading {
        font-size: 1rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .toggle-btn-bar {
        height: 2px;
    }
}




/*==================== HERO ====================*/
.hero {
    background-image: url("/images/bild1.jpg");
    background-size: cover;
    background-position: center;
    height: 90vh;
    position: relative;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.74);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    max-width: 1500px;
    padding-left: 30px;
    padding-right: 30px;
}

.card-one {
    color: var(--primary-color);
    max-width: 700px;
    text-align: left;
    transform: translateY(-20px);
}

.card-one ul {
    padding: 0;
    margin-bottom: 50px;
}

.card-one li {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 5px;
}

.card-one li p {
    margin: 0;
    margin-left: 10px;
    font-size: 20px;
}

.card-one h2 {
    margin: 0;
    font-size: 3.7rem;
}

.card-one p {
    font-size: 1.7rem;
    margin-bottom: 30px;
}

.slider-container {
    position: relative;
    width: 80%;
    max-width: 400px;
    height: max-content;
}

.slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 5px;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.dots {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #474747;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot:hover {
    opacity: .8;
}

.dot.active {
    background-color: var(--accent-color);
}

@media (max-width: 1115px) {

    .slider-container {
        display: none;
    }

}

@media (max-width: 715px) {
    .card-one {
        max-width: 450px;
        transform: translateY(-60px);
    }

    .card-one h2 {
        font-size: 2.5rem;
    }

    .card-one p {
        font-size: 1.4rem;
    }

    .card-one ul li p {
        font-size: 1.2rem;
    }
}


/*==================== ABOUT US ====================*/

.aboutus {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 100px;
    background-color: var(--primary-color);
    color: var(--text-color);
}

.aboutus-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.aboutus h2 {
    margin-top: 0;
}

.aboutus p {
    margin-bottom: 30px;
    color: var(--muted-text);
}

.aboutus img {
    width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.aboutus-content {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

@media (max-width: 999px) {
    .aboutus-content {
        text-align: center;
        align-items: center;

    }

    .aboutus h2 {
        font-size: 2rem;
    }

    .aboutus img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
}



/*==================== SERVICES ====================*/

.services {
    padding-top: 70px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.services h2 {
    width: max-content;
    margin-bottom: 70px;
    font-size: 38px;
}

.service-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.service-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 70px;
}

.service-card {
    background-color: var(--primary-color);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    max-width: 500px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    padding-left: 25px;
    padding-right: 25px;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 10px;

}

.service-card p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--muted-text);
}

.service-card-content {
    max-width: 400px;
    position: relative;
}

.service-card img {
    width: 40px;
    height: 40px;
    margin-left: 25px;
    border-radius: 2px;
    padding: 10px;
}



/*==================== REFERENCES ====================*/

.references {
    padding-top: 70px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-color);
}

.references h2 {
    width: max-content;
    margin-bottom: 70px;
    font-size: 38px;
}

.references-container {
    margin-bottom: 70px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    max-width: 1200px;
    overflow-x: hidden;
    position: relative;
}

.reference-card {
    background-color: var(--secondary-color);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    max-width: 350px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.reference-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.reference-card-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.reference-card-content p {
    margin-bottom: 10px;
}

.reference-card-content a {
    color: var(--accent-color);
    text-decoration: none;
    width: max-content;
    cursor: pointer;
}

.reference-card-content a:hover {
    opacity: .6;
}

.reference-slide {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: .2s;
}

.reference-slide-two {
    position: absolute;
    transform: translateX(1200px);
}

.reference-slide-three {
    position: absolute;
    transform: translateX(1200px);
}

.slider-btn {
    opacity: .6;
    cursor: default;
}


.slider-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    border: none;
    background-color: var(--secondary-color);
    border: none;
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    width: fit-content;
    border-radius: 5px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 1.2rem;
}

.slider-btn-cta {
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    width: fit-content;
    border-radius: 5px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 1.2rem;
}

.slider-btn:hover,
.slider-btn-cta:hover {
    opacity: 1;
}

@media (max-width: 1130px) {

    .references-container,
    .reference-slide {
        flex-direction: column;
        align-items: center;
    }

}

.popUp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: fit-content;
    background-color: rgba(0, 0, 0, 0.89);
    display: none;
    justify-content: center;
    padding-top: 100px;
    color: var(--primary-color);
    z-index: 10;
    overflow-y: scroll;
}

.close-btn {
    background-color: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-color);
    position: absolute;
    top: 40px;
    right: 70px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.close-btn:hover {
    opacity: .6;
}

.close-btn img {
    width: 25px;
    height: 25px;
    transform: translateY(2px);
}

.popUp-content {
    width: 100vw;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 70px;
    overflow-y: scroll;
    max-height: 70vh;
}

.popUp-content h3 {
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 2rem;
}

.popUp-content p {
    line-height: 1.4rem;
    max-width: 800px;
}

.popup-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.popup-slide-wrapper {
    width: 100%;
    max-width: 500px;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.3s;
    opacity: 0;
}

.popup-slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.popup-slider-prev,
.popup-slider-next {
    border: 2px solid var(--primary-color);
    background: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-slider-prev:hover,
.popup-slider-next:hover {
    opacity: .8;
}

.popup-slider-prev img,
.popup-slider-next img {
    width: 35px;
    height: 35px;
}

.popup-slider-prev img {
    transform: rotate(180deg);
}

.slider-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

@media (max-width: 700px) {

    .popUp {
        padding-top: 70px;
    }

    .close-btn {
        right: 20px;
        top: 20px;
    }

    .popup-slide-wrapper {
        max-width: 100%;
    }

    .popup-slider-prev,
    .popup-slider-next {
        width: 40px;
        height: 40px;
    }

    .popup-slider-prev img,
    .popup-slider-next img {
        width: 30px;
        height: 30px;
    }
}


/*==================== CONTACT ====================*/

.contact {
    padding-top: 70px;
    padding-bottom: 100px;
    background: url('/images/background.jpg');
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.555);
}

.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1;
}

.contact h2 {
    font-size: 38px;
    width: fit-content;
    text-align: center;
    color: var(--primary-color);
}

form {
    width: max-content;
    margin-top: 40px;
    transform: scale(1);
}

form label {
    font-size: 1rem;
    color: var(--primary-color);
}

#name-inp,
#mail-inp,
#message-inp {
    border: none;
    padding: 5px;
    border-radius: 8px;
    background-color: var(--primary-color);
    transition: .2s;
    font-size: 1rem;
}

#name-inp:focus,
#mail-inp:focus,
#message-inp:focus {
    background-color: var(--primary-color);
    outline: 2px solid var(--accent-color);
}

#name-inp {
    width: 350px;
    height: 30px;
    margin-top: 5px;
}

#mail-inp {
    width: 350px;
    height: 30px;
    margin-top: 5px;
}

#message-inp {
    width: 350px;
    height: 130px;
    margin-top: 5px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    font-size: .8rem;
    color: var(--primary-color);
}

.checkbox-line a {
    color: var(--accent-color);
}

form button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: none;
    margin-top: 10px;
}

@media (max-width: 400px) {

    input,
    textarea {
        max-width: 300px;
    }


    #name-inp {
        height: 20px;
        margin-top: 5px;
    }

    #mail-inp {
        height: 20px;
        margin-top: 5px;
    }

    #message-inp {
        height: 100px;
        margin-top: 5px;
    }

    .checkbox-line {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        width: max-content;
    }

    form button {
        margin-left: auto;
        margin-right: auto;
    }

}

/*==================== DIRECTIONS ====================*/

.directions {
    padding-top: 70px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.direction-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    padding-left: 20px;
    padding-right: 20px;
    gap: 80px;
}

.direction-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.direction-content h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
}

.direction-container img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.direction-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    margin-bottom: 10px;
}

.direction-content h4 {
    margin: 0;
    margin-top: 7px;
}

.direction-content img {
    width: 30px;
    height: 30px;
    margin-right: 20px;
}

/*==================== DOCUMENTS====================*/

.documents {
    padding-top: 70px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding-right: 20px;

}

.documents h2 {
    width: max-content;
    font-size: 38px;
}

.documents p {
    color: var(--muted-text);
    margin-bottom: 70px;
    margin-top: 0;
    max-width: 400px;
    text-align: center;
    font-size: 24px;
}

.documents-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 20px;
    gap: 20px;
}

.document-card {
    background-color: var(--primary-color);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border-radius: 10px;
    padding: 20px;
    padding-left: 30px;
    padding-right: 30px;
    width: 200px;
}

.document-card a {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-card a:hover {
    opacity: .6;
}

/*==================== FOOTER====================*/

footer {
    background-color: var(--text-color);
    color: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

footer ul {
    padding: 0;
}

footer li {
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--accent-color);
}

footer ul {
    display: flex;
    flex-direction: row;
}

footer ul li {
    list-style: none;
    margin: 0 10px;
}