:root {
    --main-blue: #136F84;
    --highlight-color: #d9eded;
    --box-shadow-dark: 2px 2px 10px rgba(0, 0, 0, 0.6);
}


html, body {
    width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    color: #e4f4f4;
}

a:hover {
    color: #93d8d8;
}

.beginning-highlight-container {
    padding: 0 15px 15px 15px;
    background: #61b0c1a6;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-left: 20px;
    align-items: center;
}

    .logo-container > h1:nth-child(2) {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    }

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.grecaptcha-badge {
    display: none !important;
}

.cookie-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid #136F84;
    border-radius: 50%;
    background-color: #dce8f2;
    color: #136F84;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

    .cookie-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: #68ACDD;
    }


#saveCookieSettingsBtn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: #68ACDD;
}

#cookie-icon img {
    width: 28px;
    height: 28px;
}

#cookie-banner {
    color: #4FBBA8;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    font-size: 0.9em;
    position: fixed;
    width: 90%;
    max-width: 600px;
    background: #c1f7f7;
    border-top: 1px solid #ccc;
    z-index: 9999;
     padding: 16px 16px 11px 16px;
    box-shadow: 0 0 10px rgb(0, 0, 0);
    border-radius: 10px;
}


/* Toggle Slider*/
#slider-switch-statusText {
    margin: 0 0 10px 0;
    font-weight: bold;
}

    #slider-switch-statusText .switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 24px;
        margin: 5px 5px 0 15px;
    }

        #slider-switch-statusText .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    #slider-switch-statusText .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 24px;
    }

        #slider-switch-statusText .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }


    #slider-switch-statusText input:checked + .slider {
        background-color: #4FBBA8;
    }

        #slider-switch-statusText input:checked + .slider:before {
            transform: translateX(16px);
        }

#cookie-status {
    color: #5D9F94;
}

#more-info-link > b:nth-child(1) {
    font-size: 1em;
}

#more-info-link {
    margin: 0 0 0 15px;
}


#cancelCookieBannerBtn {
    background-color: #ce4d4d;
}

    #cancelCookieBannerBtn:hover {
        background-color: #bb8e8e;
    }

h2 {
    color: var(--main-blue);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
    aspect-ratio: 16 / 9; /* oder 4/3, je nach Wunsch */
    width: 100%;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* oder: contain */
    }


nav ul {
    list-style: none;
    padding: 0;
}

    nav ul li {
        display: inline-block;
    }

        nav ul li a {
            color: rgb(0 151 179);
            text-decoration: none;
        }

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.about-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 180px;
    opacity: 0.9;
    overflow: hidden;
    position: relative;
}

    .about-image:hover img {
        transform: scale(1.1);
    }

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--box-shadow-dark);
    transition: transform 0.4s ease;
}

.about-description {
    flex: 1 1 50%;
    background-color: #e4f4f4;
    border-radius: 8px;
    padding: 15px;
}

main {
}

footer {
    padding: 5px;
    font-weight: bold;
    background: #61b0c1a6;
    a

{
    text-decoration: none;
    color: var(--highlight-color);
}

}

.subsections {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-subsections {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit,minmax(500px, 1fr));
}

.subsection {
    color: var(--highlight-color);
    border-radius: 8px;
    width: 32.7%;
    box-sizing: border-box;
    padding: 20px;
    background: linear-gradient(45deg,#29C0D9, #449CB1F2);
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.79);
}

    .subsection:hover {
        transform: scale(1.05);
    }


