/* Grundeinstellungen */
:root {
    --primary: #014380;
}

@import url(https://fonts.bunny.net/css?family=poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

p {
    margin: 0px;
    font-size: 20px;
}

/* Navigation */
nav {
    background-color: white;
    display: flex;
    height: 4rem;
    position: fixed;
    width: 100%;
    z-index: 99;
}

nav .container {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 3rem;
    width: auto;
}

.desktop-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

.desktop-menu a {
    color: black;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 600;
}

.desktop-menu a:last-child {
    margin-right: 0;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem;
}

.desktop-menu a:last-child i {
    font-weight: 400;
}

/* Header */
header {
    background-image: url('../../assets/img/train.jpg');
    height: 50vh;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.737);
    background-blend-mode: overlay;
}

header h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
}

header p {
    color: white;
}

/* Layout-Hilfsklassen */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.center-align {
    display: flex;
    align-items: center;
}

.center-def {
    display: flex;
    justify-content: center;
    align-items: normal;
}

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

.fw {
    width: 100%;
}

/* Abschnitte */
section {
    padding: 3rem 0rem;
}

.grey-section {
    background-color: #f5f5f5;
}

/* Karten */
.card {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 0rem;
}

.card i {
    font-size: 3rem;
}

.card p i {
    font-size: 1rem;
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    white-space: nowrap;
    background-color: white;
    padding: 1.5rem;
}

.slide {
    display: inline-block;
    width: 350px;
    box-sizing: border-box;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    background-color: #f5f5f5;
}

.slide img {
    width: 100%;
    cursor: pointer;
}

.slider-wrapper {
    transition: transform 0.5s ease-in-out;
    white-space: nowrap;
}

.prev,
.next {
    background-color: #014380;
    color: white;
    padding: 0.8rem;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 3rem;
    height: 3rem;
    text-decoration: none;
}

.prev {
    margin-right: 20px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 490px;
    height: 60vh;
    padding: 1rem;
    display: flex;
    overflow-y: scroll;
}

.popup-content img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.popup-close {
    color: var(--primary);
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 1rem;
    font-weight: bold;
}

.popup-close:hover,
.popup-close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.popup-body {
    padding: 20px;
}

.popup-body p {
    font-size: 1.2rem;
    font-weight: 600;
    color: black !important;
}

/* Kontaktperson */
.contact-person {
    background-image: url('../../assets/img/train.jpg');
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.863);
    background-blend-mode: overlay;
    color: white;
    height: 350px;
    padding: 2rem;
}

.contact-person img {
    height: 5rem;
    width: 5rem;
    object-fit: cover;
    border-radius: 100%;
    border: 3px solid white;
}

/* Buttons */
.white-btn {
    background-color: white;
    padding: 0.8rem;
    border: 2px solid white;
}

.white-btn i {
    color: var(--primary);
    font-size: 1.3rem;
}

.main-btn {
    background-color: var(--primary);
    padding: 0.8rem;
    border: 2px solid var(--primary);
    color: white;
}

.main-btn i {
    color: white;
    font-size: 1.3rem;
}

/* Formulare */
.form-control {
    border-radius: 0px;
}

/* Kontaktdaten */
.contact-data {
    padding: 0.5rem;
    background-color: rgb(255, 255, 255);
}

.outreach {
    font-size: 0.8rem;
}

/* Grid-Layouts */
.grid-container-2-1 {
    display: grid;
    grid-template-columns: minmax(0, 0.1fr) 1fr;
    grid-gap: 0rem;
}

.grid-container-2-1-def {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

.grid-container-3-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

.grid-item {
    padding: 0.5rem;
}

.grid-item p {
    color: var(--primary);
}

.grid-item i {
    color: black;
    font-weight: 500;
}

.grid-item a {
    text-decoration: none;
}

/* Footer */
footer {
    background-color: white;
    padding: 1rem;
}

footer .logo img {
    height: 2rem;
    width: auto;
}

footer .legal_links a {
    color: rgb(187, 187, 187);
    padding-right: 1rem;
    font-weight: 500;
}

footer .legal_links a:hover {
    color: var(--primary);
}

footer .legal_links a:last-child {
    padding-right: 0;
}

@media (max-width: 1000px) {
    .desktop-menu {
        display: none;
    }
    
    h1 {

        font-size: 1.5rem!important;
    }

    .w-50 {
        width: 100%!important;
    }

    .grid-container-2-1-def {
        grid-template-columns: 1fr;
        row-gap: 0rem;
    }

    .logo img {

        height: 2rem!important;
    }

    p {

        font-size: 16px;
    }

    .card {

        margin: 10px;
    }

    .flex button {

        width: 100%;
        margin: 10px;
    }

    .contact-person {

        height: fit-content;
    }

    .grid-item {

        margin-bottom: 1rem;
    }

    form {

        margin-bottom: 20px;
    }

    footer .grid-item {

        display: flex!important;
        align-items: center!important;
        justify-content: center!important;
    }

    footer .legal_links .flex-end a {

       font-size: 14px;
       justify-content: center!important;
       padding: 15px;
       padding-right: 0px !important;
    }

}
