@media only screen and (max-width: 767px) {

/* Stil für die Zeile mit dem nächstgelegenen Strike-Preis */
.closest-strike .slide-row {
    background-color: rgba(0, 122, 255, 0.1); /* Hier können Sie die Farbe und Transparenz anpassen */
}

/* Verbesserung der Slide-Zeilen */
.slide-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.slide-row .cell {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ccc;
    padding: 2px;
    box-sizing: border-box;
    font-size: 12px;
}

.slide-row .cell:last-child {
    border-right: none;
}

/* Spezifische Einstellungen für die einzelnen Zellen */
.delta-call,
.theta-call,
.vega-call,
.moneyness-call,
.price-call,
.price-put,
.moneyness-put,
.vega-put,
.theta-put,
.delta-put,
.strike,
.call-header,
.put-header,
.iv-header {
    flex-basis: var(--option-chain-column-width, 9.09%);
    max-width: var(--option-chain-column-width, 9.09%);
}

.strike {
    font-weight: bold;
}


/* Anpassung der Header-Zellen in der ersten Zeile */
.call-header,
.put-header {
    flex-basis: var(--option-chain-side-width, 45.45%);
    max-width: var(--option-chain-side-width, 45.45%);
    flex-grow: 3;
}

.iv-header {
    flex-basis: var(--option-chain-column-width, 9.09%);
    max-width: var(--option-chain-column-width, 9.09%);
    flex-grow: 1;
}

.header-row .cell {
    font-weight: bold;
    white-space: nowrap;
}

#verticalSwipersContainer {
    position: relative;
}

/* Überschriftenbereich */
.swiper-header {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none; /* Entfernt den unteren Rand, um die Verbindung zum Swiper nahtlos zu gestalten */
    border-top-left-radius: 5px; /* Fügen Sie die oberen abgerundeten Ecken hinzu */
    border-top-right-radius: 5px;
    margin-bottom: 0;
}



.header-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-row .cell {
    font-weight: bold;
}



/* Entfernen Sie die Positionsanpassungen */
.swiper-wrapper {
    position: relative;
    top: 0;
    transform: none;
}

/* Entfernen Sie die Flex-Eigenschaften aus den Headern der zweiten Zeile */
.header-row:nth-child(2) .cell {
    flex-basis: var(--option-chain-column-width, 9.09%);
    max-width: var(--option-chain-column-width, 9.09%);
    flex-grow: 1;
}


        .swiper-container {
/*            width: 100%;*/
/*            height: 30px;*/
            margin: 10px 0;
            border: 2px solid #ddd;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

.swiper-container.horizontal-swiper {
    height: 30px;
    width: 100%;
}


.vertical-swiper-container {
    height: 160px; /* Passen Sie die Höhe nach Bedarf an */
    border: 1px solid #ccc;
    margin-bottom: 10px;
    display: none;
    border-top-left-radius: 0; /* Entfernt die obere linke abgerundete Ecke */
    border-top-right-radius: 0; /* Entfernt die obere rechte abgerundete Ecke */
    border-bottom-left-radius: 5px; /* Behalten Sie die unteren abgerundeten Ecken bei */
    border-bottom-right-radius: 5px;
    margin-top: 0;
}

/* Dark Mode: Swiper Text Kontrast */
.dark-mode #modal-option-chain .swiper-slide {
    color: rgba(248, 250, 252, 0.86) !important;
}

.dark-mode #modal-option-chain .swiper-slide-active {
    color: #00a3ff !important;
}

.dark-mode #modal-option-chain .vertical-swiper-container {
    border-color: #94a3b8 !important;
}

.dark-mode #modal-option-chain .swiper-slide-active::before,
.dark-mode #modal-option-chain .swiper-slide-active::after {
    background-color: #00a3ff !important;
}

.dark-mode #modal-option-chain .swiper-header,
.dark-mode #modal-option-chain .swiper-container.horizontal-swiper {
    background-color: #3a3a3a !important;
    border-color: #94a3b8 !important;
}

