/*! 
  * Pure CSS Accordion
	* Raul Barrera 
	* https://codepen.io/raubaca/pen/PZzpVe
  */
	
XXX:root {
  --primary: #227093;
  --secondary: #ff5252;
  --background: #eee;
  --highlight: #ffda79;
  /* Theme color 
  --theme: var(--primary);*/
}
.accordion *,
.accordion *::before,
.accordion *::after {
  box-sizing: border-box;
}
.accordion body {
  display: grid;
  /* place-content: center; */
  grid-template-columns: repeat(auto-fit, min(100%, 30rem));
  min-height: 100vh;
  place-items: start;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  color: var(--color);
  background: var(--background);
}

/* Core styles/functionality */
.tab,
.acc-item {
  position: relative;
}
.tab input,
.acc-item input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content,
.acc-content {
  max-height: 0;
	padding-left: 2em;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content,
.acc-item input:checked ~ .acc-content {
  max-height: 100%;
}

/* Visual styles */
.accordion {
  color: var(--color);
  /* border: 2px solid; */
  /* border-radius: 0.5rem; */
  overflow: hidden;
}
/* accordion--radio hat nur andere farbe */

.tab__label,
.tab__close,
.acc-item-label,
.acc-item-close {
  display: flex;
  color: var(--color);
  background: var(--theme);
  cursor: pointer;
}
.tab__label,
.acc-item-label {
  justify-content: space-between;
  padding: 0.5rem;
}
.tab__label::after,
.acc-item-label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
	font-weight: 600;
  transform: rotate(90deg);
  transition: all 0.35s;
}
.tab input:checked + .tab__label::after,
.acc-item input:checked + .acc-item-label::after {
  transform: rotate(270deg);
}
.tab__content p,
.acc-content p {
  margin: 0;
  padding: 0.3rem;
}
.tab__close,
.acc-item-close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Arrow animation
.tab input:not(:checked) + .tab__label:hover::after,
.acc-item input:not(:checked) + .acc-item-label:hover::after {
  animation: bounce .5s infinite;
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}
 */