.tile {
    background: linear-gradient(45deg,#40C1C1, #136F84);
    color: var(--highlight-color);
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    font-weight: bolder;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .tile:hover {
        transform: scale(1.05);
        background: linear-gradient(45deg,#40C1C1, #136F84);
    }

    .tile .tileHeader {
        padding: 0px;
    }

.tileHeader hr {
    color: #92EBFF;
}

.project-details {
    display: none;
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translate(-50%, 0%);
    background: #c5ffff;
    padding: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 80%;
    overflow-y: auto;
    z-index: 999;
}

.project-details-close-btn {
    color: var(--highlight-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 105%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

section {
    padding: 0px 10px 0px 10px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


.scroll-section {
    margin: 20px 0;
    background-color: #dce8f2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
    color: var(--main-blue);
    padding: 15px;
}

    .scroll-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

.project {
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px;
    border-right: groove cadetblue;
    border-bottom: groove cadetblue;
}

.project-subsection {
    background-color: #e4f4f4;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 15px;
}

#contact {
    background-image: url("contact.jpg");
    background-repeat: no-repeat;
    background-size: auto;
    background-position: top center;
}

#aboutme {
    background: #61b0c1a6;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}

    #contact-form label {
        margin-bottom: 5px;
    }

    #contact-form button {
        width: 100px;
    }

    #contact-form input,
    #contact-form textarea {
        background-color: #ffffffc2;
        resize: vertical;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-sizing: border-box;
        font-size: 1rem;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    }

        #contact-form input:focus {
            outline: none;
            border: 2px solid #136F84;
            box-shadow: 0 0 5px #136F84;
        }

    #contact-form textarea {
        min-height: 200px;
    }


        #contact-form textarea:focus {
            outline: none;
            border: 2px solid #136F84;
            box-shadow: 0 0 5px #136F84;
        }

button {
    padding: 10px;
    background-color: #17A9CA;
    color: var(--highlight-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

    button:hover {
        background-color: #72BCCC;
    }



.scroll-section {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--highlight-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: flex-end;
    margin-left: 5px;
}

.nav {
    display: flex;
}

.menu {
    list-style: none;
    margin: 5px;
    padding: 0;
    display: flex;
    gap: 1rem;
}

    .menu li {
        display: inline-block;
    }

        .menu li a {
            color: var(--highlight-color);
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: bold;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
        }


.highlight {
    font-size: 28px;
    font-weight: bold;
    color: #F9F9F9;
    text-align: center;
    background: linear-gradient(20deg, #6EFFE5, #0D1765);
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--box-shadow-dark);
}

:target {
    scroll-margin-top: 165px;
}

html {
    scroll-behavior: smooth;
}

a.phone-link {
    text-decoration: none;
    color: #F9F9F9;
}

    a.phone-link:hover {
        color: #17A9CA;
    }


.am {
    display: flex;
    flex-direction: row;
    margin: 5px;
}

    .am .subsections {
        padding-left: 15px;
    }

        .am .subsections .subsection {
            align-content: center;
            text-align: center;
            background: linear-gradient(45deg,#29C0D9, #46b5b5);
            padding: 20px;
            border-radius: 8px;
            transition: background 0.5s ease;
            width: 32%;
        }

            .am .subsections .subsection:hover {
                transform: scale(1.05);
            }

#projects > h2:nth-child(1) {
    background: linear-gradient(45deg,#40C1C1, #136F84);
    color: var(--highlight-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--box-shadow-dark);
    width: fit-content;
}

#projects {
    background: #2e9db4b5;
}

#services {
    background: #61b0c1a6;
}

    #services > h2:nth-child(1) {
        background: linear-gradient(45deg,#29C0D9, #449CB1F2);
        color: var(--highlight-color);
        border-radius: 8px;
        padding: 15px;
        box-shadow: var(--box-shadow-dark);
        width: fit-content;
    }


#aboutme > h2:nth-child(1) {
    background: linear-gradient(45deg,#29C0D9, #46b5b5);
    color: var(--highlight-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--box-shadow-dark);
    width: fit-content;
}


#contact > h2:nth-child(1) {
    background: #46b5b5;
    color: var(--highlight-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--box-shadow-dark);
    width: fit-content;
}

.subsection .icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subsection ul {
    margin: 0;
    padding-left: 20px;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
}

#highlight-personal-contact {
    margin: 5px;
}


@media (max-width: 1610px) {
    .subsection {
        width: 32.6%;                    
    }
}

@media (max-width: 1500px) {
    #contact {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 1395px) {
    .subsection {
        width: 32.5%;
    }
}


