body {
  font-family: -apple-system, sans-serif;
  background-color: #fafafa;
  color: #333;
}

h1 {
  text-align: center;
}

table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: white;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
}

th {
  background-color: #007acc;
  color: white;
}

tr.highlight {
  outline: 3px solid #ffb300;
}


td:empty {
  background: linear-gradient(135deg, #f8f9fa 0%, #eceff3 100%);
  position: relative;
}

/* Farbzuweisungen pro Person */
.lukas {
  background-color: #cce5ff;
}

.pascal {
  background-color: #d4edda;
}

.felix {
  background-color: #ffe6cc;
}

caption {
  caption-side: bottom;
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  color: #666;
}

/* Abschnitt Wichtige Links */
#links {
  width: 80%;
  margin: 30px auto 40px;
  background: #ffffff;
  padding: 16px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

#links h2 {
  margin-top: 0;
  text-align: center;
}

#links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

#links li {
  flex: 1 1 220px;
  display: flex;
}

#links a {
  color: #007acc;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c9e4f8;
  background: #f2f9ff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background .2s ease, border-color .2s ease;
}

#links a:hover,
#links a:focus {
  text-decoration: none;
  background: #e6f3ff;
  border-color: #89c8f2;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e5e5e5;
  }
  table {
    background-color: #1e1e1e;
  }
  th, td {
    border-color: #333;
  }
  th {
    background-color: #0a5e96;
    color: #ffffff;
  }
  td:empty {
    background: linear-gradient(135deg, #1a1c1e 0%, #24272b 100%);
  }
  tr.highlight {
    outline: 3px solid #ffc107;
  }
  /* Person farben im Dark Mode */
  .lukas {
    background-color: #153954;
    color: #d7ecf9;
  }
  .pascal {
    background-color: #1f3f2f;
    color: #d5f5e4;
  }
  .felix {
    background-color: #4a3217;
    color: #ffe9d1;
  }
  #links {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }
  #links a {
    color: #85ceff;
    background: #142430;
    border-color: #1f3b4d;
  }
  #links a:hover, #links a:focus {
    background: #1e3444;
    border-color: #2d5f7a;
  }
  caption {
    color: #999;
  }
}
