/* Grundlayout */
* {
    font-family: "area-normal", sans-serif;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color: black;
    --second: #2a156f;
    --primary-color: #2a156f;
    --secondary-color: #2a156f;
    --dark-text: #000;
    --light-text: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: transparent; /* Standard: Transparent */
    box-shadow: none;
    position: fixed;
    z-index: 5000;
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Wenn gescrollt wird, bekommt der Header einen weißen Hintergrund */
header.scrolled {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.logo img {
    height: 50px;
    border-radius: 10px;
}

/* Hauptnavigation */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
}

.menu a:hover {
    color: var(--second);
}

/* Dropdown-Menü */
.submenu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
    border-radius: 5px;
}

.submenu li {
    display: block;
}

.submenu a {
    padding: 10px 15px;
    display: block;
    color: #000;
    font-size: 105%;
    white-space: nowrap;
}

.submenu a:hover {
    background: var(--second);
    color: white;
}

/* Dropdown bei Hover öffnen */
.menu li:hover .submenu {
    display: block;
}

/* 📌 RESPONSIVE DESIGN: Hamburger-Menü */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    cursor: pointer;
    position: relative;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--color);
    border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* 🎯 Animation zum "X" */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-16px) rotate(-45deg);
}

/* 📌 Mobile Menü */
@media (max-width: 700px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
        background: #fff;
        box-shadow: none;
        position: fixed;
        z-index: 5000;
        width: 100%;
        box-shadow: none;
    }


    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        transition: all 0.3s ease-in-out;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        text-align: center;
        padding: 10px;
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        background: #fff;
        box-shadow: none;
    }

    .submenu li {
        text-align: center;
    }

    .submenu a {
        padding: 6px;
        display: block;
    }

    .hamburger-menu {
        display: flex;
    }
}

img.lan {
    width: 50px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 4px;
}






.wave {
    position: relative; 
    margin-top: -200px;
    margin-bottom: -200px;
    z-index: 0;
}

@media only screen and (max-width:904px) {
    .wave {
        position: relative; 
        margin-top: -80px;
        margin-bottom: -130px;
        z-index: 0;
    }
}

@media only screen and (max-width: 520px) {
    .wave {
        position: relative; 
        margin-top: -70px;
        margin-bottom: -70px;
        z-index: 0;
    }
}

@media only screen and (max-width: 340px) {
    .wave {
        position: relative; 
        margin-top: -50px;
        margin-bottom: -100px;
        z-index: 0;
    }
}

/* Grundlayout für den Hero-Slider */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    z-index: -1;
    padding: 50px;
}

.slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slides {
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(./img/haus/finca2/one.png);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Zeigt das aktive Bild */
.slide.active {
    opacity: 1;
}

/* Hero-Text Overlay */
.hero-text {
    position: absolute;
    text-align: center;
    color: rgb(255, 255, 255);
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    background-color: rgba(0, 0, 0, 0.281);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-text p {
    color: white;
    font-size: 1.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 450px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

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

@media (max-width: 352px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}


/* bauträger */
.services-section {
    position: relative;
    width: 100%;
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    width: 100%;
    gap: 60px;
}

/* Textbereich */
.text-content {
    width: 55%;
}

.text-content h3 {
    color: var(--second);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.text-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.highlight {
    color: var(--second);
    font-weight: bold;
}

/* Leistungen */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

.service:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.service i {
    font-size: 26px;
    color: var(--second);
}

.service-text h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.service-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Bildbereich */
.image-container {
    width: 40%;
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
    transform: scale(1.03);
}

/* Responsives Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .text-content {
        width: 100%;
    }

    .service i {
        margin-left: auto;
        margin-right: auto;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .image-container {
        width: 80%;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .image-container {
        width: 100%;
    }

    .text-content h1 {
        font-size: 28px;
    }

    .text-content p {
        font-size: 16px;
    }

    .service {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service i {
        margin-left: auto;
        margin-right: auto;
    }
}




/*3er bereich mit meer*/


.wave2 {
    position: relative; 
    z-index: 20;
    margin: 0;
    padding: 0;
}



/* 🌊 Projekt-Showcase Hintergrund */
.project-showcase {
    margin-top: -380px;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: url('./img/wow.jpeg') no-repeat center center/cover;
    position: relative;
    color: var(--dark-text);
}

@media only screen and (max-width: 1720px) {
    .project-showcase {
        margin-top: -300px;
    }
}
@media only screen and (max-width: 1520px) {
    .project-showcase {
        margin-top: -300px;
    }
}
@media only screen and (max-width: 1320px) {
    .project-showcase {
        margin-top: -250px;
    }
}
@media only screen and (max-width: 1120px) {
    .project-showcase {
        margin-top: -200px;
    }
}
@media only screen and (max-width: 1000px) {
    .project-showcase {
        margin-top: -180px;
        padding-top: 100px;
    }
}
@media only screen and (max-width: 800px) {
    .project-showcase {
        margin-top: -140px;
        padding-top: 150px;
    }
}
@media only screen and (max-width: 620px) {
    .project-showcase {
        margin-top: -100px;
        padding-top: 80px;
    }
}
@media only screen and (max-width: 435px) {
    .project-showcase {
        margin-top: -80px;
        padding-top: 40px;
    }
}
@media only screen and (max-width: 330px) {
    .project-showcase {
        margin-top: -63px;
        padding-top: 0px;
    }
}

/* 🌊 Transparenter Overlay */
.project-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
    z-index: 1;
}

/* 🌊 Showcase Container */
.showcase-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 30px;
}

/* 🌊 Showcase Text */
.showcase-text {
    width: 40%;
}

.showcase-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.showcase-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.showcase-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 🌊 Showcase Button */
.showcase-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.showcase-btn:hover {
    background: #b71c1c;
}

/* 🌊 Projekt-Grid */
.project-grid {
    width: 55%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 🌊 Projekt-Karten */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* 🌊 Projekt-Infos */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(255, 255, 255);
    padding: 15px;
    text-align: left;
}

.project-category {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
}

/* 📱 Responsives Design */
@media (max-width: 1024px) {
    .showcase-container {
        flex-direction: column;
        text-align: center;
    }

    .showcase-text {
        width: 100%;
    }

    .project-grid {
        width: 80%;
    }
}

@media (max-width: 768px) {
    

    .showcase-title {
        font-size: 28px;
    }

    .showcase-description {
        font-size: 14px;
    }

    .showcase-btn {
        font-size: 14px;
        padding: 10px 15px;
    }


    .project-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
        
    /* 🌊 Projekt-Karten */
    .project-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        width: 100%;
    }

    .project-card:hover {
        transform: translateY(-5px);
        cursor: pointer;
    }

    .project-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    /* 🌊 Projekt-Infos */
    .project-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgb(255, 255, 255);
        padding: 7px;
        text-align: left;
    }

    .project-category {
        font-size: 10px;
        font-weight: normal;
        text-transform: uppercase;
        color: var(--primary-color);
        margin-bottom: 5px;
    }

    .project-title {
        font-size: 100%;
        font-weight: bold;
    }

    .showcase-container {
        padding: 15px;
    }
}

