*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    background-color: #141414;
    color: white
}

.intro {
    display: flex;
    background-color: #003463;
    color: white;
    align-items: center;

    h1 {
        padding-inline: 2rem;
        width: 50%;
        font-weight: 400;

        strong {
            display: block;
            font-weight: 700;
            font-size: 2em;
        }
    }

    img {
        display: block;
        width: 50%;
        height: auto;
        float: right;
    }
}

.Formen-zeichnen {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
}

.About-Me {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1500px;
}

.h2 {
    padding-inline: 2rem;
    width: 100%;
    font-weight: 700;
    margin-bottom: 20px;

    strong {
        display: block;
        font-weight: 700;

    }
}

.About-Me p {
    margin-top: 200px;
    margin-bottom: 200px;
    max-width: 640px;
}

.Projects {
    padding-inline: 2rem;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin: 20px;
    width: 60%;
    margin: 20px auto;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease-in-out;
}

.image-container::after {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    z-index: 10;
    text-shadow: 0px 0px 5px rgba(0, 0, 0.3, 0.6);
}


.image-container:hover img {
    opacity: 0.7;
    transform: scale(1.1);
}

.image-container:hover::after {
    opacity: 15;
}

.footer {
    background-color: #003463;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #d1d1d1;
}

.dock {
    position: fixed;
    top: 10px;
    left: 50%;
    translate: -50% 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 300px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
}

.dock-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(159, 159, 159, 0.3);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.dock-button img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    object-fit: contain;
}

.dock-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1320px) {
    .dock {
        width: 260px;
        height: 50px;
    }

    .dock-button {
        width: 40px;
        height: 40px;
    }

    .dock-button img {
        width: 20px;
        height: 20px;
    }

    .h1 {
        margin-top: 100px;
    }

    .About-Me p {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}