/* ------------------------------------------------------------------------------ */
/* ****************************************************************************** */
/* --------- (C) Copyright 2023/2024 by machtWeb | Reinhard Lange --------------- */
/* ---------------------- machtWeb.de | relaXits@machtWeb.de -------------------- */
/* ------------------------------------------------------------------------------ */
/* update	->													                            6.00/00 - 26-07-23
/* layout	-> impressum / datenschutz							                                */
/* file 	-> design/accordion.css												                          */
/* ------------------------------------------------------------------------------ */
/* COUNTERUP */
/* use in   -> impressum / datenschutz / bewerbung */
/* link     -> https://codepen.io/giana/pen/OrpdLK */
/* ------------------------------------------------------------------------------ */

.container_first {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: .4em; /* optional, um Abstand zwischen den Spalten hinzuzufügen */
  margin: 1em 0;
  font-size: 1.02rem;
  font-weight: 300;
}

.container_first .grid-item:nth-child(3) {
  grid-row: span 6;
  grid-column: 3;
}

.container_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  /*height: 100%;*/
  background: #fff;
}

.logo img {
  max-width: 100%;
  height: auto;
  margin: 1em;
}

.contact-styling {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border: 0px solid red;
}

.address {
  flex-grow: 1;
  max-width: calc(100% - 256px);
  padding-right: 20px;
}

.logo-container {
  /*max-width: 256px;*/
  flex-shrink: 0;
  order: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  /*max-width: 100%;*/
  /*width: 256px;*/
  /*height: auto;*/
  /* max-height: 144px; /* Anpassung der maximalen Höhe */
}

@media (max-width: 1280px) {
  .container_first .grid-item:nth-child(3) {
      display: none; /* Die dritte Spalte ausblenden */
  }
}

@media (max-width: 768px) {
  .contact-styling {
      flex-direction: column-reverse;
      align-items: center;
  }

  .address {
      max-width: 100%;
      padding-right: 0;
  }

  .logo-container {
      order: 0;
      /* margin-bottom: 20px; */
  }
}
  
  
  
  .grid-item {border: 0px solid orange;}
  
  
  .container_second {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: .4em; /* optional, um Abstand zwischen den Spalten hinzuzufügen */
    margin: 1em 0;
    font-size: 1.02rem;
    font-weight: 300;
  }
  

/* 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: 300;
    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;
  }
} 


.container {
  counter-reset: my-counter;
}

.container 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: 800;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: var(--count-width);
  -webkit-font-smoothing: antialiased;
  color: var(--count-color);
  opacity: 1;
  z-index: 999;
}


/*
  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: 80ch !important;
}
.details-styling p { 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: 300;
  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;
}



.container {
  box-shadow: 0.2em 1em 2em -1em #f2f2f2;
  margin: 1em 0; /* self 2.4em 0; */
  
}

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:300;
  font-size: 1.08rem;
  padding: .5em 1em;
  color: var(--color-primary);
}
summary:hover {
  background: rgb(0,84,149,.08);
  outline: 1px solid var(--color-primary);
}

summary:focus {
  outline: 1px 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);
}

/* ------------------------------------------------------------------------------ */
/* END */	
/* ------------------------------------------------------------------------------ */