@media (max-width: 482px) {
    .showcase-container {
        max-width: 100%;
    }
    .project-grid {
        position: relative;
        display: flex;
        gap: 20px; /* Abstand zwischen den Elementen */
        overflow-x: auto; /* Ermöglicht horizontales Scrollen */
        scroll-snap-type: x mandatory; /* Elemente rasten sanft ein */
        max-width: 100%;
        padding: 20px;
        scrollbar-width: thin; /* Schmale Scrollbar für Firefox */
        scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Moderne Farbgebung */
        transition: all 0.3s ease-in-out;
    }
    
    /* Scrollbar für Chrome, Safari */
    .project-grid::-webkit-scrollbar {
        height: 8px; /* Dünne Scrollleiste */
    }
    
    .project-grid::-webkit-scrollbar-track {
        background: transparent; /* Unsichtbarer Track */
    }
    
    .project-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3); /* Dezente Scrollbar */
        border-radius: 10px;
    }
    
    .project-grid-item {
        flex: 0 0 300px; /* Fixe Breite für jeden Eintrag */
        height: 200px; /* Höhe der Elemente */
        background: linear-gradient(135deg, #007bff, #00d4ff); /* Moderner Farbverlauf */
        border-radius: 12px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        scroll-snap-align: start; /* Elemente rasten ein */
        transition: transform 0.3s ease;
    }
    
    .project-grid-item:hover {
        transform: scale(1.05); /* Subtiler Hover-Effekt */
    }
    
    .project-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        min-width: 250px;
    }
}




/* over us */
.kingdom-section {
    position: relative;
    z-index: 200;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 90%;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.322);
    margin-left: auto;
    padding: 100px;
    border-radius: 20px;
    margin-right: auto;
    display: flex;
    flex-direction: row-reverse;
}
.kingdom-section .royal-text-box {
    width: calc(50%);
    margin-left: 10%;
}
.kingdom-section .royal-text-box h1 {
    font-size: 180%;
    font-weight: normal;
    margin-bottom: 20px;
}
.kingdom-section .royal-text-box p {
    font-size: 110%;
    font-weight: normal;
    margin-bottom: 10px;
    color: #333;
}
.kingdom-section .royal-text-box .royal-buttons {
    display: flex;
    margin-top: 20px;
}
.kingdom-section .royal-text-box .royal-buttons .btn-majesty {
    color: var(--second);
    border: 2.5px solid var(--second);
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    width: 150px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
}
.kingdom-section .royal-text-box .royal-buttons .btn-majesty:hover {
    cursor: pointer;
    transform: translateY(-3px);
}
.kingdom-section .royal-text-box .royal-buttons .btn-majesty:nth-child(1) {
    background: var(--second);
    color: white;
}
.crown-display {
    width: calc(40%);
}
.crown-display .crown-image {
    background: url(./img/dena_big.png);
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
}

