


.advanced-mode-active .basic-view {
    display: none;
}

.advanced-mode-active .advanced-view {
    display: block;
}

.bestell-container {
    display: flex;
    margin: 0;
    width: 100%;
}

.bestell-container > div:first-child {
    width: 150px;
    padding: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.bestell-container > div:last-child {
    flex-grow: 1;
}

.bestell-container input[type="submit"] {
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .bestell-container {
        flex-direction: row;
        margin: 10px 0;
    }

    .bestell-container > div:first-child {
        width: 120px;
        min-width: 120px;
    }

    /* Button-Container spezifische Anpassungen */
    .bestell-container:has(input[type="submit"]) {
        display: flex;
        flex-direction: row;
    }

    .bestell-container:has(input[type="submit"]) > div:first-child {
        width: 120px;
        min-width: 120px;
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        border-right: none;
        border-radius: 4px 0 0 4px;
    }

    .bestell-container:has(input[type="submit"]) > div:last-child {
        flex-grow: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-left: none;
        border-radius: 0 4px 4px 0;
        text-align: right;
    }

    .bestell-container input[type="submit"] {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    .bestell-container > div:first-child {
        width: 100px;
        min-width: 100px;
        font-size: 13px;
    }

    .bestell-container input[type="submit"] {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Allgemeine Styles für Container mit einzelnem div */
.bestell-container:has(input[type="checkbox"]) {
    display: flex;
    margin: 10px 0;
}

.bestell-container:has(input[type="checkbox"]) > div {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .bestell-container:has(input[type="checkbox"]) {
        margin: 10px 0;
    }

    .bestell-container:has(input[type="checkbox"]) > div {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
}

/* Sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    .bestell-container:has(input[type="checkbox"]) > div {
        font-size: 13px;
    }
}


/* Allgemeine Responsive Anpassungen */
@media screen and (max-width: 768px) {
    /* Vorherige mobile Styles bleiben bestehen */
    div[align="center"] img {
        width: 60% !important;
        margin: 15px 0;
    }

    .bestell-container {
        padding: 0 10px;
    }

    /* Tabellen-Anpassungen */
    .w3-table-all {
        font-size: 14px;
    }

    .w3-table-all td,
    .w3-table-all th {
        padding: 8px 4px;
    }

    /* Geschmacksrichtungen verbessern */
    .geschmack-label {
        display: inline-block;
        margin: 2px;
        padding: 4px 8px;
        font-size: 12px;
        background-color: #f0f0f0;
        border-radius: 3px;
        white-space: nowrap;
    }

    /* Tabellen-Layout für Mobile optimieren */
    .zutat-row td {
        vertical-align: top;
    }

    /* Erste Spalte (Checkbox) */
    .zutat-row td:first-child {
        width: 40px;
    }

    /* Name Spalte */
    .zutat-row td:nth-child(2) {
        min-width: 100px;
    }

    /* Eigenschaften Spalte */
    .zutat-row td:nth-child(3) {
        font-size: 12px;
    }

    /* Geschmacksrichtungen Spalte */
    .zutat-row td:nth-child(4) {
        font-size: 12px;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    div[align="center"] img {
        width: 80% !important;
    }

    .w3-table-all {
        font-size: 13px;
    }

    /* Tabellen-Layout für sehr kleine Bildschirme */
    .zutat-row td {
        padding: 6px 4px;
    }

    /* Geschmacksrichtungen-Container */
    td .geschmack-label {
        display: inline-block;
        margin: 1px;
        padding: 3px 6px;
        font-size: 11px;
    }

    /* Verbesserte Lesbarkeit der Eigenschaften */
    .zutat-row td:nth-child(3),
    .zutat-row td:nth-child(4) {
        word-break: break-word;
        max-width: 120px;
    }
}

/* Zusätzliche Verbesserungen für die Tabellenansicht */
.w3-table-all {
    table-layout: auto;
    width: 100%;
}

.zutat-row {
    width: 100%;
}


/* View Switch Styling */
.view-switch {
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.view-switch input[type="radio"] {
    display: none;
}

.bestell-container {
    display: grid;
    grid-template-columns: 25% 75% ;
}

.view-switch label {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-switch input[type="radio"]:checked + label {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Intensity Controls Styling */
.intensity-controls {
    margin: 20px 0;
    text-align: left;
}

.intensity-options {
    display: inline-flex;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 25px;
    gap: 10px;
}

.intensity-options input[type="radio"] {
    display: none;
}

.intensity-options label {
    padding: 10px 25px;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.intensity-options input[type="radio"]:checked + label {
    background: #4CAF50;
    color: white;
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
    .intensity-options {
        flex-direction: column;
        background: none;
        gap: 5px;
    }

    .intensity-options label {
        width: 100%;
        text-align: center;
    }
}

/* Basis-Styling für bessere mobile Ansicht */
.w3-container {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Geschmacksrichtungen-Bereich */
.geschmack-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Checkbox und Label-Styling */
.geschmack-checkbox {
    display: none;
}

.geschmack-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.geschmack-checkbox:checked + .geschmack-label {
    background: #f0f0f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsives Tabellen-Layout */
.w3-table-all {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .geschmack-filter {
        flex-direction: column;
        gap: 10px;
    }

    .geschmack-label {
        width: 100%;
        justify-content: center;
    }

    /* Horizontales Scrollen für Tabellen auf mobilen Geräten */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .w3-table-all {
        min-width: 600px;
    }
}

/* Verbesserte Sichtbarkeit der ausgewählten Zutaten */
.selected-ingredients {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selected-ingredients h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

/* Slider-Container Verbesserungen */
.slider-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.slider-group {
    display: grid;
    grid-template-columns: 200px 1fr 80px;
    gap: 15px;
    align-items: center;
}

@media screen and (max-width: 600px) {
    .slider-group {
        grid-template-columns: 1fr;
    }

    .slider-value {
        text-align: left;
    }
}

.remove-zutat:hover {
    color: darkred !important;
}

.intensity-group {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
}