/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #1e2938, #020617);
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* SECTIONS */

section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 24px;
}

/* TYPO */

h1 {
    font-family: "Bad Script", cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
}

h2 {
    color: #38bdf8;
    margin-bottom: 12px;
}

p {
    line-height: 1.6;
    opacity: 0.9;
}


/* HEADER */

.video-header {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.wilkommen-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.overlay-text {
    position: absolute;
    inset: 0;
    left: 10%;
    top: 80%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}


/* LOGO */

.Logo {
    height: 245px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}


/* NAV */

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 20px;

    padding: 12px 26px;

    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(10px);

    border-radius: 50px;
    z-index: 1000;
}

.tab-button {
    all: unset;
    cursor: pointer;
}

.tab-button a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

.tab-button a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: 0.3s;
}

.tab-button:hover a,
.tab-button.home a {
    color: #38bdf8;
}

.tab-button:hover a::after,
.tab-button.home a::after {
    width: 100%;
}

/* OPEN CONTENT */

.content-intro {
    max-width: 25%;
    text-align: center;
    position: absolute;
    right: 10%;
    top: 130%;
    transform: translateY(-50%);
}


/* BUTTON */
.mehr {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;          /* übernimmt die p-Schrift */
}

.mehr a {
    text-decoration: underline;
    color: white;         /* übernimmt die Textfarbe */
    font: inherit;          /* gleiche Schrift wie p */
}

.mehr a:hover {
    opacity: 0.7;           /* dezenter Hover-Effekt */
}
/* SWIPER */

.wischer {
    width: 50%;
    margin: auto;
    position: absolute;
    top: 105%;
    left: 29%;
    transform: translateX(-50%);
    height: 110vh;
}

.swiper-container {
    width: 100%;
    height: 40vh;

    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background: #38bdf8;
}


/* SPLIT SECTION */

.seitenabschnitt {
    display: flex;
    gap: 40px;
    flex-direction: row-reverse; /* Bild und Text tauschen Seiten */
    position: relative;
    top: 300px;
    margin-right: 0%;
    align-items: center; /* Text bleibt mittig */
    margin-top: 10%;
}

/* Bild-Container */
.seitenbild {
    flex: 1;
    display: flex;
    width: 50%;
    transform: translateX(-50%);
}

/* Bild selbst */
.seitenbild img {
    height: 80vh;              /* bleibt immer gleich hoch */
    width: auto;               /* verhindert Verzerrung */
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);  
}

/* Text */
.seitentext {
    flex: 1;
    text-align: center;
    position: relative;
    right: 30cap;
}

/* CONTACT */
#kontakt {
    position: relative;
    margin-top: 10vh;
}

/* info section full imege*/
/* Haupt-Container */

.voll {
    width: 90%;
    margin: 80px auto;
    margin-top: 20%;
}

/* Überschrift über dem Bild */

.info-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Bild + Overlay */

.bild-container {
    position: relative; /* WICHTIG */
}

/* Bild */

.full-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    display: block;
}

/* Text AUF dem Bild */

.info-text {
    position: absolute;
    bottom: 20px;   /* Abstand von unten */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 12px 20px;
    border-radius: 8px;
    max-width: 80%;
}

.maps {
    margin-top: 60px;
    text-align: center;
    width: 50%;
    height: 50vh;
}
iframe {
    width: 100%;
    height: 50vh;
    border: 0;
    border-radius: 16px;
}
/* FOOTER */

footer {
    background: #020617;
    color: #94a3b8;
    text-align: center;
    padding: 24px;
}


/* MOBILE */

@media (max-width: 768px) {

    /* Grundlayout */
    body {
        overflow-x: hidden;
    }

    /* HEADER */
    .video-header {
        height: 60vh;
    }

    .Logo {
        height: 120px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .overlay-text {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }

    /* NAVIGATION */
    nav {
        top: 10px;
        padding: 8px 14px;
        gap: 8px;
    }

    .tab-button a {
        font-size: 0.8rem;
    }

    /* INTRO */
    .content-intro {
        position: static;     /* WICHTIG: absolute entfernen */
        max-width: 100%;
        margin: 40px auto 0;
        text-align: center;
    }

    /* SWIPER */
    .wischer {
        position: static;     /* WICHTIG */
        width: 100%;
        margin: 40px auto;
        height: auto;
        transform: none;
    }

    .swiper-container {
        height: 30vh;
    }

    /* SPLIT SECTION */
    .seitenabschnitt {
        position: static;     /* WICHTIG */
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
        text-align: center;
    }

    .seitenbild {
        width: 100%;
        transform: none;
        justify-content: center;
    }

    .seitenbild img {
        width: 100%;
        height: auto;
        max-height: 60vh;
    }

    .seitentext {
        position: relative;
        right: auto;
        margin: 0 auto;
        margin-top: 40px;
    }

    /* INFO SECTION */
    .voll {
        width: 92%;
        
    }

    .info-text {
        max-width: 90%;
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    /* KONTAKT */
    .kontakt {
        position: static;     /* WICHTIG */
        margin-top: 60px;
    }
    .maps {
        position: relative;
        width: 100%;
        left: 30%;
        transform: translateX(-50%);
    }
    .map-container {
        width: 128%;
    }
    
}

/*Tablett*/
@media (max-width: 1024px) {
    .seitentext h2,
    .seitentext p {
        text-align: center;
    }

}

/*Leptop*/
@media (max-width: 1500px) {

    .seitenbild img {
        height: 60vh;              /* bleibt immer gleich hoch */
    }

    .seitentext {
        right:auto;
        margin-left: 50px;
    }

    .voll {
        margin-top: 270px;
    }
    .maps {
        width: 80%;
    }
}