@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  /* Standardwerte für den Lightmode */
  --primary-color-light: #B35A1F;
  --secondary-color-light: #2B655C;
  --secondary-color-lightButton: #2B655C;
  --primary-hover-color: #D17342; /* Hellerer Rot-Braun für Hover */
  --secondary-hover-color: #3c907a; /* Helleres Grün für Hover */
  --background-color-light: #F5E8C7;
  --text-color-light: #4A2C2A;
  --overlay-bg: rgba(206, 190, 155, 0.8);
  --header-background-light: #B35A1F;
  --nav-link-bg: transparent;
  --nav-link-hover-bg: rgba(236, 240, 241, 0.1);
  --nav-link-hover-color: #ecf0f1;
  --nav-logo-bg: rgba(236, 240, 241, 0.1);
  --nav-logo-hover-bg: rgba(236, 240, 241, 0.2);

  /* Farben für den Arrow */
  --arrow-color-light: #4A2C2A; /* Standardfarbe im Lightmode */
  --arrow-hover-color-light: #B35A1F; /* Hover-Farbe im Lightmode */
}

/* Darkmode-Variablen */
.dark-mode {
  --primary-color-light: #701d1d;
  --secondary-color-light: #ffffff;
  --secondary-color-lightButton: #184A45;
  --primary-hover-color: #9b2d2d; /* Intensiveres Rot-Braun */
  --secondary-hover-color: #236d6d; /* Intensiveres Grün */
  --background-color-light: #1A1A1A;
  --text-color-light: #FAF3E0;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --secondary-color-dark: #FAF3E0;
  --background-color-dark: #1A1A1A;

  /* Farben für den Arrow */
  --arrow-color-light: #FAF3E0; /* Standardfarbe im Darkmode */
  --arrow-hover-color-light: #701d1d; /* Hover-Farbe im Darkmode */
}
::-webkit-scrollbar {
  width: 0; /* Entfernt die Scrollbar */
}
/* Allgemeines Styling */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
  overflow-x: hidden;
}
body {
  padding-top: 120px; /* Platz für den fixierten Header */
  padding-bottom: 100px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 10%;
  background-color: var(--primary-color-light);
  padding: 15px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Dark/Light Mode Switch */
.header-switch {
  position: absolute;
  right: 20px;
}

.mode-toggle {
  border: none;
  background: none;
  cursor: pointer;
}

.mode-toggle img {
  width: 30px;
  height: 30px;
}

.navMenu {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.navMenu a {
  color: #f6f4e6;
  text-decoration: none;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  width: 80px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.navMenu a:hover {
  color: var(--secondary-color-light);
}

.navMenu .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-color-light);
  border-radius: 50%;
  opacity: 0;
  -webkit-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.navMenu a:nth-child(1):hover ~ .dot {
  -webkit-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(2):hover ~ .dot {
  -webkit-transform: translateX(110px);
  transform: translateX(110px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(3):hover ~ .dot {
  -webkit-transform: translateX(200px);
  transform: translateX(200px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(4):hover ~ .dot {
  -webkit-transform: translateX(285px);
  transform: translateX(285px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}
.navMenu a:nth-child(5):hover ~ .dot {
  -webkit-transform: translateX(358px);
  transform: translateX(358px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

/* Hamburger-Menü */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  border: none;
  background: none;
  color: var(--text-color-light);
  cursor: pointer;
}


@media (max-width: 830px) {
  .menu-toggle {
    display: flex; /* Zeigt das Hamburger-Menü */
    right: -100px;
  }

  .nav-links {
    display: none; /* Versteckt die Links */
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex; /* Links einblenden */
  }

  .nav-links a {
    margin: 10px -100%;
  }
  .navMenu .dot {
    display: none; /* Versteckt den Punkt-Indikator im mobilen Menü */
  }
}


/* Dark/Light Mode Switch */
.header-switch {
  position: absolute;
  right: 20px; /* Switch weiter nach links */
  display: flex;
  align-items: center;
}

.mode-toggle {
  border: none;
  background: none;
  cursor: pointer;
}

.mode-toggle img {
  width: 25px;
  height: 25px;
}



.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* Überschriften */
h1, h2, h3 {
  color: #2c3e50;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
  padding-bottom: 10px;
  color: #3498db;
}

h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2980b9;
}

h3 {
  font-size: 1.4rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #34495e;
}

/* Text */
p, li {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Listen */
ul {
  margin-left: 20px;
}

li {
  margin-bottom: 10px;
}

/* Inhaltsübersicht */
.index {
  margin: 20px 0;
  padding: 10px;
  background-color: #ecf0f1;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.index-link {
  color: #3498db;
  text-decoration: none;
  display: block;
  margin: 5px 0;
  transition: color 0.3s ease;
}

.index-link:hover {
  color: #2980b9;
}

/* Hervorgehobener Text */
strong {
  color: #c0392b;
}

/* Horizontale Linie */
hr {
  border: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #3498db 0%,
    #2ecc71 50%,
    #3498db 100%
  );
  margin: 30px auto;
  width: 80%;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Zitat/Blockquote */
blockquote {
  font-style: italic;
  padding: 15px 20px;
  background-color: #ecf0f1;
  border-left: 5px solid #3498db;
  margin: 20px 0;
  border-radius: 5px;
}

/* Fußzeile */
.seal {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #7f8c8d;
  text-align: center;
}

.seal a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.seal a:hover {
  color: #2980b9;
}

/* Tabellen für Begriffsdefinitionen */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #3498db;
  color: white;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}
/* Footer */
footer {
  background-color: var(--primary-color-light);
  color: var(--text-color-light);
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-links a {
  color: var(--secondary-color-light);
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--secondary-color-dark);
}
