/* === Farbvariablen === */
:root {
  --primary-color: #0099CC; /* Hauptfarbe - Blau */
  --accent-color: #CC7300; /* Akzentfarbe - Orange */
  --bg-light: #F2F2F2; /* Heller Hintergrund */
  --bg-dark: #122922; /* Dunkler Hintergrund */
  --text-light: #000; /* Standard-Textfarbe */
  --text-dark: #F2F2F2; /* Text auf dunklem Hintergrund */
  --highlight: #FDCA00; /* Gelb für Links auf Dunkel */
}

/* === Allgemeine Stile === */
body {
  background-color: var(--bg-light);
  color: var(--text-light);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Darkmode */
body.darkmode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* === Header === */
header {
  background: var(--primary-color);
  padding: 10px 20px;
  text-align: center;
}

/* Logo */
.logo img {
  height: 50px;
}

/* === Navigation (unterhalb des Headers) === */
nav {
  background: var(--accent-color);
  padding: 10px 0;
  text-align: center;
  border-bottom: 4px solid var(--primary-color);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: var(--text-dark);
  padding: 10px 15px;
  font-size: 16px;
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--highlight);
}

/* Darkmode Navigation */
body.darkmode nav {
  background: var(--primary-color);
  border-bottom: 4px solid var(--accent-color);
}

body.darkmode nav ul li a {
  color: var(--highlight);
}

body.darkmode nav ul li a:hover {
  color: var(--accent-color);
}

/* === Darkmode-Schalter === */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent-color);
  border-radius: 20px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--highlight);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* === Footer === */
footer {
  background: var(--primary-color);
  color: var(--text-dark);
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

/* === Farbschema Tabelle === */
.color-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.color-table th, .color-table td {
  text-align: center;
  padding: 10px;
  border: 1px solid var(--text-light);
}

.color-box {
  width: 100px;
  height: 50px;
}

/* Darkmode Tabellenfarben */
body.darkmode .color-table td {
  border: 1px solid var(--text-dark);
}

/* === Typografie Tests === */
.normal-text {
  font-size: 16px;
}

.error-text {
  color: red;
  font-weight: bold;
}

.success-text {
  color: green;
  font-weight: bold;
}

/* === Links === */
.test-link {
  color: var(--primary-color);
  text-decoration: none;
}

.test-link:hover {
  color: var(--accent-color);
}

/* === Buttons === */
.test-button {
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.test-button:hover {
  background: var(--accent-color);
}

/* === Darkmode Anpassungen === */
body.darkmode .test-button {
  background: var(--highlight);
  color: var(--bg-dark);
}

body.darkmode .test-button:hover {
  background: var(--primary-color);
}

/* === Inhalt auf der Startseite zentrieren === */
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* 80% der Bildschirmhöhe */
  text-align: center;
}

/* Container kleiner machen für bessere Lesbarkeit */
.center-content .container {
  max-width: 800px;
}