body {
  padding-top: 4.5rem;
}

/* Mobile Optimierung: Mehr Platz nutzen */
@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
  }
  
  body {
    padding-top: 3.5rem;
  }
}

.starter-template {
  padding: 3rem 1.5rem;
  text-align: center;
}

.btn-navbar {
  background-color: rgb(27, 135, 86);
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-navbar:hover {
  background-color: rgb(20, 100, 65); /* dunkleres Grün */
  color: white;
}

.navbar-custom {
  background-color: rgb(27, 135, 86);
}

/* Damit dropdown-toggle in btn-navbar auch den Pfeil zeigt */
.btn-navbar.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Mobile Optimierung für Formulare und Cards */
@media (max-width: 767px) {
  .card {
    margin-left: 0;
    margin-right: 0;
  }
  
  .form-control, .btn {
    font-size: 16px; /* Verhindert Auto-Zoom auf iOS */
  }
  
  .jumbotron {
    padding: 1.5rem 0.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navbar auf mobil kompakter */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Tables responsive ohne horizontales Scrollen */
  .table-responsive {
    border: 0;
  }
  
  /* Buttons in voller Breite auf mobil */
  .btn-group-vertical {
    width: 100%;
  }
}

.programmpunkt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.programmpunkt-item {
  padding: 6px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-drag: element;
}

.programmpunkt-item span {
  pointer-events: none;
}

.programmpunkt-item.assigned {
  opacity: 0.6;
  cursor: not-allowed;
}

.zeitabschnitt-cell {
  vertical-align: top;
  min-width: 180px;
}

.zeitabschnitt-cell.drop-hover {
  background-color: #f1f8f4;
}

.assigned-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assigned-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border: 1px dashed #cbd5d1;
  border-radius: 4px;
  background: #ffffff;
}

.cell-placeholder {
  color: #888;
  font-size: 0.85em;
  margin-top: 6px;
}

