.tabs {
	display: flex;
	flex-wrap: wrap; // make sure it wraps
}
.tabs label {
order: 1;
// Put the labels first display: block;
padding: 1rem 2rem;
margin-right: 0.2rem;
cursor: pointer;
background: var(--forenfarbe2);
font-weight: bold;
transition: background ease 0.2s;
border: 1px solid var(--linkfarbe);
margin-left: 10px;
margin-top: 5px;
width: 30px;
text-align: center;
padding: 10px;
}

.tabs label i {
color: var(--linkfarbe);
}

.tabs .tab {
order: 99;
// Put the tabs last flex-grow: 1;
width: 100%;
display: none;
padding: 1rem;
background: transparent;
height: 400px;
	overflow: auto;
	  scrollbar-width: thin;
  scrollbar-color: var(--linkfarbe) var(--linkfarbe2);	
}

.tabs .tab::-webkit-scrollbar {
  width: 11px;
}

.tabs .tab::-webkit-scrollbar-track {
  background: var(--linkfarbe2);
}	

.tabs .tab::-webkit-scrollbar-thumb {
  background-color: var(--linkfarbe) ;
  border-radius: 6px;
  border: 3px solid var(--linkfarbe2);
}

.tabs input[type="radio"] {
	display: none;
}
.tabs input[type="radio"]:checked + label {
	background: var(--forenfarbe2);
border: 1px solid var(--linkfarbe);
	text-align: justify;
}
.tabs input[type="radio"]:checked + label + .tab {
display: block;
border-top: 1px solid var(--linkfarbe);
margin-top: 10px;
	text-align: justify;
}

@media (max-width: 45em) {
  .tabs .tab,
  .tabs label {
    order: initial;
  }
  .tabs label {
    width: 100%;
    margin-right: 0;
    margin-top: 0.2rem;
  }
}
/* Style the tab */
div.tab {
   float: left;
  width: 100%;
  max-height: auto;
}

/* Style the buttons inside the tab */
div.tab button {
    display: block;
    color: var(--schrift);
    padding: 5px 5px;
    width: 100%;
    border: none;
    outline: none;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background-color: var(--forenfarbe);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin: 1px;
    font-size: 10px;
    font-weight: 600;
}

/* Change background color of buttons on hover */
div.tab button:hover {
    background-color: var(--forenfarbe2);
color: var(--linkfarbe);
}

/* Create an active/current tablink class */
div.tab button.active {
text-transform: uppercase;
font-family: 'Montserrat', sans-serif;
background-color: var(--forenfarbe);
color: var(--goldschrift);
font-size: 10px;
font-weight: 600;
}

/* Style the tab content */
.tabcontent {
    display: none;
    border: 0px solid #ccc;
    border-top: none;
}

.tabcontent.active {
    display: block;
}

div[class*="tabcontent"]:first-of-type {
    display: block;
}





