body {
    background-color: #f4f4f4;
    color: #333;
    font-family: Arial, sans-serif;
}

.info-box {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.admin-grid, .dashboard-grid, .material-grid, .order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card, .dashboard-item, .material-card, .order-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.admin-card h2, .dashboard-item h3, .material-card h3, .order-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #272F7A;
}

.material-image {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: center;
}

.material-price, .price-up, .price-down, .price-current, .price-old, .price-saving {
    font-size: 1.1em;
    margin: 5px 0;
}

.price-current {
    font-weight: bold;
    color: green;
}

.price-old {
    color: red;
    text-decoration: line-through;
    margin-left: 5px;
}

.price-saving {
    font-weight: bold;
    color: gray;
}

.material-card label, .order-card label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.material-card input[type="number"],
.material-card input[type="text"],
.material-card select,
.material-card input[type="file"],
.order-card select,
.order-card input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button[type="submit"],
button.btn-secondary {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.2s;
}

button.btn-primary {
    background-color: #ffc107;
    color: #333;
}

button.btn-primary:hover {
    background-color: #e0a800;
}

button.btn-secondary {
    background-color: #2b3a67;
    color: white;
}

button.btn-secondary:hover {
    background-color: #1a2447;
}

button.btn-danger {
    background-color: #dc3545;
    color: white;
}

button.btn-danger:hover {
    background-color: #c82333;
}

.success-message {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Spezifische Anpassungen für die Preis- und Bilddarstellung */
.material-card h3, .order-card h3 {
    margin-top: 10px;
    font-size: 1.5em;
    color: #272F7A;
}

.material-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-pricing p {
    margin: 0;
}

.current-price {
    font-weight: bold;
    color: green;
}

.old-price {
    color: red;
    text-decoration: line-through;
}

.price-down {
    font-weight: bold;
    color: gray;
}

/* Grid-Layout für Materialbestellungen im Admin-Bereich */
.order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.order-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-card p {
    margin: 5px 0;
    font-size: 1em;
    color: #555;
}

.order-card label {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.order-card select, .order-card input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.order-card .btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.order-card .btn-primary {
    background-color: #ffc107;
    color: #333;
}

.order-card .btn-primary:hover {
    background-color: #e0a800;
}

.order-card .btn-danger {
    background-color: #dc3545;
    color: white;
}

.order-card .btn-danger:hover {
    background-color: #c82333;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Button-Gruppen für Aktionen */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-buttons button {
    flex: 1;
}

.action-buttons .btn-danger {
    background-color: #f44336;
}

.action-buttons .btn-danger:hover {
    background-color: #d32f2f;
}

/* Anpassung der Button-Breiten */
.order-card .btn,
.action-buttons button {
    width: auto;
    min-width: 100px;
}