body {
    font-family: 'Poppins', Arial, sans-serif;
    /* Schriftart */
    /* Hintergrund: linearer Verlauf von Dunkelviolett zu Dunkelblau */
    background: linear-gradient(135deg, #4B0082, #00008B);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

input.quantityInput {
    width: 50%;
}

.category-container .btn {
    width: 5%;
    margin-bottom: 10px;
    color: #000;

}

.category-container h2 {
    width: 80%;
    margin-top: 0;
    margin-bottom: 10px;

    float: left;
}


li span {
    text-align: right;
}

.input-group {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.category-container.collapse .item-container {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-container.expand .item-container {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-container.collapse .item-container {
    max-height: 190px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.item-container {
    position: relative;
    overflow: hidden;
}

.category-container.expand .item-container {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-container.expand .item-container {
    max-height: 1000px;
}

.collapes {
    transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-container.expand .collapes {
    transform: rotate(90deg);
}



#shoppingList {
    transition: background-image 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 10px;
    background-repeat: no-repeat;
}

.category-container {
    display: inline-block;
    width: 100%;
}

.category-container.collapse .item-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.item-container {
    position: relative;
}

.category-container h2,
.item-container h6 {
    cursor: grab;
}

.drag-ghost {
    opacity: 0.5;
    background: #f0f0f0;
    border: 2px dashed #888;
}

.drag-ghost2 {
    opacity: 0.5;
    background: #f0f0f0;
    border: 2px dashed #888;
}

h2 {
    margin-bottom: 0px;
}


li#cat-Andere {
    display: flex;
    flex-direction: column;
}

h1 {
    color: #fff;
    /* Titeltext jetzt komplett weiß */
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#itemInput {
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 300px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

button.collapse-toggle {
    align-self: flex-start;
}

/* Standard-Button-Regeln für andere Buttons */
button {
    padding: 10px 15px;
    margin: 5px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

li span {
    color: #000;
}

/* Regenbogen-Button, der auch für Vorschlags-Buttons verwendet wird */
.rainbow-button {
    background: linear-gradient(270deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    background-size: 1400% 1400%;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: background 0.5s ease;
    animation: rainbow 8s ease infinite;
}

/* Hover-Zustand für den Regenbogen-Button */
.rainbow-button:hover {
    animation: rainbow-hover 4s ease infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rainbow-hover {
    0% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

li {
    background-color: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

li span {
    flex-grow: 1;
    padding-left: 10px;
    font-size: 16px;
}

.checked {
    text-decoration: line-through;
    color: #888;
}

li button {
    padding: 5px 10px;
    font-size: 12px;
    background-color: white;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

li button:hover {
    background-color: #de1a1a;
}

li button.checkButton:hover {
    background-color: #42a445;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: transparent;
    color: #777;
}

/* Übersetzungs-Button oben links – weniger auffällig */
#translateButton {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    opacity: 0.7;
    /* etwas transparenter */
    background: rgba(0, 0, 0, 0.3);
    /* dezent dunkler Hintergrund */
    color: #fff;
    font-size: 14px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
}

/* Alle Kinder in .input-group als Flexbox mit Zentrierung */
.input-group>* {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Gleiche Höhe für Textfeld und Button */
.input-group input[type="text"],
.input-group .rainbow-button {
    height: 44px;
    /* Passe die Zahl ggf. so an, dass es optisch perfekt sitzt */
}

/* Optional: gleiche Box-Sizing-Regel, damit Padding/Borders gleich gerechnet werden */
.input-group input[type="text"],
.input-group .rainbow-button {
    box-sizing: border-box;
}

/* Label „Stück“ neben der Mengen-Eingabe */
.unitLabel {
    margin-left: 8px;
    /* Abstand zur Zahl */
    font-size: 16px;
    /* passt zur Input-Größe */
    color: inherit;
    /* gleiche Farbe wie Text */
}

.unitLabel {
    margin-left: 8px;
    font-size: 16px;
}