/* Container */
#kassen-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px;
    font-family: Arial, sans-serif;
    user-select: none;
}

/* Totalanzeige */
#kassen-total {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #222;
}

/* Produkt-Grid */
.kassen-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Einzelprodukt */
.product {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 18px 10px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.1);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product:hover {
    background-color: #e0f7fa;
}

/* Icon */
.product .icon {
    font-size: 3.4rem;
    margin-bottom: 10px;
    line-height: 1;
}

/* Titel */
.product .title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    flex-grow: 1;
}

/* Preis */
.product .price {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 6px;
}

/* Anzahl */
.product .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00796b;
    min-height: 1.6em;
}

/* Buttons Container */
#kassen-app > div:last-child {
    margin-top: 25px;
    text-align: center;
}

/* Buttons allgemein */
button {
    background-color: #00796b;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 14px 28px;
    transition: background-color 0.3s ease;
    user-select: none;
    margin: 0 8px 12px 8px;
}

button:hover {
    background-color: #004d40;
}

button:active {
    background-color: #00251a;
}

/* QR-Code Container */
#qr-code {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Modal Styles - falls Modal benötigt wird (im JS inline, kann hier ergänzt werden) */
/* --- Layout-Container --- */
#kassen-app {
    padding: 1rem;
    font-family: sans-serif;
}

/* Gesamtpreis */
.total-price {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Produkt-Gitter */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Produktkarte */
.product-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-size: 1.4rem;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.product-item:hover {
    background-color: #f5f5f5;
}

/* Icon */
.product-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Titel */
.product-title {
    font-weight: bold;
}

/* Preis */
.product-price {
    color: #666;
    margin-bottom: 0.3rem;
}

/* Anzahl */
.product-count {
    font-weight: bold;
}

.product-item {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background-color: #e91e63;
    color: white;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 1.5rem;
    text-align: center;
}


/* Spendenfeld */
.donation-label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.donation-input {
    width: 100px;
    margin-bottom: 1rem;
}

/* Buttons */
.button-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #0073aa;
    color: white;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #005f8d;
}

/* Quittung */
#receipt-inner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#receipt-modal {
    display: none; /* per JS auf 'flex' gesetzt */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

#receipt-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ccc;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

#receipt-close:hover {
    background: #aaa;
}
