:root {
  --bg-color-light: #f4f4f4;
  --text-color-light: #222;
  --bg-color-dark: #1e1e1e;
  --text-color-dark: #f4f4f4;
  --primary-color: #6b4fbb;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}
body {
  font-family: sans-serif;
}

#board {
  width: 100vw;
  height: 90vh;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
}

.element {
  position: absolute;
  background: #f0f0f0;
  border: 1px solid #999;
  padding: 10px;
  cursor: move;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
}

#mode-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
}

main {
  padding: 6rem 1rem 2rem;
  min-height: 100vh;
  box-sizing: border-box;
}

body.light-mode {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}

body.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content-box {
  max-width: 400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .login-container {
  background-color: rgba(255, 255, 255, 0.05);
}

body.light-mode .login-container {
  background-color: rgba(0, 0, 0, 0.05);
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.login-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%; /* oder entferne ganz die width-Zeile */
  box-sizing: border-box;
}


.login-form button {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #5a3fa0;
}
.login-form input,
.login-form select,
.login-form button {
  margin-bottom: 1rem;
}

nav ul,
.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  font-size: 24px;
}

.main-nav {
  display: flex;
}

.hidden {
  display: none;
}

    .text-container {
      max-height: 80px;
      overflow: hidden;
      transition: max-height 0.3s ease;
      border: 1px solid #ccc;
      padding: 10px;
      position: relative;
    }
    .expanded {
      max-height: none;
    }
    .controls {
      margin-top: 10px;
    }
    button {
      margin-right: 10px;
      padding: 5px 10px;
      cursor: pointer;
    }