.frame-carousel {
    margin: 0;
    background:#0b2b4b;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 70svh;
    padding: 40px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frame-carousel-title {
    color: #ffffff;
    font-size: 2.4rem;
    margin: 0 0 10px 0;
    text-align: center;
    flex-shrink: 0;
}

.carousel-wrapper {
    width:100%;
    max-width: 1100px;
    overflow: hidden;
    padding: 10px 2vw;
    box-sizing: border-box;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    background-color: #0b2b4b;
    border-radius: 15px;
}

.carousel-sidescroll {
    display: flex;
    gap: 15px;
    width: max-content;
}

.carousel-panel {
    min-width: 310px;
    width: 310px;
    aspect-ratio: 2 / 3;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgb(248, 245, 245);
    background: linear-gradient(to bottom, #f6f4f400, #493a3a78);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.pure-card-link {
    display: flex;
    background-image: linear-gradient(rgba(255, 253, 253, 0), rgba(6, 0, 0, 0.979)), var(--card-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;    
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.section-c-panel-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.section-c-panel-content h3 {
    font-size: clamp(25px, 7.5vw, 36px);
    text-align: left;
    margin: 0 0 10px 0;
}

.section-c-panel-content span {
    font-size: clamp(18px, 4.8vw, 26px);
}


.section-c-nav-wrap {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}



@media screen and (orientation: landscape) and (max-height: 500px) {
    /* 1. Vertikalen Gesamtabstand drastisch reduzieren */
    .frame-carousel {
        min-height: auto;
        padding: 15px 10px;
    }

    /* 2. Titel verkleinern */
    .frame-carousel-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    /* 3. Karten-Größe an die geringe Höhe anpassen */
    .carousel-panel {
        min-width: 200px;
        width: 200px;
        /* aspect-ratio bleibt 2/3 (Höhe ca. 300px) */
    }

    /* 4. Text und Padding innerhalb der Karten verkleinern */
    .section-c-panel-content {
        padding: 15px;
    }

    .section-c-panel-content h3 {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .section-c-panel-content span {
        font-size: 1rem;
    }

    /* 5. Navigation buttons kompakter gestalten */
    .section-c-nav-wrap {
        margin-top: 5px;
        gap: 10px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }
}