/* ============================
   Grundlayout
============================ */
body {
  margin: 0;
  padding: 20px;
  font-family: Georgia, serif;
  background-color: #f8f8f8;
  color: #333;
}

header {
  background-color: #e0e0e0;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table-section {
  padding: 1rem;
  overflow-x: auto;
}

/* WICHTIG: kein border-collapse → verhindert fehlenden unteren Rahmen */
table {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
  vertical-align: middle;
}

th {
  background-color: #dedede;
}

/* Thumbnail */
.thumb {
  max-width: 60px;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}

/* ============================
   Formulare
============================ */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

/* ============================
   Suchformular
============================ */
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
}

.search-form input[type="text"] {
  flex: 1;
}

/* ============================
   Buttons
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background: #007bff;
  transition: background 0.2s;
}

.btn:hover { background: #0056b3; }
.btn.edit { background: #28a745; }
.btn.delete { background: #dc3545; }
.btn.export { background: #17a2b8; }
.btn.reset { background: #6c757d; }

.export-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ============================
   Mobile Optimierung
============================ */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
