/* Farbvariablen */
:root {
  --primary-color: #FFCD00; /* Dunkelgelb */
  --secondary-color: #808080; /* Dunkelgrau */
  --accent-color: #2F2F2F; /* Rot (Beispiel) */
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

#content > div, #content > div > div {
  margin-top: 50px;
  border-left: 2px solid var(--primary-color); /* Linke Border */
  padding: 20px;
  width: fit-content;
}

/* Textfarben */
body, button, h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
}

html {
  background-color: #242424;
  font-family: 'Roboto', sans-serif;
  background-attachment: fixed;
}

body {
  color: white;
}

#moduleselect {
  padding: 50px 0 10px 0;
  display: block;
}

input, select {
  width: 400px;
  height: 30px;
  margin: 0 10px 5px 0;
}

label {
  font-weight: bold;
  display: block;
  margin: 15px 0 0 0;
}

button {
  border: none;
  color: var(--primary-color); /* Dunkelgelb */
  padding: 5px 12px 5px 0;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  margin-right: 5px;
  background-color: transparent;
  padding-bottom: 0px;
}

#modules {
  float: left;
  display: block;
}

#add_module {
  float: left;
  padding-top: 2px;
  display: block;
}

.remove {
}

fieldset {
  border-left: 2px solid var(--primary-color);
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  margin-top: 25px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}



fieldset > legend {
  padding-top: 1em;
}

#load_json, #write_json {
  border: 2px solid var(--primary-color); /* Dunkelgelb */
  text-align: center;
  padding: 5px 12px;
}

#locationModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

#modalContent {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

#sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  min-width: 250px;
  width: fit-content;
  background-color: #343434;
  overflow-y: auto;
  overflow-x: auto;
  padding: 10px;
  border-right: 2px solid white;
}

#sidebarToggle {
  position: fixed;
  top: 0px;
  right: 0px;
  cursor: pointer;
  background-color: #333;
  color: var(--primary-color); /* Dunkelgelb */
  padding: 10px;
  border: none;
  z-index: 1000;
}

body::-webkit-scrollbar {
  display: none;
}

.sidebar-closed #sidebar {
  width: 0;
  border-right: none;
  min-width: 0px;
  padding: 0;
}

.sidebar-closed #sidebarToggle {
  right: 0;
}

.sidebar-closed #content {
  margin-left: 0;
}

.nav-item {
  cursor: pointer;
  padding: 5px;
}

.nav-item:hover {
  background-color: #454545;
}

/* ... bestehendes CSS ... */

#sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#sidebar li {
  cursor: pointer;
  padding: 5px;
}

#sidebar .children {
  display: none;
  padding-left: 20px;
}

#sidebar .expanded > .children {
  display: block;
}

#sidebar .indicator {
  margin-right: 10px;
}

ul > li > ul {
  display: none;
}

li.nav-item.expanded > ul {
  display: block;
}