.dark-mode #modal-option-chain .slide-row .cell {
    border-right-color: rgba(203, 213, 225, 0.35) !important;
}


        .vertical-swiper-container.active {
            display: block;
        }

        .swiper-slide {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            color: #333;
            position: relative;
        }

        .swiper-slide-active::before,
        .swiper-slide-active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background-color: #007aff;
        }

        .swiper-slide-active::before {
            top: 0;
        }

        .swiper-slide-active::after {
            bottom: 0;
        }

        .swiper-slide-active {
            color: #007aff;
            font-size: 12px;
        }

        .notification-circle {
            position: absolute;
            top: 3px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
            z-index: 20;
        }

        .notification-circle.long {
            background-color: green;
        }

        .notification-circle.short {
            background-color: red;
        }

        .notification-circle.call {
            left: 5px;
        }

        .notification-circle.put {
            right: 5px;
        }

        .status-circle {
            position: absolute;
            top: 50%;
            left: -15px;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: orange;
            z-index: 20;
        }

        .slide-text {
            position: relative;
            display: inline-block;
        }

/*ANPASSUNG FÜR MOBILE*/
    
        /* Anpassungen für #modal-option-chain */
        #modal-option-chain {
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            z-index: 20;
            transition: transform 0.3s ease-in-out;
            transform: translateY(0);
            /*Normalzustand: Modal vollständig sichtbar */
        }
        /* Minimierter Zustand: Nur modalBar sichtbar */

        #modal-option-chain.minimized {
            transform: translateY(calc(100% - 30px));/*Verschiebung nach unten */
        }
/*ANPASSUNG FÜR MOBILE*/



        #modalBar {
            height: 30px;
            background: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            border-top-right-radius: 10px;
            border-top-left-radius: 10px;
            cursor: pointer;
        }

        .modal-content-option-chain {
            background-color: #fefefe;
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;
            border: 1px solid #888;
            overflow: hidden;
            position: relative;
        }

.option-chain-settings-anchor {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 50;
}

