html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

body {
    background-color: #d6dee3;
    background-position: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

#logo2 {
    height: 60px;
    width: auto;
    left: 0;
    margin-right: 20px;
    margin-left: auto;
}

#logodev {
    height: 60px;
    width: auto;
    top: 20px;
    left: 20px;
    position: fixed;
}

/*----------------------------------------------------------------*/
.navfull {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    z-index: 10000;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    letter-spacing: 2px;
}

.navfull nav {
    display: flex;
    align-items: center;
}

.navfull .full-nav {
    color: #152c52;
    font-size: 1em;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    margin: 5px;
}

.navfull .full-nav:hover {
    background-color: #ffaf2f;
    color: black;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    position: relative;
}

.navfull {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navfull .full-nav {
    color: rgb(0, 0, 0);
    font-size: 1em;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    margin: 5px;
}

.navfull .full-nav:hover {
    background-color: #fff;
    color: #00796b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    position: relative;
}

.nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #285268;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1000;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    color: #004d40;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.nav-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu ul li {
    margin: 20px 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #006699;
    font-size: 1.2em;
}

.close-nav {
    background: none;
    border: none;
    font-size: 2em;
    color: #006699;
    cursor: pointer;
    align-self: flex-end;
    padding: 10px;
    margin: 10px;
}

.nav-menu.open {
    transform: translateX(0);
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    color: #004d40;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

ul li a {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
}

.buttondetails:hover {
    background-color: #004d40;
}

.configurator {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

/* Vorschau-Bereich */
.preview {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #d6dee3;
}

.preview img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Konfigurations-Optionen */
.config-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Standardgrauer Zustand für die Kategorie-Buttons */
.category-button.disabled {
    background-color: #f5f5f5;
    color: black;
    border: none;
}

/* Aktivierter Zustand für die Kategorie-Buttons */
.category-button {
    background-color: #004d40;
    color: white;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: left;
    transition: background-color 0.3s;
}

.category-button:hover:not(.disabled) {
    background-color: #ffaf2f;
}

/* Option-List für Farbauswahl in Zweierreihen */
.option-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    gap: 15px;
    /* Größerer Abstand zwischen den Zeilen */
}

/* Zeile für zwei Farbbilder nebeneinander */
.color-option {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Abstand zwischen den Bildern */
}

/* Angepasste Bildgröße für 600/400-Verhältnis */
.color-option img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option img:hover {
    transform: scale(1.05);
    border: 2px solid #004d40;
}

/* Markierung für ausgewähltes Bild */
.option-list img.selected {
    border: 3px solid #004d40;
    transform: scale(1.1);
}

/* Preis-Info-Box */
.price-info {
    background-color: #f5f5f5;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.price-info h3 {
    color: #285268;
    margin: 0;
    font-size: 1.2em;
}

.price-info p {
    font-size: 0.9em;
    color: #666;
}

/* Standardgrauer Zustand für den deaktivierten Button */
.add-to-cart.disabled {
    background-color: #f5f5f5;
    color: black;
    cursor: not-allowed;
    border: none;
}

/* Aktivierter Zustand für den Button */
.add-to-cart {
    background-color: #ffaf2f;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart:hover:not(.disabled) {
    background-color: #f9c877;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#cartLinkButton,
#shopLinkButton {
    background-color: #004d40;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#cartLinkButton:hover,
#shopLinkButton:hover {
    background-color: #ffaf2f;
}

/* Radio-Buttons unsichtbar machen */
input[type="radio"] {
    position: absolute;
    /* Positioniert das Element außerhalb des normalen Flusses */
    opacity: 0;
    /* Macht es unsichtbar */
    pointer-events: none;
    /* Verhindert ungewollte Interaktionen */
}

.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9800;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.help-button:hover {
    background: #e68900;
}

/* Pop-up Fenster */
.help-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    width: 250px;
    z-index: 100000;
}

.help-popup a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background 0.2s;
}

.help-popup a:hover {
    background: #f1f1f1;
}

.help-popup .close-btn {
    text-align: right;
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

@media (max-width: 768px) {
    .configurator {
        flex-direction: column;
        height: 100vh;
        /* Setzt die Höhe des Bildschirms für die mobile Ansicht */
    }

    .preview {
        flex: none;
        height: 55vh;
        /* Das Bild nimmt 60% der Bildschirmhöhe ein */
        max-height: 55vh;
        /* Begrenzung auf 60% der Höhe */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
    }

    .preview img {
        max-width: 100%;
        max-height: 50%;
        border-radius: 8px;
        object-fit: contain;
        /* Passt das Bild an den verfügbaren Platz an */
        z-index: 1;
    }

    .config-options {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 10px;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        height: 70vh;
        /* Konfigurationsbereich nimmt 50% ein */
        overflow-y: auto;
        /* Scrollen bei zu vielen Optionen */
        z-index: 100;
        overflow-y: auto;
    }

    .price-info {
        margin-top: 15px;
    }

    #devheadline,
    #logodev,
    .navToggle {
        z-index: 10000;
    }

    #mobileConfigurator {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #f8f9fa;
        border-top: 2px solid #285268;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        transform: translateY(calc(100% - 40px));
        /* Start: fast ausgeblendet */
        z-index: 1000;
    }

    .configurator-content {
        height: calc(100% - 40px);
        overflow-y: auto;
        display: none;
    }

    #mobileConfigurator.open .configurator-content {
        display: block;
    }

    .configurator-grip {
        background-color: #ccc;
        height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .grip-bar {
        width: 50px;
        height: 5px;
        background-color: #888;
        border-radius: 5px;
    }


}

@media (max-width: 480px) {
    body html {
        max-width: 480px;
        overflow-x: hidden;
    }

    .configurator {
        flex-direction: column;
        height: 100vh;
        /* Setzt die Höhe des Bildschirms für die mobile Ansicht */
    }

    .preview {
        flex: none;
        height: 55vh;
        /* Das Bild nimmt 60% der Bildschirmhöhe ein */
        max-height: 55vh;
        /* Begrenzung auf 60% der Höhe */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
    }

    .preview img {
        max-width: 100%;
        max-height: 50%;
        border-radius: 8px;
        object-fit: contain;
        /* Passt das Bild an den verfügbaren Platz an */
        z-index: 1;
    }

    .config-options {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 10px;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        height: 70vh;
        /* Konfigurationsbereich nimmt 50% ein */
        overflow-y: auto;
        /* Scrollen bei zu vielen Optionen */
        z-index: 100;
        overflow-y: auto;
    }

    .price-info {
        margin-top: 15px;
    }

    #devheadline,
    #logodev,
    .navToggle {
        z-index: 10000;
    }

    #mobileConfigurator {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #f8f9fa;
        border-top: 2px solid #285268;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        transform: translateY(calc(100% - 40px));
        /* Start: fast ausgeblendet */
        z-index: 1000;
    }

    .configurator-content {
        height: calc(100% - 40px);
        overflow-y: auto;
        display: none;
    }

    #mobileConfigurator.open .configurator-content {
        display: block;
    }

    .configurator-grip {
        background-color: #ccc;
        height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .grip-bar {
        width: 50px;
        height: 5px;
        background-color: #888;
        border-radius: 5px;
    }


}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .close-nav {
        display: none;
    }

    #devheadline {
        display: none;
    }

    #logodev {
        display: none;
    }
}

@media (max-width: 1023px) {
    .navfull {
        display: none;
    }

    #devheadline {
        display: flex;
        margin-top: 30px;
        text-align: center;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        color: #285268;
        z-index: 100;
        position: relative;
    }
}