/* ====================================
   Index Page Specific Styles
   ==================================== */

/* Note: Common styles (Navbar, Footer, Typography, etc.) are in common.css */

/* ====================================
   Utility Classes
   ==================================== */
.nocursor:hover a {
    cursor: default;
}

#search:hover i {
    color: var(--white-pure) !important;
    cursor: default;
}

.ulmargin li {
    padding-bottom: 1.2rem;
}

.element li:last-child {
    border-bottom: var(--border);
}

/* ====================================
   Image Slider
   ==================================== */
.img-slider {
    position: relative;
    top: -10.4rem;
    width: 100%;
    height: 100vh;
    user-select: none;
    margin-bottom: -10.4rem;
}

@media screen and (max-width: 4500px) {
    .img-slider img {
        min-height: 140%;
        top: -40%;
        min-width: 100%;
    }
}

@media screen and (max-width: 1960px) {
    .img-slider img {
        min-height: 100%;
        max-height: 100%;
        min-width: 100%;
        top: 0%;
    }
}

.carousel-container {
    overflow: hidden;
    max-width: 100%;
    height: 100vh;
    position: relative;
    margin: auto;
    z-index: 0;
    box-sizing: border-box;
}

.mySlides {
    display: none;
}

.mySlides img {
    position: absolute;
}

.dots-container {
    position: absolute;
    width: fit-content;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%);
}

.dots_ {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: transparent;
    border: var(--border);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: background-color 0.3s ease;
}

.active.dots_ {
    background-color: var(--white-bg);
}

.animate {
    -webkit-animation-name: animate;
    -webkit-animation-duration: 0.3s;
    animation-name: animate;
    animation-duration: 0.2s;
}

/* ====================================
   Slider Text Content
   ==================================== */
.slider-outer {
    height: 100vh;
    width: fit-content;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 10rem;
    transform: translateX(0);
}

.slider-inner {
    z-index: 9;
    position: relative;
    height: fit-content;
    width: fit-content;
}

.slider-inner h1 {
    margin-left: 0;
}

.slider-inner h2,
.slider-inner h3,
.slider-inner .button2 {
    margin-left: 2.5rem;
}

.slider-inner h2 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 100;
    /* margin via parent rule */
    padding-bottom: 0;
}

.slider-inner h1 {
    font-size: 200px;
    font-weight: 900;
    letter-spacing: 2px;
    padding-top: 0;
    height: fit-content;
    margin: 0;
}

.slider-inner h3 {
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 300;
    /* margin via parent rule */
    margin-bottom: 0.5rem;
}

.button2 {
    border: var(--border);
    width: 12rem;
    border-radius: 3rem;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    color: var(--font-white);
    transition: 0.3s ease-in-out;
    background-color: transparent;
}

.button2:hover {
    background-color: var(--font-white);
    color: black;
}

/* ====================================
   Cards/Destinations Section
   ==================================== */
#sectionbackground {
    position: relative;
    z-index: 2;
    margin-top: 12rem;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    box-sizing: border-box;
}

#sectionbackground .card {
    display: none;
}

.card {
    border: var(--border);
    height: fit-content;
    background: var(--white-transparent);
    backdrop-filter: blur(8px);
}

.card img {
    height: 22rem;
    margin-bottom: 1.5rem;
}

.card p {
    padding: 0;
    position: absolute;
    top: 4rem;
}

.card h4 {
    height: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.more {
    top: 0;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card .more {
    padding-bottom: 2rem;
    position: relative;
}

.card:last-child {
    left: 0%;
    position: relative;
}

#more {
    margin: auto;
    width: 12rem;
    height: 2.5rem;
    line-height: 2.5rem;
    border: var(--border);
    border-radius: 2rem;
    font-size: var(--small-font);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#more:hover {
    color: var(--background);
    background: var(--font-white);
}

.white {
    color: white;
}

.card-img {
    width: 100%;
    height: 47%;
    position: relative;
    margin-bottom: 5rem;
}

.card-margin {
    margin-left: 2rem;
    position: relative;
    margin-right: 2rem;
}

.datum {
    font-size: var(--small-font);
    margin-bottom: 0.5rem;
}

.strich {
    border: var(--border);
    margin-top: 0.2rem;
}

#strich {
    margin-top: 0.1rem;
    border-color: var(--a-font);
}

