
html, body{
    /* overflow: hidden; */
    /* max-width: 1159px;
    margin: auto; */
    /* max-width: 1145px; */
    
    p {
        margin-bottom: 0.5em;
    }

}



html{
    display: flex;
    justify-content: center;
}
body{
    margin: 0;
    max-width: 70em;
}
html:has(#loading:not([disabled])), body:has(#loading:not([disabled])) {
    height: 100%;
}

#loading[disabled] ~ #content {
    /* display: inline-block !important; */
    height: unset !important;
}

#logo-kts{
    content: url('./assets/img/KTS-Logo-RGB.svg');
    max-height: 4em;
}

@media (prefers-color-scheme: dark) {
    #logo-kts {
        content: url('./assets/img/KTS-Logo-RGB-weiss.png');
    }
}

.headline{
    display:flex;
    align-items: center;
    flex-wrap: wrap;
    /* align-items: flex-start; */
}

#spacer {
    flex: 1 1 0;
}

#title {
    flex: 0 0 auto;
    text-align: center;
    /* flex: 1 1 auto; */
    /* text-align: center; */
    /* order: 2; */
    /* margin: 10px 0 0 0; */
    margin: 0;
}

#logo-wrapper-right{
    display: flex;
    flex-direction:column;
    align-items: end;
    /* grid-column-start: 3; */
    /* margin-left:auto; */
    font-size:0.8em;
    flex: 1 1 0;
    justify-content: flex-end;
    /* margin-left:auto; */
    /* order:1; */

}

/* When title wraps, keep it centered and full width */
#title:only-child,
.headline #title {
    min-width: 246px; /* adjust to control break point */
}

.header{
    text-align: center;
}

@media (max-width: 362px) {
  #title {
    flex: 0 0 100%;
    order: 2;
    text-align: center;
  }
  #spacer {
    order: 3;
  }
  #logo-wrapper-rightv {
    order: 1;
  }
}

h1,h2,h3,p{
    margin: 0;
}
.introduction-text{
    margin: 10px;
}
.third-wrapper h3{
    text-align: center;
}
.inner-results-title{
    padding: 10px 0;
    padding-top: 0;
}
.minimal-toggle-wrapper h3{
    word-break: break-word;
}

.first-wrapper, .second-wrapper, .third-wrapper{
    display: flex;
    flex-direction: column;
    border-radius:15px;
    padding: 10px;
    gap: 10px;
}
.first-wrapper{
    background-color: #d9d9d9; /*var(--first-wrapper-color);*/
    margin: 10px;
}
.second-wrapper{
    background-color: var(--second-wrapper-color);
    border-radius: 10px;
}
.third-wrapper{
    border-radius: 5px;
    border: solid 2px #cbcbcb;
    background-color:#ffffff;
}

@media (prefers-color-scheme: dark) {

    .first-wrapper{
    background-color: var(--first-wrapper-color);
}
    .third-wrapper{
        background-color: var(--third-wrapper-color);
        border: none;
    }
}

.result-wrapper .inner-results{
    height: 100%;
    display: flex;
    flex-direction: column;
}
.result-wrapper .third-wrapper{
    background-color: var(--htw-green) !important;
    position: relative;
    overflow: hidden;
}
.result-wrapper .outer-alignment{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}
body:not(.minimalist-view) .result-wrapper .outer-alignment{
    display: flex;
    flex-direction: row;
}

