:root {
  font-size: 100%;
  font-family: 'Gridline Trial';  /* Dieser Name korrespondiert mit den Einstellungen in fonts.css */
  font-family: 'Recursive'; /* Dieser Name korrespondiert mit den Einstellungen in fonts.css */
}


body {
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

h1 { 
  font-family: 'Gridline Trial';
  font-size: 6rem; 
  animation: my-super-weight 5s infinite alternate, color-refresh 5s infinite alternate;
  color: white;
  margin: 1rem 0;
  text-align: center;
}

h2 { 
  font-family: 'Recursive', sans-serif;
  font-size: 1rem;
  font-weight: 100;
  color: white;
  margin: 0;
}



/* Animation */
@keyframes my-super-weight {
  from {font-variation-settings: "wght" 1, "BACK" 1, "RECT" 1, "ELSH" 5; }
  to {font-variation-settings: "wght" 900, "BACK" 1, "RECT" 1, "ELSH" 1; }
}

@keyframes color-refresh {
  0% { color: rgb(66, 133, 244); }
  25% { color: rgb(234, 67, 53); }
  50% { color: rgb(251, 188, 4); }
  100% { color: rgb(52, 168, 83); }
}



/* Navigation */
ul {
  list-style: none; /* Keine Listenpunkte */
  padding: 0;
  margin: 0;
}

ul li {
  font-family: 'Gridline Trial';
  font-size: 3rem;
  animation: my-super-weight 5s infinite alternate;
}

li a {
  font-family: 'Gridline Trial';
  color: white;
  text-decoration: none;  
}

li a:hover {
  animation: color-refresh 4s infinite alternate
}



/* Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 10px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.grid-item ul {
  margin-bottom: 0.3rem; 
  padding: 0;
}

.grid-item h2 {
  margin-top: 0;
}

/* Footer */
footer {
  text-align: center;
  margin-top: auto;
  padding: 1rem;
  color: white;
}