body {
  margin: 0;
  padding: 20px;
  font-family: sans-serif;
  margin-top: 200px; /* Höhe des fixierten Headers */
  padding-bottom: 80px; /* Höhe des Footers + etwas Luft */
  font-size: 1.5em;
}
}

h1 a {
    text-decoration: none;
    color: inherit;
}

h1 a:hover {
    color: #007bff;
    text-decoration: underline;
}

@keyframes fadeToWhite {
  0%   { background-color: #d4edda; color: #155724; }
  100% { background-color: #ffffff; color: #000000; }
}

.message {
  min-height: 40px;
  padding: 5px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 1s ease, color 1s ease;
}

.message.active {
  animation: fadeToWhite 5s ease forwards;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  
  /* Zentrierung mit Flexbox */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: fit-content;
  max-width: 90%;
}

.modal-actions {
display: flex;
  justify-content: space-between; /* verteilt die Buttons an den Rand */
  align-items: center;
   margin-top: 1rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select,
.modal-content button {
  font-size: 1.5em;
}

textarea {
  width: 100%;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    font-size: 2em;
  }
}

button.createListeBtn, button.createItemBtn {
  background-color: #28a745;
  font-weight: bold;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.5rem;
}

.oldWishlist {
  background-color: #007bff;
  text-decoration: none;
  font-weight: bold;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.5rem;
}

button.editItemBtn {
  background-color: #fff;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button.editItemBtn:hover {
  background-color: #007bff;
  color: #fff;
}

button.closeItemBtn, button.modal-delete-btn {
  background-color: #fff;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button.closeItemBtn:hover, button.modal-delete-btn:hover {
  background-color: #dc3545;
  color: #fff;
}

button.claim-btn {
  background-color: #fff;
  color: #ffc107;
  border: 2px solid #ffc107;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
button.claim-btn:hover {
  background-color: #ffc107;
  color: #fff;
}


.claimed-name {
  color: #2a7;
  font-weight: bold;
  white-space: nowrap;
}

.closeListe, .closeItem, .closeEditItem, .closeCloseItem, .closeClaimItem, .closeClaimModal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.confirmDeleteBtn, .modal-delete-btn {
  background-color: #d9534f;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.confirmBtn, .modal-ok-btn {
  background-color: #28a745;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.confirmBtn:hover, .cancelBtn:hover, .modal-ok-btn:hover, .confirmDeleteBtn:hover {
  animation: shakeY 0.3s;
}

.cancelBtn:hover, .modal-delete-btn:hover {
  animation: shakeX 0.3s;
}

@keyframes shakeX {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@keyframes shakeY {
  0% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.cancelBtn {
  background-color: #6c757d;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
}

.table-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* wichtig: linksbündig */
}

.table-header {
  margin-bottom: 8px;
}

.table-scroll {
  max-height: calc(20 * 40px);
  overflow-y: auto;
  overflow-x: auto;
  border: none;
  width: 100%;
}

#wishlistTable {
  border-collapse: collapse;
  width: fit-content; /* passt sich dem Inhalt an */
  min-width: 100%;    /* optional: verhindert zu schmale Darstellung */
}

#wishlistTable thead th,
#wishlistTable tbody td {
  border: 1px solid #ccc;
  padding: 8px;
}

#wishlistTable thead th {
  position: sticky;
  top: 0;
  background-color: #f4f4f4;
  z-index: 2;
}

.wishlistBox {
  display: flex;
  flex-direction: column; /* untereinander */
  align-items: center;     /* horizontal zentriert */
  justify-content: center; /* optional: vertikal zentriert, falls Höhe gesetzt */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wishlistBox img {
  max-width: 200px;
  margin-bottom: 12px;
}

.wishlistBox button {
  margin-top: 8px;
}

/* Hover-Effekt */
.wishlistBox:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.wishlistBox em {
  display: block;
  margin-bottom: 10px;
  color: #555;
}

.card-list {
  display: grid;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.add-card {
  background: #e6f9ec;
  border: 2px dashed #28a745;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
  width: 100%;
  min-width: 500px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.add-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.add-icon {
  font-size: 3rem;
  color: #28a745 !important;;
  fill: #28a745;
}

/* Einzelne Karte */
.wishlist-card {
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 100%;
  max-width: 500px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wishlist-card.claimed {
  background-color: #e6f9ec; /* sanftes Grün */
  border: 1px solid #28a745;
}

/* Hover-Effekt */
.wishlist-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: center; /* zentriert horizontal */
  align-items: center;
  font-weight: bold;        /* macht die Schrift fett */
  font-size: 2rem;        /* optional: etwas größer */
  padding: 0.5rem 0;
}

.card-footer {
  display: flex;
  justify-content: flex-end; /* alles nach rechts */
  align-items: center;
  gap: 1rem;               /* optional: Abstand zwischen Buttons */
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .card-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wishlist-card {
    margin: 0.5rem;
  }
}

.item-price,
.item-link,
.item-comment,
.item-claims {
  margin: 0.5rem 0;
}

.item-comment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.claim-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.claimed-name {
  font-weight: 500;
}

.tooltip-icon {
  margin-left: 4px;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: auto;         /* passt sich dem Inhalt an */
}

th, td {
  padding: 10px;
  text-align: center;
  white-space: nowrap; /* verhindert Zeilenumbruch */
}


td:nth-child(1), td:nth-child(4), td:nth-child(7) {
  text-align: left;
}

td:nth-child(2) {
  text-align: right;
}


#wishlistTable td:nth-child(4) {
  max-width: 250px;
  word-break: break-word;
  white-space: normal;
}

th[data-sort] {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

th[data-sort]::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
}

th.sort-asc::after {
  content: '▲';
}

th.sort-desc::after {
  content: '▼';
}

.autocomplete-box {
  position: absolute; /* oder 'fixed', je nach Bedarf */
  top: 100%;           /* direkt unter dem Input-Feld */
  left: 200px;         /* verschiebt die Box weiter nach rechts */
  z-index: 1000;       /* damit sie über anderen Elementen liegt */
  background: white;
  border: none;
  width: 300px;        /* oder was du brauchst */
}

.autocomplete-box div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-box div:hover {
  background-color: #f0f0f0;
}

.summary-row {
  background-color: #f0f0f0;
  font-weight: bold;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left img {
  height: 100px;
}

.header-center {
  flex: 1;
  text-align: center;
  min-width: 200px;
}

.header-center h3 {
  margin: 0;
  font-size: 2rem;
}

.header-center p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.header-right {
  min-width: 100px;
  text-align: right;
}

.logo img {
  height: 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navBtn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0.375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Neutrale Variante (z. B. für Begrüßung oder passive Links) */
.navBtn.default {
  background-color: #f0f0f0;
  color: #333;
  border-color: #ccc;
}

.navBtn.default:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

/* Primäre Aktion (Login/Register) */
.navBtn.primary {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.navBtn.primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Logout (dezente Variante) */
.navBtn.logout {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.navBtn.logout:hover {
  background-color: #5c636a;
  border-color: #545b62;
}

/* Fokus-Effekt für alle Varianten */
.navBtn:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.4);
}

/* Begrüßungstext */
.welcome {
  font-weight: bold;
  margin-right: 10px;
}

.tooltip-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tooltip-icon {
  cursor: help;
  color: #555;
  font-size: 0.9em;
}

.custom-tooltip {
  position: fixed;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 0.8em;
  max-width: 300px;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
  font-size: 0.9em;
}

.custom-tooltip strong {
  font-size: 1.1em;
  display: block;
  margin-left: auto;
}

.language-selector {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-left: auto;
}

.language-selector select {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0.375rem;
  text-decoration: none;
  border: 1px solid transparent;
  background-color: #0d6efd;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.language-selector select:hover {
  background-color: #0b5ed7; /* dunkleres Blau beim Hover */
}

.language-select {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  font-size: 0.7em;
  color: #666;
  border-top: 1px solid #ccc;
  background-color: white; /* wichtig, damit er nicht transparent ist */
  z-index: 1000;
  flex-wrap: wrap;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}
.footer a {
  color: #0077cc;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

#instructions {
  transition: all 0.3s ease;
  margin-top: 0.5em;
}

.btn-outline-primary {
  color: #0d6efd; /* Bootstrap Primary Blue */
  border: 1px solid #0d6efd;
  background-color: transparent;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

.btn-outline-primary:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}


.btn-outline-primary:active {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}
