/*ALLGEMEIN*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-blue: #003D7C;
    --dive-blue: #0A7CAE;
    --reef-turquoise: #28BBBD;
    --coral-yellow: #F48B1A;
    --depths-blue: #00112F;
    --white: #FFFFFF;
}

html, body {
    font-family: 'IBM Plex Sans', sans-serif;
    overflow-x: hidden;
    color: var(--depths-blue);
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

h1 {
    font-family: 'Hatch', sans-serif;
    font-weight: 500;
    font-size: 70px;
    color: var(--white);
}

h2 {
    font-family: 'Hatch', sans-serif; 
    font-weight: 500;
    font-size: 40px;
    margin-bottom: 20px;
}

h3 {
    font-family: 'IBM Plex Sans', sans-serif; 
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 20px;
}

p {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.overline {
    font-size: 20px;
    font-weight: 800;
    color: var(--coral-yellow);
    margin-bottom: 0px;
}

.deep-blue-bg {
    background-color: var(--deep-blue);
    color: var(--white);
}

.reef-turquoise-bg {
    background-color: var(--reef-turquoise);
    color: var(--white);
}

.blue-highlight {
    color: var(--reef-turquoise);
}

.deep-blue-highlight {
    color: var(--deep-blue);
}

.cta-button {
    padding: 12px 28px;
    background-color: var(--coral-yellow);
    border-radius: 14px 14px 14px 0px;
    border: none;
    color: var(--white);
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.03);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/*NAVIGATION*/
.nav-wrap {
    display: flex;
    justify-content: flex-start;
    transition: all 0.4s ease-in-out;
    background-color: transparent;
    color: var(--white);
    position: fixed;
    width:100%;
    top: 0;
    z-index: 999;
}

@supports (animation-timeline: scroll()) {
    .nav-wrap {
        animation: navBackground 1 linear both;
        animation-timeline: scroll();
        animation-range: 0 300px;
    }
}

@supports not (animation-timeline: scroll()) {
    .nav-wrap {
        background-color: var(--white);
        color: var(--depths-blue);
    }
}

@keyframes navBackground {
    from {
        background-color: transparent;
        color: var(--white);
    }
    to {
        background-color: var(--white);
        color: var(--depths-blue);
    }
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width:100%;
}

nav {
    display: flex;
    flex-direction: column;
    width:100%;
    gap:8px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: currentColor;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 18px;
}

nav a:hover {
    color: var(--magenta);
}

.logo {
    width: 110px;
    height: auto;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: currentColor;
}

#menu-toggle {
    display: none;
}

#logo-mobil {
    display: none;
}

.logo-frame {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--white);
    border-radius: 0px 0px 24px 0px;
}

.nav-wrap.scrolled {
    background-color: var(--depths-blue);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.nav-wrap.scrolled nav ul li a {
    color: var(--white);
}

.nav-wrap.scrolled .hamburger {
    color: var(--white);
}

.nav-wrap.scrolled .logo-frame {
    background-color: rgba(255, 255, 255, 0.1);
}

/*HEADER*/
header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*TEXT-BILD ANORDNUNG*/
.image-text-wrap {
    padding: 64px 0;
    display: flex;
    justify-content: center;
}

.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 60px;
}

.image-side {
    display: flex;
    justify-content: flex-start;
    padding-right: 25%; 
}

.image-animation-container {
    position: relative;
    width: 100%;
    max-width: 410px;
    aspect-ratio: 410 / 325;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 24px 24px 0px;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.floating-image {
    position: absolute;
    top: 5%; 
    left: 45%; 
    width: 100%; 
    height: auto;
    border-radius: 24px;
    pointer-events: none;
    animation: floatProportional 4s ease-in-out infinite;
}

.image-side-team {
    display: flex;
    justify-content: flex-end;
    padding-left: 25%; 
}

.image-animation-container-team {
    position: relative;
    width: 100%;
    max-width: 410px;
    aspect-ratio: 410 / 495;
}

.bg-image-team {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 24px 24px 0px;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.floating-image-team {
    position: absolute;
    top: 10%;
    right: 40%; 
    width: 100%; 
    height: auto;
    pointer-events: none;
    animation: floatProportional 4s ease-in-out infinite;
}

.float-box {
    display:block;
    position: relative;
}

.floating-image-paradies {
    position: absolute;
    top: 20%;
    width: 100%; 
    height: auto;
    pointer-events: none;
    animation: floatProportional 4s ease-in-out infinite;
}

.image-side-paradies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    height: 475px;
}

.bg-image-paradies {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 24px 24px 0px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

@keyframes floatProportional {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5%); } 
}

