/* ------------------------------------------------------------------------------ */
/* ****************************************************************************** */
/* --------- (C) Copyright 2023/2024 by machtWeb | Reinhard Lange --------------- */
/* ---------------------- machtWeb.de | relaXits@machtWeb.de -------------------- */
/* ------------------------------------------------------------------------------ */
/* update	->													                            6.00/00 - 01-11-23
/* layout	-> impressum / datenschutz							                                */
/* file 	-> design/accordion.css												                          */
/* ------------------------------------------------------------------------------ */
/* COUNTERUP */
/* use in   -> impressum / datenschutz / bewerbung */
/* link     -> https://codepen.io/giana/pen/OrpdLK */
/* update   -> 28-02-2019 */
/* ------------------------------------------------------------------------------ */
/* ACCORDION and COUNTER RESET */
.accordion {
  width:var(--set-acc-width);
  margin:var(--set-acc-margin);
  font-family:var(--font-body); /* 'MainFont'; */
  counter-reset:my-counter;
}
.accordion details  {counter-increment:my-counter;}
.details-wrapper    {position:relative;}

.details-wrapper:before {
  position: absolute;
  right:var(--count-pos-right);
  bottom:var(--count-pos-bottom);
  content:counter(my-counter);
  font-family:var(--font-count);
  font-size:var(--count-size);
  font-weight:100;
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke:var(--count-width);
  -webkit-font-smoothing:antialiased;
  color:var(--count-color);
  opacity:1;
  z-index:999;
}

/* ------------------------------------------------------------------------------ */
/* RESET                                                       6.00/00 - 10-09-23 */

/* Please wrap your collapsible content in a single element or so help me - must add a transition or it breaks because that's the whole purpose of this
  Only one transition-duration works (see explanation on line #141 in JS)  you can add more to an inner wrapper (.details-styling) */
.collapse-init summary + * {transition:all 0.25s ease-in-out;overflow:hidden;}

/* closed state. Any CSS transitions work here - the JS has a height calculation to make sliding opened/closed easier, but it's not necessary
  Remove the height prop for a simple toggle on/off (after all that work I did for you?) */
.collapse-init :not(.panel-active) summary + * {
  height:0;
  opacity:0;
  transform:scale(0.9);
  transform-origin:bottom center;
}

.collapse-init summary {list-style:none;}
.collapse-init summary::-webkit-details-marker {display:none;}
.collapse-init summary::before {display:none;}
.collapse-init summary {cursor:pointer;}

/* this element exists so .details-wrapper has no extra margin/padding that can screw with the smooth height collapse - you can style .details-wrapper decoratively but 
  avoid anything that modifies the box and add it to .details-styling instead - otherwise, this element is totally optional. Remove if you hate divitis */
.details-styling {
  padding:.5em 1em;
  /*max-width:100%;*/
}

.details-styling p {max-width:100%;font-size:1.02rem;}


/* SWITCH - position and style */
.accordion-switch {
    margin: 1em 0 0 0;
    padding: 0; 
    border: 0px solid red;
}
[type=checkbox] {
  position:absolute;
  width:0;
  height:0;
  opacity:0;
}
[type=checkbox] + label {
  display:block;
  margin:0;
  padding: 0.6em 1em;
  border-left: 6px solid var(--color-primary);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 100;
  text-align: left;
  background: #f2f2f2;
  transition:.1s;
}
[type=checkbox] + label::before {
  content:'';
  display:inline-block;
  width:1.4ch;
  height:1.4ch;
  margin-right:.75ch;
  border: 1px solid;
  border-radius: 2px;
  color: var(--color-primary);
  transition:.1s;
  vertical-align:baseline;
}
[type=checkbox]:focus + label {
  outline: 1px solid var(--color-primary);
}
[type=checkbox]:checked + label::before {
  background:currentColor;
  box-shadow:inset 0 0 0 2px #fff;
}


details {
  background: #fff;
  border: 1px solid #f2f2f2;
  border-bottom: 0;
  list-style: none;
}
details:first-child {
  border-radius: 6px 6px 0 0;
}
details:last-child {
  border-bottom: 1px solid #f2f2f2;
  border-radius: 0 0 6px 6px;
}

summary {
  display: block;
  transition: 0.2s;
  font-weight:100;
  font-size: 1.08rem;
  padding: .5em 1em;
  color:var(--txt-col-lnk); /* self rgb(108,109,113,1); */
}
summary:hover {
  background:var(--set-acc-sum-hover); /* #e73332 - rgb(231,51,50) - Cinnabar (red) */
  color:#fff;
  outline: 0px solid var(--color-primary);
}

summary:focus {
  outline: 0px solid var(--color-primary);
}

.collapse-init summary::after {
  border-right: 2px solid;
  border-bottom: 2px solid;
  content: "";
  float: right;
  width: 0.5em;
  height: 0.5em;
  margin-top: 0.25em;
  transform: rotate(45deg);
  transition: inherit;
}
[open] summary {
  background: var(--color-primary);
  color: #f8f5fe;
}
[open] summary::after {
  margin-top: 0.5em;
  transform: rotate(225deg);
}
  

/* list-items within accordion AND 2 columns */
  .accord-list {
    position: relative;
    padding: 1em 0;
    column-count: 2;
    column-gap: 1rem;
    list-style: none;
    border: var(--list-bdr) solid var(--list-line);
    font-size: .9rem;
  }
  .accord-list::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 1px;
    height: 100%;
    background: var(--list-line);
  }
  .accord-list li {
    position: relative;
    margin: 0 1em;
    padding-left: 1.2em;
    line-height: 1.5;
    font-weight: 100;
    hyphens: auto;
  }
  .accord-list li:before {
    content: var(--list-marker);
    position: absolute;
    top: .1em;
    left: -2px;
    font-family: 'FontAwesome';
    font-size: .9rem;
    color: var(--color-primary);
  }
  
 @media (max-width: 1020px) {
  .accord-list {
    column-count: 1;
  }
  .accord-list::after {
    display: none;
  }
} 




/* ------------------------------------------------------------------------------ */
/* END */	
/* ------------------------------------------------------------------------------ */