/* Standard-Tabellen für alle Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #f2f6fc;
}

/* Standard-Button-Styling */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

/* Spezieller Button-Stil für "Löschen" oder "Warnung" */
.btn-danger {
    background: #d9534f;
    color: white;
}

.btn-danger:hover {
    background: #c9302c;
}
/* Mobile-Optimierung */
@media (max-width: 768px) {
    body {
        display: block;
        padding: 10px;
    }
    .dashboard-container {
        width: 100%;
        padding: 15px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-links {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 90%;
        text-align: center;
    }
}
/* Produktbilder in index.php */
.product-img {
    width: 100px; /* Standardgröße */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Blinken für Liefertermin-Warnung */
.blink-warning {
    color: red;
    font-weight: bold;
    font-size: 18px;
    animation: blink 5s linear infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Mobile-Optimierung */
@media (max-width: 768px) {
    body {
        display: block;
        padding: 10px;
    }
    .dashboard-container {
        width: 100%;
        padding: 15px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-links {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 90%;
        text-align: center;
    }
    .cart-container {
        width: 95%;
        padding: 15px;
    }
    .product-img {
        width: 80px; /* Kleinere Bilder auf mobilen Geräten */
    }
}
/* 📦 Benutzer-Bestellungen Styling */
.user-orders-container {
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto;
}

.user-orders-container h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* 📝 Tabelle Styling */
.user-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

.user-orders-table th, .user-orders-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.user-orders-table th {
    background: #007bff;
    color: white;
    text-align: center;
}

.user-orders-table td {
    background: #f9f9f9;
    text-align: center;
}

/* 🟢 Button Styling */
.btn {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.btn-danger {
    background: #d9534f;
}

.btn-danger:hover {
    background: #c9302c;
}

/* ❌ Kein PDF Styling */
.no-pdf {
    color: red;
    font-weight: bold;
}

/* 📱 Mobile Optimierung */
@media (max-width: 768px) {
    .user-orders-container {
        width: 100%;
        padding: 15px;
    }

    .user-orders-table th, .user-orders-table td {
        font-size: 14px;
        padding: 8px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* 📅 Liefertermin-Anzeige */
.delivery-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}



@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}




/* 🛒 Fixierter Warenkorb-Button */
.cart-button-container {
    position: sticky;
    top: 0;
    background: white;
    padding: 10px;
    z-index: 100;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* 🚀 Standardmäßig verstecken */
}


.cart-button-container a {
    display: inline-block;
    padding: 10px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cart-button-container a:hover {
    background: #218838;
}


/* 🛒 Warenkorb-Button */
.btn-cart {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: #218838;
}

/* 📦 Bestellungen-Button */
.btn-orders {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-orders:hover {
    background: #0056b3;
}

/* 🛒📦 Mobile-Optimierung */
@media (max-width: 600px) {
    .cart-orders-container {
        flex-direction: column;
        gap: 10px;
    }
}
/* 🏠 Überschrift mit Buttons nebeneinander */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}



/* 📌 Einheiten für Warenkorb & Bestellungen */
.cart-button-container, .orders-button-container {
    display: flex;
    align-items: center;
}



.btn-cart:hover {
    background: #218838;
}



.btn-orders:hover {
    background: #0056b3;
}

/* 🛒📦 Mobile-Optimierung */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-orders-container {
        width: 100%;
        justify-content: flex-start;
    }
}
/* 🛒📦 Buttons nebeneinander anordnen */
.cart-orders-container {
    display: flex;
    justify-content: center; /* Zentrieren */
    gap: 15px; /* Abstand zwischen den Buttons */
    margin-bottom: 15px;
}

/* 🛒 Warenkorb-Button */
.btn-cart {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: #218838;
}

/* 📦 Bestellungen-Button */
.btn-orders {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-orders:hover {
    background: #0056b3;
}
/* 🛒 Warenkorb-Button immer mit Inhalt */
.btn-cart {
    background: #28a745;
    min-width: 140px; /* Verhindert unsichtbaren Button */
    text-align: center;
}

.btn-cart:empty {
    display: none; /* Falls er leer sein sollte, wird er versteckt */
}


/* 🛒📦 Mobile-Optimierung */
@media (max-width: 600px) {
    .cart-orders-container {
        flex-direction: column;
        gap: 10px;
    }
}
.btn-logout {
    display: inline-block;
    padding: 10px 15px;
    background: #dc3545; /* Rotes Logout-Design */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}


/* 🟢 Markierung für bereits bestellte Artikel */
.added-to-cart {
    background-color: #c3f0c3 !important; /* Helles Grün */
    transition: background-color 0.5s ease-in-out;
}
.blink {
    animation: blink 1s infinite alternate;
}


/* Stil für die Buttons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.button-container a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* 💳 Zur Kasse Button */
.button-container .checkout-btn {
    background: #28a745; /* Grün */
}

.button-container .checkout-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

/* 🔄 Weiter einkaufen Button */
.button-container .continue-btn {
    background: #007bff; /* Blau */
}

.button-container .continue-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
}

.success-message button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.success-message button:hover {
    background-color: #218838;
}

.success-message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.success-message button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* Blinkt weiterhin */
.blink-warning {
    animation: blink 3s infinite;
}

/* NUR der Monatsname wird größer */
.monat-gross {
    font-size: 22px; /* Standardgröße */
    font-weight: bold;
    color: darkblue;
}

/* Blink-Animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* 📱 Für mobile Geräte (bis 600px Breite) */
@media screen and (max-width: 600px) {
    .monat-gross {
        font-size: 1.8em; /* Größer als normal auf kleinen Geräten */
    }
}

/* 📱 Für noch kleinere Geräte (bis 400px) */
@media screen and (max-width: 400px) {
    .monat-gross {
        font-size: 1.6em; /* Passt sich an sehr kleine Displays an */
    }
}

.success-message button:hover {
    background-color: #218838;
}
input[type="email"],
input[type="password"] {
    font-size: 16px; /* iOS zoomt automatisch, wenn die Schrift kleiner als 16px ist */
}
.login-container {
    transform: scale(1); /* Stellt sicher, dass kein unerwünschtes Zoomen passiert */
}
.session-expired {
    position: absolute; /* Oben fixieren */
    top: 10px; /* Abstand zum oberen Rand */
    left: 50%; /* In der Mitte starten */
    transform: translateX(-50%); /* Genau zentrieren */
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border-radius: 5px;
    max-width: 400px; /* Breite begrenzen */
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten für bessere Lesbarkeit */
}