#load {
    width: 100%;
    text-align: center;
    position: relative;
    cursor: pointer;
    margin-top: 4rem;
}

#load .load-strich {
    height: 2px;
    background-color: gray;
    top: 0.5rem;
    z-index: -1;
    width: 100%;
    position: absolute;
}

#load .load-text {
    z-index: 988;
    width: 100%;
    text-align: center;
    font-size: 0.98rem;
    text-transform: uppercase;
    position: relative;
}

#load .load-text span {
    width: fit-content;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    background-color: var(--background);
}

.load2 {
    opacity: 1;
    height: 0;
    overflow: hidden;
    z-index: -5;
    position: absolute;
}

/* ====================================
   News Slider Section
   ==================================== */
#vorschlag h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding: 0;
    letter-spacing: 1px;
}

#news-slider {
    margin-top: 0;
}

.post-slide {
    background: transparent;
    margin: 3rem;
    margin-top: 15px;
    margin-bottom: 0;
    position: relative;
    border: var(--border);
    height: 14rem;
    border-radius: 6px;
    padding-top: 0;
    box-shadow: 0 1px 22px -9px var(--shadow-blue);
    overflow: hidden;
    cursor: pointer;
}

.post-slide img {
    width: 100%;
    min-height: 100%;
    opacity: 0.62;
    position: absolute;
    z-index: -5;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

.post-slide:hover img {
    opacity: 1;
}

.post-slide .post-slide-text {
    background-color: var(--background);
    position: relative;
    z-index: 5;
    top: 0;
    color: var(--white-pure);
    font-size: 1.4rem;
    padding-left: 0.8rem;
    padding-right: 2rem;
    padding-top: 0.2rem;
    width: fit-content;
    max-height: 3.8rem;
    overflow: hidden;
    height: fit-content;
    border-bottom-right-radius: 15px;
}

/* ====================================
   Background Images
   ==================================== */
.behind {
    position: absolute;
    top: 180vh;
    height: 203rem;
    width: 100%;
    overflow: hidden;
    z-index: -1;
}

.behind-second {
    position: relative;
    height: calc(100% - 30%);
    top: 33%;
}

.behind img {
    height: 100%;
    position: absolute;
    z-index: -40;
    opacity: 1;
}

/* ====================================
   Leaflet Map (Index specific)
   ==================================== */
.leaflet-fullscreen {
    border: solid;
    height: 100vh;
    top: 0;
    position: fixed;
    overflow-x: visible;
    left: 0;
    width: 100%;
    z-index: 999999999999999999999999999999999999;
}

.leaflet-fullscreen .leaflet-interaction {
    width: 15%;
}

.leaflet-fullscreen .interaction-toggle {
    z-index: -5;
    opacity: 0;
}

.opacitylayer {
    background-color: var(--background);
    width: 20rem;
    right: -20.2rem;
}

.interaction-heading h5 {
    color: black;
    text-align: center;
    border-bottom: solid 0.8px;
    padding: 0.25rem;
}

.interaction-scroll .main li {
    border-bottom: solid 0.2px;
    padding: 0.6rem;
    cursor: pointer;
    position: relative;
}

.interaction-scroll .main {
    position: relative;
    width: 100%;
    top: 0;
    transition: 0.3s ease-in-out;
}

.interaction-scroll {
    overflow-y: scroll;
    height: 7rem;
    top: 2.4rem;
    position: absolute;
    width: 100%;
    height: calc(100% - 2.6rem);
}

.interaction-scroll::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px var(--shadow-medium);
    border-radius: 10px;
    background-color: var(--gray-scrollbar);
}

.interaction-scroll::-webkit-scrollbar {
    width: 5px;
    background-color: var(--gray-scrollbar);
}

.interaction-scroll::-webkit-scrollbar-thumb {
    border-radius: 0;
    box-shadow: inset 0 0 6px rgba(228, 79, 79, 0.3);
    background-color: gray;
}

