* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f7f9fc;
    color: #333;
    padding-bottom: 50px;
}

.center-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- LOGIN --- */
.login-container {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 320px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container label {
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.login-container input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.login-container button:hover {
    background-color: #555;
}

.error-msg {
    color: #d9534f; /* Rot für den Fehler */
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* --- DASHBOARD --- */
.dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

/* --- NEUE KOPFLEISTE (ersetzt das alte schwebende Layout) --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Falls der Bildschirm extrem klein ist, rutschen sie untereinander */
    gap: 15px;
}

.logout-btn {
    text-decoration: none;
    background-color: #eee;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #ddd;
}

.hearts-display {
    background-color: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.großes-heading {
    font-size: 36px;
    margin-top: 10px; /* Der Abstand nach oben kann jetzt kleiner sein */
    margin-bottom: 40px;
    text-align: center;
}

.produkte-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.produkt-karte {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.produkt-karte h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.produkt-karte p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.action-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.action-btn:hover {
    background-color: #555;
}

/* --- VERSTECKTES BESTELLFELD --- */
.bestell-bereich {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bestell-bereich input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background-color: #218838;
}

/* --- POP-UP MODAL --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 300px;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.5;
}

.modal-content button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}


.produkt-bild {
    width: 100%;
    height: 180px; /* Höhe etwas vergrößert, damit das Bild besser wirkt */
    object-fit: contain; /* <-- Sorgt dafür, dass das Bild komplett sichtbar bleibt */
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: transparent; /* Entfernt den grauen Kasten im Hintergrund */
}

.preis-tag {
    font-size: 16px !important;
    font-weight: bold;
    color: #ff4757 !important;
    margin-bottom: 15px !important;
}

/* --- SOLD OUT OVERLAY --- */
.bild-container {
    position: relative;
    width: 100%;
}

.sold-out-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.9); /* Knalliges Rot, leicht transparent */
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    pointer-events: none; /* Damit man es nicht anklicken kann */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 2px;
}