/* -------------------------------------- SCHRIFTARTEN ------------------------------------- */
@font-face {font-family: fsmelight; src: url(../font/fsmelight.ttf);}
@font-face {font-family: fsmeitalic; src: url(../font/fsmeitalic.ttf);}
@font-face {font-family: fsmeheavy; src: url(../font/fsmeheavy.ttf);}
@font-face {font-family: fsmebold; src: url(../font/fsmebold.ttf);}

.fsmeBoldWhite {font-family: fsmebold; color: var(--white);}
.fsmeLightWhite {font-family: fsmelight; color: var(--white);}

.fsmeBold {font-family: fsmebold;}
.fsmeLight {font-family: fsmelight;}

.u {text-decoration: underline;}
.b {font-weight: bold;}
.topborder {border-top: 1px solid black;}

h1 {
	color:var(--black);
	font-family: fsmebold;
	text-align: center;
}


/* -------------------------------------- AUSRICHTUNGEN ------------------------------------- */
.center {text-align: center;}
.left {text-align: left;}

/* --------------------------------------- FARBEN --------------------------------------- */
:root {
  --verylightgrey: rgb(240, 240, 240);
  --lightgrey:#b5b4b4;
  --darkgrey:#7f7e7e;
  --red: #e01515;
  --blue: #295ef6;
  --green:#04AA6D;
  --yellow:#f2bc0e;
  --white:white;
  --black:black;
  --transparent: transparent;
  
  font-size: 16px; /* Sets the base font size to 16px */
}


