body {
    font-family: "Arial", sans-serif;
    background-color: #262626;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.sub-header {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #40444b;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 80px;
    transition: transform .2s;
}

button.euro-given {
    background-color: #27ae60;
    /* Farbe für die Euro-Given-Buttons im Dark Mode */
}

button:hover {
    background-color: #5d6168;
    transform: scale(0.9);
}

.summary-container {
    background-color: #40444b;
    border: 5px solid #313338;
    border-radius: 5px;
    padding: 20px;
    color: white;
    bottom: 0;
    margin-right: 5vw;
    margin-left: 0vw;
    margin-bottom: 1vh;
    margin-top: 3vh;
    position: fixed;
    bottom: 0;
}

#nachricht {
    font-size: 16px;
    font-weight: bold;
}

#preis2 {
    font-size: 18px;
    margin-top: 5px;
}

.reset-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: transform .2s;
    width: 32%;
    margin: 0 auto;
    display: inline;
    font-size: 11px;
    align-items: center;
}

.reset-btn:hover {
    background-color: #c0392b;
    transform: scale(1);
}

.kasse-popup-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.mengenAuswahlPopup-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.mengenAuswahlPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #40444b;
    /* Dark Mode Hintergrundfarbe des Popups */
    padding: 20px;
    border: 2px solid #313338;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.kasse-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #40444b;
    /* Dark Mode Hintergrundfarbe des Popups */
    padding: 20px;
    border: 2px solid #313338;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #fff;
    /* Farbe des Close-Buttons im Dark Mode */
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    /* Farbe der Labels im Dark Mode */
}

.input-group input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #40444b;
    /* Dark Mode Hintergrundfarbe des Input-Feldes */
    color: #fff;
    /* Farbe des Textes im Input-Feld im Dark Mode */
}

#rueckgeld-ergebnis {
    margin-top: 15px;
}

#euro-given {
    background-color: #27ae60;
    /* Farbe für die Euro-Given-Buttons im Dark Mode */
    transform: scale(1.1);
    /* Hervorhebung beim Hover-Effekt */
}

/* White Mode Styles */
body.white-mode {
    background-color: #f5f5f5;
    color: #222;
    transition: background-color 0.5s, color 0.5s;
}

.white-mode .container,
.white-mode .summary-container,
.white-mode .kasse-popup,
.white-mode .mengenAuswahlPopup,
.white-mode #einstellungen-popup {
    background-color: #fff !important;
    color: #222 !important;
    border-color: #e0e0e0 !important;
    transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}

.white-mode .items-container button,
.white-mode button,
.white-mode .reset-btn {
    background-color: #e0e0e0 !important;
    color: #222 !important;
    border: none;
    transition: background-color 0.5s, color 0.5s;
}

.white-mode button.euro-given,
.white-mode #euro-given {
    background-color: #b6e7c9 !important;
    color: #222 !important;
}

.white-mode button:hover,
.white-mode .reset-btn:hover {
    background-color: #d1d1d1 !important;
    transform: scale(1.05);
}

.white-mode .close-btn {
    color: #222 !important;
}

.white-mode .input-group input {
    background-color: #fff !important;
    color: #222 !important;
    border: 1px solid #ccc;
    transition: background-color 0.5s, color 0.5s;
}

.white-mode .kasse-popup-bg,
.white-mode .mengenAuswahlPopup-bg {
    background-color: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(5px);
    transition: background-color 0.5s;
}

/* Animation für Mode-Wechsel */
body,
.container,
summary-container,
kasse-popup,
mengenAuswahlPopup,
#einstellungen-popup,
.items-container button,
button,
.reset-btn {
    transition: background-color 0.5s, color 0.5s, border-color 0.5s, transform 0.3s;
}