/* Reset / Grundstil */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-image: url('/src/img/background_flaschen.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

/* Layout */
header, main, footer {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Überschrift */
header h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #222;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #0056b3;
}

/* Formular */
form {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

form select,
form input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s;
}

form select:focus,
form input:focus {
  border-color: #007bff;
  outline: none;
}

form button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

form button:hover {
  background: #0056b3;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  border-radius: 10px;
  overflow: hidden;
}

table th,
table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

table th {
  background: #f8f9fa;
  font-weight: 600;
}

table tr:last-child td {
  border-bottom: none;
}

/* Meldungen */
.message {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
}

.message.success {
  background-color: #e6ffed;
  border: 1px solid #8de6b0;
  color: #207544;
}

.message.error {
  background-color: #ffe6e6;
  border: 1px solid #ff9999;
  color: #a00000;
}

.scroll-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
  padding: 0;
}

/* Optional: sticky head */
.scrollable-table thead th {
  position: sticky;
  top: 0;
  background-color: #f0f0f0;
  z-index: 1;
}

/* Tabelle ohne innere Rundung */
.scrollable-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.scrollable-table th,
.scrollable-table td {
  padding: 0.75rem;
  text-align: left;
}

/* Scrollbar Styling (nur für moderne Browser) */
.scroll-table-wrapper::-webkit-scrollbar {
  width: 10px;
}

.scroll-table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scroll-table-wrapper::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

/* Für Firefox */
.scroll-table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #bbb #f1f1f1;
}

/* --- Styles migrated from PHP files --- */
/* From public.php */

        .user-buttons-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1em;
            margin-top: 1em;
        }
        .anzahl-wrapper {
            display: flex;
            align-items: stretch;
            justify-content: center;
            gap: 1em;
            margin-bottom: 1em;
        }
        .anzahl-btn {
            font-size: 1.5em;
            padding: 0.5em 1em;
            border: none;
            border-radius: 10px;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            touch-action: manipulation;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .anzahl-btn:active {
            background-color: #0056b3;
        }
        input[type="number"] {
            text-align: center;
            font-size: 1.5em;
            width: 90px;
            height: 60px;
            appearance: textfield;
        }
select[name="flaschensorte"] {
            font-size: 1.5em;
            padding: 0.6em;
            width: 100%;
max-width: 500px;
}

/* Button zum Löschen eines Eintrags */
.delete-btn {
  background: none;
  border: none;
  color: #c00;
  font-weight: bold;
  cursor: pointer;
}

.delete-btn:hover {
  color: #a00;
}
    
