/*
 * Allgemeine Styles für die Feuerwehr-Lager-App.
 * Die Gestaltung ist bewusst schlicht und touch‑freundlich gehalten.
 */

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
}

/* Die Hauptcontainer sind nun breiter, damit sie auf Tablets im Querformat gut aussehen */
.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 95%;
    margin-top: 1rem;
    text-align: left;
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #d32f2f; /* Feuerwehr‑Rot */
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    display: block;
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #b71c1c;
}

button.secondary {
    background-color: #757575;
}

button.secondary:hover {
    background-color: #5f5f5f;
}

.error {
    color: #d32f2f;
    margin-top: 0.5rem;
}

.success {
    color: green;
    margin-top: 0.5rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-card img {
    max-width: 80px;
    max-height: 80px;
    margin-right: 1rem;
    border-radius: 4px;
}

.product-details {
    flex-grow: 1;
    text-align: left;
}

.product-details h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
}

.product-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #555;
}

.product-actions {
    text-align: right;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

nav a {
    flex: 1;
    margin: 0 0.2rem;
    padding: 0.8rem;
    background-color: #1976d2;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #135a9c;
}

.hidden {
    display: none;
}

/* Plus/Minus Buttons für die Produktmenge (Tablet‑freundlich) */
.qty-btn {
    padding: 0.5rem 0.8rem;
    margin: 0 0.2rem;
    background-color: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
}

.qty-btn:hover {
    background-color: #135a9c;
}