.option-chain-settings-button {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(120, 120, 120, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
    line-height: 1;
    padding: 0;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.option-chain-settings-panel {
    position: absolute;
    top: 24px;
    right: -2px;
    min-width: 148px;
    padding: 10px 12px;
    border: 1px solid rgba(120, 120, 120, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    color: #222;
    font-size: 12px;
}

.option-chain-settings-section + .option-chain-settings-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(120, 120, 120, 0.18);
}

.option-chain-settings-heading {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.option-chain-settings-item {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 4px 0;
    cursor: pointer;
}

.dark-mode .option-chain-settings-button {
    background: rgba(58, 58, 58, 0.86);
    color: #d4d4d4;
    border-color: rgba(148, 163, 184, 0.45);
}

.dark-mode .option-chain-settings-panel {
    background: rgba(51, 51, 51, 0.97);
    color: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dark-mode .option-chain-settings-heading {
    color: #cbd5e1;
}

        .modal-grip {
            width: 50px;
            height: 5px;
            background-color: #aaa;
            border-radius: 10px;
            cursor: pointer;
        }


/* Neuer Wrapper für horizontalen Swiper und neuen Container */
.horizontal-swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Stil für den horizontalen Swiper bleibt unverändert */
.swiper-container.horizontal-swiper {
    flex-grow: 1;
    height: 30px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

/* Neuer Container neben dem Swiper */
#addDurationContainerSwiper {
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: inherit;
    outline: none;
    height: 30px;
    width: 30px;
    margin-left: 5px;
    font-size: 2.15em;
    line-height: 1;
    font-weight: 500;
    text-align: center;
    font-family: var(--app-font-family);
    color: #333;
}

/* Optionaler Hover-Effekt */
#addDurationContainerSwiper:hover {
    background-color: #f0f0f0;
}

.notification-modal {
    position: fixed;
    position: relative;
    width: 43px; /* Etwas breiter als die Buttons */
    padding: 8px;
    background-color: #f0f0f0; /* Gräulicher Hintergrund */
    border: 1px solid #ccc; /* Leichter Rahmen */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Weicher Schatten */
    border-radius: 5px; /* Abgerundete Ecken */
    z-index: 100;
    font-size: 0;
}

#addDurationContainerSwiper .add-duration-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
}

#addDurationContainerSwiper .add-duration-plus::before,
#addDurationContainerSwiper .add-duration-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #333;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

#addDurationContainerSwiper .add-duration-plus::before {
    width: 14px;
    height: 3px;
}

#addDurationContainerSwiper .add-duration-plus::after {
    width: 3px;
    height: 14px;
.notification-modal.left::after,
.notification-modal.right::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.notification-modal.left::after {
    top: 50%;
    right: -10px;
    border-width: 10px 0 10px 10px; /* Größe des Pfeils */
    border-color: transparent transparent transparent #f0f0f0; /* Pfeil nach rechts */
    transform: translateY(-50%);
}

.notification-modal.right::after {
    top: 50%;
    left: -10px;
    border-width: 10px 10px 10px 0; /* Größe des Pfeils */
    border-color: transparent #f0f0f0 transparent transparent; /* Pfeil nach links */
    transform: translateY(-50%);
}

.notification-modal button {
    width: 25px; /* Klein und quadratisch */
    height: 25px;
    padding: 0;
    margin-bottom: 3px;
    margin-top: 3px;
    border: 1px solid #ccc; /* Leichter Rahmen */
    border-radius: 5px; /* Leicht abgerundete Ecken */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Schatten für einen Button-Effekt */
    background-color: white;
    cursor: pointer;
}

.notification-modal button i {
    font-size: 15px; /* Größe des Icons anpassen */
    color: #333; /* Icon-Farbe */
}

.dark-mode .notification-modal button {
    background-color: #475569;
    border-color: #94a3b8;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.45);
}

.dark-mode .notification-modal button:hover {
    background-color: #64748b;
    border-color: #cbd5e1;
}

.dark-mode .notification-modal button i {
    color: #f8fafc;
}



/*===============================================================*/


/*Buttons*/
/* Container für Call/Put und Reset Buttons */
.option-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* Reduzierter vertikaler Abstand */
}

/* Links: Long Call und Short Call, Rechts: Long Put und Short Put */
.call-buttons,
.put-buttons {
    display: flex;
    gap: 8px; /* Reduzierter Abstand zwischen den Call-Buttons */
}

.long-button,
.short-button {
    padding: 3px 5px; /* Reduziertes Padding für kleinere Buttons */
    border: none;
    border-radius: 6px; /* Leicht abgerundete Ecken */
    color: white;
    cursor: pointer;
    font-size: 10px; /* Kleinere Schriftgröße */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.long-button {
    background-color: #28a745; /* Grün */
}

.short-button {
    background-color: #dc3545; /* Rot */
}

/* Hover-Effekte für Buttons */
.long-button:hover {
    background-color: #218838; /* Dunkleres Grün */
    transform: scale(1.05); /* Leichte Vergrößerung bei Hover */
}

.short-button:hover {
    background-color: #c82333; /* Dunkleres Rot */
    transform: scale(1.05); /* Leichte Vergrößerung bei Hover */
}


/* Mitte: Reset Button */
.reset-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reset-button {
    padding: 3px 5px; /* Einheitliches Padding */
    border: none;
    border-radius: 6px; /* Runde Ecken */
    background-color: #007bff; /* Blau */
    color: white;
    cursor: pointer;
    font-size: 10px; /* Etwas kleinere Schriftgröße */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.reset-button:hover {
    background-color: #0056b3; /* Dunkleres Blau bei Hover */
    transform: scale(1.05); /* Leichte Vergrößerung bei Hover */
}

}