/*HIGHLIGHT BOX*/
.highlight-container {
    display:flex;
    justify-content:center;
    align-items: center;
    padding: 64px 0;
    background-image: url('bilder/panorama-kueste.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

.highlight-box {
    background-color: var(--white);
    color: var(--depths-blue);
    padding: 64px;
    border-radius: 24px 24px 24px 0px;
    max-width: 790px;
}

/*INTERAKTIVE KARTE TAUCHSPOTS*/
.map-wrapper {
    background-image: url('bilder/ocean-textur.webp');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 64px 0px;
}

.map-container {
    display:flex;
    flex-direction: column;
    gap:32px;
}

.map-headline {
    background-color: var(--reef-turquoise);
    color: var(--white);
    padding: 24px;
    width: 50%;
    border-radius: 24px 24px 24px 0px;
}

.map-headline p {
    margin-bottom: 0px;
}

.map-karte {
    position: relative
}

.map-img {
    width: 100%;
    height: auto;
    content: url('karte/karte-1.svg');
}

.icon-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background-color: var(--coral-yellow);
    padding: 20px;
    border: none;
    border-radius: 65px 65px 65px 0px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    transform-origin: bottom left;
    cursor: pointer;
}

.icon-display {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background-color: var(--coral-yellow);
    padding: 20px;
    border: none;
    border-radius: 65px 65px 65px 0px;
}

.icon-btn img,
.icon-display img {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-btn:hover {
    transform: scale(1.03);
    background-color: var(--deep-blue);
}

#turtle {
    position: absolute;
    top: 9%;
    left: 38%;
}

#mantaray {
    position: absolute;
    top: 57%;
    left: 12%;
}

#shark {
    position: absolute;
    top: 15%;
    left: 4%;
}

#deep {
    position: absolute;
    top: 2%;
    left: 17%;
}

#coral {
    position: absolute;
    top: 1%;
    left: 26%;
}

.info-img {
    width:100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}

.info-card-map {
    display:flex;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 875px;
    background-color: var(--white);
    z-index: 900;
    width: 100%;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 24px 24px 24px 0px;
}

.info-card-img {
    overflow: hidden;
    flex: 1;
}

.info-card-text {
    flex: 1;
}

.info-text {
    display:flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
}

.info-text h3 {
    margin-bottom: 0px;
}

.close-container {
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
}

.close-btn {
    border: none;
    background-color: transparent;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--reef-turquoise);
}

.info-box {
    display: none;
}

.info-box.sichtbar {
    display: block;
}

/*SLIDER TAUCHKURSE*/
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.carousel {
    width: 100%;
    padding: 10px 20px 32px 20px;
    overflow-x: auto;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --arrow;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
    color: var(--depths-blue);
}

.carousel-wrapper {
    padding: 64px 0px;
}

.carousel-card {
    flex: 0 0 calc((100% - 30px) / 3);
    max-width: calc((100% - 30px) / 3);
    color: var(--depths-blue);
    height: 100%;
    border-radius: 24px 24px 24px 0px;
    scroll-snap-align: start;
}

.carousel-card summary {
    color: transparent;
    position: relative;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    padding: 0 0 16px 0;
    list-style: none;
}

.carousel-card summary::after {
    content: 'Mehr';
    position: absolute;
    inset: 0;
    color: var(--coral-yellow);
}

.carousel-card details[open] summary::after {
    content: 'Weniger';
}


.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2.5;
    object-fit: cover;
    border-radius: 24px 24px 24px 0px;
}

.card-text {
    padding: 20px;

}

.card-text h3 {
    color: var(--dive-blue);
    font-weight: 800;
}

.card-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.card-cta p {
    margin-bottom: 0px;
}

.preis {
    font-size: 30px;
    font-weight: 800;;
}

.alternate {
    margin-top: 64px;
}


.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    gap: 15px; 
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    background-color: transparent;
    color: var(--depths-blue);
    border: none;
    cursor: pointer;
    font-size: 36px;
    transition: background 0.2s;
}

.dots-container {
    display: flex;
    gap: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #C7C7C7;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--reef-turquoise);
}

/*ANMELDUNG FORMULAR*/
.anmeldung-container {
    display:flex;
    justify-content:flex-end;
    align-items: center;
    padding: 64px 0;
    background-image: url('bilder/kueste.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

.anmeldung-box {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 48px;
    border-radius: 24px 24px 24px 0px;
    max-width: 790px;
    width:100%;
}

.container-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, select, textarea {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    width:100%;
    font-size: 17px;
}
.name-fields {
    display: flex;
    gap: 20px;
    width:100%;
}

.label-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width:100%;
}

.label-input label {
    margin-left:16px;
}

.checkbox-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.checkbox-container a {
    color: var(--reef-turquoise);
    text-decoration: underline;
}

.checkbox-container input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 4px 0 0 0;
    accent-color: var(--deep-blue);
    cursor: pointer;
}

.label-checkbox {
    font-size: 14px;
}

.btn-anmeldung {
    margin-top: 16px;
    align-self: flex-end;
}

