/* Standard-Variablen */
:root {
  --bg-light: #f4f4f9;
  --text-light: #222;
  --card-light: #fff;

  --bg-dark: #121212;
  --text-dark: #eee;
  --card-dark: #1e1e1e;
}

/* Basislayout */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

.toggle-dark {
  text-align: center;
  margin-bottom: 2rem;
}

.toggle-dark button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

details {
  background-color: var(--card-light);
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

html.dark details {
  background-color: var(--card-dark);
}

details summary {
  cursor: pointer;
  font-weight: bold;
  margin: -1rem -1rem 1rem -1rem;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  background-color: rgba(0, 0, 0, 0.05);
}

html.dark details summary {
  background-color: rgba(255, 255, 255, 0.05);
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

footer {
  text-align: center;
  color: gray;
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media(max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
}