.element-container {
  height: 90px;
  margin-bottom: 5px;
}

.element-container-assignt {
  height: 105px;
  margin-bottom: 5px;
}

.main_Box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.red-star {
  color: red;
}

.content_box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.todo-wrapper{
  margin-top: 8px;
}

input[type="date"]:disabled {
  cursor: default;
}

input[type="date"]:not(:disabled) {
  cursor: pointer;
}

.splitbar {
  background-color: #d1d1d1;
  height: 380px;
  width: 1px;
  margin: 10px;
}

.pointer:hover{
  cursor: pointer;
}

.pointer-option:hover{
cursor: pointer;
}

.button_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 900px;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.cancel-btn {
  border: 1px solid #d1d1d1;
  background: white;
  color: #2a3647;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.cancel-btn img {
  height: 20px;
  width: 20px;
}

.create-btn {
  background-color: #2a3647;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.create-btn img {
  height: 20px;
  width: 20px;
}

label.required::after {
  content: "*";
  color: red;
}

.left-content-maincontent {
  width: 100%;
  max-width: 430px;
}

.input_field {
  width: 100%;
  max-width: 440px;
  height: 44px;

  padding: 12px 21px;
  font-size: 16px;

  border: 1px solid #d1d1d1;
  border-radius: 8px;

  background-color: white;
  color: #2a3647;

  margin-top: 4px;
  

  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

select{
cursor: pointer;
}

.input_field_description {
  height: 105px;
  margin-bottom: 15px;
}

.input-with-button {
  position: relative;
}

.input-with-button button {
  position: absolute;
  right: 28px;
  color: #2a3647;
  font-size: 18px;
  border-color: #d1d1d1;
  cursor: pointer;
  background-color: white;
  border: none;
  top: 25%;
}

.priorty_button {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  background-color: white;
  color: #2a3647;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  height: 56px;
  width: 133px;
  border-radius: 10px;
  margin-right: 8px;
  font-size: 20px;
  border: solid;
  border-width: 1px;
  border-color: #d1d1d1;
}

.priorty_button.urgent.selected {
  background-color: #ff3d00;
  color: white;
  border: none;
}

.priorty_button.medium.selected {
  background-color: #ffa800;
  color: white;
  border: none;
}

.priorty_button.low.selected {
  background-color: #7ae229;
  color: white;
  border: none;
}
.priority-button-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.priorty_button.selected {
  background-color: #2a3647;
  color: white;
  border: none;
}

.dropdown {
  width: 100%;
}

.dropdown-wrapper {
  width: 100%;
  max-width: 440px;
}

.dropdown-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-bottom: 8px;
  margin-top: 8px;
}

.dropdown-container.back {
  height: 280px;
}

.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.dropdown-toggle input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
}

.dropdown-toggle img {
  width: 18px;
  height: 18px;
  margin-left: 8px;
}

.dropdown-menu {
  display: none;
  background: white;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.dropdown-menu:hover{
  cursor: pointer;
}

.dropdown-menu.show {
  display: block;
  position: absolute;
  z-index: 1;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
  
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}
.contact-item.selected {
  background-color: #2a3647;
  color: white;
}

.contact-item.selected span {
  color: white;
}

.contact-item.selected .contact-initial {
  border: 2px solid white;
}

.selected-contacts {
  position: relative;
  z-index: 0;

  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.selected-contact-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

select {
  width: 100%;
  max-width: 440px;
  height: 44px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
  color: #2a3647;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #29abe2;
  box-shadow: 0px 0px 0px 2px rgba(41, 171, 226, 0.2);
}
#assigned_category {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
  color: #2a3647;
  appearance: none;
  background-image: url("../asset/img/icons/arrow_drop_downaa.png");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

#assigned_category:focus {
  outline: none;
  border-color: #29abe2;
  box-shadow: 0px 0px 0px 2px rgba(41, 171, 226, 0.2);
}

.subtask-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.subtask-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  color: #2a3647;
  font-size: 16px;
  box-sizing: border-box;
}

.subtask-input::placeholder {
  color: #c0c0c0;
}

