.objekt-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.objekt-tabs__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--content-width);
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.objekt-tabs__list::-webkit-scrollbar { display: none; }
.objekt-tabs__link {
  display: inline-block;
  white-space: nowrap;
  padding: 0.9rem 0.9rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-stone);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast) var(--ease-out-expo);
}
.objekt-tabs__link:hover { color: var(--color-forest); background: var(--color-forest-pale); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.objekt-tabs__link.is-active { color: var(--color-forest); font-weight: 700; border-bottom-color: var(--color-terracotta-dark); background: var(--color-forest-pale); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* On small screens the tabs wrap onto multiple rows instead of running off
   to the right in a horizontal scroller. Also drop the sticky behaviour so a
   wrapped, taller bar doesn't eat the mobile viewport. */
@media (max-width: 760px) {
  .objekt-tabs {
    position: static;
    top: auto !important;
  }
  .objekt-tabs__list {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.25rem 0.4rem;
    padding: 0.35rem clamp(1rem, 4vw, 1.5rem);
  }
  .objekt-tabs__link {
    white-space: normal;
    padding: 0.55rem 0.7rem;
    line-height: 1.25;
  }
}