@media (max-width: 1300px) {
    #cookie-banner {
        top: 35%;
    }

    .about-image {
        padding: 0 15px 0 0;
    }

    .menu li a {
        font-size: 1rem;
    }

    .scroll-section {
        width: auto;
        height: auto;
    }

    .project-subsections {
        gap: 10px;
        grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
    }

    .project-details {
        top: 0%;
        transform: translate(-50%, 0%);
    }
}


@media (max-width: 1230px) {
    .subsection {
        width: 32.4%;
    }
}

@media (max-width: 1100px) {
    .subsection {
        width: 32.3%;
    }
}

@media (max-width: 1040px) {
    .subsection {
        width: 32.2%;
    }
}


@media (max-width: 976px) {
    #saveCookieSettingsBtn {
        border-radius: 20px !important;
    }

    .am .subsections {
        padding-left: 0px;
    }
    .am .subsections .subsection {
        width: 100%;
    }

    #aboutme {
        background-image: url("bg_gespiegelt.jpg");
        background: #61b0c1a6;
    }

    #projects > h2:nth-child(1) {
        text-align: center;
        background: linear-gradient(45deg,#40C1C1, #136F84);
        color: var(--highlight-color);
        border-radius: 8px;
        box-shadow: var(--box-shadow-dark);
        width: auto;
    }

    #services > h2:nth-child(1) {
        text-align: center;
        background: linear-gradient(45deg,#29C0D9, #449CB1F2);
        color: var(--highlight-color);
        border-radius: 8px;
        box-shadow: var(--box-shadow-dark);
        width: auto;
    }

    #aboutme > h2:nth-child(1) {
        text-align: center;
        background: #46b5b5;
        color: var(--highlight-color);
        border-radius: 8px;
        box-shadow: var(--box-shadow-dark);
        width: auto;
    }

    #contact > h2:nth-child(1) {
        text-align: center;
        background: #17A9CA;
        color: var(--highlight-color);
        border-radius: 8px;
        box-shadow: var(--box-shadow-dark);
        width: auto;
    }

    #contact {
        background-size: contain;
        background-position: center;
    }

    .menu-toggle {
        display: block !important;
        text-align: right;
    }

    header h1 {
        font-size: 1.3em;
    }

    .scroll-section {
        padding: 20px;
    }

    nav ul {
        text-align: center;
    }

        nav ul li {
            display: block;
            margin: 5px;
        }


    .project-details h2 {
        font-size: 16px;
    }

    .project-details ul {
        padding-left: 15px;
    }

    .project-details-close-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .subsections {
        flex-direction: column;
        align-items: center;
    }

    .project-subsections {
        flex-direction: column;
    }

    .subsection {
        width: 100%;
    }

    #contact-form {
        width: 100%;
    }

    button {
        width: auto;
    }

    section {
        padding: 15px;
    }

    .about-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-description {
        flex: 1 1 100%;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0.5rem 0;
        background: linear-gradient(45deg,#68ACDD, #136F84);
    }

        .nav.active {
            display: flex !important;
        }

    .menu {
        flex-direction: column;
        gap: 0.1rem;
    }

        .menu li {
            text-align: center;
            border-bottom-style: outset;
            padding: 0 5px 5px 5px;
            border-width: thin;
        }

    .tile:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    #popupMessage {
        font-size: 16px;
        width: 90%;
        padding: 15px;
    }
}

@media(max-width: 510px) and (max-height: 405px) {
    .menu {
        flex-direction: unset;
        gap: 0.5rem;
        align-self: center;
    }

        .menu li {
            text-align: center;
            border-right-style: ridge;
            padding: 10px;
            border-width: thin;
            border-bottom-style: unset;
        }
}


@media(max-width: 430px) {
    .am {
        display: block;
    }

    .about-image {
        margin: 10px;
        width: auto;
        opacity: unset;
    }

        .about-image img {
            height: auto;
            width: 50%;
            object-fit: contain;
        }

    #aboutme > h3:nth-child(2) {
        margin-top: -10px;
        margin-bottom: -10px;
    }
}
