@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single+Ink:wght@100..900&family=Borel&display=swap');

/* Border Box - rechnet inklusive bis zur Border */
* { /* der Stern steht für ALLE Elemente */
  box-sizing: border-box;
}

body {

	background-color: #5DA069 ;
	font-family: "Delius", cursive;
	font-weight:500;
	font-style: normal;
}

.grid-container {
  display: grid;
  grid-template-areas:
  'header'
  'menu'
  'main'
  'aside'
  'footer';
  background-color: white;
  gap: 10px;
}

.header {
  grid-area: header;
  background-color: purple;
  text-align: center;
  color: #ffffff;
}

.header > h1 {
  font-size: 40px;
}

.menu {
  grid-area: menu;
}

/* der spezielle Style überschreibt den allgemeinen */
.menu ul { /* alle ul in der Klasse menu */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu li {
  padding: 8px;
  margin-bottom: 7px;
  background-color: #33b5e5;
  color: #ffffff;
}

.menu li:hover {
  background-color: #0099cc;
}

.main {
  grid-area: main;
}

.main > h1 {
  font-size: 30px;
  margin-bottom: 7px;
}

.main > p {
  margin-bottom: 7px;
}

.aside {
  grid-area: aside;
  border: 1px solid #0099cc;
  background-color: beige;
  padding: 10px;
}

.aside > h2 {
  font-size: 20px;
}

.aside li {
  margin-bottom: 5px;
}

.footer {
  grid-area: footer;
  background-color: #0099cc;
  color: #9dfc03;
  text-align: center;
} 
@media  (min-width: 600px) {
  .header {grid-area: 1 / span 6;}
  .menu {grid-area: 2 / span 2;}
  .main {grid-area: 2 / span 4;}
  .aside {grid-area: 3 / span 6;}
  .footer {grid-area: 4 / span 6;}
}

/* Desktop Ansicht - Area 2 - 3spaltig */

@media (min-width: 768px) {
  .header {grid-area: 1 / span 6;}
  .menu {grid-area: 2 / span 2;}
  .main {grid-area: 2 / span 4;}
  .aside {grid-area: 2 / span 1;}
  .footer {grid-area: 3 / span 6;}
}