/*KONTAKT*/
.kontakt {
    display:flex;
    justify-content:flex-end;
    align-items: center;
    padding: 64px 0;
    background-image: url('bilder/selly-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

.kontakt-container {
    background-color: var(--white);
    color: var(--depths-blue);
    padding: 48px;
    border-radius: 24px 24px 24px 0px;
    width:100%;
}

.kontakt-text-grid {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.kontakt-formular  {
    flex: 0 0 50%;
}

.text-container-kontakt {
    flex: 0 0 50%;
}

.kontakt-formular input, textarea {
    padding: 8px 16px;
    border: solid 1px var(--reef-turquoise);
    border-radius: 10px;
    font-size: 16px;
    width:100%;
    font-size: 17px;
}

/*FOOTER*/
footer {
    display: flex;
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 0 0 32px 0;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0px 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-text {
    display:flex;
    flex-direction: row;
    gap: 32px;
    padding: 32px 0 0 0;
}

.footer-links a {
    text-decoration: none;
    color:var(--reef-turquoise);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color:var(--coral-yellow);
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.logo-footer {
    width: 180px;
    height: auto;
}

.logo-frame-footer {
    display: flex;
    align-items: center;
    padding: 32px;
    background-color: var(--white);
    border-radius: 0px 0px 24px 0px;
}

@media (max-width: 1024px) {

    .carousel-card {
        flex: 0 0 calc((100% - 15px) / 2);
        max-width: calc((100% - 15px) / 2);
    }
}

@media (max-width: 850px) {
    .controls-container {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px;
    }

    .nav-buttons {
        gap: 0px;
    }

    .btn {
        min-width: 48px;
        padding: 10px 14px;
        font-size: 24px;
    }

    html {
        scroll-padding-top: 67px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

     h3 {
        font-size: 20px;
     }

     .overline {
        font-size: 16px;
     }

     p {
        font-size: 16px;
     }

    .container-right {
        padding: 0 12px;
    }

    nav {
        min-width: unset;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        z-index: 100; 
    }

    .container {
        padding: 0 10px;
    }

    #menu-toggle:checked ~ ul {
        display: flex; 
    }

    #logo-mobil {
        display: block;
    }

    .logo {
        width: 70px;
        height: auto;
    }

    .logo-frame {
        padding: 10px 0px;

    }

    #nav-logo {
        display: none;
    }

    header {
        width: 100%;
        height: auto;
    }

    .header-video {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 67px;
    }

    .image-text-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    }

    .image-side {
        padding-right: 0;
        justify-content: center;
    }

    .image-animation-container {
        width: 80%;
    }

    .floating-image {
        left: 20%;
    }

    .image-text-wrap {
        padding: 32px 0;
    }

    .highlight-container {
        padding: 32px 0;
    }

    .anmeldung-box {
        padding: 16px;
    }

    .highlight-box {
        padding: 32px;
    }

    .anmeldung-container {
        padding: 32px 0;
    }

    .image-side-paradies {
        gap: 16px;
    }

    .text-container {
        order: 2;
    }

    .kontakt {
        padding: 32px 0;}

    

    .footer-text {
        flex-direction: column;
        gap: 8px;
    }

        .footer-wrapper {
        padding: 0px 12px;
    }

    .label-checkbox {
        margin-bottom: 0px;
    }

    .image-side-team {
    justify-content: center;
    }

    .floating-image-team {
        right:35%;
    }

    .map-wrapper {
        padding: 32px 0px;
    }

    .map-headline {
        width: 100%;
    }

    .icon-display {
        padding: 16px;
    }

    .icon-display img {
        width: 40px;
        height: 40px;
    }

    .icon-btn {
        padding: 16px;
    }

    .icon-btn  img{
        width: 40px;
        height: 40px;
    }

    .carousel-wrapper {
        padding: 32px 0px;
    }

    .carousel::scroll-button(right), .carousel::scroll-button(left) {
        display: none;
    }

    .carousel::scroll-button(left) {
        display: none;
    }

    .carousel::scroll-marker-group {
        justify-content: center;
    }

    @keyframes navBackground {
    from {
        background-color: var(--white);
        color: var(--depths-blue);
    }
    to {
        background-color: var(--white);
        color: var(--depths-blue);
    }
}
}

@media (max-width: 700px) {

    .kontakt-container {
        padding: 16px;
    }

    .kontakt-text-grid {
        flex-direction: column;
        gap: 24px;
    }

    .info-card-map {
        flex-direction: column
    }
}

@media (max-width: 600px){
    
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0px 12px;
    }

    .carousel {
        padding: 0px;
    }

    .alternate {
        margin-top: 0px;
    }

    .carousel-card {
        flex: 0 0 100%;
    }

    .card-text {
        padding: 16px;
    }

    .image-side-paradies {
        max-height: 350px;
    }

    .image-side {
        padding-right: 0;
        justify-content: flex-start;
    }

    .map-img {
        content: url('karte/karte-mobil.svg');
    }

    #turtle {
        position: absolute;
        top: 5%;
        left: 75%;
    }

    #mantaray {
        position: absolute;
        top: 53%;
        left: 15%;
    }

    #shark {
        position: absolute;
        top: 10%;
        left: 0%;
    }

    #deep {
        position: absolute;
        top: 0%;
        left: 25%;
    }

    #coral {
        position: absolute;
        top: 0%;
        left: 40%;
    }

    .icon-btn {
        padding: 10px;
    }

    .icon-btn  img{
        width: 30px;
        height: 30px;
    }

    .controls-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .carousel-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


