/* Tabs Container */
.tablist {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

/* Tab-Buttons */
.tablist button {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 12px 24px;
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  top: 2px;
  border: 1px solid transparent;
  border-bottom: none;
}

/* Entferne Standard-Button-Styles */
.tablist button h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Hover-Zustand */
.tablist button:hover,
.tablist button:active {
  background-color: #e8e8e8;
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Aktiver/Selected-Tab - kombiniert mit Hover-Style */
.tablist button[aria-selected="true"] {
  background-color: #ffffff;
  color: #222;
  border-color: #e5e5e5;
  border-bottom-color: #ffffff;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Hover-Effekt für bereits aktiven Tab */
.tablist button[aria-selected="true"]:hover {
  background-color: #f8f8f8;
  border-color: #d8d8d8;
}

/* Entferne den blauen Indikator */
.tablist button[aria-selected="true"]::after {
  display: none;
}

/* Für bessere mobile Darstellung */
@media (max-width: 768px) {
  .tablist {
    flex-direction: column;
    border-bottom: none;
    border-left: 2px solid #e5e5e5;
    gap: 2px;
  }
  
  .tablist button {
    border-radius: 8px 0 0 8px;
    border: 1px solid transparent;
    border-right: none;
    top: 0;
    left: 2px;
    width: 100%;
    text-align: left;
  }
  
  .tablist button:hover,
  .tablist button:active {
    transform: translateX(-2px);
  }
  
  .tablist button[aria-selected="true"] {
    border-right-color: #ffffff;
    transform: translateX(-2px);
  }
  
  .tablist button[aria-selected="true"]:hover {
    transform: translateX(-2px);
    background-color: #f8f8f8;
  }
}