/* Layout für Formular-Schritte */
#formularcards {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.767);
}

.slider-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  height: 100%;
}

.form-card {
  width: calc(100% - 50px);
  flex-shrink: 0;
  margin: 10px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.767);
  border-radius: 15px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  border: 1px none #ccc;
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 6px;
  gap: 6px;
}

.horizontal-group {
  flex-direction: column;
}

/* Einheitlicher Look für Eingabefelder */
input[type="date"],
input[type="text"],
textarea,
select,
button {
  width: 100%;
  flex: 1;
  font-size: 16px;
  border-radius: 8px;
  border: 1px none #ccc;
  background-color: #f1f1f1;
  box-sizing: border-box;
  margin-bottom: 100px;
}

/* Scrollbare Listen */
.scroll-list {
  flex: 1;
  overflow-y: auto;
  border: 1px none #ccc;

  margin-bottom: 42px;
  border-radius: 8px;
  background-color: #fff;
}

#kh-liste,
#arztliste,
#abteilungsfilter-liste,
#produktliste {
  flex: 1;
}

/* Arzt-Karten (gleiches Design wie im Testprojekt) */
.arzt-eintrag {
  background: white;
  border-radius: 8px;
  padding: 6px;

  cursor: pointer;
}

.arzt-inhalt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.arzt-name {
  font-weight: bold;
  font-size: 1em;
}

.arzt-info {
  color: #555;
  margin-top: 4px;
  font-size: 0.8em;
}

/* Aktiver Eintrag */
.arzt-eintrag.active {
  background-color: #e6f0ff;
  box-shadow: 0 2px 12px rgba(0, 87, 255, 0.3);
  border-left: 5px solid #0057ff;
}

/* Aktionen rechts (Bearbeiten + Details) */
.actions {
  display: flex;
  gap: 8px;
  opacity: 0.5;
  background-color: #cedfff;
  border-radius: 10px;
  padding: 6px;
}

.actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions img {
  width: 20px;
  height: 20px;
}

/* Suche + Plus-Button + Sortier-Button in einer Zeile */
.input-with-button {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-button input {
  flex: 1;
}

.input-with-button button {
  flex: 0 0 auto; /* <- DAS ist entscheidend */
  width: 40px;
  height: 40px;
}



/* Beide Buttons gleich – Plus & Sortier-Button */
.icon-button {
  height: 40px;
  width: 100px;
  max-width: 40;
  background: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.icon-button img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.icon-button:hover {
  background-color: #f2f8ff;
}

.icon-button:active {
  transform: scale(0.97);
}

/* Textarea für Notizen */
#notizen {
  flex: 1;
  resize: vertical;
  padding: 12px;
}

/* Fachgebietsfilterliste */
.abteilungs-liste {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.abteilungs-liste li {
  padding: 12px;
  margin: 6px 0;
  background-color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.abteilungs-liste li:hover {
  background-color: #ddd;
}

#produktsuche,
#arztsuche,
#kh-suchfeld,
#datum {
  margin: 0;
}

/* Feste Buttons */
.fixed-button {
  position: fixed;
  z-index: 999;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 25%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  touch-action: manipulation;
  transition: background-color 0.2s ease;
}

.fixed-button:active {
  background-color: #808080;
}

.fixed-button img {
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.top-button {
  top: 10px;
  right: 10px;
}

.bottom-button {
  bottom: 10px;
  right: 10px;
}

.bottom-left-button {
  bottom: 70px;
  right: 10px;
}

.bottom-help-button {
  bottom: 130px;
  right: 10px;
}
