/* Grundlegende Variablen */
:root {
   --bg: #ffffff;
   --text: #222222;
   --card: #f8f9fa;
   --border: #dee2e6;
   --text-muted: #5a5a5a;
   --accent: #0056b3;
}

/* Dark-Mode-Variablen */
body.dark-mode {
   --bg: #333;
   --text: #fff;
   --card: #444;
   --border: #555;
   --text-muted: #adb5bd;
   --accent: #6ea8fe;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout-Struktur für Sticky Footer */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.changelog-page {
  width: 90%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  background-color: var(--card);
  border: 1px solid var(--border);
  flex: 1 0 auto; /* Streckt den Inhalt, um den Footer nach unten zu drücken */
}

/* Header & Footer */
.changelog-header, .changelog-footer {
  background-color: var(--card);
  border-color: var(--border);
  width: 100%;
  padding: 1rem 0;
}
.changelog-header {
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.changelog-footer {
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 0 1rem;
}

.footer-content a {
  color: var(--accent);
}

/* Changelog Sektionen */
.changelog-section {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.changelog-header-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.changelog-header-button:hover {
  background-color: rgba(0,0,0,0.05);
}

.changelog-header-button::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease-out;
}

.changelog-content-container.show ~ .changelog-header-button::after {
    transform: rotate(180deg);
}

.changelog-content-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.5rem;
  border-top: 1px solid transparent;
  text-align: left;
}

.changelog-content-container.show {
  max-height: 1000px;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ================================== */
/* EXPLIZITE DARK MODE ÜBERSCHREIBUNGEN */
/* ================================== */

body.dark-mode {
    background-color: var(--bg);
    color: var(--text);
}

body.dark-mode .changelog-header-button:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Dark Mode Toggle Stile */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2196F3; }
input:focus + .slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }
.dark-mode-lable { position: absolute; top: 50%; right: 70px; transform: translateY(-50%); pointer-events: none; }

 .changelog-link,
 .changelog-link1 {
   color: #0056b3 !important;
   /* dunkleres Blau für besseren Kontrast */
 }

 body.dark-mode .changelog-link,
 body.dark-mode .changelog-link1 {
   color: #ffffff !important;
   /* weißer Text für besseren Kontrast */
 }

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}