body {
    font-family: "Founders Grotesk", "Inter", sans-serif;
    color: #30465f;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stile für die Desktop-Navigation */
.desktop-navigation {
    top: 35%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 2;
    padding-right: 0.8rem;
    position: fixed;
    border-left:#476990 solid 2px;
}

/* Allgemeine Stile für alle Navigationslinks */
.desktop-navigation a {
    color: #30465f;
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    justify-content: flex-end;
    font-weight: light;   
    padding: 6px;
    margin: 8px; /* Der Abstand zwischen den Buttons */
}

.desktop-navigation a:hover {
    background-color: #fa9cda;
}

/* Entfernt Standard-Listenabstände für beide Listen */
.desktop-navigation .main-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Verstecke das mobile Menü standardmäßig */
.mobile-navigation {
    display: none;
}

.main-projekte {
    padding-left: 0.5rem;
}

.contact-section {
    padding-left: 20px;
    padding-right: 20px;
}

.projekt-beschreibung {
    max-width: 800px;
    margin-top: 10px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #30465f;
     font-size: 1.2em;
    
    /* Blocksatz & Silbentrennung */
   
}

.marker {
    font-weight: 300;
    color: #30465f;
}

/* Masonry Grid */
.masonry {
    font-size: 0;
}

.masonry-item {
    width: 40.5%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 32px;
    font-size: 16px;
}

.masonry-item:nth-child(3n+1) {
    margin-right: 1%;
}

.masonry-item:nth-child(3n+2) {
    margin-left: 0.5%;
    margin-right: 0.5%;
}

.masonry-item:nth-child(3n+3) {
    margin-left: 1%;
}

.masonry-item img {
    width: 100%;
    display: block;
}

.masonry-item a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    
}
/* ---------------------------------------------------- */
/* RESPONSIVER VIDEO CONTAINER (femtak Video)          */
/* ---------------------------------------------------- */
.video-container {
    position: relative;
    width: 100vw; /* Nutzt 100% der gesamten Bildschirmbreite */
    max-width: 83%; /* Passt sich an, falls Elternelemente einschränken */
    height: 0;
    padding-bottom: 56.25%; /* Exaktes 16:9 Format */
    margin: 30px 0 50px 0;
    clear: both;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Footer Stile */
footer {
    background-color: #ffffff;
    padding: 40px;
    border: 2px solid #ffffff;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 150px;
    margin: 10px;
}

.footer-ueberschrift a {
    font-size: 20pt;
    font-weight: 500;
    color: #30465f;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-social-ueberschrift,
.footer-vertrauen-uberschrift {
    font-size: 16pt;
    color: #30465f;
}

.footer-info {
    font-size: 12pt;
    color: #30465f;
    margin-bottom: 5px;
}

.footer-info a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon i {
    font-size: 28px;
    color: #30465f;
    transition: color 0.3s ease;
}

.social-icon i:hover {
    color: #535353;
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES für responsive Darstellung             */
/* ---------------------------------------------------- */

@media (max-width: 768px) {
    /* Navigation Anpassungen */
    .desktop-navigation {
        display: none;
    }

    .mobile-navigation {
        display: block;
        width: 100%;
        text-align: right;
        position: relative;
        margin-top: 1rem;
        padding-right: 1rem;
    }

    .menu-button {
        display: inline-block;
        color: rgb(0, 0, 0);
        text-decoration: none;
        font-size: 1.25rem;
        font-weight: bold;   
        padding: 8px 16px;
        margin: 0;
        background-color: #ffffff;
        border: 1px solid rgb(0, 0, 0); 
        border-radius: 40px; 
        cursor: pointer;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav-items {
        display: none;
        flex-direction: column;
        z-index: 99;
        list-style-type: none;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 100%;
        right: 1rem;
        width: 200px;
    }

    .menu-toggle:checked ~ .main-nav-items {
        display: flex;
    }

    .main-nav-items li {
        width: 100%;
    }

    .main-nav-items li a {
        display: block;
        text-align: center;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 8px 12px;
        margin: 4px 0;
        background-color: #ffffff;
        border: 1px solid rgb(0, 0, 0); 
        border-radius: 40px;
        color: rgb(0, 0, 0);
        text-decoration: none;
    }

    .main-nav-items li a:hover {
        background: linear-gradient(90deg, #C0F6F9 60%, transparent 100%);
        color: rgb(0, 0, 0);
    }

    .main-nav-items li:nth-last-child(2) a,
    .main-nav-items li:last-child a {
        font-weight: 300;
        color: #000000;
        justify-content: center;
        text-align: center;
    }

    .main-nav-items li:nth-last-child(2) a[aria-current="page"] {
        background: linear-gradient(90deg, #C0F6F9 60%, transparent 100%);
        font-weight: 300;
    }

    /* Layout & Content Anpassungen */
    .hero-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.5em;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image-placeholder {
        display: none;
    }

    .main-projekte {
        padding: 0 1.25rem;
    }

    .contact-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Schaltet Blocksatz auf Mobilgeräten ab für bessere Lesbarkeit */
    .projekt-beschreibung {
        font-size: 0.95rem;
        text-align: justify;
        hyphens: auto;
    }

    /* Video-Container auf Mobilgeräten voll ausnutzen */
    .video-container {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 30px;
    }

    /* Masonry Einspaltig */
    .masonry-item {
        width: 100%;
        display: block;
        margin-bottom: 24px;
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .masonry-item:nth-child(3n+1),
    .masonry-item:nth-child(3n+2),
    .masonry-item:nth-child(3n+3) {
        margin-left: 0;
        margin-right: 0;
    }

    /* Footer Anpassungen */
    footer {
        padding: 24px 16px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 24px;
        text-align: center;
        width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-bottom: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-content p {
        font-size: 0.875rem;
    }

    .footer-ueberschrift a {
        font-size: 16pt;
    }
}