@import url(https://fonts.googleapis.com/css2?family=Archivo+Narrow&family=Montserrat&display=swap);

.relationela {
width: 500px;
min-height: 750px;
background: #1d2727;
padding: 10px;
margin: auto;
}

.relationelaheadline {
width: 480px;
min-height: 50px;
text-align: center;
padding: 5px;
border: 1px solid #b2b1b1;
font-family: Archivo Narrow, sans-serif;
font-size: 30px;
color: #b2b1b1;
margin: auto;
}

.relationelatabs input[id^="relationelatab"][type=radio] {
         position: absolute;
          display: none; /* blendet die Radio-Punkte aus, die wir nicht brauchen */
     }

.relationelatabs {
       width: 500px; /*könnt ihr anpassen */
       float: none;
       list-style: none;
       position: relative;
       padding: 0;
       margin:auto;
    min-height: 400px; /* Höhe muss definiert werden, damit Inhalt nicht überlappt */
     }

.relationelatabs li{
       float: left; /* entweder rechts oder links */
     }

.relationelatabs label { /* Defintion der anklickbaren Felder */
width: 156px;
padding: 5px;
	text-align: center;
         display: block;
         background: #1d2727;
         cursor: pointer; /*kann weggelassen werden */
      color: #fff;
	margin-top: -10px;
         position: relative;
      top: 0;
         -webkit-transition: all 0.2s ease-in-out;
         -moz-transition: all 0.2s ease-in-out;
         -o-transition: all 0.2s ease-in-out;
         transition: all 0.2s ease-in-out;
     }

.relationelatabs label:hover {
       background: #46a29f;
       top: 0;
     }
      
.relationelatabs [id^="relationelatab"][type=radio]:checked ~ label { /* Defintion des ausgewählten Feldes */
       background: #46a29f;
       color: #d8cea0;
       top: 0;
     }
      
.relationelatabs [id^="relationelatab"][type=radio]:checked ~ label ~ .tab-content {
         display: block;
     }

.relationelatabs .tab-content{ /* Hier wird des ganz normale Inhalt des Tabs definiert wie Schrift, Farbe, Zeilenhöhe etc */
       z-index: 2;
       display: none;
       text-align: left;
       width: 100%;
    height: 605px;
		margin-top: 15px;
    overflow: auto; /*Höhe (muss ca 50px kleiner sein als bei .tabs vorgegeben und Overflow sollten definiert werden, da ansonsten überschüssiger Text verschluckt wird */
       font-size: 10px;
       padding-top: 10px;
       padding: 5px;
       color: #000;
    background: #46a29f;
       position: absolute;
       top: 60px;
       left: 0;
       box-sizing: border-box;
       -webkit-animation-duration: 0.5s;
       -o-animation-duration: 0.5s;
       -moz-animation-duration: 0.5s;
       animation-duration: 0.5s;
     }

.relationelakategorie {
width: auto;
height: auto;
font-size: 14px;
text-align: center;
text-transform: uppercase;
padding: 5px;
background: #1d2727;
color: #fff;
font-family: Archivo Narrow, sans-serif;
}

.relationelamitgliederkasten {
width: 226px;
height: 100px;
font-family: Montserrat, sans-serif;
font-size: 10px;
padding: 3px;
float: left;
overflow: auto;
border: 1px solid #000;
margin: 1px;
text-align: justify;
}

.relationelamitgliederkastenheadline {
width: auto;
height: 20px;
text-align: center;
padding: 1px;
border-bottom: 1px solid #000;
font-family: Montserrat, sans-serif;
font-size: 13px;
}