/* =====================================
   WRAPPER
===================================== */

.cst-tabs {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* =====================================
   LEFT NAVIGATION
===================================== */

.cst-tabs-nav{
    box-sizing: border-box;
    color: rgb(51, 51, 51);
    column-gap: 10px;
    display: flex;
    flex-basis: 325px;
    flex-direction: column;
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-family: "Outfit";
    font-size: 20px;
    font-weight: 600;
    max-height: 600px;
    height:100%;
    justify-content: flex-start;
    line-height: 20px;
    overflow-x: visible;
    row-gap: 10px;
    scrollbar-width: none;
    text-align: start;
    -webkit-text-size-adjust: 100%;
    unicode-bidi: isolate;
    max-width: 325px;
    width:100%;
}

.cst-tab-btn {
    position: relative;
    font-family:Outfit, sans-serif;    
    text-align: left;
    padding: 15px 35px;
    border-radius: 0;
    font-weight: 700;
    font-size: 20px;
    border: none;
    cursor: pointer;
    background: #e9ebf0;
    color: #27347b;
    transition: all 0.25s ease;
white-space: normal;   /* erlaubt Zeilenumbruch */

    text-align:left;
}
.cst-tab-panel{
    height:100%;
}
.mobile-icon{
    display:none;
}
/* Hover */
.cst-tab-btn:hover {
    background: #2f3d8f;
    color: #ffffff;
}

/* Active */
.cst-tab-btn.active {
    background: #2f3d8f;
    color: #ffffff;
}

/* Orange Arrow Indicator */
.cst-tab-btn.active::after {
    content: "";
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: url('https://www.boi.at/wp-content/uploads/2025/03/right.svg') no-repeat center center;
    background-size: 60%; /* optional, skaliert das SVG im Kreis */
}

.cst-tab-btn:hover::after,
.cst-tab-btn.active::after {
    opacity: 1;
}

/* =====================================
   CONTENT AREA
===================================== */
.cst-tabs-content{
    height: 100%;
}

.cst-tab-panel {
    display: none;
}

.columns-1.active {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
        height:100%;

}

.columns-2.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
        height:100%;

}
.columns-3.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
        height:100%;

}

/* =====================================
   CARD STYLE
===================================== */

.cst-col {
    background: #f4f4f6;
    padding: 20px;
    border-radius: 0px;
    min-height: 400px;
    position: relative;
}

/* Optional Orange Bottom Border für erste Spalte */
.cst-col:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #f39200;
}

/* =====================================
   TYPO
===================================== */

.cst-col h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #27347b;
    font-family:dm-sans;
}
.cst-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #27347b;
    font-family:dm-sans;
}

.cst-col p {
    line-height: 30px;
    color: #27347b;
    font-size:18px;
    font-weight: 500;
    font-family:dm-sans;

}


/* =====================================
   TABLET
===================================== */
@media (min-width: 768px) and (max-width:1024px) {
.cst-col {
    background: #f4f4f6;
    padding: 14px;
    border-radius: 0px;
    min-height: 400px;
    position: relative;
    width:100%;
}
.cst-tabs-nav{
    max-width:250px;
    padding:5px;
    font-size: 18px;
    line-height:20px;
}
.cst-col p {
    line-height: 20px;
    color: #27347b;
    font-size: 16px;
    font-weight: 500;
    font-family: dm-sans;
}
.cst-tabs-content{
    margin-left:-90px;
}
.cst-tab-btn{
    line-height: 22px;
    padding: 12px 15px;
}
.cst-col h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #27347b;
    font-family: dm-sans;
}


}
/* =====================================
   MOBILE
===================================== */

@media (max-width: 767px) {
.cst-tabs-nav{
max-height: 580px;
        height: 100%;
        width: 100%;
        max-width: 410px;
}
    .cst-tabs {
        grid-template-columns: 1fr;
    }

    .cst-tab-panel.active {
        grid-template-columns: 1fr;
    }

    .cst-tab-btn.active::after {
        display: none;
    }
    .mobile-icon{
        display:flex;
    }

       .mobile-icon img{
        transform: rotate(90deg);
    width: 40px;
    margin-left: auto;
    margin-right: auto;
       }
       .cst-tabs {
        gap:20px;
       }
       .cst-col{
          background: #f4f4f6;
        padding: 12px;
        border-radius: 0px;
        position: relative;
        max-height: 250px;
        height: 100%;
        margin-bottom: 12px;
    }
       }


.cst-accordion-content {
    display: none;
    margin-bottom: 10px;
}
.cst-accordion-content.active {
    display: block;
    max-width: 390px;
}
.cst-accordion-btn.active {
    font-weight: bold;
}

.cst-accordion-item{
    max-width: 410px;

}
.cst-accordion-btn{
    width:100%;
    position: relative;
    font-family: Outfit, sans-serif;
    text-align: left;
    padding: 15px 35px;
    border-radius: 0;
    font-weight: 700;
    font-size: 20px;
    border: none;
    cursor: pointer;
    background: #e9ebf0;
    color: #27347b;
    transition: all 0.25s ease;
    white-space: normal;
    text-align: left;
    margin-bottom:8px;
}
.cst-accordion-btn:hover{
        background-color: #27347b;
        color:white;
}
.cst-accordion-btn:focus{
        background-color: #27347b;
        color:white;
}
.cst-accordion-btn:active{
        background-color: #27347b;
        color:white;
}