.lightgrey {color: #b5b4b4;}
.darkgrey {color: #7f7e7e;}
.red {color:#e01515;}
.blue {color: #295ef6;}
.green {color:#04AA6D;}
.yellow{color:#f2bc0e;}
.white {color:white;}
.black {color: black;}
.transparent {color:transparent;}

/* ----------------------------------------- BODY --------------------------------------- */
body { 
  background-color: transparent;
  font-family: fsmelight;

}

/* ----------------------------------------- DIVs --------------------------------------- */

.formborder {
  border: 3px solid var(--white);
  padding:20px;
}

.formwidth {
  margin-left:auto;
  margin-right:auto;
}

.flex50 {
  width:50%;
  margin: 0px;
  padding:0px 2px 0px 2px;
}

.flex-container2 {
  display: flex;
}

/* -------------------------------------- Table ------------------------------------- */

table.main {
   margin-left: auto;
   margin-right: auto;
   border-collapse: collapse;
}

/* ---------------------------------------Grid DIVs ------------------------------------- */
.grid-container {
  display: grid;
  gap: 10px;
  background-color: transparent;
  
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------- SELECT BOX CSS --------------------------------------- */
/* Learn about this solution to creating custom select styles:
 @link https://moderncss.dev/custom-select-styles-with-pure-css/ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --select-border: var(--lightgrey);
  --select-focus: var(--blue);
  --select-arrow: var(--select-border);
}

select {
  /* A reset of styles, including removing the default dropdown arrow */
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  color: var(--black);

  /* Stack above custom arrow */
  z-index: 1;

  /* Remove dropdown arrow in IE10 & IE11
   @link https://www.filamentgroup.com/lab/select-css.html */
  &::-ms-expand {
  display: none;
  }

  /* Remove focus outline, will add on alternate element*/
  outline: none;
}

.select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;

  select,
  &::after {
  grid-area: select;
  }

  min-width: 10ch;
  max-width: 20ch;

  border: 1px solid var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;

  font-size: 1.0rem;
  cursor: pointer;
  line-height: 1.1;

  /* Optional styles
   remove for transparency */
  background-color: var(--white);
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);

  // Custom arrow
  &:not(.select--multiple)::after {
  content: "";
  justify-self: end;
  width: 0.8em;
  height: 0.5em;
  background-color: var(--select-arrow);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  }
}

// Interim solution until :focus-within has better support
select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
}

/* ------------------------------------ MEDIA SCREENS ----------------------------------- 
< 	23rem	< 368px
>	30rem	> 480px
>	40rem	> 640px
>	51rem	> 816px
>	76rem	> 1216px
>	88rem	> 1408px

*/
 
/* -------------------------------------------------------------------------------------- */

/* -------------------- Small Smartphone (<368px)-------------------- */
@media screen and (max-width: 23rem) {
	body {
  		font-size: 0.7rem;
  	}  
  
  /* ---- DIVs ---- */

  	.flex-container {
	  	display: flex;
		max-width:300px;
		margin: auto;
	}
	  
	.grid-container {	
		grid-template-columns: auto;
		padding: 0px;
		margin-left: auto;
		margin-right: auto;
	}
	  
	.grid-container > div {
		padding: 0px 0px 20px 0px;
		margin-left: auto;
		margin-right: auto;
	}  
}

/* ---------------------- Smartphone (>368px) ----------------------- */
@media screen and (min-width: 23rem) {
  	body {
  		font-size: 0.85rem;
  	}  
  
  /* ---- DIVs ---- */
  
  	.flex-container {
	  	display: flex;
	  	max-width:350px;
	  	margin-left:auto;
	  	margin-right:auto;
	}
	
	.grid-container {	
		grid-template-columns: auto;
		width: 20rem;
		padding: 0px;
		margin-left:auto;
		margin-right:auto;
	}
  
  .grid-container2 {	
    width: 20rem;
  }
	  
	.grid-container > div {
		width: 20rem;
		padding: 0px 0px 20px 0px;
		margin-left:auto;
		margin-right:auto;
	}  

}

/* ------------------------ Tablet (>480px) ------------------------- */
@media screen and (min-width: 30rem) {
  	body {
  		font-size: 0.85rem;
  	}  
  
  /* ---- DIVs ---- */
  
  	.flex-container {
	  	display: flex;
	  	max-width:350px;
	  	margin-left:auto;
	  	margin-right:auto;
	}
	
	.grid-container {	
		grid-template-columns: auto;
		width: 30rem;
		padding: 0px;
		margin-left:auto;
		margin-right:auto;  
	}
  
  .grid-container2 {	
    width: 30rem;
  }
	  
	.grid-container > div {
		width: 22rem;
		padding: 0px 0px 20px 0px;
		margin-left:auto;
		margin-right:auto;  
	}  
}

/* ------------------------ Tablet (>640px) ------------------------- */
@media screen and (min-width: 40rem) {
	body {
		font-size: 0.85rem;
	}  
  
  /* ---- DIVs ---- */
  
	.flex-container {
		display: flex;
		max-width:350px;
		margin-left:auto;
		margin-right:auto;
	}
	
	.grid-container {	
		grid-template-columns: auto auto;
		width: 40rem;
		padding: 0px;
		margin-left:auto;
		margin-right:auto;  
	}
  
  .grid-container2 {	
    width: 40rem;
  }
	  
	.grid-container > div {
		width: 18rem;
		padding: 0px 0px 20px 0px;
		margin-left:auto;
		margin-right:auto;  
	}  
}

/* ------------------------ Desktop (>816) ------------------------- */
@media screen and (min-width: 51rem)  {
  	body {
  		font-size: 0.9rem;
  	}  
  
  /* ---- DIVs ---- */
  
  	.flex-container {
	  	display: flex;
	  	max-width:350px;
	  	margin-left:auto;
	  	margin-right:auto;
	}
	
	.grid-container {	
		grid-template-columns: auto auto;
		width: 50rem;
		padding: 0px;
		margin-left:auto;
		margin-right:auto;  
	}
  
  .grid-container2 {	
    width: 50rem;
  }
	  
	.grid-container > div {
		width: 20rem;
		padding: 0px 0px 20px 0px;
		margin-left:auto;
		margin-right:auto;  
	}  
}

/* ---------------------- Large Desktop (>1216px) --------------------- */
@media screen and (min-width: 76rem) {
  	body {
  		font-size: 1rem;
  	}  
  
  /* ---- DIVs ---- */
  
  	.flex-container {
	  	display: flex;
	  	flex-wrap: nowrap;
	  	max-width:350px;
	  	margin-left:auto;
	  	margin-right:auto;
	}

    .grid-container {	
	  	grid-template-columns: auto auto;
	  	width: 50rem;
	  	padding: 0px;
	  	margin-left:auto;
	  	margin-right:auto;  
  	}
    
    .grid-container2 {	
      width: 50rem;
    }
	
    .grid-container > div {
	  	width: 20rem;
	  	padding: 0px 0px 20px 0px;
	  	margin-left:auto;
	  	margin-right:auto;  
  	} 
}

/* ---------------------- Extra Large Desktop (>1408px) ---------------------- */
@media screen and (min-width: 88rem) {
  	body {
  		font-size: 1rem;
  	}  
  
  /* ---- DIVs ---- */
  
  	.flex-container {
	  	display: flex;
	  	flex-wrap: nowrap;
	  	max-width:350px;
	  	margin-left:auto;
	  	margin-right:auto;
	}
	
    .grid-container {	
	  	grid-template-columns: auto auto;
	  	width: 50rem;
  	}
    
    .grid-container2 {	
      width: 50rem;
    }
  
  	.grid-container > div {
	  	width: 25rem;
  	}
}