article{
  max-width: 1350px;
  display: grid;
  grid-gap: 1rem;
  margin: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
"kopf kopf kopf"
"navigation navigation navigation"
"bedienfelder bedienfelder bedienfelder"
"catapult1 catapult2 catapult3"
"componentSelection componentSelection componentSelection"
"fuss fuss fuss";
}

article.has-main{
  grid-template-areas:
"kopf kopf kopf"
"main main main"
"fuss fuss fuss";
}

@media(max-width:900px){
  article{
    grid-template-areas:
    "kopf kopf kopf"
    "navigation navigation navigation"
    "bedienfelder bedienfelder bedienfelder"
    "catapult1 catapult1 catapult1"
    "catapult2 catapult2 catapult2"
    "catapult3 catapult3 catapult3"
    "componentSelection componentSelection componentSelection"
    "fuss fuss fuss";
  }

  article.has-main{
    grid-template-areas:
    "kopf kopf kopf"
    "navigation navigation navigation"
    "main main main"
    "bedienfelder bedienfelder bedienfelder"
    "catapult1 catapult1 catapult1"
    "catapult2 catapult2 catapult2"
    "catapult3 catapult3 catapult3"
    "componentSelection componentSelection componentSelection"
    "fuss fuss fuss";
  }
}

header{
  grid-area: kopf;
  background-color: rgb(226, 0, 26);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1%;
}

header h1 {
  margin: 0;
  flex: 1;
}

nav{
  grid-area: navigation;
  background-color: rgb(92, 105, 115);
  display: flex;
  justify-content: space-around;
  padding: 1%;
}

main{
  grid-area: main;
  background-color: rgba(92, 105, 115, 0.25);
  padding: 1%;
}

.bedienfelder{
  grid-area: bedienfelder;
  background-color: rgba(92, 105, 115, 0.75);

}

.catapult1{
  grid-area: catapult1;
  background-color: rgba(92, 105, 115, 0.5);
}

.catapult1 > div:first-of-type,
.catapult2 > div:first-of-type,
.catapult3 > div:first-of-type {
  position: relative;
}

.catapult1 > div:first-of-type img,
.catapult2 > div:first-of-type img,
.catapult3 > div:first-of-type img {
  display: block;
  width: 100%;
  height: auto;
}

.catapult1 > div:first-of-type img:nth-child(1),
.catapult2 > div:first-of-type img:nth-child(1),
.catapult3 > div:first-of-type img:nth-child(1) {
  position: relative;
  z-index: 0;
}

.catapult1 > div:first-of-type img:nth-child(2),
.catapult2 > div:first-of-type img:nth-child(2),
.catapult3 > div:first-of-type img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.catapult1 > div:first-of-type img:nth-child(3),
.catapult2 > div:first-of-type img:nth-child(3),
.catapult3 > div:first-of-type img:nth-child(3) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.catapult1 > div:first-of-type img:nth-child(4),
.catapult2 > div:first-of-type img:nth-child(4),
.catapult3 > div:first-of-type img:nth-child(4) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.catapult1 > div:first-of-type img:nth-child(5),
.catapult2 > div:first-of-type img:nth-child(5),
.catapult3 > div:first-of-type img:nth-child(5) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
}

.catapult1 > div:first-of-type img:nth-child(6),
.catapult2 > div:first-of-type img:nth-child(6),
.catapult3 > div:first-of-type img:nth-child(6) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.catapult2{
  grid-area: catapult2;
  background-color: rgba(92, 105, 115, 0.5);
}

.catapult3{
  grid-area: catapult3;
  background-color: rgba(92, 105, 115, 0.5);
}

.componentSelection{
  grid-area: componentSelection;
  background-color: rgba(92, 105, 115, 0.75);
}

.component-box {
  border: 2px dashed rgba(0, 0, 0, 0.3);
  padding: 10px;
  margin: 10px 0;
  min-height: 80px;
}

.component {
  cursor: move;
  padding: 8px;
  margin: 5px 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s;
}

/* Farbcodierung nach Katapult */
.component.cata1 {
  background-color: rgba(252, 218, 125, 0.6);
  border-left: 6px solid rgba(252, 218, 125, 1.0);
}

.component.cata2 {
  background-color: rgba(162, 217, 193, 0.6);
  border-left: 6px solid rgba(162, 217, 193, 1.0);
}

.component.cata3 {
  background-color: rgba(185, 207, 244, 0.6);
  border-left: 6px solid rgba(185, 207, 244, 1.0);
}

.component:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.component.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.component-box.drag-over {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 0, 0, 0.6);
}

footer{
  display: flex;
  justify-content: space-around;
  padding: 2%;
  grid-area: fuss;
  background-color: rgba(92, 105, 115, 0.5);
}

body{
  background-color: rgba(92, 105, 115, 0.25);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img{
  width: 100%;
}

h1{
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
}

h2{
  color: rgb(0, 0, 0);
}

a{
  color: black;
}


/* Button Style */
.button-15 {
  background-image: linear-gradient(rgb(92, 105, 115), rgb(41, 50, 59));
  border: 1px solid rgb(38, 41, 44);
  border-radius: 4px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  direction: ltr;
  font-family: "SF Pro Text","SF Pro Icons","AOS Icons","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.47059;
  min-width: 30px;
  overflow: visible;
  padding: 4px 15px;
  text-align: center;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
}

.button-15:disabled {
  cursor: default;
  opacity: .3;
}

.button-15:hover {
  background-image: linear-gradient(rgba(92, 105, 115, 0.6), rgba(41, 50, 59, 0.6));
  border: 1px solid rgb(38, 41, 44);
  text-decoration: none;
}

.button-15:active {
  background-image: linear-gradient(rgba(92, 105, 115, 0.8), rgba(41, 50, 59, 0.8));
  border: 1px solid rgb(38, 41, 44);
  outline: none;
}

.button-15:focus {
  box-shadow: rgb(41, 50, 59) 0 0 0 3px;
  outline: none;
}

#DHBW_Logo {
  border: 5px solid #555;
  background-color: white;
  max-width: 140px; /* adjust to what you need */
  height: auto;     /* keeps aspect ratio */
}

 * {
 margin: 5px;
 padding: 5px;
 }

select {
  font-size: inherit;   
  color: inherit;       
  font-family: inherit; 
  padding: 5px 10px;    
}