.subtask-icons {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.subtask-icons img {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.subtask-input:focus + .subtask-icons,
.subtask-input:not(:placeholder-shown) + .subtask-icons {
  opacity: 1;
  pointer-events: all;
}

.subtask-add-btn {
  position: absolute;
  right: 12px;
  top: 26px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #2a3647;
  cursor: pointer;
}

.subtask-icon {
  position: absolute;
  right: 20px;
  top: 26px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #2a3647;
  cursor: pointer;
}

.subtask-icon-group {
  position: absolute;
  right: 15px;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.subtask-icon-group img {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.subtask-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100px;     
  overflow-y: auto;      
  padding-right: 4px;    
}

.subtask-list-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #2a3647;
  padding-left: 20px;
  position: relative;
}

.subtask-list-item:hover{
  cursor: pointer;
}

.subtask-list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  color: #2a3647;
}

.editable-subtask {
  position: relative;
  display: flex;
  align-items: center;
  width: 87%;
  max-width: 100%;
  background-color: #f6f7f8;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  padding-right: 48px; 
}

.editable-subtask input {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
}

.editable-subtask img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.editable-subtask img:first-of-type {
  right: 36px; /* 🗑️ etwas weiter links */
}

.editable-subtask img:last-of-type {
  right: 12px; /* ✅ ganz rechts */
}
.subtask-divider {
  position: absolute;
  right: 34px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: #d1d1d1;
}

.input-error {
  color: red;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
  display: none;
}
.input_field.error {
  border: 1px solid red;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 1200px) {
  .headline{
    margin-left: 10px;
  }
  .main_Box {
    padding: 5px;
    margin-right: 5px;
    margin-left: 5px;
    max-width: 98%;
  }
  .content_box {
    gap: 10px;
  }

  .button_container {
    width: 100%;
  }
  .priorty_button {
    height: 50px;
    width: 100%;
    max-width: 156px;
    font-size: 16px;
    margin-right: 0;
  }
}

@media (max-width: 1000px) {
  .headline{
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .content-left {
    display: flex;
    flex-direction: column;
  }
  .main_Box {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .content_box {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    align-items: center;
  }

  .splitbar {
    display: none;
  }

  .input_field,
  .input_field_description,
  select,
  .subtask-input-wrapper,
  .dropdown-container {
    max-width: 100%;
    width: 100%;
  }

  .priority-button-group {
    
    align-items: center;
    gap: 5px;
  }

  .button_container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .cancel-btn,
  .create-btn {
    width: 100%;
  }
}

@media (max-width: 780px) {
  
  .main_Box {
    padding: 16px;
    margin-bottom: 75px;
  }

  .content-left {
    height: calc(100vh - 100px - 96px);
  }

  .content_box {
    flex-direction: column;
    align-items: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .input_field,
  .input_field_description,
  select,
  .subtask-input-wrapper,
  .dropdown-container,
  .button_container {
    width: 100%;
    max-width: 100%;
  }

  .priority-button-group {
    flex-direction: row;
    gap: 8px;
  }

  .button_container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .button-row {
    flex-direction: row;
  }

  .cancel-btn,
  .create-btn {
    width: 100%;
    max-width: 150px;
    justify-content: center;
  }

  .splitbar {
    display: none;
  }

  .subtask-list-item {
    margin-left: 0;
    padding-left: 16px;
  }

  .fixed-buttons .button_container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .fixed-buttons .cancel-btn,
  .fixed-buttons .create-btn {
    flex: 1;
    width: 48%;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .fixed-buttons {
    position: fixed;
    bottom: 72px;
    width: 100%;
    background-color: #f6f7f8;
    padding: 0px 16px;
    padding-bottom: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .fixed-buttons .button-row {
    display: flex;

    gap: 12px;

    margin-right: 10px;
  }

  .cancel-btn,
  .create-btn {
    flex: 1;

    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }

  .cancel-btn {
    background-color: white;
    color: #2a3647;
    border: 1px solid #2a3647;
  }

  .create-btn {
    background-color: #2a3647;
    color: white;
    border: none;
    margin-right: 20px;
  }

  .cancel-btn img,
  .create-btn img {
    width: 20px;
    height: 20px;
  }

  .priorty_button {
    height: 50px;
    width: 100%;
    max-width: 154px;
    font-size: 16px;
    margin-right: 0;
  }
  
}

@media (max-width: 658px) {
  .main-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 510px) {
  .main_Box {
    width: 100%;
    margin-left: 0;
    padding: 5px;
  }
  .priorty_button {
    max-width: 120px;
  }
}

@media (max-width: 400px) {
  .priorty_button {
    max-width: 95px;
    font-size: 16px;
    height: 45px;
  }
}

@media (max-width: 320px){
  .main_Box{
    padding: 0px;
    margin-right: 0;
    
  }
  .fixed-buttons{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 5px;
    padding-right: 0;
    padding-left: 0;
  }
  .button-row{
    margin: 5px;
    
  }
  .create-btn{
    margin-right: 0;
  }
  .left-content-maincontent{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 280px;
  }

  .input_field,
  .input_field_description,
  select,
  .subtask-input-wrapper,
  .dropdown-container,
  .button_container,
  .element-container {
    width: 260px;
   
  }
  .priority-button-group img {
    width: 15px;
    height: auto;
    gap: 3px;
  }
  .priorty_button{
    max-width: 85px;
  }
}