@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
}
body {
    background-image: url("img/bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: #000;
}
header {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 1% 0;
    justify-content: center;
    box-shadow: 4px 7px 9px 0 rgba(50, 57, 70, 0.5);
}
section {
    position: relative;
    background-image: url("img/TGM_Foto_blau.webp");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #000;
    padding: 4%;
}
.intro {
    background-color: #ffffff;
    opacity: 0.8;
    border-radius: 1rem;
    padding: 2rem;
}
#main-section {
    margin: 1rem auto;
    max-width: 1800px;
    hyphens: auto;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.logo-column:first-child {
    width: 20%;
}
.logo-column:first-child img {
    width: 100%;
    /* The image will take up 100% of the 30% width of its parent */
    height: auto;
    /* Maintain aspect ratio */
}
.logo-column:last-child {
    text-align: center;
    /* Center the text */
}
h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}
h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2.2rem;
    text-align: center;
    padding-bottom: 1rem;
    font-weight: 500;
}
h3 {
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    color: #00BAEA;
    padding-bottom: 1rem;
}
h5 {
    font-family: "Poppins", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 8px;
    position: absolute;
}
p {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

section a, a:link, a:visited, a:active, a:hover {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
}
section a, a:link, a:visited, a:active {
    color: #00BAEA;
    text-decoration: none;
}
section a:hover {
    color: #000;
    text-decoration: underline;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 2rem;
}
.card {
    height: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 5px 5px 15px 4px rgba(153, 145, 145, 0.5);
    display: flex;
    align-items: center;
    padding: 40px 20px 40px 20px;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.open-modal {
    text-align: center;
}

.firmenlogo {
    width: 70%;
    transition: all .3s ease;
    cursor: pointer;
}

.firmenlogo:hover {
    transform: scale(1.2);
}

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

.close {
    color: #00BAEA;
    float: right;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    margin: -1.7rem -1rem 0 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid #888;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    max-width: 60rem;
}
.modal-content a {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
}
.modal-content a:hover {
    text-decoration: underline;
    text-decoration-color: #00BAEA;
}

.abteilungen {
    display: flex;
    gap: 6px;
}

table td {
    font-family: "Vazirmatn", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #000;
    vertical-align: middle;
    min-height: 50px;
    padding-bottom: 0.6rem;
}
table img {
    width: 70%;
}
table td:first-child {
    width: 2rem;
    text-align: center;
    padding-right: 0.6rem;
}
.hexagon {
    font-weight: 700;
    width: 50px;
    height: 54px;
    aspect-ratio: cos(30deg);
    clip-path: polygon(-50% 50%,50% 100%,150% 50%,50% 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: help;
}
.button_section {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}
button {
    font-family: "Vazirmatn", sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.2s;
    cursor: pointer;
    background-color: #00BAEA;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.25rem;
}
button:hover {
    background-color: #00BAEA99;
}
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #00BAEA;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #00BAEA99;
}
@media screen and (max-width:1200px) {
    .grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width:992px) {
    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width:768px) {
    header {
        padding: 2% 0;
    }
    #main-section {
        padding: 0 5%;
    }
    .grid-container {
        display: grid;
        gap: 1.5rem;
        margin: 1rem auto;
        padding: 0 8%;
    }
    .card {
        background-color: #fff;
        text-align: left;
    }
    h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.2rem;
    }
}
@media screen and (max-width:680px) {
    .grid-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .firmenlogo {
        width: 58%;
    }
}
@media screen and (max-width:430px) {
    header {
        padding: 4%;
    }

    h1 {
        font-size: 1.2rem;
    }
    h2 {
        hyphens: none;
    }
}