
:root {
    --black: #000000;
    --white: #ffffff;
    --grey-dark: #636363;
    --grey-light: #8c8c8c;
    --primary: #3b7fb7;
}

@font-face {
    font-family: 'Poppins';
    src: url('./fonts/Poppins/Poppins-Light.ttf');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('./fonts/Poppins/Poppins-SemiBold.ttf');
}

@font-face {
    font-family: 'Poppins Light';
    src: url('./fonts/Poppins/Poppins-ExtraLight.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', serif;
}

a {
    text-decoration: none;
    color: var(--black);
}

.container {
    width: 1600px;
    margin: 0 auto;
}

nav {
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    align-items: center;
    height: 100px;
}

.nav-logo {
    font-size: 2rem;
    font-family: 'Poppins Bold', serif;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 100px);
}

.header-slogan {
    font-size: 3rem;
}

.header-subslogan {
    font-size: 1.2rem;
    color: var(--grey-light);
    font-family: 'Poppins Light', serif;
    margin-bottom: 1rem;
}

header dotlottie-player {
    width: 800px;
    height: 800px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    margin-bottom: 10rem;
}

.section-title {
    padding-bottom: 0.5rem;
    width: 50%;
    border-bottom: 1px solid var(--grey-light);
}

.section-title h1 {
    font-family: "Poppins Light", serif;
    font-size: 2.4rem;
}

.section-content {
    padding: 6rem 0 0 0;
}

.leistungen-container {
    display: flex;
    justify-content: space-between;
    gap: 8rem;
}

.card {
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid var(--grey-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-image {
    width: 100%;
    object-fit: cover;
}

.card-header {
    font-family: 'Poppins Bold', serif;
    font-size: 1.4rem;
    width: 100%;
    padding: 0 1rem;
}

.card-content {
    padding: 0 1rem 1rem 1rem;
}

#referenzen {
    overflow: hidden;
}

.referenzen-static {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

.referenzen-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    min-height: 800px;
    padding-top: 4rem;
}

.referenzen-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.referenz-card {
    flex: none;
    width: 400px;
    margin: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--grey-light);
    overflow: hidden;
    padding-bottom: 1rem;
}

.referenz-card h3, .referenz-card p {
    padding: 0 1rem;
}

.referenz-card img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--grey-light);
}

.referenz-card h3 {
    margin: 0.5rem 0 0.2rem;
}

.referenz-card p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    font-family: "Poppins Light", serif;
}

.referenz-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.card-wrapper {
    flex: none;
    margin: 0 1rem;
}

.referenz-link {
    display: none;
    background: var(--primary);
    border-radius: 100px;
    position: absolute;
    bottom: -0.5rem;
    right: -0.2rem;
    width: 5rem;
    height: 5rem;
}

.referenz-link i {
    color: var(--white);
    font-size: 3rem;
    rotate: 45deg;
    transition: .3s;
    border: 1px solid var(--white);
    border-radius: 100px;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referenz-link:hover .ref-link-icon {
    rotate: 405deg;
}

.card-wrapper:hover .referenz-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontakt-container {
    display: flex;
    justify-content: center;
}

.kontakt-container form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 800px;
}

.kontakt-container .form-input {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

}

.kontakt-container .form-input input, .kontakt-container .form-input textarea {
    border-radius: 5px;
    border: 1px solid var(--grey-light);
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', serif;
    width: 100%;
}

.kontakt-container .form-input input:focus, .kontakt-container .form-input textarea:focus {
    outline: none;
    border: 2px solid var(--primary);
}

.kontakt-container .form-input textarea {
    min-height: 300px;
}

.kontakt-container .form-input label {
    width: 100px;
    font-size: 2rem;
    font-family: 'Poppins', serif;
}

button {
    border-radius: 5px;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: var(--primary);
    color: var(--white);
    font-family: 'Poppins', serif;
    cursor: pointer;
    transition: .3s;
}
button:hover {
    transform: scale(1.05);
    font-weight: bold;
}

.footer {
    padding: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-socials a {
    color: var(--grey-light);
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    font-size: 0.8rem;
    color: #777;
}
@media screen and (min-width: 1040px) and (max-width: 1640px) {
    .container {
        width: auto;
        padding: 0 1rem;
    }

    .leistungen-container {
        gap: 3rem;
    }
}

@media screen and (min-width: 800px) and (max-width: 1039px) {
    .container {
        width: auto;
        padding: 0 1rem;
    }

    .leistungen-container {
        gap: 1rem;
    }

    .card-header {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 800px) {
    .container {
        width: auto;
        padding: 0 1rem;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100px;
        right: 1rem;
        background-color: white;
        padding: 1rem;
        border: 1px solid var(--grey-light);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    header {
        flex-direction: column;
        justify-content: space-around;
        height: auto;
    }

    header dotlottie-player {
        width: 100%;
    }

    section {
        padding: 0 1rem;
    }

    .leistungen-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .card {
        width: 100%;
    }

    .referenz-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .container {
        width: auto;
        padding: 0 1rem;
    }

    header {
        height: calc(100vh - 100px);
    }

    .header-slogan {
        font-size: 2rem;
        text-align: center;
    }

    .header-subslogan {
        text-align: center;
    }

    header button {
        margin: 1rem auto;
        display: block;
    }

    header dotlottie-player {
        width: 100%;
    }

    section {
        padding: 0 1rem;
    }

    .section-content{
        padding: 2rem 0;
    }

    .leistungen-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .card {
        width: 100%;
    }

    .referenzen-container {
        display: none;
    }

    .referenzen-static {
        display: flex;
    }

    .referenz-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .referenz-link {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        bottom: -0.6rem;
        right: -0.6rem;
        width: 4rem;
        height: 4rem;
    }

    .referenz-link i {
        width: 3.5rem;
        height: 3.5rem;
    }
    .card-wrapper:hover .referenz-link {
        display: flex; /* zur Sicherheit */
    }

    #referenzen {
        overflow: visible;
    }

    .kontakt-container form {
        width: 100%;
    }

    .kontakt-container .form-input label {
        font-size: 1.2rem;
    }

    .kontakt-container .form-input textarea {
        min-height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
