body {
    font-family: sans-serif;
    margin: 0;
    padding: 1rem;
    background-color: #f7f7f7;
    color: #222;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  .title {
    color: #c62828;
    text-align: center;
  }
  table {
  border-spacing: 10px;
  }
  td {
    text-align: center;
  }
  input[type="text"] {
    width: 95%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  input[type="select"]  {
    width: 95%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;    
  }
  input[type="number"]  {
    width: 95%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;    
  }
  input[type="password"]  {
    width: 95%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;    
  }
  button {
    background-color: #c62828;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
  }
  button:hover {
    background-color: #a91f1f;
  }
  .section-list button {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
.form-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.form-inline input, .form-inline select {
  flex: 1;
}
.vertical-text {
transform: rotate(-45deg);
}
.vertical-text2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.nav-tabs .nav-link {
  color: #333;
}
.nav-tabs .nav-link.active {
  color: #000;
  font-weight: bold;
  background-color: #c62828;
  border-color: #dee2e6 #dee2e6 #fff;
}
.icon-button {
  background: none;
  border: none;
  color: #c00;
  font-size: 1.2em;
  cursor: pointer;
}

.icon-button:hover {
  color: #f00;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  max-width: 90%;
}

.modal input {
  width: 100%;
  margin-top: 10px;
}

.modal-actions {
  text-align: right;
  margin-top: 10px;
}
.spinner {
  margin-left: 8px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  justify-content: center;
  margin: 20px 0;
}

.nav-bar button {
  padding: 10px 15px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-bar button:hover {
  background-color: #b71c1c;
}
/* Sidebar komplett versteckt */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%; /* komplett aus dem Bild */
  width: 250px;
  height: 100%;
  background-color: #eee;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.open {
  left: 0; /* sichtbar */
}

.sidebar button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}

.sidebar button:hover {
  background-color: #b71c1c;
}

/* Nur das Burger-Menü ist immer sichtbar */
.burger {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #d32f2f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1100; /* höher als overlay und sidebar! */
}
/* Overlay (dunkler Hintergrund) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  display: none;
}

.overlay.show {
  display: block;
}