.result-wrapper .image-results-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: stretch;
}
.result-wrapper .image-result{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    margin-left: 5%;
    margin-bottom: 5%;
}
.result-wrapper .image-result:nth-child(2n){
    flex-direction: row-reverse;
    margin-left: unset;
    margin-right: 5%;
}
.result-wrapper .image-result:nth-child(2n) h3{
    text-align: right !important;
}
.result-wrapper .image-result img{
    width: 4.5em;
}
.result-wrapper .image-result .text-wrapper{
    display: flex;
    flex-direction: column;
}
.result-wrapper .image-result .text-wrapper h3{
    text-align: left;
}
.result-wrapper .image-result .text-wrapper h3:first-of-type {
    font-size: 1.9em;
    color: var(--font-primary-color-reversed);
}
.flex-row{
    display: flex;
    gap: 10px;
}
.diagram-holder{
    flex-grow: 1;
}
.accept-button{
    text-align: right;
}
.scenario-button-holder, .scenario-button-result-holder{
    display: flex;
    gap: 10px;
}
.scenario-button-result-holder[disable="true"]{
    pointer-events: none;
    filter: grayscale(1);
    /* cursor: not-allowed; */
}
.lower-button-holder{
    display: flex;
    justify-content: space-between;
}

.diagram{
    height: 500px;
}
stacked-bar-diagram{
    width: 100%;
    display: block;
    height: 100%;
}
.result-wrapper {
    /* border-radius: 15px;
    margin-bottom: 10px; */
    position: relative;
    z-index: 100;
}
.labeled-step-slider-wrapper{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-around;
    flex-wrap: wrap;
}
.labeled-step-slider-wrapper .step-slider-component{
    /* max-width: 25em; */
    width: 100%;	
}
.labeled-step-slider-wrapper .step-slider-component .flex-wrapper{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.labeled-step-slider-wrapper .step-slider-component .flex-wrapper *:first-child{
    min-width: 20em;
}
@media screen and (max-width: 24em) {
    .labeled-step-slider-wrapper .step-slider-component .flex-wrapper *:first-child{
        min-width: unset;
        width: 100%;
    }
}
.minimal-toggle-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.minimalist-view .text-wrapper{
    display: none;
}
.minimalist-view .labeled-step-slider-wrapper .step-slider-component {
    width: unset;
    flex: 1;
    height: inherit !important;
}
.minimalist-view  .labeled-step-slider-wrapper .step-slider-component .flex-wrapper {
    justify-content: center;
}
.minimalist-view .third-wrapper{
    background-color: unset;
}
navigation-dots-buttons{
    display: none;
}
@media screen and (min-width: 45em) {
   .labeled-step-slider-wrapper .step-slider-component{ 
        height: inherit !important;
   }
}

body:not(.minimalist-view) .result-wrapper [navigation-step]{
    display: none;
}
body:not(.minimalist-view) .result-wrapper [navigation-step].active{
    display: flex;
    width: 50%;
    /* justify-content: center; */
}

body:not(.minimalist-view) .result-wrapper navigation-dots-buttons{
    display: block;
}

@media screen and (max-width: 45em) {
    .result-wrapper .outer-alignment{
        display: flex;
        flex-direction: column;
    }
    body:not(.minimalist-view) .result-wrapper .outer-alignment{
        flex-direction: column;
    }
    body:not(.minimalist-view) .result-wrapper [navigation-step].active{
        width: initial;
    }

    /* .text-wrapper{
        display: none;
    } */
    .labeled-step-slider-wrapper .step-slider-component {
        width: unset;
        height: unset;
    }
    .labeled-step-slider-wrapper .step-slider-component .flex-wrapper {
        justify-content: center;
        flex-direction: column;
    }
    .minimal-toggle-wrapper{
        flex-direction: column-reverse;
    }
    .minimal-toggle-wrapper h3{
        
    }
    body:not(.minimalist-view) [navigation-step]{
        display: none;
    }
    body:not(.minimalist-view) [navigation-step].active{
        display: flex;
        /* justify-content: center; */
    }
    body:not(.minimalist-view) navigation-dots-buttons{
        display: block;
    }
    body:not(.minimalist-view) .labeled-step-slider-wrapper{
        flex-direction: column;
    }
    .third-wrapper{
        background-color: unset;
    }
}
hr{
    border: 1px solid var(--border-color);
    margin: 0 0;
}