@media (max-width: 800px) {
    .kingdom-section {
        display: flex;
        flex-direction: column-reverse;
        padding: 30px;
        padding-top: 0px;
    }
    .kingdom-section .royal-text-box {
        width: calc(100%);
        margin-left: 0%;
    }
    .crown-display {
        width: calc(100%);
        background-repeat: no-repeat;
    }
    .crown-display .crown-image {
        background: url(./img/dena_big.png);
        background-repeat: no-repeat;
        width: 100%;
        background-size: contain;
        background-position: center;
        border-radius: 20px;
        aspect-ratio: 16/9;
    }
}


/* kontakt */

        #kontakt {
            position: relative;
            z-index: 200;
            margin-top: 50px;
            margin-bottom: 50px;
            width: 90%;
            box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.322);
            margin-left: auto;
            padding: 100px;
            border-radius: 20px;
            margin-right: auto;
            text-align: center;
        }

        h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        p {
            color: #555;
            font-size: 16px;
            margin: 5px 0;
        }

        .btns {
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btx {
            color: var(--second);
            border: 2.5px solid var(--second);
            padding: 10px;
            border-radius: 10px;
            text-decoration: none;
            width: 150px;
            text-align: center;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            cursor: pointer;
        }

        .btx:nth-child(2) {
            background: var(--second);
    color: white;
        }

        .btx:hover {
            cursor: pointer;
            transform: translateY(-3px);
        }

@media only screen and (max-width: 900px) {
    #kontakt {
        position: relative;
        z-index: 200;
        margin-top: 50px;
        margin-bottom: 50px;
        width: 90%;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.322);
        margin-left: auto;
        padding: 20px;
        border-radius: 20px;
        margin-right: auto;
        text-align: center;
    }
}



footer {
    position: relative;
    background-color: #fff;
    color: #000;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0px 0px 10px 0px black;
    padding-top: 200px;
    margin-top: -400px;
    z-index: 10;
}

@media only screen and (max-width: 1800px) {
    footer {
        padding-top: 100px;
        margin-top: -330px;
    }
}
@media only screen and (max-width: 1466px) {
    footer {
        padding-top: 100px;
        margin-top: -290px;
    }
}
@media only screen and (max-width: 1290px) {
    footer {
        padding-top: 100px;
        margin-top: -270px;
    }
}
@media only screen and (max-width: 1198px) {
    footer {
        padding-top: 100px;
        margin-top: -250px;
    }
}
@media only screen and (max-width: 1128px) {
    footer {
        padding-top: 100px;
        margin-top: -210px;
    }
    #kontakt h2 {
        font-size: 100%;
    }
    #kontakt p {
        font-size: 100%;
    }
    .kingdom-section .royal-text-box h1 {
        font-size: 100%;
        font-weight: bold;
    }
    .kingdom-section .royal-text-box p {
        font-size: 100%;
    }
}
@media only screen and (max-width: 922px) {
    footer {
        padding-top: 100px;
        margin-top: -180px;
    }
}
@media only screen and (max-width: 785px) {
    footer {
        padding-top: 100px;
        margin-top: -160px;
    }
}
@media only screen and (max-width: 700px) {
    footer {
        padding-top: 100px;
        margin-top: -140px;
    }
}
@media only screen and (max-width: 596px) {
    footer {
        padding-top: 100px;
        margin-top: -120px;
    }
}
@media only screen and (max-width: 510px) {
    footer {
        padding-top: 100px;
        margin-top: -100px;
    }
}
@media only screen and (max-width: 418px) {
    footer {
        padding-top: 100px;
        margin-top: -85px;
    }
}
@media only screen and (max-width: 356px) {
    footer {
        padding-top: 100px;
        margin-top: -75px;
    }
}
@media only screen and (max-width: 312px) {
    footer {
        padding-top: 50px;
        margin-top: -69px;
    }
}
@media only screen and (max-width: 280px) {
    footer {
        padding-top: 50px;
        margin-top: -59px;
    }
}


.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-logo {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 120px;
}

.footer-columns {
    display: flex;
    flex: 1 1 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
    margin-top: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
}

.footer-column p {
    margin: 5px 0;
    font-size: 14px;
    color: #222;
}

.footer-column a {
    position: relative;
    color: rgb(0, 0, 0);
    text-decoration: none;
    z-index: 10000;
    cursor: pointer;
}

.footer-column a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #000;
}

.footer-bottom a {
    color: 000;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
    }
}

.footer-column p a {
    position: relative;
    z-index: 1000;
}



.project-card img {
    aspect-ratio: 16/12;
    object-fit: cover;
}