body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2em;
  gap: 15px;
  margin: 20px 0;
  padding-left: 140px; /* ← Abstand zur linken Seite */
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 15px;
}

.logo-link:hover {
  text-decoration: underline;
}

.spiel-titel {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.container {
  display: flex;
  gap: 2rem;
  padding: 20px;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
}

.sidebar label {
  display: block;
  margin-top: 1px;
  font-weight: bold;
}

.sidebar select,
.sidebar button {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 2px;
}

.sidebar select {
  font-size: 13px;
  padding: 3px 6px;
}

.content {
  flex-grow: 1;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

th {
  background-color: #eee;
}

table thead {
  background-color: #f0f0f0;
  border-radius: 8px;
}

table thead th {
  padding: 0.75rem;
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid #ccc;
  background-color: #f8f8f8;
}

.table-bordered {
  width: 100%;
  border-radius: 8px;
  overflow: hidden; /* damit die Rundung auch bei <tr> wirkt */
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.table-bordered th {
  background-color: #f8f8f8;
  width: 200px !important; /* optional: feste Breite für linke Spalte */
  text-align: left;
  border-radius: 8px;
}

.table-bordered td {
  padding: 0.75rem;
  vertical-align: top;
  border: 1px solid #ddd;
}

.table-edit {
  border: 1px solid #ddd;
  border-radius: 12px !important;
}

.table-edit input,
.table-edit select,
.table-edit textarea {
  font-size: 0.9rem !important;
  padding: 0.75rem !important;
  border-radius: 6px !important;
}

.table-edit th {
  width: 200px !important;
  background-color: #f8f8f8;
  text-align: left;
  border-radius: 8px;
}

.table-edit td {
  padding: 0.75rem;
}

.table-edit input,
.table-edit select,
.table-edit textarea {
  width: 98%;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 1rem;
}

.table-edit input[type="text"],
.table-edit input[type="number"],
.table-edit input[type="url"],
.table-edit select,
.table-edit textarea {
  width: 100%;
  box-sizing: border-box;
}

form {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

form label {
  font-weight: bold;
}

form input,
form select,
form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.detail-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.form-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.link-button,
.save-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.link-button:hover,
.save-button:hover {
  background-color: #005fa3;
  text-decoration: none;
}

.link-button:visited {
  color: #fff;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea {
  font-size: 0.9em; /* oder z.B. 12px */
}

.delete-button {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  background-color: #c0392b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.delete-button:hover {
  background-color: #e74c3c;
}

.suchfeld-button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: #0078D4; /* gleiche Farbe wie dein Button */
  color: white;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.suchfeld-button::placeholder {
  color: #e0e0e0;
}

.suchfeld-button:focus {
  outline: none;
  background-color: #005ea2;
}

.link-button {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.link-button:hover {
  background-color: #005fa3;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  max-height: 90vh;
  overflow-y: auto;
}

th a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
th i {
  font-size: 0.8em;
  color: #666;
}

.table-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.table-box {
  flex: 1;
  min-width: 300px;
}

.table-box table {
  width: 100%;
  border-collapse: collapse;
}

.table-box th,
.table-box td {
  padding: 6px 10px;
  border-bottom: 1px solid #ccc;
}

.chart-title {
  text-align: center;
  margin-bottom: 10px;
}

.maengel-hinweis {
  background-color: #fff3cd;
  border-left: 4px solid #f44336;
  padding: 6px;
  font-size: 0.9em;
}

.maengel-hinweis {
  width: 300px;
  max-width: 300px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.autor-details {
  margin-bottom: 20px;
}
.autor-bild {
  max-height: 200px;
  margin-bottom: 10px;
}
.autor-bio {
  font-style: italic;
  margin-bottom: 10px;
}
.autor-link a {
  color: #0077cc;
  text-decoration: none;
}
.autor-link a:hover {
  text-decoration: underline;
}

.unsichtbarer-link {
  color: inherit;
  text-decoration: none;
}

.unsichtbarer-link:hover {
  text-decoration: none;
}

.reset-button {
  background-color: #eee;
  color: #000;
  border: 1px solid #ccc;
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.reset-button:hover {
  background-color: #ddd;
}

.lagerort-bild img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
}

#scrollToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollToTop img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

#scrollToTop:hover img {
  transform: scale(1.2) rotate(-10deg);
}

.detail-beschreibung a {
  color: inherit;        /* übernimmt die normale Textfarbe */
  text-decoration: none; /* entfernt die Unterstreichung */
  cursor: pointer;       /* bleibt klickbar */
}

.detail-beschreibung a:hover {
  text-decoration: underline; /* optional: nur beim Hover sichtbar machen */
}

.material-liste {
  list-style-type: disc;
  margin-left: 0px;
}

.material-liste .sublist {
  list-style-type: circle;
  margin-left: 0px;
}

tr.suche-ich {
    background-color: #e8f0fe;   /* leichtes Grau */
}

.keine-ergebnisse {
    padding: 6px 4px;
    color: #777;
    font-style: italic;
}

.extern-icon {
    opacity: 0.6;
    margin-left: 4px;
    font-size: 0.9em;
}

.such-highlight {
    background-color: #fff3a3;
    padding: 1px 2px;
    border-radius: 3px;
}


