@media only screen and (min-width: 769px) {


.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Passt sich weiterhin der Breite des Inhalts an */
    gap: 5px; /*geändert von 10*/
    margin: 0 auto;
    width: fit-content; /* Passt sich dynamisch der Breite der inneren Container an */
    height: auto; /* Passt sich dynamisch der Höhe der inneren Container an */
}

.main-content {
    display: flex;
    height: auto;
    gap: 10px; /*geändert von 10*/
}

.left-section {
    width: 500px; /* Feste Breite */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-section {
    width: 200px; /* Feste Breite */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    
    
    
#candle-chart-container, 
#chart-container-00 {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: block;
    width: 500px; /* Feste Breite */
    height: 245px; /* Feste Höhe */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.right-section > div {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px; /* Feste Höhe */
    overflow: hidden;
}



.value-containers {
    display: flex;
    height: auto;
    gap: 10px; /*geändert von 10*/
}

.left-value-section {
    width: 500px; /* Feste Breite */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.right-value-section {
    width: 200px; /* Feste Breite */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.value-container {
    display: grid;
    gap: 0px;
    border: 1px solid #ccc;
    padding: 2px;
}

#value-positions-table {
    display: block;
    width: 500px; /* Volle Breite */
    height: 95px;
    overflow: hidden;
    margin-right: 5px;
}

#value-container-01 {
    grid-template-columns: repeat(7, 1fr); /* Sieben gleich große Spalten */
    width: 500px; /* Gleiche Breite wie #value-positions-table */
    min-height: 40px;
}

    
#value-positions-table svg {
    width: 100%;
    height: 100%;
    display: block; /* Entfernt unerwünschte Abstände */
}

/* Container 00 in der rechten Spalte, erste Zeile */
#value-container-00 {
    grid-template-columns: repeat(5, 1fr); /* 5 gleich große Spalten */
    width: 200px;
    min-height: 40px;
}

.right-value-section .right-slider-section {
    width: 200px;
    height: 95px;
    display: flex;
    flex-direction: column;
}

/* Items: wie gehabt */
.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 2px 2px;
}

.value-label {
    font-weight: bold;
    font-size: 0.72em;
    line-height: 1.1;
}

.value-data {
    margin-top: 1px;
    color: #555;
    font-size: 0.88em;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}


        .slider-main-container {
            display: flex;
            gap: 10px;
            margin: 0px;
            align-items: stretch;
        }

        .left-slider-section {
            width: 500px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .right-settings-section {
            width: 200px;
            display: flex;
            flex-direction: column;
            align-self: stretch;
            min-height: 0;
        }

        .persistent-settings-panel {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            gap: 4px;
            height: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            background-color: var(--ui-surface-color, #eeedf4);
            box-sizing: border-box;
            overflow-y: auto;
            min-height: 0;
        }

        .persistent-settings-panel .checkbox-item {
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 22px;
            flex: 0 0 auto;
        }

        .persistent-settings-panel .checkbox-item label {
            margin: 0;
            cursor: pointer;
        }

        .persistent-settings-panel .checkbox-icon {
            flex: 0 0 24px;
        }

        .slider-main-container .right-slider-section {
            display: none;
        }

        .option-containers {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        .slider-container {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 0;
            background-color: #f9f9f9;
        }

        .slider-subcontainer {
            width: 100%;
        }

        .slider-subcontainer label {
            display: block;
            margin-bottom: 5px;
        }

        .slider-subcontainer input {
            width: 100%;
        }

        #compare-choice-container {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 0;
            overflow: hidden;
            align-items: center;
            height: 34px;
            margin-bottom: 0;
        }

        #display-option-container {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 0;
            overflow: hidden;
            align-items: center;
            height: 34px;
            margin-bottom: 0;
        }

        #leg-display-container {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 0;
            overflow: hidden;
            align-items: center;
            height: 34px;
            margin-bottom: 0;
        }

        #display-option-container-00 {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 0;
            overflow: hidden;
            align-items: center;
            height: 34px;
            margin-bottom: 0;
        }

        #select-option-button {
            display: flex;
            align-items: center;
            align-content: space-around;
            width: 200px;
            height: 30px;
            border: 1px solid #ccc;
            border-radius: 0;
            background-color: #f9f9f9;
            cursor: pointer;
        }

        .compare-option,
        .display-option,
        .slide-option {
            flex-grow: 1;
            text-align: center;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        .compare-option.selected,
        .display-option.selected,
        .slide-option.selected {
            background-color: lightgrey;
        }

        .leg-option.overlay-on {
            background-color: lightgrey;
        }

        .leg-option.solo-selected {
            font-weight: 600;
        }

        .leg-option {
            flex-direction: column;
            gap: 1px;
            line-height: 1;
            padding: 1px 3px;
            box-sizing: border-box;
        }

        .leg-option-label {
            display: block;
            max-width: 100%;
            font-size: 1em;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .leg-option-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 12px;
            padding: 0 3px;
            border-radius: 999px;
            font-size: 0.72em;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: #fff;
            text-transform: uppercase;
        }

        .leg-option-pill.long-pill {
            background-color: #28a745;
        }

        .leg-option-pill.short-pill {
            background-color: #dc3545;
        }

        .slide-option i {
            font-size: 1.2em;
        }


/*SCREENSHOT SCREENSHOT SCREENSHOT SCREENSHOT SCREENSHOT SCREENSHOT */
/*PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN*/

.modal-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 15;
    top: 0;
    left: 0;
    visibility: hidden;
}

.modal-content-pin {
    width: max-content;
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Horizontale Zentrierung */
    justify-content: center;  /* Vertikale Zentrierung */
    padding: 5px;             /* Einheit hinzugefügt */
    gap: 5px;                /* Abstände zwischen den Flex-Items */
    margin: 0px;              /* Keine äußeren Abstände */
    box-sizing: border-box;   /* Inklusive Padding und Border in der Gesamtgröße */
}

#screenshot-big-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}



/* Leichter Rahmen, grauer Hintergrund und etwas Platz nach außen */
#chart-container-00-pin,
#candle-chart-container-pin {
    width: 390px;   /* Feste Breite */
    height: 290px;  /* Feste Höhe */
    background-color: #f0f0f0; /* Grauer Hintergrund */
    border: none;
    box-sizing: border-box;
}

#chart-container-00-pin-clean {
    width: 390px;
    height: 130px;
    background-color: #f0f0f0;
    border: none;
    box-sizing: border-box;
}

#chart-container-rotpl-pin {
    width: 390px;
    height: 130px;
    background-color: #f0f0f0;
    border: none;
    box-sizing: border-box;
}



}
