/* Grundlegende Stile für die Seite */
body {
  background: black;
  font-size: 1.2rem;
  color: pink;
  margin: 0;
  padding: 0;
}

/* Zentrierung und Rahmen für die Seite */
#wrapper {
  width: 90vw;
  margin: 10vh auto;
}

/* CSS Grid Container - Hauptlayout */
.grid-container {
  display: grid;
  grid-template-areas:
    'logo navigation'
    'sidebar content'
    'footer footer';
  grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
  grid-template-rows: auto 1fr auto; /* Automatische Höhe für Header, flexible Höhe für Hauptbereich, automatische Höhe für Footer */
  gap: 10px; /* Abstand zwischen den Grid-Elementen */
  min-height: 80vh; /* Mindesthöhe für den Container */
}

/* Grid-Bereiche zuweisen */
.header-item1 {
  grid-area: logo;
  background: yellow;
  display: flex;
  align-items: center;
}

.header-item2 {
  grid-area: navigation;
  background: red;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item {
  grid-area: sidebar;
  background: blue;
  padding: 10px;
  overflow: auto; /* Für Scrollbalken falls Inhalt zu groß */
}

.content-item {
  grid-area: content;
  background: green;
  padding: 10px;
  overflow: auto; /* Für Scrollbalken falls Inhalt zu groß */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-item {
  grid-area: footer;
  background: pink;
  padding: 10px;
  text-align: center;
  color: brown;
}

/* Spezifische Element-Stile */
#logo {
  height: 10vh;
  border: 2px solid black;
}

#boxmodell {
  height: 30vh;
  padding: 2px;
  border: 2px solid black;
  margin: 4px;
  max-width: 100%; /* Bild darf nicht breiter als Container sein */
}

/* Link-Stile */
a:link {
  text-decoration: none;
  color: magenta;
}

a:visited {
  text-decoration: none;
}

a:hover {
  color: black;
}

a:active {
  text-decoration: underline dotted;
}

/* Navigationsmenü */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px; /* Abstand zwischen den Menüpunkten */
}

nav li {
  display: inline;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) {
  .grid-container {
    grid-template-areas:
      'logo'
      'navigation'
      'sidebar'
      'content'
      'footer';
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}