.dropdown {
    position: absolute;
    width: 100%;
    top: 0;
    color: black;
    padding-top: -0.2rem;
    opacity: 0;
    z-index: -5;
}

.dropdown-active li d {
    margin-left: 2rem;
    position: relative;
    opacity: 1;
    font-size: 0.9rem;
}

.dropdown-active {
    padding-left: 0;
    top: 0;
    position: relative;
    z-index: 1;
    opacity: 1;
}

.main {
    margin-bottom: 0;
}

.leaflet {
    color: black;
}

.leaflet i {
    color: black;
}

.container {
    color: var(--font-white);
}

i {
    color: var(--font-white);
}

/* ====================================
   Responsive Media Queries
   ==================================== */

/* ====================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ==================================== */

/* Cards Grid Responsive */
@media screen and (max-width: 1190px) {
    .cards {
        gap: 15px;
    }
}

@media screen and (max-width: 800px) {
    .cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .img-slider img {
        left: -40%;
    }
}

/* Load Button Responsive */
@media screen and (max-width: 1190px) {
    .container-fluid {
        margin-top: 4rem;
    }
    .container-fluid img {
        opacity: 1;
    }
}
/* ====================================
   SLIDER RESPONSIVE - CLEAN REBUILD
   ==================================== */

/* Large Desktop (default - already in base styles) */
/* .slider-outer { left: 10rem; }
   .slider-inner h2/h3/button { margin-left: 1.5rem; } */

/* Desktop & Laptop (1200px - 1920px) */
@media screen and (max-width: 1200px) {
    .slider-outer {
        left: 8rem;
    }
}

/* Tablet Landscape (900px - 1200px) */
@media screen and (max-width: 900px) {
    .slider-outer {
        left: 5rem;
    }
    .slider-inner h1 {
        font-size: 140px;
    }
    .slider-inner h2 {
        font-size: 18px;
        margin-left: 1.8rem;
    }
    .slider-inner h3 {
        font-size: 16px;
        margin-left: 1.8rem;
    }
    .button2 {
        margin-left: 1.8rem;
        font-size: 0.7rem;
    }
}

/* Tablet Portrait (600px - 900px) */
@media screen and (max-width: 600px) {
    .slider-outer {
        left: 3rem;
    }
    .slider-inner h1 {
        font-size: 100px;
    }
    .slider-inner h2 {
        font-size: 16px;
        margin-left: 1.2rem;
    }
    .slider-inner h3 {
        font-size: 14px;
        margin-left: 1.2rem;
    }
    .button2 {
        margin-left: 1.2rem;
        font-size: 0.65rem;
        width: 10rem;
    }
}

/* Mobile (≤ 500px) */
@media screen and (max-width: 500px) {
    .slider-outer {
        left: 0.8rem;
        width: calc(100vw - 1.6rem);
    }
    .slider-inner {
        width: 100%;
    }
    .slider-inner h1 {
        font-size: 60px;
        margin-bottom: 0.5rem;
    }
    .slider-inner h2 {
        font-size: 14px;
        margin-left: 0;
        margin-bottom: 0.3rem;
    }
    .slider-inner h3 {
        font-size: 12px;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    .button2 {
        margin-left: 0;
        font-size: 0.6rem;
        width: 9rem;
        padding: 0.8rem 0;
    }
}

/* Small Mobile (≤ 400px) */
@media screen and (max-width: 400px) {
    .slider-outer {
        left: 0.8rem;
    }
    .slider-inner h1 {
        font-size: 50px;
    }
    .slider-inner h2 {
        font-size: 12px;
    }
    .slider-inner h3 {
        font-size: 11px;
    }
    .button2 {
        font-size: 0.55rem;
        width: 8rem;
    }
}

/* Extra Small Mobile (≤ 350px) */
@media screen and (max-width: 350px) {
    .slider-outer {
        left: 0.5rem;
    }
    .slider-inner h1 {
        font-size: 45px;
    }
    .slider-inner h2 {
        font-size: 11px;
    }
    .slider-inner h3 {
        font-size: 10px;
    }
    .button2 {
        font-size: 0.5rem;
        width: 7rem;
    }
}
