/* 📍 Controls oben */

.table-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.controls-top {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.search-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 15px;
}

.search-feedback {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

#search-count {
  width: 100%;
  min-height: 2.4em;
  padding: 8px 12px;
  margin-bottom: 0.3em;
  background-color: #fafafa;
  border-radius: 5px;
  font-size: 1rem;
  font-variant: small-caps;
  color: #555;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid #dedede;
}

/* 📍 Filterfelder */

.show-entries label,
.era-filter label {
  font-weight: 500;
}

#entries,
#era-filter {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 30px;
  cursor: pointer;
  background-color: #f5f5f5;
  font-size: 0.875rem;
  margin-left: 6px;
  width: 140px;
}

/* 📍 Suchfeld */

#search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* 📍 Reset Button */

#reset-button {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0 12px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f5f5f5;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

#reset-button:hover {
  background: #e6e6e6;
}

#reset-button .icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  pointer-events: none;
  transition: transform 0.5s ease;
  margin-right: 0.4em;
}

#reset-button:hover .icon {
  transform: rotate(180deg);
}

/* 📍 Buttons allgemein */

button,
.reset-link {
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  font-size: 0.875rem;
}

button:hover,
.reset-link:hover {
  background: #e6e6e6;
}

/* 📍 Suchtreffer-Highlight */

.highlight {
  background-color: lightgreen;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 5px;
}

/* 📍 Tabelle */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  letter-spacing: 2px;
}

tr:nth-child(odd) {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

td a {
  color: #2a5a8a;
  text-decoration: none;
}

td a:hover {
  color: #404040;
  text-shadow: 0 0 8px #c2c2c2;
}

/* 📍 Pagination */

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 1.8rem 0;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.6s ease, opacity 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.arrow-btn:hover:not(:disabled) {
  background: #e6e6e6;
}

.arrow-btn:disabled {
  background: #f0f0f0;
  border-color: #ccc;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.arrow-btn svg {
  width: 20px;
  height: 20px;
  transform: scale(1.4);
  display: block;
  fill: #000;
  pointer-events: none;
}

.arrow-btn.prev svg {
  transform: scale(1.4) rotate(180deg);
}

.arrow-btn:disabled svg {
  fill: #999;
}

/* 📍 Screenreader-only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}






/* 📍 Responsive Anpassungen */

@media (max-width: 760px) {
  .era-filter {
    display: none;
  }

  .search-feedback {
    display: none;
  }

  .search-container {
    flex-direction: row;
    justify-content: flex-end;
    gap: 12px;
  }

  #search {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  #reset-button {
    flex-shrink: 0;
  }

}

