/**
 * Bouncy Content Tabs – Original-CSS von Osmo
 * Quelle: https://www.osmo.supply/resource/bouncy-content-tabs
 *
 * Unverändert übernommen. Die Farben und Schriften der Vorlage (Oliv #232419
 * auf Creme #f1efe2, Schrift "Haffer") werden in fw.css auf die Farben dieser
 * Seite gezogen – Aufbau, Maße und Bewegung bleiben wie in der Vorlage.
 * Die Regel .section-resource gehört zur Demoseite von Osmo und wird hier
 * nicht gebraucht; sie bleibt der Vollständigkeit halber stehen.
 */

.bouncy-tabs {
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: min(100%, 50em);
  display: flex;
}

.bouncy-tabs__nav {
  background-color: #23241914;
  border-radius: 100em;
  flex-flow: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: .4em;
  display: inline-flex;
  position: relative;
}

.bouncy-tabs__ghost {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background-color: #2324191a;
  border-radius: 100em;
  width: 2em;
  position: absolute;
  top: 0;
  left: 0;
}

.bouncy-tabs__indicator {
  z-index: 2;
  pointer-events: none;
  background-color: #232419;
  border-radius: 100em;
  width: 3em;
  position: absolute;
  top: 0;
  left: 0;
}

.bouncy-tabs__button {
  z-index: 3;
  color: #232419a6;
  appearance: none;
  background-color: #0000;
  border: none;
  border-radius: 100em;
  padding: .65em 1.25em;
  transition: color 0.3s ease;
  position: relative;
}

[data-bouncy-tabs-button][data-active] {
  color: #f1efe2;
}

.bouncy-tabs__collection {
  background-color: #f1efe2;
  border-radius: 1.5em;
  width: 100%;
  padding: 3em;
  overflow: hidden;
}

.bouncy-tabs__list {
  width: 100%;
  position: relative;
}

.bouncy-tabs__item {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

[data-bouncy-tabs-panel]:not([data-active]) {
  opacity: 0;
  visibility: hidden;
}

.bouncy-tabs__item-visual {
  aspect-ratio: 1;
  border-radius: 1em;
  width: 45%;
  overflow: hidden;
}

.bouncy-tabs__item-text {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  flex-flow: column;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.bouncy-tabs__heading {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Haffer, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1;
}

.bouncy-tabs__para {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.3;
}

.bouncy-tabs__cta {
  color: #f1efe2;
  background-color: #232419;
  border-radius: 100em;
  padding: .75em 1.5em;
  font-size: 1em;
  line-height: 1.5;
  text-decoration: none;
}

.bouncy-tabs__item-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 767px) {
  .section-resource {
    justify-content: center;
    align-items: flex-start;
    padding: 10em 2em 2em;
  }

  .bouncy-tabs__nav {
    border-radius: 1.25em;
  }

  .bouncy-tabs__collection {
    padding: 2em;
  }

  .bouncy-tabs__item {
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .bouncy-tabs__item-visual {
    width: 100%;
  }
}
