@media (max-width: 768px) {
  .container {
    display: grid;
    grid-template-rows: auto auto 1fr auto; /* Ensure the footer is at the bottom */
    grid-template-columns: 1fr;
    grid-template-areas:
      "h"
      "s"
      "m"
      "f";
    height: 100vh;

header {
  grid-area: h;
  background-color: #cf5533;
  background-image: url(./texture-woodgrain.png);
  background-repeat: repeat;
  background-size: auto auto;
  color: #2f272a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column; /* Ensure flex direction is column */
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
  margin-bottom: auto;
  padding: 15px;
}

aside {
  grid-area: s;
  width: 100%;
  position: relative;
  top: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

nav {
  display: flex;
  justify-content: space-evenly;
  padding-left: 10%;
  padding-right: 10%;
}

.nav-list {
  list-style-type: none;
  display: flex;
  justify-content: space-evenly; /* Distribute space evenly */
  width: 100%;
  margin-top: -40px;
}

.nav-list li {
  display: flex;
  justify-content: space-evenly;
  flex: 1;
}

.nav-list li a {
  font-family: 'Neue Einstellung', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: #2f272a;
  background-color: #eaa133;
  width: calc(100% - 50px);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding-top: 20px;
  padding-bottom: 10px;
  display: block;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  height: 50px;
  display: flex;
  align-items: end;
  justify-content: center;
  margin: 0;
}


.nav-list li a.active {
  background-color: #1dbdbb;
  color: #fff3e1; 
}
  
  .nav-list li:nth-child(1) {
    order: 2; 
    margin-top: 30px;
  }

  .nav-list li:nth-child(2) {
    order: 1;
  }

  .nav-list li:nth-child(3) {
    order: 3; 
  }


header .text {
  margin-top: auto;
  margin-right: 0;
  margin-bottom: auto;
  text-align: center;
  }

header h1 {
  font-size: clamp(20px, 24px, 30px);
}

header h2 {
  font-size: clamp(10px, 12px, 16px);
}

  main {
    display: flex-column;
    grid-area: m;
    justify-items: center;
    margin-top: 0px;
    padding: 0px;
    margin-bottom: 10px;
  }

  footer {
    grid-area: f;
    padding: 5px;
    font-size: clamp(4px, 10px, 10px);
    margin-top: auto;
    margin-bottom: 0px;
  }

  p {
    margin: 0;
    padding: 0;
    margin-bottom: auto;
  }
}
}